| | |
| | | viewBtn: true, |
| | | editBtn: true, |
| | | delBtn: true, |
| | | menuWidth: 200, |
| | | menuWidth: 220, |
| | | labelWidth: 120, |
| | | column: [ |
| | | { |
| | |
| | | } |
| | | }, |
| | | { |
| | | label: "考核人职务", |
| | | prop: "toPostName", |
| | | label: "考核人部门", |
| | | prop: "toDeptName", |
| | | type: "input", |
| | | hide: true, |
| | | disabled: true, |
| | | // hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请填写被考核人职务', |
| | | message: '请填写考核人部门', |
| | | trigger: 'click', |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "考核人部门", |
| | | prop: "toDeptName", |
| | | label: "考核人职务", |
| | | prop: "toPostName", |
| | | type: "input", |
| | | hide: true, |
| | | disabled: true, |
| | | // hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: '请填写考核人部门', |
| | | message: '请填写被考核人职务', |
| | | trigger: 'click', |
| | | }, |
| | | ], |
| | |
| | | !this.params.isDept ? row.userId = this.params.id : row.deptId = this.params.id |
| | | const toUser = this.selectList.find(option => option.name === row.toUserName) |
| | | row.toUserId = toUser.id |
| | | console.log(row); |
| | | (this.params.isDept ? addDept(row) : add(row)).then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |