|
|
@ -327,13 +327,13 @@ export default { |
|
|
|
{ prop: 'totalPrice', label: '总价', align: 'center' }, |
|
|
|
{ prop: 'departmentId', label: '使用部门', align: 'center', formatter: this.formatter.formatterDepartmentName }, |
|
|
|
{ prop: 'principal', label: '使用人', align: 'center', formatter: this.formatter.formatterNickName }, |
|
|
|
{ prop: 'useState', label: '使用状况', align: 'center', component: PrefixPlusText, componentFunction: this.formatter.formatterDicData }, |
|
|
|
{ prop: 'useState', label: '使用状况', align: 'center', component: PrefixPlusText, componentFunction: this.formatterDicData }, |
|
|
|
{ slot: 'operation' } |
|
|
|
], |
|
|
|
permission: { |
|
|
|
add: ['device-list:add'], |
|
|
|
edit: ['device-list:update'], |
|
|
|
del: ['device-list:delete'] |
|
|
|
add: ['instrument:add'], |
|
|
|
edit: ['instrument:update'], |
|
|
|
del: ['instrument:delete'] |
|
|
|
}, |
|
|
|
dicAssetTree: [], |
|
|
|
parentId: [], |
|
|
@ -546,6 +546,16 @@ export default { |
|
|
|
CrudInstrument.exportExcel(this.crud.query).then(data => { |
|
|
|
downloadFile(data, parseTime(new Date()) + '-' + this.crud.title + '数据', 'xlsx') |
|
|
|
}) |
|
|
|
}, |
|
|
|
formatterDicData(cellValue) { |
|
|
|
if (cellValue != null) { |
|
|
|
let label = '' |
|
|
|
this.useStateList.filter(dicData => dicData.id === cellValue).forEach(dicData => { |
|
|
|
label = dicData.label |
|
|
|
}) |
|
|
|
return label |
|
|
|
} |
|
|
|
return null |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|