|  |  |  | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <ContentView> | 
|---|
|  |  |  | <div class="workbenches-banner-wrapper"> | 
|---|
|  |  |  | <!-- <div class="workbenches-banner-wrapper"> | 
|---|
|  |  |  | <nut-swiper :auto-play="3000"> | 
|---|
|  |  |  | <nut-swiper-item v-for="(item, index) in list" :key="index"> | 
|---|
|  |  |  | <img :src="item" class="banner-img" draggable="false" /> | 
|---|
|  |  |  | </nut-swiper-item> | 
|---|
|  |  |  | </nut-swiper> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> --> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <Cell :show-title="false" class="workbenches-cell"> | 
|---|
|  |  |  | <CellChunk title="任务"> | 
|---|
|  |  |  | <div class="workbenches-cell-list"> | 
|---|
|  |  |  | <TaskDetailWelfareItem :icon="IconPublishTask" text="发布任务" @click="goPublishTask" /> | 
|---|
|  |  |  | <TaskDetailWelfareItem :icon="IconPersonManage" text="用人管理" /> | 
|---|
|  |  |  | <TaskDetailWelfareItem :icon="IconPersonManage" text="用人管理" @click="goPersonManage" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </CellChunk> | 
|---|
|  |  |  | <CellChunk title="用人"> | 
|---|
|  |  |  | <div class="workbenches-cell-list"> | 
|---|
|  |  |  | <TaskDetailWelfareItem :icon="IconFlexjobManage" text="灵工管理" /> | 
|---|
|  |  |  | <TaskDetailWelfareItem :icon="IconTaskManage" text="任务管理" /> | 
|---|
|  |  |  | <TaskDetailWelfareItem :icon="IconAcceptManage" text="验收管理" /> | 
|---|
|  |  |  | <TaskDetailWelfareItem | 
|---|
|  |  |  | :icon="IconFlexjobManage" | 
|---|
|  |  |  | text="灵工管理" | 
|---|
|  |  |  | @click="goPage(RouterPath.flexJobManage)" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <TaskDetailWelfareItem | 
|---|
|  |  |  | :icon="IconTaskManage" | 
|---|
|  |  |  | text="任务安排" | 
|---|
|  |  |  | @click="goPage(RouterPath.taskManage)" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <TaskDetailWelfareItem | 
|---|
|  |  |  | :icon="IconAcceptManage" | 
|---|
|  |  |  | text="验收管理" | 
|---|
|  |  |  | @click="goPage(RouterPath.taskCheck)" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </CellChunk> | 
|---|
|  |  |  | <CellChunk title="发薪"> | 
|---|
|  |  |  | <div class="workbenches-cell-list"> | 
|---|
|  |  |  | <TaskDetailWelfareItem | 
|---|
|  |  |  | :icon="IconPayrollManage" | 
|---|
|  |  |  | text="发薪管理" | 
|---|
|  |  |  | @click="goPage(RouterPath.payrollManage)" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </CellChunk> | 
|---|
|  |  |  | </Cell> | 
|---|
|  |  |  | 
|---|
|  |  |  | import IconPersonManage from '@/assets/workbenches/icon-person-manage.png'; | 
|---|
|  |  |  | import IconPublishTask from '@/assets/workbenches/icon-publish-task.png'; | 
|---|
|  |  |  | import IconTaskManage from '@/assets/workbenches/icon-task-manage.png'; | 
|---|
|  |  |  | import IconPayrollManage from '@/assets/workbenches/icon-payroll.png'; | 
|---|
|  |  |  | import { useAccessLogin } from '@/hooks'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | defineOptions({ | 
|---|
|  |  |  | name: 'InnerPage', | 
|---|
|  |  |  | 
|---|
|  |  |  | 'https://storage.360buyimg.com/jdc-article/fristfabu.jpg', | 
|---|
|  |  |  | ]); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function goPage(routeName: string) { | 
|---|
|  |  |  | const goPage = useAccessLogin((routeName: string) => { | 
|---|
|  |  |  | Taro.navigateTo({ | 
|---|
|  |  |  | url: routeName, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function goPublishTask() { | 
|---|
|  |  |  | const goPublishTask = () => { | 
|---|
|  |  |  | goPage(RouterPath.publishTask); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function goPersonManage() { | 
|---|
|  |  |  | goPage(RouterPath.jobApplicationManage); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|