GuLiMmo
2024-01-20 84699297f35a96a9e1f863ad6036ae16bf68f59c
update
1 files modified
28 ■■■■■ changed files
src/views/evaluate/components/editSectionTask.vue 28 ●●●●● patch | view | raw | blame | history
src/views/evaluate/components/editSectionTask.vue
@@ -141,25 +141,15 @@
            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);
                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
                console.log('编辑回显');
            },
            deep: true
        }