|
@@ -272,7 +272,7 @@
|
|
|
<!-- 编辑案卷信息 -->
|
|
|
<hc-new-dialog v-model="showUploadModal" :title="editTitle" widths="80vw">
|
|
|
<template #search>
|
|
|
- <el-button hc-btn type="primary" @click="replaceClickCollect">
|
|
|
+ <el-button hc-btn type="primary" :disabled="tableCheckedKeysUpload.length === 0" @click="replaceClickCollect">
|
|
|
查找替换
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -1586,10 +1586,10 @@ const showReplaceModalCollect = ref(false)
|
|
|
const ruleFormCollect = ref({})
|
|
|
const replaceClickCollect = ()=>{
|
|
|
|
|
|
- // if (tableCheckedKeysUpload.value.length === 0) {
|
|
|
- // window.$message?.warning('请选择需要更新的案卷')
|
|
|
- // return
|
|
|
- // }
|
|
|
+ if (tableCheckedKeysUpload.value.length === 0) {
|
|
|
+ window.$message?.warning('请选择需要更新的案卷')
|
|
|
+ return
|
|
|
+ }
|
|
|
// 检查是否有被锁定的案卷
|
|
|
const lockedArchives = tableUploadData.value.filter(item => item.isLock === 1)
|
|
|
if (lockedArchives.length > 0) {
|
|
@@ -1601,7 +1601,7 @@ const replaceClickCollect = ()=>{
|
|
|
ruleFormCollect.value = {}
|
|
|
}
|
|
|
const saveReplaceCollect = async ()=>{
|
|
|
- const rows = tableUploadData.value
|
|
|
+ const rows = tableCheckedKeysUpload.value
|
|
|
let ids = ''
|
|
|
ids = arrToId(rows)
|
|
|
// 保存前去除空格
|