Commit 52917215 authored by 耿迪迪's avatar 耿迪迪

访客和承包管理问题修改 gengdidi

parent 90556ae9
......@@ -38,7 +38,7 @@
<div class="right">
<div>
<el-button
@click="editContractTrainTopic(item.topicId)"
@click="editContractTrainTopic(item.topicId,index + 1)"
icon="el-icon-edit"
type="text"
>修改</el-button
......@@ -153,6 +153,7 @@
//录入考题
enterContractTrainTopic(){
this.dialogVisible = true;
this.next++;
this.$nextTick(() => {
this.$refs.visitorAdd.questionNextNum = this.questionNum + 1;
})
......@@ -209,7 +210,7 @@
}
},
//试题修改
editContractTrainTopic(topicId){
editContractTrainTopic(topicId,index){
this.dialogVisible = true;
getTopic(topicId).then(res =>{
const data = res.data;
......@@ -220,6 +221,7 @@
};
this.$refs.visitorAdd.answerNum = data.answer;
})
this.$refs.visitorAdd.questionNextNum = index;
},
//试题删除
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment