|
@@ -69,7 +69,7 @@
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
<HcTooltip keys="file_collection_btn_repeal">
|
|
|
- <el-button hc-btn :disabled="tableCheckedKeys.length <= 0">
|
|
|
+ <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="repealModalClick">
|
|
|
<HcIcon name="delete-back-2" />
|
|
|
<span>废除</span>
|
|
|
</el-button>
|
|
@@ -1017,6 +1017,38 @@ const delModalClick = async () => {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+//废除
|
|
|
+const repealModalClick = async () => {
|
|
|
+ const rows = tableCheckedKeys.value
|
|
|
+ if (rows.length <= 0) {
|
|
|
+ window.$message?.error('请选择需要废除的数据')
|
|
|
+ } else {
|
|
|
+ window?.$messageBox?.alert('请谨慎考虑后,确认是否需要废除?', '废除提醒', {
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '确认废除',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ callback: async (action, instance, done) => {
|
|
|
+ if (action === 'confirm') {
|
|
|
+ instance.confirmButtonLoading = true
|
|
|
+ const keys = arrToId(rows)
|
|
|
+ const { error, code } = await tasksFlowApi.batchRepealTaskArchive({
|
|
|
+ ids: keys,
|
|
|
+ type:1,
|
|
|
+ })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ window.$message?.success('废除成功!')
|
|
|
+ searchClick()
|
|
|
+ }
|
|
|
+ instance.confirmButtonLoading = false
|
|
|
+ done()
|
|
|
+ } else {
|
|
|
+ done()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
|
|
|
//跨目录移动
|
|
@@ -1559,7 +1591,7 @@ const CertClick = async () => {
|
|
|
if (!error && code === 200) {
|
|
|
window.$message?.success('认证成功')
|
|
|
showCertificationModal.value = false
|
|
|
- getTableData()
|
|
|
+ searchClick()
|
|
|
} else {
|
|
|
window.$message?.error('认证失败')
|
|
|
}
|
|
@@ -1595,7 +1627,7 @@ const reportModalClick = () => {
|
|
|
|
|
|
//上报完成
|
|
|
const reportFinish = () => {
|
|
|
- getTableData()
|
|
|
+ searchClick()
|
|
|
}
|
|
|
|
|
|
|