MrShi
2024-02-22 e622bd5e3b2638b9ab9a712ed1160a66018d6fd7
company/src/components/business/modification.vue
@@ -23,12 +23,12 @@
                align="center"
                label="保险方案">
                <template slot-scope="{row}">
                    <el-select v-model="row.solutionBaseId" placeholder="请选择">
                    <el-select v-model="row.solution" placeholder="请选择">
                        <el-option
                            v-for="item in programme"
                            :key="item.id"
                            :label="item.name"
                            :value="item.id">
                            :value="{id:item.id,baseId:item.baseId}">
                        </el-option>
                    </el-select>
                </template>
@@ -71,7 +71,7 @@
                    id: null,
                    solutionList: [
                        {
                            solutionBaseId: '',
                            solution: {id: null, baseId: null },
                            canAdd: 0,
                            canReduce: 0
                        }
@@ -126,7 +126,7 @@
                    .then(resa => {
                        that.form.solutionList = resa.map(item => {
                            return {
                                solutionBaseId: item.solutionBaseId,
                                solution: {id: item.baseSolutionId, baseId: item.solutionId },
                                canAdd: item.canAdd,
                                canReduce: item.canReduce
                            }
@@ -136,7 +136,7 @@
            },
            add() {
                this.form.solutionList.push({
                    solutionName: '',
                    solution: {id: null, baseId: null },
                    canAdd: '',
                    canReduce: ''
                })