licp
2024-09-09 cde6e6864286161e3d2c4d39b7c053fed0aca121
src/components/view/person-manage.vue
@@ -519,12 +519,14 @@
          })
        }).catch(e => {})
      },
      selectTreeList() {
      selectTreeList(e) {
        this.treeLoad = true
        this.$axios.get(this.$api.department.selectDepartment).then(res => {
          this.list = res.data
          this.treeLoad = false
          this.componentData.entity.roleId = this.list[0].id;
          if(!e){
            this.componentData.entity.roleId = this.list[0].id;
          }
          this.refreshTable()
        })
      },
@@ -545,7 +547,7 @@
          }
          this.$message.success('添加成功')
          this.addDia = false
          this.selectTreeList()
          this.selectTreeList(true)
          this.addLoad = false
          this.addOb.name = ''
        }).catch(e => {
@@ -613,7 +615,7 @@
          this.$refs.personTable.clearSelection()
          this.addLoad = false
          this.userSearch2 = ''
          this.selectTreeList()
          this.selectTreeList(true)
        }).catch(e => {
          this.addLoad = false
        })