| | |
| | | </el-button> |
| | | </template> |
| | | <template #menu="{ size, row, index }"> |
| | | <el-button type="primary" size="small" @click="handleWeight(row)"> |
| | | <el-button type="primary" text icon="el-icon-plus" @click="handleWeight(row)"> |
| | | 添加考核人 |
| | | </el-button> |
| | | <el-button type="danger" text icon="el-icon-delete" @click="rowDel(row)"> |
| | | 删除 |
| | | </el-button> |
| | | </template> |
| | | <template #assessmentPerson="{ row }"> |
| | |
| | | import assessmentWeight from './assessmentWeight.vue' |
| | | import addAssessor from './addAssessor.vue'; |
| | | import popoverTable from '@/views/assessment/components/popoverTable.vue' |
| | | import { getList } from '@/api/assessment/assessmentSet.js' |
| | | import { getList, remove } from '@/api/assessment/assessmentSet.js' |
| | | import { getLazyList } from '@/api/system/dept'; |
| | | import _ from 'lodash' |
| | | |
| | |
| | | taskParams: this.params |
| | | } |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | }, |
| | | searchChange(params, done) { |
| | | if (!this.defaultTaskType) { |
| | | params.deptId = params.deptName || '' |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | const { |
| | | } = this.query; |
| | | // console.log({ |
| | | // ...this.query, |
| | | // ...params |
| | | // }); |
| | | let values = { |
| | | ...this.query, |
| | | ...params, |
| | | userType: 2 |
| | | // ...this.query, |
| | | // ...params, |
| | | // // userType: 2, |
| | | |
| | | }; |
| | | this.data = [] |
| | | const { id } = this.params |
| | | getList(page.currentPage, page.pageSize, { assessmentTaskId: id }).then(res => { |
| | | getList(page.currentPage, page.pageSize, {assessmentTaskId: id}).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |