| | |
| | | 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> |
| | |
| | | id: null, |
| | | solutionList: [ |
| | | { |
| | | solutionBaseId: '', |
| | | solution: {id: null, baseId: null }, |
| | | canAdd: 0, |
| | | canReduce: 0 |
| | | } |
| | |
| | | .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 |
| | | } |
| | |
| | | }, |
| | | add() { |
| | | this.form.solutionList.push({ |
| | | solutionName: '', |
| | | solution: {id: null, baseId: null }, |
| | | canAdd: '', |
| | | canReduce: '' |
| | | }) |