diff --git a/src/views/archivesManagement/fileManager/index.vue b/src/views/archivesManagement/fileManager/index.vue
index 8c17c6b..2bef2c0 100644
--- a/src/views/archivesManagement/fileManager/index.vue
+++ b/src/views/archivesManagement/fileManager/index.vue
@@ -6,9 +6,9 @@
- {{ data.fileStatus === '0' ? '未归档移交' : '已归档移交' }}
+ {{ getFileStatusText(data.fileStatus) }}
@@ -94,6 +94,34 @@ export default {
fileStatus: encryptWithSM4(row.fileStatus)
}
})
+ },
+
+ // 获取文件状态文本
+ getFileStatusText(status) {
+ switch (status) {
+ case '0':
+ return '未归档移交'
+ case '1':
+ return '已确认完整性'
+ case '2':
+ return '已归档移交'
+ default:
+ return '未知状态'
+ }
+ },
+
+ // 获取文件状态标签类型
+ getFileStatusType(status) {
+ switch (status) {
+ case '0':
+ return 'danger'
+ case '1':
+ return 'warning'
+ case '2':
+ return 'success'
+ default:
+ return 'info'
+ }
}
},
}