代码调整
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']); },
|
columnValue: (row) => { return this.$convertField(row.subjectType, this.subTypeList, ['value', 'label']); },
|
||||||
tagType: (row) => { return ''; }
|
tagType: (row) => { return ''; }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '功能',
|
||||||
|
prop: 'systemAbilityList',
|
||||||
|
type: 'tagMore',
|
||||||
|
columnValue: (row) => { return this.getAbilityList(row.systemAbilityList); },
|
||||||
|
tagType: (row) => { return ''; }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('permission.isForever'),
|
title: this.$t('permission.isForever'),
|
||||||
width: '80',
|
width: '80',
|
||||||
@ -157,6 +164,13 @@ export default {
|
|||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getAbilityList(list) {
|
||||||
|
const arr = [];
|
||||||
|
list && list.forEach(item => {
|
||||||
|
arr.push(item.abilityName);
|
||||||
|
});
|
||||||
|
return arr;
|
||||||
|
},
|
||||||
loadInitData() {
|
loadInitData() {
|
||||||
this.EffectiveTypeList.forEach(elem => {
|
this.EffectiveTypeList.forEach(elem => {
|
||||||
this.queryForm.queryObject.status.config.data.push(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']); },
|
columnValue: (row) => { return this.$convertField(row.subjectType, this.subTypeList, ['value', 'label']); },
|
||||||
tagType: (row) => { return ''; }
|
tagType: (row) => { return ''; }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '功能',
|
||||||
|
prop: 'systemAbilityList',
|
||||||
|
type: 'tagMore',
|
||||||
|
columnValue: (row) => { return this.getAbilityList(row.systemAbilityList); },
|
||||||
|
tagType: (row) => { return ''; }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('permission.isForever'),
|
title: this.$t('permission.isForever'),
|
||||||
prop: 'forever',
|
prop: 'forever',
|
||||||
@ -136,6 +143,13 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getAbilityList(list) {
|
||||||
|
const arr = [];
|
||||||
|
list && list.forEach(item => {
|
||||||
|
arr.push(item.abilityName);
|
||||||
|
});
|
||||||
|
return arr;
|
||||||
|
},
|
||||||
doShow(index, row) {
|
doShow(index, row) {
|
||||||
if (!row.id) { return; }
|
if (!row.id) { return; }
|
||||||
this.id = row.id;
|
this.id = row.id;
|
||||||
|
Loading…
Reference in New Issue
Block a user