| | |
| | | export const getList = (current, size, params) => {
|
| | | return request({
|
| | | // url: '/evaluate/evaluateResult/list',
|
| | | url: 'evaluate/evaluateTaskSet/list',
|
| | | url: 'evaluate/evaluateTaskSet/page',
|
| | | method: 'get',
|
| | | params: {
|
| | | ...params,
|
| | | current,
|
| | | size,
|
| | | descs: 'vote_num'
|
| | | }
|
| | | })
|
| | | }
|
| | |
| | | controls-position="right" :placeholder="`请输入评优数量(最多不可超过${maxEvaluateNum})`" |
| | | class="evaluateNum-input"></el-input-number> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="评优截止日期:" prop="evaluateCutoffTime"> |
| | | <el-form-item label="评优截止日期:" prop="evaluateCutoffTime" v-if="params.type"> |
| | | <el-date-picker v-model="addForm.evaluateCutoffTime" type="datetime" placeholder="请选择截止时间" |
| | | format="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss" style="width: 100%;" /> |
| | | </el-form-item> --> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <template #footer> |
| | |
| | | }, |
| | | handleSubmit() { |
| | | this.$refs.addFormRef.validate(valid => { |
| | | this.addForm.evaluateState = 1 |
| | | add(this.addForm).then( |
| | | () => { |
| | | this.$message({ |
| | |
| | | <template #menu="{ size, row, index }"> |
| | | <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.status === 2">发布</el-button> |
| | | v-if="row.candidateState === 2">发布</el-button> |
| | | <!-- <el-button type="primary" v-if="row.type === 0" text plain icon="el-icon-plus" @click="addCandidateHandle(row)">新增候选人</el-button> --> |
| | | <el-button type="primary" text plain icon="el-icon-download">导出</el-button> |
| | | </template> |
| | |
| | | }; |
| | | getList(page.currentPage, page.pageSize, values).then(res => { |
| | | const data = res.data.data; |
| | | console.log(data.records); |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.loading = false; |
| | |
| | | const { id } = this.rowData; |
| | | const params = { |
| | | id, |
| | | // candidateState: 1, |
| | | evaluateState: 1, |
| | | evaluateCutoffTime: this.publicForm.publicData, |
| | | }; |
| | | add(params).then( |
| | | update(params).then( |
| | | res => { |
| | | this.$message({ |
| | | type: 'success', |