档案管理
This commit is contained in:
parent
1ad3fc581f
commit
b5cef522d8
|
|
@ -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'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue