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/editSectionTask.vue | 59 +++++++++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 47 insertions(+), 12 deletions(-)
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