Przeglądaj źródła

精英管理-赏金职位

Xiao_123 10 miesięcy temu
rodzic
commit
13aea85a52

+ 39 - 39
src/router/modules/components/recruit/enterprise.js

@@ -144,7 +144,7 @@ const enterprise = [
     component: Layout,
     name: 'eliteManagement',
     meta: {
-      title: '精英管理1',
+      title: '精英管理',
       enName: 'Meritocracy',
       icon: 'mdi-account-settings-outline'
     },
@@ -156,42 +156,42 @@ const enterprise = [
       }
     ]
   },
-  {
-    path: '/recruit/enterprise/personnelManagement',
-    component: Layout,
-    name: 'personnelManagement',
-    meta: {
-      title: '精英管理',
-      enName: 'Meritocracy',
-      icon: 'mdi-account-settings-outline'
-    },
-    children: [
-      {
-        path: '/recruit/enterprise/personnelManagement',
-        show: true,
-        component: () => import('@/views/recruit/enterprise/personnelManagement/index.vue')
-      }
-    ]
-  },
-  {
-    path: '/recruit/enterprise/publicRecruitmentManagement',
-    component: Layout,
-    redirect: '',
-    name: 'publicRecruitmentManagement',
-    meta: {
-      title: '众聘管理',
-      enName: 'Crowdsourcing management',
-      icon: 'mdi-calendar-blank-multiple'
-    },
-    children: [
-      {
-        path: '/recruit/enterprise/publicRecruitmentManagement/deliver',
-        meta: {
-          title: '投递管理',
-          enName: 'Delivery Management'
-        },
-        component: () => import('@/views/recruit/enterprise/publicRecruitmentManagement/deliver')
-      },
+  // {
+  //   path: '/recruit/enterprise/personnelManagement',
+  //   component: Layout,
+  //   name: 'personnelManagement',
+  //   meta: {
+  //     title: '精英管理',
+  //     enName: 'Meritocracy',
+  //     icon: 'mdi-account-settings-outline'
+  //   },
+  //   children: [
+  //     {
+  //       path: '/recruit/enterprise/personnelManagement',
+  //       show: true,
+  //       component: () => import('@/views/recruit/enterprise/personnelManagement/index.vue')
+  //     }
+  //   ]
+  // },
+  // {
+    // path: '/recruit/enterprise/publicRecruitmentManagement',
+    // component: Layout,
+    // redirect: '',
+    // name: 'publicRecruitmentManagement',
+    // meta: {
+    //   title: '众聘管理',
+    //   enName: 'Crowdsourcing management',
+    //   icon: 'mdi-calendar-blank-multiple'
+    // },
+    // children: [
+      // {
+      //   path: '/recruit/enterprise/publicRecruitmentManagement/deliver',
+      //   meta: {
+      //     title: '投递管理',
+      //     enName: 'Delivery Management'
+      //   },
+      //   component: () => import('@/views/recruit/enterprise/publicRecruitmentManagement/deliver')
+      // },
       // {
       //   path: '/recruit/enterprise/publicRecruitmentManagement/commission',
       //   meta: {
@@ -200,8 +200,8 @@ const enterprise = [
       //   },
       //   component: () => import('@/views/recruit/enterprise/publicRecruitmentManagement/commission')
       // }
-    ]
-  },
+    // ]
+  // },
   {
     path: '/recruit/enterprise/informationManagement',
     component: Layout,

+ 10 - 2
src/views/recruit/enterprise/elite/components/screen.vue

@@ -14,11 +14,12 @@
         </v-list-item>
       </v-list>
     </CommonStyle>
-    <div class="mr-5" v-if="props.tab === 0">
+    <div class="mr-5 d-flex align-center" v-if="props.tab === 0">
       <v-radio-group v-model="selected" inline style="height: 28px;" @update:modelValue="handleChangeSelected">
         <v-radio v-model="selected" label="新投递" value="0" color="primary" hide-details density="compact" class="mr-3"></v-radio>
         <v-radio v-model="selected" label="已查看" value="1" color="primary" hide-details density="compact"></v-radio>
       </v-radio-group>
+      <v-checkbox class="ml-3" v-model="bounty" label="赏金职位" color="primary" hide-details density="compact" @update:model-value="handleChangeBounty"></v-checkbox>
     </div>
     <span class="reset-text cursor-pointer ml-3" @click="handleReset">重置</span>
   </div>
@@ -32,12 +33,13 @@ import { getDict } from '@/hooks/web/useDictionaries'
 import { dealDictArrayData } from '@/utils/position'
 import CommonStyle from './commonStyle.vue'
 
-const emit = defineEmits(['search', 'reset', 'select'])
+const emit = defineEmits(['search', 'reset', 'select', 'change'])
 const props = defineProps({
   tab: Number
 })
 
 const selected = ref()
+const bounty = ref(false)
 
 const list = ref([
   {
@@ -110,6 +112,7 @@ const handleReset = () => {
     return e
   })
   selected.value = ''
+  bounty.value = false
   emit('reset')
 }
 
@@ -118,6 +121,11 @@ const handleChangeSelected = (e) => {
   emit('select', e)
 }
 
+// 赏金职位
+const handleChangeBounty = (e) => {
+  emit('change', e)
+}
+
 watch(
   () => props.tab,
   () => {

+ 13 - 3
src/views/recruit/enterprise/elite/index.vue

@@ -7,7 +7,7 @@
       </v-tabs>
       <TextInput v-model="textItems.value" :item="textItems" @appendInnerClick="handleSearch" @enter="handleSearch"></TextInput>
     </div>
-    <Screen :tab="tab" @search="handleScreen" @reset="handleScreenReset" @select="handleSelect"></Screen>
+    <Screen :tab="tab" @search="handleScreen" @reset="handleScreenReset" @select="handleSelect" @change="handleChangeBounty"></Screen>
 
     <v-window v-model="tab" class="mt-1">
       <v-window-item v-for="k in tabList" :value="k.value" :key="k.value">
@@ -72,9 +72,9 @@ const getList = async () => {
   if (tab.value !== 0) {
     query.value.conversationStatus = tabList.value[tab.value].status
     delete query.value.status
+    delete query.value.type
   }
 
-
   const { list, total: number } = await api(query.value)
   if (!list.length) {
     items.value = []
@@ -119,7 +119,10 @@ const handleScreenReset = () => {
     pageNo: 1,
     status: tab.value
   }
-  if (tab.value === 0) query.value.status = null
+  if (tab.value === 0) {
+    query.value.status = null
+    query.value.type = 0
+  }
   if (textItems.value.value) query.value.name = textItems.value.value
   getList()
 }
@@ -129,6 +132,13 @@ const handleSelect = (e) => {
   query.value.status = e
   getList()
 }
+
+// 赏金职位
+const handleChangeBounty = (e) => {
+  query.value.type = e ? 1 : 0
+  query.value.pageNo = 1
+  getList()
+}
 </script>
 
 <style scoped lang="scss">