From 820fdb2db321c699568a54e8e3d7bb8f5c657b7f Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期三, 05 七月 2023 10:22:20 +0800 Subject: [PATCH] 修改青羊后台部门添加刷新 --- src/views/education/department/list.vue | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/views/education/department/list.vue b/src/views/education/department/list.vue index 9365faa..c0d19bb 100644 --- a/src/views/education/department/list.vue +++ b/src/views/education/department/list.vue @@ -38,10 +38,12 @@ import Pagination from '@/components/Pagination' import subjectApi from '@/api/subject' import departmentApi from '@/api/department' +import enumItem from '@/store/modules/enumItem' export default { components: { Pagination }, data () { return { + depart:[], queryParam: { level: null, pageIndex: 1, @@ -64,6 +66,15 @@ 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 + }) + enumItem.state.user.levelEnum = this.depart + }) }, submitForm () { -- Gitblit v1.8.0