ソースを参照

人才采集:招聘任务解析

Xiao_123 2 ヶ月 前
コミット
837a46334e

+ 6 - 5
src/views/menduner/system/talentMap/maintenance/duplicate/index.vue

@@ -51,9 +51,10 @@
           <el-button
             v-if="scope.row.processing_status === 'pending'"
             link
-            type="primary"
+            type="success"
             @click="openForm(scope.row.main_card_id)"
           >处理</el-button>
+          <el-button type="primary" link @click="openForm(scope.row.main_card_id, true)">详情</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -62,9 +63,9 @@
   <MergePage ref="mergePageRef" @refresh="getList" />
 </template>
 
-<script setup lang="ts" name="TalentMapDuplicate">
+<script setup name="TalentMapDuplicate">
 import { talentDuplicateApi } from '@/api/menduner/system/talentMap/duplicate'
-import MergePage from '@/views/menduner/system/talentMap/components/merge.vue'
+import MergePage from './merge.vue'
 
 const loading = ref(false)
 const list = ref([])
@@ -91,8 +92,8 @@ const getList = async () => {
 }
 
 /** 添加/修改操作 */
-const openForm = async (id: number) => {
-  mergePageRef.value.open(id)
+const openForm = async (id, isDetail = false) => {
+  mergePageRef.value.open(id, isDetail)
 }
 
 /** 搜索按钮操作 */

+ 0 - 0
src/views/menduner/system/talentMap/components/info.vue → src/views/menduner/system/talentMap/maintenance/duplicate/info.vue


+ 6 - 3
src/views/menduner/system/talentMap/components/merge.vue → src/views/menduner/system/talentMap/maintenance/duplicate/merge.vue

@@ -6,7 +6,7 @@
 					<template #header>
 						<CardTitle title="当前记录" />
 					</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>
 					</div>
 					<infoForm :data="currentData" />
@@ -18,7 +18,7 @@
 						<CardTitle title="重复记录" />
 					</template>
 					<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>
 						</template>
 					</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')
 
+	readOnly.value = isDetail
+
 	const data = await talentDuplicateApi.getDuplicateDetail(id)
 
 	currentData.value = data?.main_card // 当前记录

+ 4 - 3
src/views/menduner/system/talentMap/maintenance/examine/index.vue

@@ -58,9 +58,10 @@
           <el-button
             v-if="scope.row.status === '待审核'"
             link
-            type="primary"
+            type="success"
             @click="handleStore(scope.row)"
           >审核入库</el-button>
+          <el-button link type="primary" @click="handleStore(scope.row, true)">详情</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -137,8 +138,8 @@ const resetQuery = () => {
 
 // 入库
 const StorePageRef = ref(null)
-const handleStore = (row) => {
-  StorePageRef.value.open(row.task_type, [row], row.task_id)
+const handleStore = (row, isDetail = false) => {
+  StorePageRef.value.open(row.task_type, [row], row.task_id, isDetail)
 }
 
 /** 初始化 **/

+ 7 - 4
src/views/menduner/system/talentMap/maintenance/examine/store.vue

@@ -35,7 +35,7 @@
           <template v-if="type === '新任命'">
             <iframe
               id="MyIframe"
-              class="!w-100% !h-[calc(100vh-90px)]"
+              class="!w-100% !h-70vh"
               src=""
               frameborder="0"
             ></iframe>
@@ -44,11 +44,11 @@
         <el-empty v-else description="暂无原始文件" />
       </div>
       <div class="flex-1">
-        <FormPage	ref="FormPageRef"	formType="create"	:itemData="itemData" />
+        <FormPage	ref="FormPageRef" formType="create"	:itemData="itemData" :readOnly="readOnly" />
       </div>
     </div>
     <template #footer>
-      <el-button @click="handleStore" type="success">入 库</el-button>
+      <el-button v-if="!readOnly" @click="handleStore" type="success">入 库</el-button>
       <el-button @click="dialogVisible = false">取 消</el-button>
     </template>
   </Dialog>
@@ -155,6 +155,7 @@ const dealData = async (type, data) => {
 
 // 重置
 const resetData = () => {
+  readOnly.value = false
   taskId.value = null
   type.value = null
   originUrl.value = null
@@ -164,8 +165,10 @@ const resetData = () => {
 
 // 打开弹窗
 const taskId = ref(null)
-const open = async (task_type, parse_result, task_id) => {
+const readOnly = ref(false)
+const open = async (task_type, parse_result, task_id, isDetail) => {
   resetData()
+  readOnly.value = isDetail
   taskId.value = task_id
   type.value = task_type
 

+ 1 - 3
src/views/menduner/system/talentMap/maintenance/gather/components/detail.vue

@@ -85,9 +85,7 @@
 								<el-table-column label="姓名" align="center" prop="name_zh" />
 								<el-table-column label="联系电话" align="center" prop="mobile" />
 							</template>
-							<el-table-column label="状态" align="center" prop="status">
-								<template #default="scope">{{ source === '招聘' ? '解析成功' : scope.row.status }}</template>
-							</el-table-column>
+							<el-table-column label="状态" align="center" prop="status" />
 							<el-table-column v-if="list.length > 1" label="操作" align="center" fixed="right" min-width="110">
 								<template #default="scope">
 									<el-button link type="primary" @click="handleDetail(scope.row)">详情</el-button>

+ 1 - 1
src/views/menduner/system/talentMap/maintenance/gather/index.vue

@@ -58,7 +58,7 @@
       <el-table-column label="操作" align="center" fixed="right" min-width="110">
         <template #default="scope">
           <el-button
-            v-if="['待解析', '不成功'].includes(scope.row.task_status)"
+            v-if="['待解析'].includes(scope.row.task_status)"
             link
             type="success"
             @click="handleAnalysis(scope.row)"