Преглед на файлове

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

Xiao_123 преди 9 месеца
родител
ревизия
e982452259

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

@@ -126,7 +126,7 @@ if (route.query && route.query.id) {
 // 取消
 const handleCancel = (hire) => { //  hire:是否是众聘岗位
   itemData.value = {}
-  const query = hire ? { hire } : {}; router.push({ path: '/recruit/enterprise/position', query })
+  router.push({ path: '/recruit/enterprise/position', query: { hire: hire ? 1 : 0 } })
   // 新增职位发布需更新账户信息
   if (route.query && !route.query?.id) {
     setTimeout(async () => {

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

@@ -80,7 +80,7 @@
     :spuId="spuId"
     :spuName="spuName"
     :type="2"
-    returnUrl="/recruit/enterprise/position?hire=true"
+    returnUrl="/recruit/enterprise/position?hire=1"
     @close="showConfirmPaymentDialog = false"
   ></confirmPaymentDialog>
 </template>

+ 3 - 2
src/views/recruit/enterprise/positionManagement/index.vue

@@ -55,8 +55,9 @@ const query = ref({
   hire: false // true 众聘岗位
 })
 
-const tab = ref(route.query?.hire === true || route.query?.hire === 'true' ? 4: 1)
-if (route.query?.hire) router.replace({ path: route.path, query: { ...route.query, hire: false } })
+const showHire = (route.query?.hire - 0) || 0
+const tab = ref(showHire ? 4: 1)
+// if (showHire ) router.replace({ path: route.path, query: { ...route.query, used: 1 } })
 
 const tabList = [
   { label: t('position.recruitmentInProgress'), value: 1 },