|
@@ -42,10 +42,10 @@
|
|
|
|
|
|
<span>题目内容</span>
|
|
|
|
|
|
- <div v-if="[45].includes(toolType) && testJson">
|
|
|
+ <div v-if="[45].includes(toolType) && testJsonCopy">
|
|
|
<div
|
|
|
class="s_b_m_b_i_m_choseList"
|
|
|
- v-for="(item, index) in testJson.testJson.testJson"
|
|
|
+ v-for="(item, index) in testJsonCopy.testJson.testJson"
|
|
|
>
|
|
|
<div class="s_b_m_b_i_m_c_title">
|
|
|
<span>{{ index + 1 }}</span>
|
|
@@ -77,8 +77,8 @@
|
|
|
:class="{
|
|
|
s_b_m_b_i_m_c_o_right:
|
|
|
item.type == 1
|
|
|
- ? testJson.anwer[index] == index2
|
|
|
- : testJson.anwer[index].includes(index2)
|
|
|
+ ? testJsonCopy.anwer[index] == index2
|
|
|
+ : testJsonCopy.anwer[index].includes(index2)
|
|
|
}"
|
|
|
>
|
|
|
|
|
@@ -87,11 +87,11 @@
|
|
|
class="s_b_m_b_i_m_c_o_btn1"
|
|
|
v-if="item.type == 1"
|
|
|
>
|
|
|
- <span v-if="testJson.anwer[index] == index2"></span>
|
|
|
+ <span v-if="testJsonCopy.anwer[index] == index2"></span>
|
|
|
</span>
|
|
|
<span class="s_b_m_b_i_m_c_o_btn2" v-else>
|
|
|
|
|
|
- <span v-if="testJson.anwer[index].includes(index2)">
|
|
|
+ <span v-if="testJsonCopy.anwer[index].includes(index2)">
|
|
|
<svg
|
|
|
width="8"
|
|
|
height="6"
|
|
@@ -140,10 +140,10 @@
|
|
|
/>
|
|
|
</svg>
|
|
|
|
|
|
- <span v-if="testJson && testJson.answerTitle">提问:{{ testJson.answerTitle }}</span>
|
|
|
+ <span v-if="testJsonCopy && testJsonCopy.answerTitle">提问:{{ testJsonCopy.answerTitle }}</span>
|
|
|
</div>
|
|
|
- <span v-if="testJson && testJson.answer" style="padding: 10px;">
|
|
|
- {{ testJson.answer }}
|
|
|
+ <span v-if="testJsonCopy && testJsonCopy.answer" style="padding: 10px;">
|
|
|
+ {{ testJsonCopy.answer }}
|
|
|
</span>
|
|
|
</div>
|
|
|
|
|
@@ -151,9 +151,9 @@
|
|
|
<div class="sm_left">
|
|
|
<img :src="testData.selectJson.url" alt="" @click="$hevueImgPreview(testData.selectJson.url)">
|
|
|
</div>
|
|
|
- <div class="sm_right" v-if="testJson">
|
|
|
+ <div class="sm_right" v-if="testJsonCopy">
|
|
|
<div class="sm_right_item" v-for="(item,index) in testData.selectJson.answer">
|
|
|
- <el-select v-model="testData.selectJson.answer[testJson[index]]" placeholder="请选择">
|
|
|
+ <el-select v-model="testData.selectJson.answer[testJsonCopy[index]]" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="(item2,index2) in testData.selectJson.select"
|
|
|
:disabled="item!==index2"
|
|
@@ -188,13 +188,13 @@
|
|
|
<span>{{ item.sentenceTitle?item.sentenceTitle:"无标题" }}</span>
|
|
|
</div>
|
|
|
|
|
|
- <div class="si_box" v-if="testJson && testJson.chooseSenList && testJson.chooseSenList.length">
|
|
|
+ <div class="si_box" v-if="testJsonCopy && testJsonCopy.chooseSenList && testJsonCopy.chooseSenList.length">
|
|
|
<!-- <span v-for="(item2,index2) in item.sentenceContent" :key="index2">{{ item2 }}</span> -->
|
|
|
<!-- <div class="si_b_top">
|
|
|
<span class="si_b_t_item" v-for="(item2,index2) in item.addSentence" :key="index2">{{ item.rightAnswer[index2] }}</span>
|
|
|
</div> -->
|
|
|
<div class="si_b_bottom" >
|
|
|
- <span class="si_b_t_item" v-for="(item2,index2) in testJson.chooseSenList" :key="index2">{{ item2 }}</span>
|
|
|
+ <span class="si_b_t_item" v-for="(item2,index2) in testJsonCopy.chooseSenList" :key="index2">{{ item2 }}</span>
|
|
|
<!-- <div v-if="JSON.stringify(item.rightAnswer) == JSON.stringify(testJson.chooseSenList)" style="color: blue;display: inline;">回答正确</div>
|
|
|
<div v-else style="color: red;display: inline">回答错误</div> -->
|
|
|
</div>
|
|
@@ -225,13 +225,13 @@
|
|
|
|
|
|
<span>{{ item.value?item.value:"无标题" }}</span>
|
|
|
</div>
|
|
|
- <div class="e_item_content" v-if="testJson">
|
|
|
+ <div class="e_item_content" v-if="testJsonCopy">
|
|
|
<span class="e_i_c_detail">{{ item.detail?item.detail:"无内容" }}</span>
|
|
|
- <el-rate :value="testJson.eStar[index]" disabled :max="item.score"></el-rate>
|
|
|
+ <el-rate :value="testJsonCopy.eStar[index]" disabled :max="item.score"></el-rate>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <span v-if="testJson" style="padding: 10px;">{{ testJson.eBzText }}</span>
|
|
|
+ <span v-if="testJsonCopy" style="padding: 10px;">{{ testJsonCopy.eBzText }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -510,7 +510,7 @@ export default {
|
|
|
showStatisticsType:0,
|
|
|
data: null,
|
|
|
testJson: null,
|
|
|
- testJsonCopy: [],
|
|
|
+ testJsonCopy: null,
|
|
|
testData: null,
|
|
|
toolIndex: null,
|
|
|
worksStudent: [],
|
|
@@ -556,8 +556,9 @@ export default {
|
|
|
let pushData = [];
|
|
|
|
|
|
isWorksData = this.worksStudent.map(i => JSON.parse(i.works)[0].anwer);
|
|
|
+ console.log('worksJson',worksJson);
|
|
|
|
|
|
- pushData = worksJson.testJson.testJson.map((item, index) => {
|
|
|
+ pushData = worksJson.map((item, index) => {
|
|
|
return {
|
|
|
title: item.teststitle,
|
|
|
answer: item.answer,
|
|
@@ -815,19 +816,19 @@ export default {
|
|
|
|
|
|
|
|
|
if (this.toolType == 41) {
|
|
|
- this.testJson=val.works.split(',')
|
|
|
+ this.testJsonCopy=val.works.split(',')
|
|
|
}else if(this.toolType == 52 ) {
|
|
|
return this.openTools(val)
|
|
|
}else if(this.toolType == 48) {
|
|
|
return this.openTools(val)
|
|
|
return this.openTools(JSON.parse(val))
|
|
|
}else if(this.toolType == 40){
|
|
|
- this.testJson=JSON.parse(val.works)
|
|
|
+ this.testJsonCopy=JSON.parse(val.works)
|
|
|
}else{
|
|
|
- this.testJson=JSON.parse(val.works)[0]
|
|
|
+ this.testJsonCopy=JSON.parse(val.works)[0]
|
|
|
}
|
|
|
|
|
|
- console.log('this.testJson',JSON.parse(JSON.stringify(this.testJson)));
|
|
|
+ console.log('this.testJson',JSON.parse(JSON.stringify(this.testJsonCopy)));
|
|
|
|
|
|
this.showType = 0;
|
|
|
// this.$emit("changeSplitScreenBehavior",{code: 1,
|
|
@@ -852,9 +853,9 @@ export default {
|
|
|
let _tempData = this.chapInfoListData[this.courseType].chapterInfo[0]
|
|
|
.taskJson[this.taskCount].toolChoose[this.toolIndex];
|
|
|
this.testData = _tempData ? _tempData : null;
|
|
|
- // this.testJson = this.testData.testJson
|
|
|
- // ? this.testData.testJson.testJson
|
|
|
- // : null;
|
|
|
+ this.testJson = this.testData.testJson
|
|
|
+ ? this.testData.testJson.testJson
|
|
|
+ : null;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -868,6 +869,7 @@ export default {
|
|
|
this.showType = 2;
|
|
|
this.showStatisticsType = 0;
|
|
|
this.testJson = null;
|
|
|
+ this.testJsonCopy = null;
|
|
|
this.worksStudent = [];
|
|
|
this.noWorksStudent = [];
|
|
|
this.toolIndex = null;
|