| | |
| | | <div class="job-application-card-wrapper"> |
| | | <div class="job-application-card-title-wrapper"> |
| | | <div class="job-application-card-title">{{ name }}</div> |
| | | <TaskPrice :value="serviceFee" :unit="unit" v-if="mode === 'taskManage'" /> |
| | | <TaskPrice :value="toThousand(serviceFee ?? 0)" :unit="unit" v-if="mode === 'taskManage'" /> |
| | | <div v-else class="job-application-card-title-more" @click.stop="handleMore"> |
| | | <img :src="IconMore" class="more-btn-icon" /> |
| | | </div> |
| | |
| | | </div> |
| | | <slot name="footer-actions"> |
| | | <div class="job-application-card-fee"> |
| | | <TaskPrice :value="serviceFee" :unit="unit" /> |
| | | <TaskPrice :value="toThousand(serviceFee)" :unit="unit" /> |
| | | </div> |
| | | </slot> |
| | | </div> |
| | |
| | | import { TaskPrice } from '@12333/components'; |
| | | import { EnumTaskStatus, EnumTaskReleaseStatus, EnumTaskReleaseStatusText } from '@12333/constants'; |
| | | import dayjs from 'dayjs'; |
| | | import { toThousand } from '@12333/utils'; |
| | | |
| | | defineOptions({ |
| | | name: 'JobApplicationCard', |
| | |
| | | const menuList = computed(() => { |
| | | let _menuList = []; |
| | | _menuList.push( |
| | | { |
| | | name: '编辑', |
| | | value: ManageActions.Edit, |
| | | }, |
| | | // { |
| | | // name: '编辑', |
| | | // value: ManageActions.Edit, |
| | | // }, |
| | | { |
| | | name: '查看详情', |
| | | value: ManageActions.Detail, |
| | | } |
| | | ); |
| | | if (props.status === EnumTaskStatus.Wait) { |
| | | _menuList.push({ |
| | | name: '编辑', |
| | | value: ManageActions.Edit, |
| | | }); |
| | | } |
| | | if (props.releaseStatus === EnumTaskReleaseStatus.Stopped) { |
| | | _menuList.push({ |
| | | name: '发布', |