desc: 注释永久显示

This commit is contained in:
zyy 2019-09-02 09:33:21 +08:00
parent 923ded894b
commit 6e60afb4e6

View File

@ -83,18 +83,18 @@ export default {
} }
} }
}, },
{ // {
title: this.$t('permission.isForever'), // title: this.$t('permission.isForever'),
prop: 'forever', // prop: 'forever',
type: 'tag', // type: 'tag',
columnValue: (row) => { return this.$ConstSelect.translate(row.forever, 'Whether'); }, // columnValue: (row) => { return this.$ConstSelect.translate(row.forever, 'Whether'); },
tagType: (row) => { // tagType: (row) => {
switch (row.forever) { // switch (row.forever) {
case true: return 'success'; // case true: return 'success';
case false: return 'danger'; // case false: return 'danger';
} // }
} // }
}, // },
{ {
title: this.$t('permission.permissionTotal'), title: this.$t('permission.permissionTotal'),
prop: 'amount' prop: 'amount'
@ -177,9 +177,11 @@ export default {
list.forEach(elem => { list.forEach(elem => {
this.queryForm.queryObject.type.config.data.push({ value: elem.code, label: elem.name }); this.queryForm.queryObject.type.config.data.push({ value: elem.code, label: elem.name });
}); });
console.log(list);
this.$convertList(list, this.PermissionTypeList, elem => { this.$convertList(list, this.PermissionTypeList, elem => {
return true; return true;
}); });
console.log(this.PermissionTypeList);
}); });
}, },
formatterDate(row, porpInfo) { formatterDate(row, porpInfo) {