代码调整
This commit is contained in:
parent
071143992e
commit
88aec8f6dd
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user