Procházet zdrojové kódy

简历解析路由

Xiao_123 před 6 měsíci
rodič
revize
9ccadde97a

+ 10 - 1
src/layout/index.vue

@@ -25,7 +25,16 @@ defineOptions({ name: 'personal-layout-index' })
 
 // 不展示侧边栏名单
 const whiteList = ['/login', '/privacyPolicy', '/userAgreement', '/register', '/recruit/personal/advertisement/introduce']
-const footerWhiteList = ['/recruit/personal/message', '/recruit/personal/advertisement/introduce', '/about', '/headhunting', '/headhunting/service', '/headhunting/service/details']
+// 不展示页脚白名单
+const footerWhiteList = [
+  '/recruit/personal/message',
+  '/recruit/personal/advertisement/introduce',
+  '/about',
+  '/headhunting',
+  '/headhunting/service',
+  '/headhunting/service/details',
+  '/recruit/personal/resume/analysis'
+]
 const router = useRouter()
 
 const sharedState = useSharedState()

+ 14 - 0
src/router/modules/components/recruit/personal.js

@@ -97,6 +97,20 @@ const personal = [
       }
     ]
   },
+  {
+    path: '/recruit/personal/resume/analysis',
+    component: Layout,
+    name: 'resumeAnalysis',
+    meta: {
+      title: '简历解析'
+    },
+    children: [
+      {
+        path: '/recruit/personal/resume/analysis',
+        component: () => import('@/views/recruit/personal/PersonalCenter/resume/analysis/index.vue')
+      }
+    ]
+  },
   ...personCenter
 ]
 export default personal

+ 18 - 0
src/views/recruit/personal/PersonalCenter/resume/analysis/index.vue

@@ -0,0 +1,18 @@
+<template>
+  <div class="d-flex pa-3" style="height: calc(100vh - 50px)">
+    <div class="mr-5" style="width: 50%; height: 100%">
+      <IFrame v-if="fileUrl" :src="decodeURIComponent(fileUrl)" initHeight="100%"></IFrame>
+    </div>
+  </div>
+</template>
+
+<script setup>
+defineOptions({ name: 'resume-analysis'})
+import { ref } from 'vue'
+
+const fileUrl = ref('https://minio.menduner.com/dev/person/1864497212765208578/attachment/85c2977656417e1c30028646b814e4ffcc962ab1ad715816c5f0083630f80289.pdf')
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 8 - 7
src/views/recruit/personal/PersonalCenter/resume/online/index.vue

@@ -121,13 +121,14 @@ getAttachmentList()
 // 导入附件简历
 const showAttachment = ref(false)
 const handleImportAttachment = () => {
-  if (!attachmentList.value.length) {
-    Snackbar.warning('请先上传附件简历')
-    router.push('/recruit/personal/personalCenter/resume/attachment')
-    return
-  }
-  showAnalysis.value = false
-  showAttachment.value = true
+  window.open('/recruit/personal/resume/analysis')
+  // if (!attachmentList.value.length) {
+  //   Snackbar.warning('请先上传附件简历')
+  //   router.push('/recruit/personal/personalCenter/resume/attachment')
+  //   return
+  // }
+  // showAnalysis.value = false
+  // showAttachment.value = true
 }
 
 const result = ref({}) // ref(JSON.parse(JSON.stringify(dataObj))) // 测试