|
@@ -15,7 +15,7 @@
|
|
<div v-if="item.ttype == 1" class="answerBox">
|
|
<div v-if="item.ttype == 1" class="answerBox">
|
|
<choiceV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-if="item.type == 1" :see="see"
|
|
<choiceV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-if="item.type == 1" :see="see"
|
|
:isTeacher="isTeacher"></choiceV>
|
|
:isTeacher="isTeacher"></choiceV>
|
|
- <gapV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 3" :see="see"
|
|
|
|
|
|
+ <gapV ref="gapVRef" :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 3" :see="see"
|
|
:isTeacher="isTeacher"></gapV>
|
|
:isTeacher="isTeacher"></gapV>
|
|
<fileV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 5" :see="see"
|
|
<fileV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 5" :see="see"
|
|
:isTeacher="isTeacher"></fileV>
|
|
:isTeacher="isTeacher"></fileV>
|
|
@@ -31,7 +31,7 @@
|
|
<div v-if="item2.ttype == 1" class="answerBox">
|
|
<div v-if="item2.ttype == 1" class="answerBox">
|
|
<choiceV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-if="item2.type == 1"
|
|
<choiceV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-if="item2.type == 1"
|
|
:see="see" :isTeacher="isTeacher"></choiceV>
|
|
:see="see" :isTeacher="isTeacher"></choiceV>
|
|
- <gapV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 3"
|
|
|
|
|
|
+ <gapV ref="gapVRef" :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 3"
|
|
:see="see" :isTeacher="isTeacher"></gapV>
|
|
:see="see" :isTeacher="isTeacher"></gapV>
|
|
<fileV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 5"
|
|
<fileV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 5"
|
|
:see="see" :isTeacher="isTeacher"></fileV>
|
|
:see="see" :isTeacher="isTeacher"></fileV>
|
|
@@ -51,7 +51,7 @@
|
|
<div v-if="item.ttype == 1" class="answerBox">
|
|
<div v-if="item.ttype == 1" class="answerBox">
|
|
<choiceV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-if="item.type == 1" :see="see"
|
|
<choiceV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-if="item.type == 1" :see="see"
|
|
:isTeacher="isTeacher"></choiceV>
|
|
:isTeacher="isTeacher"></choiceV>
|
|
- <gapV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 3" :see="see"
|
|
|
|
|
|
+ <gapV ref="gapVRef" :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 3" :see="see"
|
|
:isTeacher="isTeacher"></gapV>
|
|
:isTeacher="isTeacher"></gapV>
|
|
<fileV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 5" :see="see"
|
|
<fileV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 5" :see="see"
|
|
:isTeacher="isTeacher"></fileV>
|
|
:isTeacher="isTeacher"></fileV>
|
|
@@ -67,7 +67,7 @@
|
|
<div v-if="item2.ttype == 1" class="answerBox">
|
|
<div v-if="item2.ttype == 1" class="answerBox">
|
|
<choiceV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-if="item2.type == 1"
|
|
<choiceV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-if="item2.type == 1"
|
|
:see="see" :isTeacher="isTeacher"></choiceV>
|
|
:see="see" :isTeacher="isTeacher"></choiceV>
|
|
- <gapV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 3"
|
|
|
|
|
|
+ <gapV ref="gapVRef" :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 3"
|
|
:see="see" :isTeacher="isTeacher"></gapV>
|
|
:see="see" :isTeacher="isTeacher"></gapV>
|
|
<fileV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 5"
|
|
<fileV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 5"
|
|
:see="see" :isTeacher="isTeacher"></fileV>
|
|
:see="see" :isTeacher="isTeacher"></fileV>
|
|
@@ -296,7 +296,13 @@ export default {
|
|
},
|
|
},
|
|
publish2(){
|
|
publish2(){
|
|
this.$emit('publish2')
|
|
this.$emit('publish2')
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ autoFillGapV(){
|
|
|
|
+ // console.log(this.$refs["gapVRef"])
|
|
|
|
+ this.$refs["gapVRef"].forEach(i=>{
|
|
|
|
+ i.autoFill();
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.checkArray = this.setJson(this.depthCopy(this.cJson));
|
|
this.checkArray = this.setJson(this.depthCopy(this.cJson));
|