From c1ee04d500c2f10f0ba994a94bcde577a3ced0de Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 08 三月 2024 17:35:29 +0800 Subject: [PATCH] 部门增加管理员,管理员修改 --- src/views/education/department/edit.vue | 2 +- src/views/education/department/list.vue | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/education/department/edit.vue b/src/views/education/department/edit.vue index ea06fa2..ef688f1 100644 --- a/src/views/education/department/edit.vue +++ b/src/views/education/department/edit.vue @@ -10,7 +10,7 @@ <!-- <el-option v-for="item in levelEnum" :key="item.key" :value="item.key" :label="item.value"></el-option>--> <!-- </el-select>--> <!-- </el-form-item>--> - <el-form-item label="绠$悊鍛橈細" required> + <el-form-item v-if="fig === 0" label="绠$悊鍛橈細"> <el-select v-model="form.adminId" filterable placeholder="閫夋嫨绠$悊鍛�"> <el-option v-for="item in deptUserList" diff --git a/src/views/education/department/list.vue b/src/views/education/department/list.vue index 12a8c18..fc0a3a9 100644 --- a/src/views/education/department/list.vue +++ b/src/views/education/department/list.vue @@ -37,7 +37,7 @@ :visible.sync="dialogVisible" width="400px" :before-close="handleClose"> - <el-select v-model="updateAdminForm.adminId" filterable placeholder="閫夋嫨绠$悊鍛�"> + <el-select v-model="updateAdminForm.adminId" @change="changSelect" filterable placeholder="閫夋嫨绠$悊鍛�"> <el-option v-for="item in deptUserList" :key="item.id" @@ -67,7 +67,10 @@ deptUserList: [], dialogVisible: false, title: '', - updateAdminForm: {}, + updateAdminForm: { + id: null, + adminId: null + }, depart: [], queryParam: { level: null, @@ -83,6 +86,9 @@ this.search() }, methods: { + changSelect( value ) { + this.updateAdminForm.adminId = value + }, handleClose () { this.dialogVisible = false this.title = '' -- Gitblit v1.8.0