Bladeren bron

获取简历列表

Xiao_123 8 maanden geleden
bovenliggende
commit
a794469de9
6 gewijzigde bestanden met toevoegingen van 60 en 8 verwijderingen
  1. 13 0
      api/user.js
  2. 41 5
      pagesA/resume/index.vue
  3. 1 0
      static/style/index.css
  4. 0 0
      static/style/index.min.css
  5. 1 0
      static/style/index.scss
  6. 4 3
      utils/request.js

+ 13 - 0
api/user.js

@@ -23,4 +23,17 @@ export const getPersonResumeCv = () => {
       auth: true
     }
   })
+}
+
+// 获取收藏的招聘职位列表
+export const getJobFavoriteList = (params) => {
+  return request({
+    url: '/menduner/system/person/get/job/favorite/page',
+    method: 'GET',
+    params,
+    custom: {
+      showLoading: false,
+      auth: true
+    }
+  })
 }

+ 41 - 5
pagesA/resume/index.vue

@@ -1,6 +1,17 @@
 <template>
-  <view>
-    <button class="send-button">从微信导入简历</button>
+  <view class="ss-p-b-100">
+    <view v-if="bioList.length > 0">
+			<uni-card v-for="(item, index) in bioList" :key="index" :is-shadow="true" :border='false' shadow="0px 0px 3px 1px rgba(0,0,0,0.1)">
+				<view style="font-weight: bold;">{{ item.fileName ? item.fileName : `简历${index + 1}` }}</view>
+				<view>上传时间:{{ item.createTime }}</view>
+			</uni-card>
+		</view>
+		<view v-else class="nodata-img-parent">
+			<image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image>
+		</view>
+    <view class="bottom-sticky">
+      <button class="recomm-button" @click="handleUpload">从微信导入简历</button>
+    </view>
   </view>
 </template>
 
@@ -9,12 +20,37 @@ import { ref } from 'vue'
 import { getPersonResumeCv } from '@/api/user'
 
 // 获取附件
-const attachmentList = ref([])
+const bioList = ref([])
 const getList = async () => {
-  const data = await getPersonResumeCv()
-  attachmentList.value = data
+  const { data } = await getPersonResumeCv()
+  bioList.value = data
 }
 getList()
+
+const handleUpload = () => {
+  wx.chooseMessageFile({
+    count: 1,
+    type: 'file',
+    success (res) {
+      console.log(res,'res');
+      const tempFilePaths = res.tempFiles.map(item=>{
+        return item.path
+      })
+      let name = res.tempFiles[0].name
+      //效验是否为支持的文件格式
+      if(/\.(pdf|docx|doc)$/.test(name)){
+        console.log(tempFilePaths, name, '============')
+      }else{
+        uni.showToast({
+          icon: 'none',
+          title: '请上传pdf、word类型的文件',
+          duration: 2000
+        })
+        return
+      }
+    }
+  })
+}
 </script>
 
 <style scoped lang="scss">

+ 1 - 0
static/style/index.css

@@ -8967,6 +8967,7 @@
 }
 
 .recomm-button {
+  color: #fff;
   width: 85%;
   height: 44px;
   line-height: 44px;

File diff suppressed because it is too large
+ 0 - 0
static/style/index.min.css


+ 1 - 0
static/style/index.scss

@@ -351,6 +351,7 @@
 
 //页面底部单个按钮
 .recomm-button {
+  color: #fff;
   width: 85%;
   height: 44px;
   line-height: 44px;

+ 4 - 3
utils/request.js

@@ -8,7 +8,7 @@ import { refreshToken } from '@/api/common';
 import { userStore } from '@/store/user'
 
 const baseUrl = 'http://menduner.citupro.com:7878'
-const tenantId = '155'
+// const baseUrl = 'https://menduner.citupro.com:2443'
 const options = {
 	// 显示操作成功消息 默认不显示
 	showSuccess: false,
@@ -97,12 +97,13 @@ http.interceptors.request.use(
     // 增加 token 令牌、terminal 终端、tenant 租户的请求头
 		const token = getAccessToken();
 		if (token) {
-			config.header['Authorization'] = token;
+			config.header['Authorization'] = 'Bearer ' + token;
 		}
 		config.header['terminal'] = 'mp-weixin'
+		config.header['Accept-Language'] = 'zh_CN'
 
     config.header['Accept'] = '*/*';
-    config.header['tenant-id'] = tenantId;
+    config.header['tenant-id'] = '155';
 		return config;
 	},
 	(error) => {

Some files were not shown because too many files changed in this diff