From d401a13bbb1d0cb9ec347b078affd8e62bdc24d2 Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Sat, 20 Jan 2024 16:38:26 +0800
Subject: [PATCH] update
---
src/views/evaluate/components/IndividualTaskPublic.vue | 4 +-
src/views/evaluate/components/editSectionTask.vue | 59 +++++++++++++++++++++++------
2 files changed, 49 insertions(+), 14 deletions(-)
diff --git a/src/views/evaluate/components/IndividualTaskPublic.vue b/src/views/evaluate/components/IndividualTaskPublic.vue
index 53ec078..f3bf9ca 100644
--- a/src/views/evaluate/components/IndividualTaskPublic.vue
+++ b/src/views/evaluate/components/IndividualTaskPublic.vue
@@ -47,8 +47,8 @@
</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>
diff --git a/src/views/evaluate/components/editSectionTask.vue b/src/views/evaluate/components/editSectionTask.vue
index b546247..0faacaf 100644
--- a/src/views/evaluate/components/editSectionTask.vue
+++ b/src/views/evaluate/components/editSectionTask.vue
@@ -136,24 +136,59 @@
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 => {
--
Gitblit v1.9.3