From 77b27f958fd79b730ac65d60cbbf7785e93b07d8 Mon Sep 17 00:00:00 2001 From: yujt Date: Tue, 1 Sep 2020 16:56:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86=EF=BC=8CAP?= =?UTF-8?q?P=E8=8F=9C=E5=8D=95=E6=8E=88=E6=9D=83=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../issue/issue-classified-statistic.vue | 4 +- .../modules/sys/app-menu-add-or-update.vue | 23 +++++++- src/views/modules/sys/app-menu.vue | 23 ++++++-- .../sys/appmenutemplate-add-or-update.vue | 57 ++++++++----------- src/views/modules/sys/appmenutemplate.vue | 16 ++++++ src/views/modules/sys/role-add-or-update.vue | 47 ++++++++------- 6 files changed, 106 insertions(+), 64 deletions(-) diff --git a/src/views/modules/analysis/issue/issue-classified-statistic.vue b/src/views/modules/analysis/issue/issue-classified-statistic.vue index acae7a5..862a416 100644 --- a/src/views/modules/analysis/issue/issue-classified-statistic.vue +++ b/src/views/modules/analysis/issue/issue-classified-statistic.vue @@ -172,8 +172,8 @@ export default { } }, methods: { - beforeGetDataList(){ - this.firstVisible = this.dataForm.categoryLevel === '1'; + beforeGetDataList () { + this.firstVisible = this.dataForm.categoryLevel === '1' this.getDataList() }, getOptions () { diff --git a/src/views/modules/sys/app-menu-add-or-update.vue b/src/views/modules/sys/app-menu-add-or-update.vue index c6ef776..6f540fc 100644 --- a/src/views/modules/sys/app-menu-add-or-update.vue +++ b/src/views/modules/sys/app-menu-add-or-update.vue @@ -24,6 +24,16 @@ :placeholder="$t('menu.name')" > + + + + + + { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.appMenuCategory = res.data + }).catch(() => { }) }, // 获取菜单列表 getMenuList () { diff --git a/src/views/modules/sys/app-menu.vue b/src/views/modules/sys/app-menu.vue index bf3bed7..0e0a62f 100644 --- a/src/views/modules/sys/app-menu.vue +++ b/src/views/modules/sys/app-menu.vue @@ -21,12 +21,7 @@ border style="width: 100%;" > - + + + + + + + + { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.appMenuCategory = res.data + }).catch(() => { }) }, // 获取信息 getInfo () { diff --git a/src/views/modules/sys/appmenutemplate.vue b/src/views/modules/sys/appmenutemplate.vue index 064a746..ecdf1a5 100644 --- a/src/views/modules/sys/appmenutemplate.vue +++ b/src/views/modules/sys/appmenutemplate.vue @@ -52,6 +52,13 @@ header-align="center" align="center" > + + :check-strictly="true"> @@ -166,9 +166,9 @@ export default { this.getMenuList(), this.getDeptList(), this.getAppMenuList(), - this.getCategoryList(), - this.getWhistleDeptList(), - this.getAnalysisMenuList() + this.getCategoryList() + // this.getWhistleDeptList() + // this.getAnalysisMenuList() ]).then(() => { if (this.dataForm.id) { this.getInfo() @@ -192,24 +192,27 @@ export default { return this.$message.error(res.msg) } this.deptList = res.data - }).catch(() => { }) - }, - // 获取吹哨部门列表 - getWhistleDeptList () { - return this.$http.get('/sys/dept/list').then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } + // 吹哨部门列表与全部部门列表相同 this.whistleDeptList = res.data }).catch(() => { }) }, + // 获取吹哨部门列表 + // getWhistleDeptList () { + // return this.$http.get('/sys/dept/list').then(({ data: res }) => { + // if (res.code !== 0) { + // return this.$message.error(res.msg) + // } + // this.whistleDeptList = res.data + // }).catch(() => { }) + // }, // 获取App菜单列表 getAppMenuList () { - return this.$http.get('/sys/appmenu/select').then(({ data: res }) => { + return this.$http.get('/sys/appmenu/v2/select').then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } - this.appMenuList = res.data + this.appMenuList = res.data.workMenu + this.analysisMenuList = res.data.analysisMenu }).catch(() => { }) }, // 获取项目处理类型授权 @@ -221,14 +224,14 @@ export default { this.categoryList = res.data }).catch(() => { }) }, - getAnalysisMenuList () { - return this.$http.get('/sys/analysismenu/select').then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.analysisMenuList = res.data - }).catch(() => { }) - }, + // getAnalysisMenuList () { + // return this.$http.get('/sys/analysismenu/select').then(({ data: res }) => { + // if (res.code !== 0) { + // return this.$message.error(res.msg) + // } + // this.analysisMenuList = res.data + // }).catch(() => { }) + // }, // 获取信息 getInfo () { this.$http.get(`/sys/role/${this.dataForm.id}`).then(({ data: res }) => {