Sfoglia il codice sorgente

积分获取触发调整

Xiao_123 9 mesi fa
parent
commit
65d37b402c

+ 15 - 8
src/config/axios/service.js

@@ -201,14 +201,21 @@ service.interceptors.response.use(
     }
     
     // 请求成功后触发获取积分
-    if (!requestCompletionTrigger.length) {
-      return data
-    }
-    const _list = requestCompletionTrigger.filter(_e => {
-      return response.config.url.includes(_e.url)
-    })
-    if (_list.length) {
-      getIntegral(_list.pop().url, userStore)
+    // if (!requestCompletionTrigger.length) {
+    //   return data
+    // }
+    // const _list = requestCompletionTrigger.filter(_e => {
+    //   return response.config.url.includes(_e.url)
+    // })
+    // if (_list.length) {
+    //   getIntegral(_list.pop().url, userStore)
+    // }
+
+    const url = getSuffixAfterPrefix(response.config.url)
+    if (!url || !requestCompletionTrigger.length) return data
+    const _obj = requestCompletionTrigger.find(e => e.url === url)
+    if (_obj) {
+      getIntegral(_obj.url, userStore)
     }
     return data
   },

+ 6 - 3
src/views/recruit/enterprise/informationManagement/informationSettings.vue

@@ -23,11 +23,14 @@ import welfareLabel from './informationSettingsComponents/welfareLabel.vue'
 import businessInformation from './informationSettingsComponents/businessInformation.vue'
 import authentication from './informationSettingsComponents/authentication.vue'
 import { ref, watch } from 'vue'
-import { useRoute, useRouter } from 'vue-router'
+import { 
+  useRoute, 
+  // useRouter
+} from 'vue-router'
 import { useI18n } from '@/hooks/web/useI18n'
 
 const route = useRoute()
-const router = useRouter()
+// const router = useRouter()
 const { t } = useI18n()
 // tab
 const tab = ref(1)
@@ -43,7 +46,7 @@ const tabList = [
 
 watch(() => route?.query?.tabKey, (newVal) => { if (newVal) tab.value = newVal - 0 })
 const handleTabClick = () => {
-  router.push(`${route.path}?tabKey=${tab.value.toString()}`)
+  // router.push(`${route.path}?tabKey=${tab.value.toString()}`)
 }
 </script>
 

+ 6 - 6
src/views/recruit/enterprise/informationManagement/informationSettingsComponents/basicInfo.vue

@@ -5,8 +5,8 @@
     <CtForm ref="CtFormRef" :items="formItems" style="width: 900px;margin: 0 auto">
       <template #name="{ item }">
         <div v-show="!item.show" class="text-right" style="width: 80px; line-height: 40px;">
-          <v-icon :color="statusInfo.color" size="20">{{ authInfo && authInfo.status === '1' ? 'mdi-shield-check' : 'mdi-shield-remove' }}</v-icon> <!-- mdi-shield-remove -->
-          <span style="color: var(--v-primary-base);font-size: 14px;">{{ statusInfo.label }}</span>
+          <v-icon :color="statusInfo.color" size="20">{{ statusInfo.mdi }}</v-icon>
+          <span :style="{'color': statusInfo.color,'font-size': '14px'}">{{ statusInfo.label }}</span>
         </div>
       </template>
       <template #industryId="{ item }">
@@ -185,10 +185,10 @@ getDict('menduner_industry_type', {}, 'industryList').then(({ data }) => {
 // 获取企业实名信息
 const authInfo = ref({})
 const statusList = [
-  { label: '未认证', color: 'warning', value: null },
-  { label: '审核中', color: 'warning', value: '0' },
-  { label: '已认证', color: 'primary', value: '1' },
-  { label: '已驳回', color: 'error', value: '2' }
+  { label: '未认证', color: '#fb8c00', value: null, mdi: 'mdi-shield-remove' },
+  { label: '审核中', color: '#fb8c00', value: '0', mdi: 'mdi-shield-half-full' },
+  { label: '已认证', color: '#00897B', value: '1', mdi: 'mdi-shield-check' },
+  { label: '已驳回', color: '#fe574a', value: '2', mdi: 'mdi-shield-off' }
 ]
 const getAuthInfo = async () => {
   const data = await getEnterpriseAuth()

+ 4 - 7
src/views/recruit/personal/PersonalCenter/dynamic/right.vue

@@ -43,12 +43,12 @@
       </div>
       <span class="more-text">{{ $t('resume.uploadUpToFiveCopies') }}</span>
       <div v-if="attachmentList.length">
-        <div class="d-flex attachment-item my-2 cursor-pointer" v-for="k in attachmentList" :key="k.id">
+        <div class="d-flex attachment-item my-2" v-for="k in attachmentList" :key="k.id">
           <v-icon color="primary">mdi-file-account</v-icon>
           <div class="file-name ellipsis ml-2">{{ k.title }}</div>
-          <v-icon color="primary" @click="previewFile(k.url)">mdi-eye-outline</v-icon>
-          <v-icon class="mx-2" color="primary" @click="handleDownload(k)">mdi-download-box-outline</v-icon>
-          <v-icon color="error" @click="handleDelete(k)">mdi-trash-can-outline</v-icon>
+          <v-icon class="cursor-pointer" color="primary" @click="previewFile(k.url)">mdi-eye-outline</v-icon>
+          <v-icon class="cursor-pointer mx-2" color="primary" @click="handleDownload(k)">mdi-download-box-outline</v-icon>
+          <v-icon class="cursor-pointer" color="error" @click="handleDelete(k)">mdi-trash-can-outline</v-icon>
         </div>
       </div>
       <div v-else class="more-text d-flex justify-center">暂无简历,请先上传</div>
@@ -281,9 +281,6 @@ const interviewScheduleMore = () => {
     font-size: 14px;
     .file-name {
       width: 230px;
-      &:hover {
-        color: var(--v-primary-base);
-      }
     }
   }
 }

+ 1 - 1
src/views/recruit/personal/remuse/components/basicInfo.vue

@@ -161,7 +161,7 @@ const handleUploadFile = async (e) => {
   if (!data) return
   Snackbar.success(t('common.uploadSucMsg'))
   await updatePersonAvatar(data)
-  if (baseInfo.value.userId) await userStore.getUserBaseInfos(baseInfo.value.userId)
+  await userStore.getUserBaseInfos(baseInfo.value.userId)
   getBasicInfo()
 }
 

+ 1 - 0
src/views/recruit/personal/remuse/components/educationExp.vue

@@ -72,6 +72,7 @@ const getSchoolListData = async (name, init = '') => {
   item.items = data
 }
 const debouncedCallbackSchool = debounce(newValue => {
+  if (!newValue) return
   getSchoolListData(newValue)
 }, 500)