Przeglądaj źródła

update 岗位改成部门

linweizeng 2 lat temu
rodzic
commit
f3f91eb636
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      src/business/platform/org/position/panel.vue

+ 4 - 0
src/business/platform/org/position/panel.vue

@@ -209,6 +209,10 @@ export default {
         getTreeData(params).then(res => {
         getTreeData(params).then(res => {
           this.loading = false
           this.loading = false
           const arr = JSON.parse(JSON.stringify(res.data))
           const arr = JSON.parse(JSON.stringify(res.data))
+          //岗位数改成部门树
+          if(node.level == '0' && arr.length > 0 && arr[0].name == '岗位树'){
+            arr[0].name = '部门树'
+          }
           let treeData
           let treeData
           if (this.$utils.isEmpty(node.data)) {
           if (this.$utils.isEmpty(node.data)) {
             treeData = arr
             treeData = arr