Browse Source

问题修改

SunZehao 1 year ago
parent
commit
d2a325d772

+ 13 - 17
src/components/assessment/assessmentApplicationFrom.vue

@@ -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
+                        }
+                    })
+                }
+            })
         },
         employeeNoInputBlur(val, row) {
             row.employeeId = ''

+ 13 - 17
src/components/taskCenter/taskApplicationFrom.vue

@@ -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