|
@@ -23,6 +23,8 @@
|
|
|
:see="see" :isTeacher="isTeacher" @getTestWorkByCid="getTestWorkByCid" @publish2="publish2" :issetPage.sync="issetPage" :tid="tid"></courseV>
|
|
|
<evaV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 7" :see="see"
|
|
|
:isTeacher="isTeacher"></evaV>
|
|
|
+ <timeV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 8" :see="see"
|
|
|
+ :isTeacher="isTeacher"></timeV>
|
|
|
<!-- <span v-else>暂未设置题目</span> -->
|
|
|
</div>
|
|
|
<div v-for="(item2, index2) in item.array" :key="`${index}-${index2}`" class="check_box_xia">
|
|
@@ -39,6 +41,8 @@
|
|
|
:see="see" :isTeacher="isTeacher" @getTestWorkByCid="getTestWorkByCid" @publish2="publish2" :issetPage.sync="issetPage" :tid="tid"></courseV>
|
|
|
<evaV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 7"
|
|
|
:see="see" :isTeacher="isTeacher"></evaV>
|
|
|
+ <timeV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 8"
|
|
|
+ :see="see" :isTeacher="isTeacher"></timeV>
|
|
|
<!-- <span v-else>暂未设置题目</span> -->
|
|
|
</div>
|
|
|
</div>
|
|
@@ -59,6 +63,8 @@
|
|
|
:see="see" :isTeacher="isTeacher" @getTestWorkByCid="getTestWorkByCid" @publish2="publish2" :issetPage.sync="issetPage" :tid="tid"></courseV>
|
|
|
<evaV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 7" :see="see"
|
|
|
:isTeacher="isTeacher"></evaV>
|
|
|
+ <timeV :tindex="index" :cJson.sync="item.json" :checktype="checktype" v-else-if="item.type == 8" :see="see"
|
|
|
+ :isTeacher="isTeacher"></timeV>
|
|
|
<!-- <span v-else>暂未设置题目</span> -->
|
|
|
</div>
|
|
|
<div v-for="(item2, index2) in item.array" :key="`${index}-${index2}`" class="check_box_xia">
|
|
@@ -75,6 +81,8 @@
|
|
|
:see="see" :isTeacher="isTeacher" @getTestWorkByCid="getTestWorkByCid" @publish2="publish2" :issetPage.sync="issetPage" :tid="tid"></courseV>
|
|
|
<evaV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 7"
|
|
|
:see="see" :isTeacher="isTeacher"></evaV>
|
|
|
+ <timeV :tindex="index2" :cJson.sync="item2.json" :checktype="checktype" v-else-if="item2.type == 8"
|
|
|
+ :see="see" :isTeacher="isTeacher"></timeV>
|
|
|
<!-- <span v-else>暂未设置题目</span> -->
|
|
|
</div>
|
|
|
</div>
|
|
@@ -99,6 +107,7 @@ import gapV from './gap.vue';
|
|
|
import fileV from './file.vue';
|
|
|
import courseV from './course.vue';
|
|
|
import evaV from './eva.vue';
|
|
|
+import timeV from './time.vue';
|
|
|
export default {
|
|
|
props: {
|
|
|
cJson: {
|
|
@@ -140,7 +149,8 @@ export default {
|
|
|
gapV,
|
|
|
fileV,
|
|
|
courseV,
|
|
|
- evaV
|
|
|
+ evaV,
|
|
|
+ timeV
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -251,21 +261,25 @@ export default {
|
|
|
let checkArray = _json.filter((item) => {
|
|
|
if (item.array) {
|
|
|
item.array = item.array.filter((item2) => {
|
|
|
- if (item2.ttype == 1 && item2.json && !item2.json.answer2 && item2.type != 6 && item.type != 7) {
|
|
|
+ if (item2.ttype == 1 && item2.json && !item2.json.answer2 && item2.type != 6 && item.type != 7 && item.type != 8) {
|
|
|
item2.json.answer2 = [];
|
|
|
} else if (item2.ttype == 1 && item2.json && !item2.json.answer2 && item2.type == 6) {
|
|
|
item2.json.answer2 = this.gcourseid ? this.gcourseid : item2.json.courses[0];
|
|
|
} else if (item2.ttype == 1 && item2.json && !item2.json.answer2 && item2.json.answer2 !== 0 && item2.type == 7) {
|
|
|
item2.json.answer2 = '';
|
|
|
+ } else if (item2.ttype == 1 && item2.json && !item2.json.answer2 && item2.json.answer2 !== 0 && item2.type == 8) {
|
|
|
+ item2.json.answer2 = '';
|
|
|
}
|
|
|
if (item2.array) {
|
|
|
item2.array = item2.array.filter((item3) => {
|
|
|
- if (item3.ttype == 1 && item3.json && !item3.json.answer2 && item3.type != 6 && item3.type != 7) {
|
|
|
+ if (item3.ttype == 1 && item3.json && !item3.json.answer2 && item3.type != 6 && item3.type != 7 && item3.type != 8) {
|
|
|
item3.json.answer2 = [];
|
|
|
} else if (item3.ttype == 1 && item3.json && !item3.json.answer2 && item3.type == 6) {
|
|
|
item3.json.answer2 = this.gcourseid ? this.gcourseid : item3.json.courses[0];
|
|
|
} else if (item3.ttype == 1 && item3.json && !item3.json.answer2 && item3.json.answer2 !== 0 && item3.type == 7) {
|
|
|
item3.json.answer2 = '';
|
|
|
+ } else if (item3.ttype == 1 && item3.json && !item3.json.answer2 && item3.json.answer2 !== 0 && item3.type == 8) {
|
|
|
+ item3.json.answer2 = '';
|
|
|
}
|
|
|
return item3;
|
|
|
});
|
|
@@ -275,12 +289,14 @@ export default {
|
|
|
);
|
|
|
});
|
|
|
}
|
|
|
- if (item.ttype == 1 && item.json && !item.json.answer2 && item.type != 6 && item.type != 7) {
|
|
|
+ if (item.ttype == 1 && item.json && !item.json.answer2 && item.type != 6 && item.type != 7 && item.type != 8) {
|
|
|
item.json.answer2 = [];
|
|
|
} else if (item.ttype == 1 && item.json && !item.json.answer2 && item.type == 6) {
|
|
|
item.json.answer2 = this.gcourseid ? this.gcourseid : item.json.courses[0];
|
|
|
} else if (item.ttype == 1 && item.json && !item.json.answer2 && item.json.answer2 !== 0 && item.type == 7) {
|
|
|
item.json.answer2 = '';
|
|
|
+ } else if (item.ttype == 1 && item.json && !item.json.answer2 && item.json.answer2 !== 0 && item.type == 8) {
|
|
|
+ item.json.answer2 = '';
|
|
|
}
|
|
|
console.log(item.array);
|
|
|
return (item.ttype != 1 && item.array.length > 0) || item.ttype == 1;
|