diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js
index 765292b1..eb42ca36 100644
--- a/src/i18n/zh-CN.js
+++ b/src/i18n/zh-CN.js
@@ -366,8 +366,6 @@ t.role.createDate = '创建时间'
t.role.menuList = '菜单授权'
t.role.deptList = '数据授权'
t.role.appMenuList = '工作端菜单授权'
-t.role.categoryList = '项目处理类型授权'
-t.role.whistleDeptList = '吹哨部门授权'
t.user = {}
t.user.username = '用户名'
diff --git a/src/views/modules/events/handlecategory-add-or-update.vue b/src/views/modules/events/handlecategory-add-or-update.vue
deleted file mode 100644
index b0a65d40..00000000
--- a/src/views/modules/events/handlecategory-add-or-update.vue
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('cancel') }}
- {{ $t('confirm') }}
-
-
-
-
-
diff --git a/src/views/modules/events/handlecategory.vue b/src/views/modules/events/handlecategory.vue
deleted file mode 100644
index 38697844..00000000
--- a/src/views/modules/events/handlecategory.vue
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
-
-
-
-
- {{ $t('query') }}
-
-
- {{ $t('add') }}
-
-
- {{ $t('deleteBatch') }}
-
-
-
-
-
-
-
-
-
-
-
- 不可用
- 可用
-
-
-
-
-
-
-
-
-
-
- {{ $t('update') }}
- {{ $t('delete') }}
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/modules/sys/role-add-or-update.vue b/src/views/modules/sys/role-add-or-update.vue
index 0b8f80bd..b01b61d7 100644
--- a/src/views/modules/sys/role-add-or-update.vue
+++ b/src/views/modules/sys/role-add-or-update.vue
@@ -29,7 +29,7 @@
:placeholder="$t('role.remark')">
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
@@ -107,9 +83,7 @@ export default {
visible: false,
menuList: [],
deptList: [],
- whistleDeptList: [],
appMenuList: [],
- categoryList: [],
roleTypeList: [],
dataForm: {
id: '',
@@ -117,8 +91,6 @@ export default {
menuIdList: [],
deptIdList: [],
appMenuIdList: [],
- categoryIdList: [],
- whistleDeptIdList: [],
remark: '',
typeKey: ''
}
@@ -144,14 +116,10 @@ export default {
this.$refs.menuListTree.setCheckedKeys([])
this.$refs.deptListTree.setCheckedKeys([])
this.$refs.appMenuListTree.setCheckedKeys([])
- this.$refs.categoryListTree.setCheckedKeys([])
- this.$refs.whistleDeptListTree.setCheckedKeys([])
Promise.all([
this.getMenuList(),
this.getDeptList(),
- this.getAppMenuList(),
- this.getCategoryList(),
- this.getWhistleDeptList()
+ this.getAppMenuList()
]).then(() => {
if (this.dataForm.id) {
this.getInfo()
@@ -177,15 +145,6 @@ export default {
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(() => { })
- },
// 获取App菜单列表
getAppMenuList () {
return this.$http.get('/sys/appmenu/select').then(({ data: res }) => {
@@ -195,15 +154,6 @@ export default {
this.appMenuList = res.data
}).catch(() => { })
},
- // 获取项目处理类型授权
- getCategoryList () {
- return this.$http.get('/events/handlecategory/getCategoryList').then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- }
- this.categoryList = res.data
- }).catch(() => { })
- },
// 获取信息
getInfo () {
this.$http.get(`/sys/role/${this.dataForm.id}`).then(({ data: res }) => {
@@ -217,8 +167,6 @@ export default {
this.dataForm.menuIdList.forEach(item => this.$refs.menuListTree.setChecked(item, true))
this.$refs.deptListTree.setCheckedKeys(this.dataForm.deptIdList)
this.dataForm.appMenuIdList.forEach(item => this.$refs.appMenuListTree.setChecked(item, true))
- this.dataForm.categoryIdList.forEach(item => this.$refs.categoryListTree.setChecked(item, true))
- this.$refs.whistleDeptListTree.setCheckedKeys(this.dataForm.whistleDeptIdList)
}).catch(() => { })
},
// 表单提交
@@ -236,11 +184,6 @@ export default {
...this.$refs.appMenuListTree.getCheckedKeys(),
...this.$refs.appMenuListTree.getHalfCheckedKeys()
]
- this.dataForm.categoryIdList = [
- ...this.$refs.categoryListTree.getCheckedKeys(),
- ...this.$refs.categoryListTree.getHalfCheckedKeys()
- ]
- this.dataForm.whistleDeptIdList = this.$refs.whistleDeptListTree.getCheckedKeys()
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/role', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@@ -268,15 +211,3 @@ export default {
}
}
-// 添加树样式
-