From f8ab82468a74fac87a4482a7f6f3537549473d35 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Fri, 13 Jan 2023 12:45:43 +0800 Subject: [PATCH] =?UTF-8?q?--fix=20=E5=AD=97=E5=85=B8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 ++------ src/api/index1.js | 1 + src/views/courselibrary/CoursewareManage.vue | 27 +++++++++----------- 3 files changed, 15 insertions(+), 23 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4ba1c1e5..0235ed40 100644 --- a/src/App.vue +++ b/src/App.vue @@ -67,6 +67,7 @@ export default defineComponent({ initDict("pathmapPic"); initDict("projectClass"); initDict("projectPic"); + initDict("sysType"); getMemberInfo(); getOrgTree(); } @@ -128,14 +129,7 @@ export default defineComponent({ store.commit("SET_DICT", { key, data: list }); } - const getDictList = (param) => - api1 - .getDict({ - pageNo: 1, - pageSize: 20, - setCode: param, - }) - .then((res) => res.data.data.rows); + const getDictList = (param) => api1.getDictTree({setCode: param,}).then((res) => res.data.data); //获取组织树 const getOrgTree = () => { api.getOrgTreeInfo().then((res) => { diff --git a/src/api/index1.js b/src/api/index1.js index d5b33d83..679d1bfd 100644 --- a/src/api/index1.js +++ b/src/api/index1.js @@ -102,6 +102,7 @@ export const billboard = (obj) => http.post("/admin/project/billboard", obj); //公共信息--------------------------------------------------- // 获取字典信息 export const getDict = (obj) => http.post('/dict/getList', obj) +export const getDictTree = (params) => http.get('/dict/getTree', {params}) //获取组织树一级列表 export const getOrgTree = (obj) => http.post('/admin/router/orgList', obj) //根据id获取组织树一级元素下所有子元素 diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 0b46c720..e2b58111 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -39,15 +39,6 @@