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,17 +224,17 @@ 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 }) => {
+ this.$http.get(`/sys/role/v2/${this.dataForm.id}`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
@@ -271,7 +274,7 @@ export default {
...this.$refs.analysisMenuListTree.getHalfCheckedKeys()
]
this.dataForm.whistleDeptIdList = this.$refs.whistleDeptListTree.getCheckedKeys()
- this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/role', this.dataForm).then(({ data: res }) => {
+ this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/role/v2', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}