| | |
| | | |
| | | <script> |
| | | import { getList, getDetail, remove, add, update } from '@/api/assessment/assessmentSet' |
| | | import { getList as getUserSelectList } from "@/api/system/user.js"; |
| | | |
| | | export default { |
| | | props: { |
| | |
| | | addBtn: true, |
| | | viewBtn: true, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | delBtn: true, |
| | | menuWidth: 200, |
| | | labelWidth: 120, |
| | | column: [ |
| | |
| | | trigger: 'click', |
| | | }, |
| | | ], |
| | | dicUrl: '/blade-system/user/page?current=1&size=999999999', |
| | | dicFormatter: (res) => { |
| | | this.selectList = res.data.records |
| | | return res.data.records |
| | | }, |
| | | props: { |
| | | label: 'name', |
| | | value: 'name' |
| | | } |
| | | }, |
| | | { |
| | | label: "被考核人", |
| | | prop: "userName", |
| | | type: "input", |
| | | hide: true, |
| | | value: this.params.name, |
| | | disabled: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请填写被考核人职务', |
| | | trigger: 'click', |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "被考核人职务", |
| | | prop: "postName", |
| | | hide: true, |
| | | type: "input", |
| | | value: this.params.postName, |
| | | disabled: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 1, |
| | | } |
| | | }, |
| | | selectList: [] |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.$emit('changeIs', true) |
| | | }, |
| | | rowSave(row, done, loading) { |
| | | row.userId = this.params.id |
| | | const toUser = this.selectList.find(option => row.toUserName === option.name) |
| | | row.toUserId = toUser.id |
| | | add(row).then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |