|
@@ -6,7 +6,7 @@
|
|
<template #header>
|
|
<template #header>
|
|
<CardTitle title="当前记录" />
|
|
<CardTitle title="当前记录" />
|
|
</template>
|
|
</template>
|
|
- <div class="text-right">
|
|
|
|
|
|
+ <div class="text-right" v-if="!readOnly">
|
|
<el-button type="primary" size="small" class="mb-10px" @click="submitForm('keep_main')">保留此记录</el-button>
|
|
<el-button type="primary" size="small" class="mb-10px" @click="submitForm('keep_main')">保留此记录</el-button>
|
|
</div>
|
|
</div>
|
|
<infoForm :data="currentData" />
|
|
<infoForm :data="currentData" />
|
|
@@ -18,7 +18,7 @@
|
|
<CardTitle title="重复记录" />
|
|
<CardTitle title="重复记录" />
|
|
</template>
|
|
</template>
|
|
<infoForm :data="activeThumbnail" :class="{'mb-140px': thumbnails && thumbnails.length && thumbnails[0].length > 1 }">
|
|
<infoForm :data="activeThumbnail" :class="{'mb-140px': thumbnails && thumbnails.length && thumbnails[0].length > 1 }">
|
|
- <template #header>
|
|
|
|
|
|
+ <template #header v-if="!readOnly">
|
|
<el-button type="primary" size="small" class="mb-10px" @click="submitForm('merge_to_suspected')">合并到此记录</el-button>
|
|
<el-button type="primary" size="small" class="mb-10px" @click="submitForm('merge_to_suspected')">合并到此记录</el-button>
|
|
</template>
|
|
</template>
|
|
</infoForm>
|
|
</infoForm>
|
|
@@ -91,9 +91,12 @@ const handleSwitch = (item, index, index1) => {
|
|
}
|
|
}
|
|
|
|
|
|
// 打开弹窗
|
|
// 打开弹窗
|
|
-const open = async (id) => {
|
|
|
|
|
|
+const readOnly = ref(false)
|
|
|
|
+const open = async (id, isDetail) => {
|
|
if (!id) return message.warning('缺少数据ID')
|
|
if (!id) return message.warning('缺少数据ID')
|
|
|
|
|
|
|
|
+ readOnly.value = isDetail
|
|
|
|
+
|
|
const data = await talentDuplicateApi.getDuplicateDetail(id)
|
|
const data = await talentDuplicateApi.getDuplicateDetail(id)
|
|
|
|
|
|
currentData.value = data?.main_card // 当前记录
|
|
currentData.value = data?.main_card // 当前记录
|