GuLiMmo
2024-01-20 d401a13bbb1d0cb9ec347b078affd8e62bdc24d2
update
2 files modified
63 ■■■■ changed files
src/views/evaluate/components/IndividualTaskPublic.vue 4 ●●●● patch | view | raw | blame | history
src/views/evaluate/components/editSectionTask.vue 59 ●●●● patch | view | raw | blame | history
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>
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 => {