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

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

parent 90556ae9
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<div class="right"> <div class="right">
<div> <div>
<el-button <el-button
@click="editContractTrainTopic(item.topicId)" @click="editContractTrainTopic(item.topicId,index + 1)"
icon="el-icon-edit" icon="el-icon-edit"
type="text" type="text"
>修改</el-button >修改</el-button
...@@ -153,6 +153,7 @@ ...@@ -153,6 +153,7 @@
//录入考题 //录入考题
enterContractTrainTopic(){ enterContractTrainTopic(){
this.dialogVisible = true; this.dialogVisible = true;
this.next++;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.visitorAdd.questionNextNum = this.questionNum + 1; this.$refs.visitorAdd.questionNextNum = this.questionNum + 1;
}) })
...@@ -209,7 +210,7 @@ ...@@ -209,7 +210,7 @@
} }
}, },
//试题修改 //试题修改
editContractTrainTopic(topicId){ editContractTrainTopic(topicId,index){
this.dialogVisible = true; this.dialogVisible = true;
getTopic(topicId).then(res =>{ getTopic(topicId).then(res =>{
const data = res.data; const data = res.data;
...@@ -220,6 +221,7 @@ ...@@ -220,6 +221,7 @@
}; };
this.$refs.visitorAdd.answerNum = data.answer; 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