| | |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | | <el-form-item label="部门是否可以自选" prop="isSelfDept"> |
| | | <el-form-item label="是否可以投选本部门成员" prop="isSelfDept"> |
| | | <el-radio-group v-model="form.isSelfDept"> |
| | | <el-radio :label="0">不可以</el-radio> |
| | | <el-radio :label="1">可以</el-radio> |
| | | <el-radio :label="1" border>是</el-radio> |
| | | <el-radio :label="0" border>否</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="第二轮任务结束时间" required> |
| | |
| | | form: { |
| | | categoryEntities: [], |
| | | pollingPersons: [], |
| | | isSelfDept: '', |
| | | isSelfDept: 1, |
| | | votePersonObjInfo: [], |
| | | evaluateCutoffTimeStart: '', |
| | | evaluateCutoffTimeEnd: '' |
| | |
| | | console.log(this.params.data.pollingPersons); |
| | | const pollingPersons = this.params.data.pollingPersons |
| | | this.form.pollingPersons = pollingPersons !== "0" ? pollingPersons.split(',') : [] |
| | | this.form.votePersonObjInfo = JSON.parse(this.params.data.votePersonObjInfo) || [] |
| | | if (typeof this.params.data.votePersonObjInfo === 'object') { |
| | | this.form.votePersonObjInfo = [] |
| | | } else { |
| | | this.form.votePersonObjInfo = JSON.parse(this.params.data.votePersonObjInfo) || [] |
| | | } |
| | | this.form.evaluateCutoffTimeStart = this.params.data.evaluateCutoffTimeStart || '' |
| | | this.form.evaluateCutoffTimeEnd = this.params.data.evaluateCutoffTimeEnd || '' |
| | | }, |