xieb
2025-01-21 d13cebe7fbadd396e91a989af331df8a8e7b40f8
src/views/evaluate/components/editSectionTask.vue
@@ -1,6 +1,6 @@
<template>
    <el-dialog v-model="params.visible" :title="params.title || '编辑部门评优任务'" width="50%" @open="openDialog"
        @close="dialogClose">
        @close="dialogClose" destroy-on-close>
        <div class="content">
            <el-form :model="form" ref="formRef" :rules="rules" label-width="130px">
                <el-form-item label="任务名称" prop="taskName">
@@ -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
        }