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