From 2bddfa78e65f351d6cb81f670775e79620f684a6 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期五, 24 五月 2024 10:43:51 +0800 Subject: [PATCH] feat:分数统计 --- src/views/education/department/list.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/education/department/list.vue b/src/views/education/department/list.vue index fc0a3a9..9c2dc67 100644 --- a/src/views/education/department/list.vue +++ b/src/views/education/department/list.vue @@ -17,7 +17,7 @@ <el-table v-loading="listLoading" :data="tableData" stripe border fit highlight-current-row style="width: 100%"> <el-table-column prop="name" label="閮ㄩ棬"/> - <el-table-column prop="adminName" label="閮ㄩ棬璐熻矗浜�"/> + <el-table-column prop="adminNames" label="閮ㄩ棬璐熻矗浜�"/> <!-- <el-table-column prop="levelName" label="閮ㄩ棬" />--> <el-table-column width="400px" label="鎿嶄綔" align="center"> <template slot-scope="{row}"> @@ -37,7 +37,7 @@ :visible.sync="dialogVisible" width="400px" :before-close="handleClose"> - <el-select v-model="updateAdminForm.adminId" @change="changSelect" filterable placeholder="閫夋嫨绠$悊鍛�"> + <el-select v-model="updateAdminForm.adminIds" @change="changSelect" multiple filterable placeholder="閫夋嫨绠$悊鍛�"> <el-option v-for="item in deptUserList" :key="item.id" @@ -69,7 +69,7 @@ title: '', updateAdminForm: { id: null, - adminId: null + adminIds: [] }, depart: [], queryParam: { @@ -94,7 +94,7 @@ this.title = '' }, submitUpdate () { - if (!this.updateAdminForm.adminId) { + if (!this.updateAdminForm.adminIds) { this.$message.warning('璇烽�夋嫨閮ㄩ棬璐熻矗浜�') return } @@ -109,7 +109,8 @@ }, updateDeptAdmin (row) { this.updateAdminForm.id = row.id - this.updateAdminForm.adminId = row.adminId + this.updateAdminForm.adminIds = row.adminIds + console.log(this.updateAdminForm.adminIds, "dd") this.title = row.name + '--绠$悊鍛樹慨鏀�' this.getUserSelect(row.id) this.dialogVisible = true @@ -124,12 +125,16 @@ departmentApi.pageList(this.queryParam).then(data => { const re = data.response this.tableData = re.list + this.tableData.map(item => { + if (item.adminNames) { + item.adminNames = item.adminNames.join("銆�") + } + }) this.total = re.total this.queryParam.pageIndex = re.pageNum this.listLoading = false this.depart = data.response.list - console.log(this.depart) this.depart.map(item => { item.key = item.id item.value = item.name -- Gitblit v1.8.0