Ver código fonte

update 部门所在范围获取人员信息

linweizeng 2 anos atrás
pai
commit
ee8dcb30fe

+ 0 - 2
src/business/platform/org/employee/mixins/panelTree.js

@@ -376,10 +376,8 @@ export default {
             const positions = this.$store.getters.userInfo.employee.positions
             if (positions) {
                 const positionsList = positions.split(',')
-                console.log(positionsList)
                 positionsList.forEach(item => {
                     const index = arrList.findIndex(it => it.id === item)
-                    console.log(index)
                     if (index >= 0) {
                         arrList[index].disabled = true
                     }

+ 5 - 0
src/business/platform/org/employee/panel.vue

@@ -349,6 +349,11 @@ export default {
                     if (this.partyId !== 0 && this.partyId !== '0') {
                         params[key] = this.partyId === '' ? this.currentOrgIdValue : this.partyId
                     }
+
+                    if (!this.partyId && this.partyTypeId === '2' && this.partyType === 'position') {
+                        const position = this.$store.getters.userInfo.employee.positions
+                        params.positionId = position
+                    }
                 } else {
                     params[key] = this.partyTypeId === '1' ? '' : this.partyTypeId
                 }