| | |
| | | |
| | | const rowSave = (row, done, loading) => { |
| | | const { data: { id, taskName } } = $props.params |
| | | const value = data.value.find(item => item.userId === row.userId) |
| | | if (value) { |
| | | ElMessage.warning('当前候选人已存在,不可重复添加!!') |
| | | loading() |
| | | return |
| | | } |
| | | addCandidate({ |
| | | evaluateTaskId: id, |
| | | evaluateTaskName: taskName, |
| | |
| | | <!-- <el-button type="primary" text plain icon="el-icon-edit" @click="editDialog(row)">编辑</el-button> --> |
| | | <el-button type="primary" text plain icon="el-icon-position" @click="publicTimeBtn(row)" |
| | | v-if="row.candidateState === 2 && row.evaluateState === 0">发布</el-button> |
| | | <el-button type="primary" v-if="row.type === 0 && row.candidateState === 0" text plain icon="el-icon-plus" |
| | | <el-button type="primary" v-if="row.type === 0 && row.candidateState === 2 && row.evaluateState === 0" text plain icon="el-icon-plus" |
| | | @click="addCandidateHandle(row)">新增候选人</el-button> |
| | | <!-- <el-button type="primary" text plain icon="el-icon-download">导出</el-button> --> |
| | | <el-button type="danger" text plain icon="el-icon-delete" @click="rowDel(row)">删除</el-button> |