|
@@ -376,24 +376,20 @@ export default {
|
|
|
getUserPostList() {
|
|
|
let that = this
|
|
|
that.showMessage = false
|
|
|
- if (that.userMes.deptId === '23031009') {
|
|
|
- that.showMessage = true
|
|
|
- } else {
|
|
|
- let params = {
|
|
|
- userId: that.userMes.id,
|
|
|
- current: 1,
|
|
|
- size: 10
|
|
|
- }
|
|
|
- apiGetUserPostList(params).then(datas =>{
|
|
|
- if (datas.data && datas.data.records.length>0) {
|
|
|
- datas.data.records.forEach(it =>{
|
|
|
- if (it.posName === '主任' || it.posName === '副主任') {
|
|
|
- that.showMessage = true
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ let params = {
|
|
|
+ userId: that.userMes.id,
|
|
|
+ current: 1,
|
|
|
+ size: 10
|
|
|
}
|
|
|
+ apiGetUserPostList(params).then(datas =>{
|
|
|
+ if (datas.data && datas.data.records.length>0) {
|
|
|
+ datas.data.records.forEach(it =>{
|
|
|
+ if (it.posName === '主任' || it.posName === '副主任' || it.deptName === '组织人事部(人力资源部)') {
|
|
|
+ that.showMessage = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
rowClick(selection, row) {
|
|
|
this.changeDateSelect = selection
|