| | |
| | | </el-form-item> |
| | | <el-form-item label="是否可以投选本部门成员" prop="isSelfDept"> |
| | | <el-radio-group v-model="form.isSelfDept"> |
| | | <el-radio :label="0" border>是</el-radio> |
| | | <el-radio :label="1" border>否</el-radio> |
| | | <el-radio :label="0" border>否</el-radio> |
| | | <el-radio :label="1" border>是</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="第二轮任务结束时间" required> |
| | |
| | | selectionParams: {} |
| | | } |
| | | }, |
| | | watch: { |
| | | 'params.visible': { |
| | | handler(val) { |
| | | if (!val) return |
| | | const { id, taskName, evaluateAwards, identificationStandard, pollingPersons, votePersonObjInfo, evaluateCutoffTimeStart, evaluateCutoffTimeEnd } = this.params.data |
| | | // this.form.id = id |
| | | // this.form.taskName = taskName |
| | | // this.form.evaluateAwards = evaluateAwards |
| | | // this.form.identificationStandard = identificationStandard |
| | | // this.form.pollingPersons = pollingPersons.split(',') || [] |
| | | // this.form.votePersonObjInfo = JSON.parse(votePersonObjInfo) || [] |
| | | // this.form.evaluateCutoffTimeStart = evaluateCutoffTimeStart |
| | | // this.form.evaluateCutoffTimeEnd = evaluateCutoffTimeEnd |
| | | this.form = { |
| | | id, |
| | | taskName, |
| | | evaluateAwards, |
| | | identificationStandard, |
| | | pollingPersons: pollingPersons.split(',') || [], |
| | | votePersonObjInfo: JSON.parse(votePersonObjInfo) || [], |
| | | evaluateCutoffTimeStart, |
| | | evaluateCutoffTimeEnd |
| | | } |
| | | console.log(this.form); |
| | | }, |
| | | deep: true |
| | | } |
| | | }, |
| | | methods: { |
| | | dialogClose() { |
| | | this.$refs.formRef.resetFields() |
| | | }, |
| | | openDialog() { |
| | | this.initDict() |
| | | const { id, taskName, evaluateAwards, identificationStandard, pollingPersons, votePersonObjInfo, evaluateCutoffTimeStart, evaluateCutoffTimeEnd } = this.params.data |
| | | this.form = { |
| | | id, |
| | | taskName, |
| | | evaluateAwards, |
| | | identificationStandard, |
| | | pollingPersons: pollingPersons.split(',') || [], |
| | | votePersonObjInfo: JSON.parse(votePersonObjInfo) || [], |
| | | evaluateCutoffTimeStart, |
| | | evaluateCutoffTimeEnd |
| | | } |
| | | console.log(this.form); |
| | | // const { id, taskName, evaluateAwards, identificationStandard, pollingPersons, votePersonObjInfo, evaluateCutoffTimeStart, evaluateCutoffTimeEnd } = this.params.data |
| | | // this.form.id = id |
| | | // this.form.taskName = taskName |
| | | // this.form.evaluateAwards = evaluateAwards |
| | | // this.form.identificationStandard = identificationStandard |
| | | // this.form.pollingPersons = pollingPersons.split(',') || [] |
| | | // this.form.votePersonObjInfo = JSON.parse(votePersonObjInfo) || [] |
| | | // this.form.evaluateCutoffTimeStart = evaluateCutoffTimeStart |
| | | // this.form.evaluateCutoffTimeEnd = evaluateCutoffTimeEnd |
| | | // this.form = { |
| | | // id, |
| | | // taskName, |
| | | // evaluateAwards, |
| | | // identificationStandard, |
| | | // pollingPersons: pollingPersons.split(',') || [], |
| | | // votePersonObjInfo: JSON.parse(votePersonObjInfo) || [], |
| | | // evaluateCutoffTimeStart, |
| | | // evaluateCutoffTimeEnd |
| | | // } |
| | | }, |
| | | submit() { |
| | | this.$refs.formRef.validate(vaild => { |