| | |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template #candidateCutoffTimeEnd="{ row }"> |
| | | {{ row.candidateCutoffTimeStart}} |
| | | <div style="text-align: center;">-</div> |
| | | {{ row.candidateCutoffTimeEnd}} |
| | | <div class="time-box"> |
| | | {{ row.candidateCutoffTimeStart }} |
| | | <div>-</div> |
| | | {{ row.candidateCutoffTimeEnd }} |
| | | </div> |
| | | </template> |
| | | <template #evaluateCutoffTimeEnd="{ row }"> |
| | | {{ row.evaluateCutoffTimeStart}} |
| | | <div style="text-align: center;">-</div> |
| | | {{ row.candidateCutoffTimeEnd}} |
| | | <div class="time-box"> |
| | | {{ row.evaluateCutoffTimeStart }} |
| | | <div>-</div> |
| | | {{ row.evaluateCutoffTimeEnd }} |
| | | </div> |
| | | </template> |
| | | <template #menu-left> |
| | | <el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增评优任务</el-button> |
| | |
| | | </template> |
| | | <template #menu="{ size, row, index }"> |
| | | <el-button type="primary" text plain icon="el-icon-view" @click="viewDateilDialog(row)">详情</el-button> |
| | | <el-button type="primary" text plain icon="el-icon-send" @click="taskPublicDialog(row)">发布</el-button> |
| | | <el-button type="primary" v-if="!row.type" text plain icon="el-icon-position" |
| | | @click="taskPublicDialog(row)">发布</el-button> |
| | | <el-button type="danger" text plain icon="el-icon-delete" @click="rowDel(row)">删除</el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | // 更改option |
| | | !n ? (this.option = option) : (this.option = sectionOption) |
| | | this.page.currentPage = 1; |
| | | // this.onLoad(this.page, params); |
| | | this.onLoad(this.page, params); |
| | | }, |
| | | immediate: true, |
| | | }, |
| | |
| | | } |
| | | }, |
| | | taskPublicDialog(row) { |
| | | console.log(row); |
| | | this.taskPublicParams = { |
| | | visible: true, |
| | | data: row |
| | |
| | | |
| | | let values = { |
| | | ...this.query, |
| | | ...params, |
| | | taskName_like: taskName, |
| | | ...params |
| | | }; |
| | | getList(page.currentPage, page.pageSize, values).then(res => { |
| | | const data = res.data.data; |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style></style> |
| | | <style lang="scss" scoped> |
| | | .time-box { |
| | | display: inline-block; |
| | | text-align: center; |
| | | } |
| | | </style> |