代码调整

This commit is contained in:
dong 2022-11-01 10:55:17 +08:00
parent 071143992e
commit 88aec8f6dd
2 changed files with 28 additions and 0 deletions

View File

@ -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);

View File

@ -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;