src/views/education/department/edit.vue | ●●●●● 补丁 | 查看 | 原始文档 | 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 => {