Jelajahi Sumber

增加一个杂项选项,用于上传图片解析

lifanagju_citu 2 minggu lalu
induk
melakukan
ac102e9db4

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

@@ -73,9 +73,6 @@
     <!-- 解析文件上传 -->
     <Dialog :title="radioObject[radioValue]" v-model="dialog_upload" :width="DialogWidth" @close="handleCancel">
       <div>
-        <!-- 门墩儿人才库 -->
-        <!-- <template v-if="radioValue === 'menduner'">
-        </template> -->
         <!-- 简历解析 -->
         <template v-if="radioValue === 'file'">
           <el-upload
@@ -115,8 +112,17 @@
             <template #tip>{{ cardImgUrl ? '' : '请上传名片' }}</template>
           </UploadImg>
         </template>
-        <!-- 网页解析 -->
-        <!-- <template v-if="radioValue === 'web'"></template> -->
+        <template v-if="radioValue === 'picture'">
+          <UploadImg
+            v-model="cardImgUrl"
+            :limit="1"
+            :uploadSuccessTip="false"
+            @handle-change="cardUploadChange"
+            height="150px" width="150px" style="margin: 20px auto; width: 150px;"
+          >
+            <template #tip>{{ cardImgUrl ? '' : '请上传图片' }}</template>
+          </UploadImg>
+        </template>
       </div>
       <template #footer>
         <el-button @click="handleAnalysis" type="success" :disabled="analysisLoading" :loading="analysisLoading">解 析</el-button>
@@ -571,7 +577,7 @@ const handleCancel = () => {
 }
 
 const openSelect = ref(false)
-const radioObject = { card: '名片解析', file: '简历解析', web: '网页解析', menduner: '门墩儿招聘' }
+const radioObject = { card: '名片', file: '简历', web: '网页', menduner: '门墩儿招聘', picture: '杂项' }
 const radioList = ref(Object.keys(radioObject).map(key => ({ value: key, label: radioObject[key]}) ))
 const defaultValue = radioList.value[0].value // 默认选中
 const radioValue = ref(defaultValue)