xiangpei
2024-07-12 5a74a3aa4e0703a8fefeec08a042f92075674de8
修改部门bug
1个文件已修改
4 ■■■■ 已修改文件
src/views/education/department/edit.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/education/department/edit.vue
@@ -65,7 +65,7 @@
    if (id && parseInt(id) !== 0) {
      _this.formLoading = true
      departmentApi.select(id).then(re => {
        re.response.parentId = [re.response.parentId]
        re.response.parentId = re.response.parentIds
        _this.form = re.response
        _this.formLoading = false
      })
@@ -100,7 +100,7 @@
      //   name: this.form.name
      // }
      if (_this.form.parentId) {
        _this.form.parentId = _this.form.parentId[0];
        _this.form.parentId = _this.form.parentId[_this.form.parentId.length - 1];
      }
      if (_this.fig === 1) {
        departmentApi.addData(this.form).then(res => {