This commit is contained in:
liang.chao 2025-11-27 14:22:15 +08:00
parent ac5585ee3a
commit e5bd34a1d0
1 changed files with 19 additions and 1 deletions

View File

@ -17,6 +17,12 @@
@refresh-change="refreshChange"
@on-load="onLoad"
>
<!-- 自定义档案状态显示 -->
<template #fileStatus="{ row }">
{{
formatFileStatus(row.fileStatus)
}}
</template>
</avue-crud>
</basic-container>
</template>
@ -47,7 +53,6 @@ export default {
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: false,
selection: false,
@ -136,6 +141,7 @@ export default {
{
label: '档案状态',
prop: 'fileStatus',
slot: true, //
},
],
},
@ -164,6 +170,18 @@ export default {
beforeOpen(done, type, row) {
done(); // done()
},
formatFileStatus(status) {
switch (status) {
case '0':
return '未归档移交';
case '1':
return '已确认完整性';
case '2':
return '已归档移交';
default:
return '未知状态';
}
},
searchReset() {
this.query = {};
this.onLoad(this.page);