Browse Source

公司检索

Xiao_123 11 months ago
parent
commit
08da121806

BIN
src/assets/noData.png


+ 1 - 1
src/components/Empty/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="d-flex align-center flex-column white-bgc py-5 elevation-1" style="border-radius: 10px;">
-    <v-img :width="width" :height="height" cover src="https://minio.citupro.com/dev/menduner/nodata.png"></v-img>
+    <v-img :width="width" :height="height" cover src="../../assets/noData.png"></v-img>
     <div class="message">{{ message }}</div>
   </div>
 </template>

+ 1 - 4
src/views/recruit/company/components/areaType.vue

@@ -54,10 +54,7 @@ const getAreaList = async () => {
   if (routeQuery.areaIds) {
     const obj = items.value.find(e => e.id === routeQuery.areaIds)
     items.value.map(e => e.active = false)
-    if (obj) {
-      obj.active = true
-      emits('handleClick', [obj.id], 'areaIds')
-    }
+    if (obj) obj.active = true
   }
 }
 getAreaList()

+ 1 - 4
src/views/recruit/company/components/industryType.vue

@@ -54,10 +54,7 @@ const getList = async () => {
   if (routeQuery.industryIds) {
     const obj = items.value.find(e => e.id === routeQuery.industryIds)
     items.value.map(e => e.active = false)
-    if (obj) {
-      obj.active = true
-      emits('handleClick', [obj.id], 'industryIds')
-    }
+    if (obj) obj.active = true
   }
 }
 getList()

+ 1 - 4
src/views/recruit/company/components/natureType.vue

@@ -54,10 +54,7 @@ getDict('menduner_enterprise_type').then(({ data }) => {
   if (routeQuery.enterpriseType) {
     const obj = items.value.find(e => e.value === routeQuery.enterpriseType)
     items.value.map(e => e.active = false)
-    if (obj) {
-      obj.active = true
-      emits('handleClick', obj.value, 'enterpriseType')
-    }
+    if (obj) obj.active = true
   }
 })
 

+ 1 - 4
src/views/recruit/company/components/scaleType.vue

@@ -54,10 +54,7 @@ getDict('menduner_scale').then(({ data }) => {
   if (routeQuery.scale) {
     const obj = items.value.find(e => e.value === routeQuery.scale)
     items.value.map(e => e.active = false)
-    if (obj) {
-      obj.active = true
-      emits('handleClick', obj.value, 'scale')
-    }
+    if (obj) obj.active = true
   }
 })
 

+ 14 - 1
src/views/recruit/company/index.vue

@@ -84,7 +84,20 @@ const getCompanyData = async () => {
   total.value = number
   items.value = dealDictArrayData([], list)
 }
-getCompanyData()
+
+// 刷新页面时url中带有参数请求检索接口
+if (Object.keys(route.query).length) {
+  const objData = {}
+  Object.keys(route.query).map(e => {
+    if (e === 'areaIds' || e === 'industryIds') return objData[e] = [route.query[e]]
+    else objData[e] = route.query[e]
+  })
+  if (Object.keys(objData).length) {
+    query.value.pageNo = 1
+    query.value = Object.assign(query.value, objData)
+    getCompanyData()
+  }
+} else getCompanyData()
 
 // 分页
 const handleChangePage = (index) => {

+ 0 - 8
src/views/resume/index.vue

@@ -16,14 +16,6 @@
         </v-list>
       </v-card>
     </div>
-    <!-- <div class="right">
-      <basicInfo id="basicInfo"></basicInfo>
-      <selfEvaluation class="my" id="selfEvaluation"></selfEvaluation>
-      <jobIntention id="jobIntention"></jobIntention>
-      <educationExp class="my" id="educationExp"></educationExp>
-      <projectExperience id="projectExperience"></projectExperience>
-      <trainingExperience class="my" id="trainingExperience"></trainingExperience>
-    </div> -->
     <div class=" pt-3">
       <component
         v-for="item in comList"