|
@@ -300,7 +300,7 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="题目跳转" :prop="'optionlist['+index+'].Jump'"
|
|
|
:rules="[{required: true,message: '请选择跳转题目', trigger: 'change'}]">
|
|
|
- <el-radio-group v-model="domain.Jump" @change="handleJumpChange">
|
|
|
+ <el-radio-group v-model="domain.Jump" @change="handleJumpChange($event,index)">
|
|
|
<el-radio key="1" label="是"></el-radio>
|
|
|
<el-radio key="2" label="否"></el-radio>
|
|
|
</el-radio-group>
|
|
@@ -369,7 +369,7 @@
|
|
|
<el-row style="margin-top: 10px;margin-left: 10px;">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item>
|
|
|
- <el-button @click="addmaterialListPro(indexp,index)" v-if="prblemform.optionlist[index].Jump=='否'"
|
|
|
+ <el-button @click="addmaterialListPro(index)" v-if="prblemform.optionlist[index].Jump=='否'"
|
|
|
style="background-color: #4468bb;" class="newbutton">添加材料</el-button>
|
|
|
<el-button @click="reomoptionlist(index)" v-if="prblemform.type===1"
|
|
|
style="background-color: #ed6a6a;" class="newbutton">删除备选选项</el-button>
|
|
@@ -618,7 +618,19 @@
|
|
|
handleVersionChange(prefixQuestion) {
|
|
|
this.handleDialogOpen();
|
|
|
},
|
|
|
- handleJumpChange(Jump) {
|
|
|
+ handleJumpChange(val, index) {
|
|
|
+ if (val == "否") {
|
|
|
+ var optionlist = this.prblemform.optionlist;
|
|
|
+ for (var i = 0; i < optionlist.length; i++) {
|
|
|
+ if (optionlist[i].Jump == "否" && (index != i)) {
|
|
|
+ this.prblemform.optionlist[index].conditions = this.prblemform.optionlist[i].conditions;
|
|
|
+ this.prblemform.optionlist[index].dealWith = this.prblemform.optionlist[i].dealWith;
|
|
|
+ this.prblemform.optionlist[index].materialListPro[0].listName = this.prblemform.optionlist[i].materialListPro[0].listName;
|
|
|
+ this.prblemform.optionlist[index].materialListPro[0].memo = this.prblemform.optionlist[i].materialListPro[0].memo;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
// this.handleDialogOpenP();
|
|
|
},
|
|
|
/** 查询审查事项列表 */
|
|
@@ -943,15 +955,15 @@
|
|
|
},
|
|
|
addmaterialList() {
|
|
|
this.materialList.push({
|
|
|
- customError: "",
|
|
|
- listName: "",
|
|
|
- memo: ""
|
|
|
+ customError: this.materialList[0].customError,
|
|
|
+ listName: this.materialList[0].listName,
|
|
|
+ memo: this.materialList[0].memo
|
|
|
})
|
|
|
},
|
|
|
- addmaterialListPro(itme, index) {
|
|
|
+ addmaterialListPro(index) {
|
|
|
this.prblemform.optionlist[index].materialListPro.push({
|
|
|
- listName: "",
|
|
|
- memo: ""
|
|
|
+ listName: this.prblemform.optionlist[index].materialListPro[0].listName,
|
|
|
+ memo: this.prblemform.optionlist[index].materialListPro[0].memo
|
|
|
})
|
|
|
},
|
|
|
// 删除问题的选项
|