Browse Source

职位搜索标题

Xiao_123 11 months ago
parent
commit
7ba1acf2e4

+ 9 - 9
src/components/CtPagination/index.vue

@@ -10,7 +10,7 @@
       color="primary"
       size="small"
     ></v-pagination>
-    <span style="color: #666;">共{{ props.total }}条数据</span>
+    <!-- <span style="color: #666;">共{{ props.total }}条数据</span>
     <div class="search px-3">
       <v-text-field
         v-model="currentJump"
@@ -25,7 +25,7 @@
     </div>
     <div class="">
       <v-btn color="primary" rounded class="half-button" @click="handleCurrentJump">跳转</v-btn>
-    </div>
+    </div> -->
   </div>
 </template>
 
@@ -69,7 +69,7 @@ const props = defineProps({
 const emit = defineEmits(['handleChange'])
 
 const currentPage = ref(1)
-const currentJump = ref(null)
+// const currentJump = ref(null)
 currentPage.value = props.page
 
 watch(() => props.page, (newVal) => {
@@ -82,12 +82,12 @@ const pageLength = computed(() => {
 const handleCurrentChange = () => {
   emit('handleChange', currentPage.value)
 }
-const handleCurrentJump = () => {
-  if (currentJump.value > pageLength.value) currentJump.value = pageLength.value
-  if (currentJump.value < 1) currentJump.value = 1
-  currentPage.value = +currentJump.value
-  emit('handleChange', currentPage.value)
-}
+// const handleCurrentJump = () => {
+//   if (currentJump.value > pageLength.value) currentJump.value = pageLength.value
+//   if (currentJump.value < 1) currentJump.value = 1
+//   currentPage.value = +currentJump.value
+//   emit('handleChange', currentPage.value)
+// }
 </script>
 
 <style lang="scss" scoped>

+ 2 - 1
src/components/PositionLongStrip/item.vue

@@ -5,7 +5,8 @@
       <!-- 职位 -->
       <div class="position" @mouseenter="item.positionActive = true" @mouseleave="item.positionActive = false" @click="handlePosition(item)">
         <div class="d-flex">
-          <p :class="['title1', {'default-active': item.positionActive }]">{{ item.job.name }}{{ item.job.pos ? ' [' + item.job.pos + '] ' : '' }}</p>
+          <p v-if="item.job.name.indexOf('style')" v-html="item.job.name" :class="['title1', {'default-active': item.positionActive }]"></p>
+          <p v-else :class="['title1', {'default-active': item.positionActive }]">{{ item.job.name }}{{ item.job.pos ? ' [' + item.job.pos + '] ' : '' }}</p>
           <p class="salary ml-1">{{ item.job.payFrom }}-{{ item.job.payTo }}/{{ item.job.payName }}</p>
         </div>
         <div class="mt-2">

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

@@ -44,7 +44,7 @@ const handleClear = () => {
 const total = ref(0)
 const items = ref([])
 const pageInfo = ref({
-  pageSize: 1,
+  pageSize: 10,
   pageNo: 1
 })
 const query = ref({