diff --git a/src/views/userRulesManage/index.vue b/src/views/userRulesManage/index.vue index 9b642cba2..8807105c9 100644 --- a/src/views/userRulesManage/index.vue +++ b/src/views/userRulesManage/index.vue @@ -81,6 +81,13 @@ export default { columnValue: (row) => { return this.$convertField(row.subjectType, this.subTypeList, ['value', 'label']); }, tagType: (row) => { return ''; } }, + { + title: '功能', + prop: 'systemAbilityList', + type: 'tagMore', + columnValue: (row) => { return this.getAbilityList(row.systemAbilityList); }, + tagType: (row) => { return ''; } + }, { title: this.$t('permission.isForever'), width: '80', @@ -157,6 +164,13 @@ export default { this.loadInitData(); }, methods: { + getAbilityList(list) { + const arr = []; + list && list.forEach(item => { + arr.push(item.abilityName); + }); + return arr; + }, loadInitData() { this.EffectiveTypeList.forEach(elem => { this.queryForm.queryObject.status.config.data.push(elem); diff --git a/src/views/userRulesManage/permissionList.vue b/src/views/userRulesManage/permissionList.vue index 7d5978bd5..0a8ff5050 100644 --- a/src/views/userRulesManage/permissionList.vue +++ b/src/views/userRulesManage/permissionList.vue @@ -67,6 +67,13 @@ export default { columnValue: (row) => { return this.$convertField(row.subjectType, this.subTypeList, ['value', 'label']); }, tagType: (row) => { return ''; } }, + { + title: '功能', + prop: 'systemAbilityList', + type: 'tagMore', + columnValue: (row) => { return this.getAbilityList(row.systemAbilityList); }, + tagType: (row) => { return ''; } + }, { title: this.$t('permission.isForever'), prop: 'forever', @@ -136,6 +143,13 @@ export default { }; }, methods: { + getAbilityList(list) { + const arr = []; + list && list.forEach(item => { + arr.push(item.abilityName); + }); + return arr; + }, doShow(index, row) { if (!row.id) { return; } this.id = row.id;