| | |
| | | <template> |
| | | <el-dialog v-model="params.visible" title="评优任务发布" width="50%" @open="openDialog" @close="dialogClose"> |
| | | <el-dialog v-model="params.visible" title="发布评优任务" width="50%" @open="openDialog" @close="dialogClose"> |
| | | <div class="content"> |
| | | <el-form :model="form" ref="formRef" :rules="rules" label-position="top"> |
| | | <el-form-item label="任务类别" prop="taskType"> |
| | |
| | | <script> |
| | | import _ from 'lodash'; |
| | | import { getDict } from '@/api/dict' |
| | | import { getEcList } from '@/api/evaluate/evaluateTask' |
| | | |
| | | export default { |
| | | props: { |
| | |
| | | candidateCutoffTimeEnd: [ |
| | | { required: true, message: '请选择任务开始时间', trigger: 'click' }, |
| | | ] |
| | | }, |
| | | page: { |
| | | current: 1, |
| | | size: 10, |
| | | total: 0 |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | openDialog() { |
| | | this.initDict() |
| | | const { id } = this.params.data |
| | | const { current, size } = this.page |
| | | getEcList(current, size, id).then(ecResult => { |
| | | const { code, data } = ecResult.data |
| | | console.log(data); |
| | | }) |
| | | }, |
| | | initDict() { |
| | | getDict('employee_type').then(res => { |