档案管理

This commit is contained in:
cwchen 2025-09-18 13:23:14 +08:00
parent 1ad3fc581f
commit b5cef522d8
1 changed files with 30 additions and 2 deletions

View File

@ -6,9 +6,9 @@
<template slot="fileStatus" slot-scope="{ data }"> <template slot="fileStatus" slot-scope="{ data }">
<el-tag <el-tag
size="mini" size="mini"
:type="data.fileStatus === '1' ? 'success' : 'danger'" :type="getFileStatusType(data.fileStatus)"
> >
{{ data.fileStatus === '0' ? '未归档移交' : '已归档移交' }} {{ getFileStatusText(data.fileStatus) }}
</el-tag> </el-tag>
</template> </template>
<template slot="handle" slot-scope="{ data }"> <template slot="handle" slot-scope="{ data }">
@ -94,6 +94,34 @@ export default {
fileStatus: encryptWithSM4(row.fileStatus) 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'
}
} }
}, },
} }