From 5a74a3aa4e0703a8fefeec08a042f92075674de8 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 12 七月 2024 18:09:23 +0800
Subject: [PATCH] 修改部门bug
---
src/views/education/department/edit.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/education/department/edit.vue b/src/views/education/department/edit.vue
index dcc071f..ab7efb8 100644
--- a/src/views/education/department/edit.vue
+++ b/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 => {
--
Gitblit v1.8.0