Parcourir la source

全员猎聘添加待支付tab

Xiao_123 il y a 7 mois
Parent
commit
faf38df102

+ 1 - 1
src/views/recruit/enterprise/hirePosition/components/add.vue

@@ -11,7 +11,7 @@
           <div>
             <h2 class="mt-n1 headline font-weight-regular">{{ val.title }}</h2>
             <div class="mb-4 desc">{{ val.desc }}</div>
-            <component class="mt-10" :is="val.path" :ref="val.ref" :itemData="itemData"></component>
+            <component :is="val.path" :ref="val.ref" :itemData="itemData"></component>
           </div>
         </v-timeline-item>
       </v-timeline>

+ 1 - 1
src/views/recruit/enterprise/hirePosition/components/baseInfo.vue

@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <div class="mt-10">
     <CtForm ref="formPageRef" :items="items" style="width: 650px;">
       <template #numericalValue>
         <div class="font-size-14 color-error my-1">

+ 1 - 1
src/views/recruit/enterprise/hirePosition/components/jobRequirements.vue

@@ -1,5 +1,5 @@
 <template>
-  <div style="width: 100%;">
+  <div class="mt-10" style="width: 100%;">
     <CtForm ref="formPageRef" :items="items" style="width: 600px;">
       <template #tagList>
         <div>

+ 5 - 4
src/views/recruit/enterprise/hirePosition/index.vue

@@ -57,11 +57,12 @@ const query = ref({
 })
 const exportLoading = ref(false)
 
-const tab = ref(1)
+const tab = ref(0)
 
 const tabList = [
-  { label: t('position.recruitmentInProgress'), value: 1 },
-  { label: t('position.closed'), value: 2 },
+  { label: '待支付', value: 0, status: 99 },
+  { label: t('position.recruitmentInProgress'), value: 1, status: 0 },
+  { label: t('position.closed'), value: 2, status: 1 },
   { label: t('position.expiredPosition'), value: 3 }
 ]
 
@@ -94,7 +95,7 @@ const handleExport = async () => {
 // 获取职位列表
 const getPositionList = async () => {
   if (tab.value !== 3) {
-    query.value.status = tab.value === 1 ? 0 : (tab.value === 2 ? 1 : null)
+    query.value.status = tabList[tab.value].status
     query.value.hasExpiredData = false
   } else {
     query.value.hasExpiredData = true

+ 1 - 1
src/views/recruit/enterprise/positionManagement/components/add.vue

@@ -11,7 +11,7 @@
           <div>
             <h2 class="mt-n1 headline font-weight-regular">{{ val.title }}</h2>
             <div class="mb-4 desc">{{ val.desc }}</div>
-            <component class="mt-10" :is="val.path" :ref="val.ref" :itemData="itemData"></component>
+            <component :is="val.path" :ref="val.ref" :itemData="itemData"></component>
           </div>
         </v-timeline-item>
       </v-timeline>