|
@@ -126,6 +126,12 @@
|
|
|
}"
|
|
|
v-if="worksDetail[sIndex].img.length > 0"
|
|
|
>
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="bigImg"
|
|
|
v-if="
|
|
@@ -178,16 +184,27 @@
|
|
|
}"
|
|
|
v-if="worksDetail[sIndex].answerInfo.length > 0"
|
|
|
>
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div class="answerbox">
|
|
|
<div style="min-width: 80px">问答标题</div>
|
|
|
<div>
|
|
|
- {{ worksDetail[sIndex].answerInfo[0].answerTitle }}
|
|
|
+ {{
|
|
|
+ worksDetail[sIndex].answerInfo[0].answerInfo
|
|
|
+ .answerTitle
|
|
|
+ }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="answerbox1">
|
|
|
<div>学生回答</div>
|
|
|
<div>
|
|
|
- {{ worksDetail[sIndex].answerInfo[0].answer }}
|
|
|
+ {{
|
|
|
+ worksDetail[sIndex].answerInfo[0].answerInfo.answer
|
|
|
+ }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -199,6 +216,12 @@
|
|
|
v-if="worksDetail[sIndex].askInfo.length > 0"
|
|
|
>
|
|
|
<div>
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="a_add_title"
|
|
|
style="
|
|
@@ -223,7 +246,10 @@
|
|
|
>
|
|
|
<div style="margin-right: 20px">标题:</div>
|
|
|
<div style="font-size: 20px">
|
|
|
- {{ worksDetail[sIndex].askInfo[0].askJson.askTitle }}
|
|
|
+ {{
|
|
|
+ worksDetail[sIndex].askInfo[0].askInfo.askJson
|
|
|
+ .askTitle
|
|
|
+ }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="a_addBox">
|
|
@@ -231,7 +257,7 @@
|
|
|
<div
|
|
|
class="a_add_box"
|
|
|
v-for="(item1, index1) in worksDetail[sIndex]
|
|
|
- .askInfo[0].askJson.askCount"
|
|
|
+ .askInfo[0].askInfo.askJson.askCount"
|
|
|
:key="index1"
|
|
|
>
|
|
|
<div class="a_add_head">
|
|
@@ -239,7 +265,7 @@
|
|
|
{{ index1 + 1 + "、" }}
|
|
|
<div>
|
|
|
题目:{{
|
|
|
- worksDetail[sIndex].askInfo[0].askJson
|
|
|
+ worksDetail[sIndex].askInfo[0].askInfo.askJson
|
|
|
.askJson[index1].askstitle
|
|
|
}}
|
|
|
</div>
|
|
@@ -249,19 +275,21 @@
|
|
|
<div class="a_add_input">
|
|
|
<el-radio-group
|
|
|
v-if="
|
|
|
- worksDetail[sIndex].askInfo[0].askJson
|
|
|
+ worksDetail[sIndex].askInfo[0].askInfo.askJson
|
|
|
.askJson[index1].type == '1' ||
|
|
|
- !worksDetail[sIndex].askInfo[0].askJson
|
|
|
- .askJson[index1].type
|
|
|
+ !worksDetail[sIndex].askInfo[0].askInfo
|
|
|
+ .askJson.askJson[index1].type
|
|
|
"
|
|
|
v-model="
|
|
|
- worksDetail[sIndex].askInfo[0].anwer[index1]
|
|
|
+ worksDetail[sIndex].askInfo[0].askInfo.anwer[
|
|
|
+ index1
|
|
|
+ ]
|
|
|
"
|
|
|
>
|
|
|
<el-radio
|
|
|
v-for="(item2, checkIndex) in worksDetail[
|
|
|
sIndex
|
|
|
- ].askInfo[0].askJson.askJson[index1]
|
|
|
+ ].askInfo[0].askInfo.askJson.askJson[index1]
|
|
|
.checkList"
|
|
|
:key="checkIndex"
|
|
|
:label="checkIndex"
|
|
@@ -272,17 +300,19 @@
|
|
|
</el-radio-group>
|
|
|
<el-checkbox-group
|
|
|
v-model="
|
|
|
- worksDetail[sIndex].askInfo[0].anwer[index1]
|
|
|
+ worksDetail[sIndex].askInfo[0].askInfo.anwer[
|
|
|
+ index1
|
|
|
+ ]
|
|
|
"
|
|
|
v-if="
|
|
|
- worksDetail[sIndex].askInfo[0].askJson
|
|
|
+ worksDetail[sIndex].askInfo[0].askInfo.askJson
|
|
|
.askJson[index1].type == '2'
|
|
|
"
|
|
|
>
|
|
|
<el-checkbox
|
|
|
v-for="(item2, checkIndex1) in worksDetail[
|
|
|
sIndex
|
|
|
- ].askInfo[0].askJson.askJson[index1]
|
|
|
+ ].askInfo[0].askInfo.askJson.askJson[index1]
|
|
|
.checkList"
|
|
|
:key="checkIndex1"
|
|
|
:label="checkIndex1"
|
|
@@ -305,6 +335,12 @@
|
|
|
v-if="worksDetail[sIndex].chooseInfo.length > 0"
|
|
|
>
|
|
|
<div>
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="a_add_title"
|
|
|
style="
|
|
@@ -324,7 +360,7 @@
|
|
|
<div
|
|
|
class="a_add_box"
|
|
|
v-for="(item1, index1) in worksDetail[sIndex]
|
|
|
- .chooseInfo[0].testCount"
|
|
|
+ .chooseInfo[0].chooseInfo.testCount"
|
|
|
:key="index1"
|
|
|
>
|
|
|
<div class="a_add_head">
|
|
@@ -332,22 +368,19 @@
|
|
|
{{ index1 + 1 + "、" }}
|
|
|
<div>
|
|
|
题目:{{
|
|
|
- worksDetail[sIndex].chooseInfo[0].testJson[
|
|
|
- index1
|
|
|
- ].teststitle
|
|
|
+ worksDetail[sIndex].chooseInfo[0].chooseInfo
|
|
|
+ .testJson[index1].teststitle
|
|
|
}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<img
|
|
|
v-if="
|
|
|
- worksDetail[sIndex].chooseInfo[0].testJson[
|
|
|
- index1
|
|
|
- ].img
|
|
|
+ worksDetail[sIndex].chooseInfo[0].chooseInfo
|
|
|
+ .testJson[index1].img
|
|
|
"
|
|
|
:src="
|
|
|
- worksDetail[sIndex].chooseInfo[0].testJson[
|
|
|
- index1
|
|
|
- ].img
|
|
|
+ worksDetail[sIndex].chooseInfo[0].chooseInfo
|
|
|
+ .testJson[index1].img
|
|
|
"
|
|
|
style="
|
|
|
height: 300px;
|
|
@@ -360,21 +393,20 @@
|
|
|
<div class="a_add_input">
|
|
|
<el-radio-group
|
|
|
v-model="
|
|
|
- worksDetail[sIndex].chooseInfo[0].radio[
|
|
|
- index1
|
|
|
- ]
|
|
|
+ worksDetail[sIndex].chooseInfo[0].chooseInfo
|
|
|
+ .radio[index1]
|
|
|
"
|
|
|
v-if="
|
|
|
- worksDetail[sIndex].chooseInfo[0].testJson[
|
|
|
- index1
|
|
|
- ].type == '1'
|
|
|
+ worksDetail[sIndex].chooseInfo[0].chooseInfo
|
|
|
+ .testJson[index1].type == '1'
|
|
|
"
|
|
|
>
|
|
|
<div class="radioBox">
|
|
|
<el-radio
|
|
|
v-for="(item2, checkIndex) in worksDetail[
|
|
|
sIndex
|
|
|
- ].chooseInfo[0].testJson[index1].checkList"
|
|
|
+ ].chooseInfo[0].chooseInfo.testJson[index1]
|
|
|
+ .checkList"
|
|
|
:key="checkIndex"
|
|
|
:label="checkIndex"
|
|
|
disabled
|
|
@@ -401,21 +433,20 @@
|
|
|
</el-radio-group>
|
|
|
<el-checkbox-group
|
|
|
v-model="
|
|
|
- worksDetail[sIndex].chooseInfo[0].radio[
|
|
|
- index1
|
|
|
- ]
|
|
|
+ worksDetail[sIndex].chooseInfo[0].chooseInfo
|
|
|
+ .radio[index1]
|
|
|
"
|
|
|
v-if="
|
|
|
- worksDetail[sIndex].chooseInfo[0].testJson[
|
|
|
- index1
|
|
|
- ].type == '2'
|
|
|
+ worksDetail[sIndex].chooseInfo[0].chooseInfo
|
|
|
+ .testJson[index1].type == '2'
|
|
|
"
|
|
|
>
|
|
|
<div class="radioBox">
|
|
|
<el-checkbox
|
|
|
v-for="(item2, checkIndex) in worksDetail[
|
|
|
sIndex
|
|
|
- ].chooseInfo[0].testJson[index1].checkList"
|
|
|
+ ].chooseInfo[0].chooseInfo.testJson[index1]
|
|
|
+ .checkList"
|
|
|
:key="checkIndex"
|
|
|
:label="checkIndex"
|
|
|
disabled
|
|
@@ -453,12 +484,22 @@
|
|
|
}"
|
|
|
v-if="worksDetail[sIndex].wpptInfo.length > 0"
|
|
|
>
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
style="height: 238px"
|
|
|
- @click="openFile(worksDetail[sIndex].wpptInfo[0])"
|
|
|
+ @click="
|
|
|
+ openFile(worksDetail[sIndex].wpptInfo[0].wpptInfo)
|
|
|
+ "
|
|
|
>
|
|
|
<div
|
|
|
- @click="openFile(worksDetail[sIndex].wpptInfo[0])"
|
|
|
+ @click="
|
|
|
+ openFile(worksDetail[sIndex].wpptInfo[0].wpptInfo)
|
|
|
+ "
|
|
|
style="
|
|
|
width: 300px;
|
|
|
height: 300px;
|
|
@@ -468,12 +509,12 @@
|
|
|
></div>
|
|
|
<pdf
|
|
|
v-if="showPDF"
|
|
|
- :pdfUrl="worksDetail[sIndex].wpptInfo[0]"
|
|
|
+ :pdfUrl="worksDetail[sIndex].wpptInfo[0].wpptInfo"
|
|
|
style="width: 100%; height: 520px; overflow: auto"
|
|
|
></pdf>
|
|
|
<iframe
|
|
|
v-else
|
|
|
- :src="worksDetail[sIndex].wpptInfo[0]"
|
|
|
+ :src="worksDetail[sIndex].wpptInfo[0].wpptInfo"
|
|
|
frameborder="0"
|
|
|
width="100%"
|
|
|
height="100%"
|
|
@@ -488,6 +529,12 @@
|
|
|
v-if="worksDetail[sIndex].pjInfo.length > 0"
|
|
|
>
|
|
|
<div style="width: 100%">
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="a_add_title"
|
|
|
style="
|
|
@@ -554,6 +601,12 @@
|
|
|
}"
|
|
|
v-if="worksDetail[sIndex].xztkInfo.length > 0"
|
|
|
>
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="a_add_title"
|
|
|
style="
|
|
@@ -664,6 +717,12 @@
|
|
|
v-if="worksDetail[sIndex].lccjInfo.length > 0"
|
|
|
>
|
|
|
<div class="sentenBox">
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="a_add_title"
|
|
|
style="
|
|
@@ -677,7 +736,8 @@
|
|
|
<div style="font-size: 16px">连词成句工具</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-for="(st, stIndex) in worksDetail[sIndex].lccjInfo"
|
|
|
+ v-for="(st, stIndex) in worksDetail[sIndex].lccjInfo
|
|
|
+ .lccjInfo"
|
|
|
:key="stIndex"
|
|
|
style="padding-bottom: 20px"
|
|
|
>
|
|
@@ -788,6 +848,12 @@
|
|
|
}"
|
|
|
v-if="worksDetail[sIndex].bgInfo.length > 0"
|
|
|
>
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="a_add_title"
|
|
|
style="
|
|
@@ -804,7 +870,7 @@
|
|
|
<el-form>
|
|
|
<div
|
|
|
class="cont"
|
|
|
- v-html="worksDetail[sIndex].bgInfo[0].text"
|
|
|
+ v-html="worksDetail[sIndex].bgInfo[0].bgInfo.text"
|
|
|
></div>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -815,6 +881,12 @@
|
|
|
}"
|
|
|
v-if="worksDetail[sIndex].cocopiInfo.length > 0"
|
|
|
>
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="a_add_title"
|
|
|
style="
|
|
@@ -854,12 +926,20 @@
|
|
|
</div>
|
|
|
<div v-if="c.type == 2">
|
|
|
<div class="workImg">
|
|
|
- <img :src="word2" alt />
|
|
|
+ <img
|
|
|
+ :src="word2"
|
|
|
+ @click="openFile(c.url, c.type)"
|
|
|
+ alt
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="c.type == 3">
|
|
|
<div class="workImg">
|
|
|
- <img :src="word2" alt />
|
|
|
+ <img
|
|
|
+ :src="word2"
|
|
|
+ @click="openFile(c.url, c.type)"
|
|
|
+ alt
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -871,6 +951,12 @@
|
|
|
}"
|
|
|
v-if="worksDetail[sIndex].wordInfo.length > 0"
|
|
|
>
|
|
|
+ <div
|
|
|
+ v-if="worksDetail[sIndex].img.score"
|
|
|
+ style="float: right"
|
|
|
+ >
|
|
|
+ 评分:{{ worksDetail[sIndex].img.score }}
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="a_add_title"
|
|
|
style="
|
|
@@ -887,7 +973,7 @@
|
|
|
<el-form>
|
|
|
<div
|
|
|
class="cont"
|
|
|
- v-html="worksDetail[sIndex].wordInfo[0].text"
|
|
|
+ v-html="worksDetail[sIndex].wordInfo[0].wordInfo.text"
|
|
|
></div>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -1441,6 +1527,7 @@ export default {
|
|
|
var wordInfo = res.data[12]; //文档作业
|
|
|
var workEvaList = res.data[13];
|
|
|
var workJson = [];
|
|
|
+
|
|
|
for (var k = 0; k < res.data[0].length; k++) {
|
|
|
this.allWorks = res.data[0][k];
|
|
|
if (this.chapInfo.length == 0) {
|
|
@@ -1504,7 +1591,11 @@ export default {
|
|
|
res.data[0][k].stage == worksDetail[i].stage &&
|
|
|
res.data[0][k].task == worksDetail[i].task
|
|
|
) {
|
|
|
- workJson[k].img.push({ src: worksDetail[i].content, id: i });
|
|
|
+ workJson[k].img.push({
|
|
|
+ src: worksDetail[i].content,
|
|
|
+ id: i,
|
|
|
+ score: worksDetail[i].score,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
for (var i = 0; i < askInfo.length; i++) {
|
|
@@ -1517,13 +1608,16 @@ export default {
|
|
|
let e = [];
|
|
|
for (var y = 0; y < a.askJson.length; y++) {
|
|
|
if (a.askJson[y].type == "2") {
|
|
|
- e.push(JSON.parse(chooseInfo[i].content)[0].anwer[y]);
|
|
|
+ e.push(JSON.parse(askInfo[i].content)[0].anwer[y]);
|
|
|
} else {
|
|
|
- e.push(JSON.parse(chooseInfo[i].content)[0].anwer[y]);
|
|
|
+ e.push(JSON.parse(askInfo[i].content)[0].anwer[y]);
|
|
|
}
|
|
|
}
|
|
|
a.radio = e;
|
|
|
- workJson[k].askInfo.push(a);
|
|
|
+ workJson[k].askInfo.push({
|
|
|
+ askInfo: a,
|
|
|
+ score: askInfo[i].score,
|
|
|
+ });
|
|
|
this.checkJson[k].allRight = 0;
|
|
|
var isCount = 0;
|
|
|
for (var p = 0; p < a.radio.length; p++) {
|
|
@@ -1542,7 +1636,7 @@ export default {
|
|
|
}
|
|
|
if (a.radio[p] instanceof Array) {
|
|
|
if (
|
|
|
- workJson[k].askInfo[0].askJson[p].answer
|
|
|
+ workJson[k].askInfo[0].askInfo.askJson[p].answer
|
|
|
.sort()
|
|
|
.join(",") == a.radio[p].sort().join(",")
|
|
|
) {
|
|
@@ -1570,7 +1664,8 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
if (
|
|
|
- workJson[k].askInfo[0].askJson[p].answer == a.radio[p]
|
|
|
+ workJson[k].askInfo[0].askInfo.askJson[p].answer ==
|
|
|
+ a.radio[p]
|
|
|
) {
|
|
|
this.checkJson[k][p].right = 100;
|
|
|
isCount += this.checkJson[k][p].right;
|
|
@@ -1615,7 +1710,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
t.radio = e;
|
|
|
- workJson[k].chooseInfo.push(t);
|
|
|
+ workJson[k].chooseInfo.push({
|
|
|
+ chooseInfo: t,
|
|
|
+ score: chooseInfo[i].score,
|
|
|
+ });
|
|
|
this.checkJson[k].allRight = 0;
|
|
|
var isCount = 0;
|
|
|
for (var p = 0; p < t.radio.length; p++) {
|
|
@@ -1634,7 +1732,7 @@ export default {
|
|
|
}
|
|
|
if (t.radio[p] instanceof Array) {
|
|
|
if (
|
|
|
- workJson[k].chooseInfo[0].testJson[p].answer
|
|
|
+ workJson[k].chooseInfo[0].chooseInfo.testJson[p].answer
|
|
|
.sort()
|
|
|
.join(",") == t.radio[p].sort().join(",")
|
|
|
) {
|
|
@@ -1662,7 +1760,8 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
if (
|
|
|
- workJson[k].chooseInfo[0].testJson[p].answer == t.radio[p]
|
|
|
+ workJson[k].chooseInfo[0].chooseInfo.testJson[p].answer ==
|
|
|
+ t.radio[p]
|
|
|
) {
|
|
|
this.checkJson[k][p].right = 100;
|
|
|
isCount += this.checkJson[k][p].right;
|
|
@@ -1709,7 +1808,10 @@ export default {
|
|
|
var a =
|
|
|
"https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
pptInfo[i].content;
|
|
|
- workJson[k].wpptInfo.push(a);
|
|
|
+ workJson[k].wpptInfo.push({
|
|
|
+ wpptInfo: a,
|
|
|
+ score: pptInfo[i].score,
|
|
|
+ });
|
|
|
this.showPDF = false;
|
|
|
} else if (
|
|
|
pptInfo[i].content
|
|
@@ -1718,7 +1820,10 @@ export default {
|
|
|
pptInfo[i].content.split(".").length - 1
|
|
|
].toLocaleUpperCase() == "PDF"
|
|
|
) {
|
|
|
- workJson[k].wpptInfo.push(pptInfo[i].content);
|
|
|
+ workJson[k].wpptInfo.push({
|
|
|
+ wpptInfo: pptInfo[i].content,
|
|
|
+ score: pptInfo[i].score,
|
|
|
+ });
|
|
|
this.showPDF = true;
|
|
|
}
|
|
|
}
|
|
@@ -1730,7 +1835,10 @@ export default {
|
|
|
res.data[0][k].task == answerInfo[i].task
|
|
|
) {
|
|
|
const element = answerInfo[i];
|
|
|
- workJson[k].answerInfo.push(JSON.parse(element.content)[0]);
|
|
|
+ workJson[k].answerInfo.push({
|
|
|
+ answerInfo: JSON.parse(element.content)[0],
|
|
|
+ score: answerInfo[i].score,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
for (var i = 0; i < pjInfo.length; i++) {
|
|
@@ -1752,6 +1860,7 @@ export default {
|
|
|
workJson[k].pjInfo.push({
|
|
|
answer: JSON.parse(pj.content),
|
|
|
rateJson: rateJson,
|
|
|
+ score: pjInfo[i].score,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -1776,6 +1885,7 @@ export default {
|
|
|
workJson[k].xztkInfo.push({
|
|
|
answer: xztk.content.split(",").map(Number),
|
|
|
selectJson: selectJson,
|
|
|
+ score: xztkInfo[i].score,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -1787,7 +1897,11 @@ export default {
|
|
|
res.data[0][k].task == lccjInfo[i].task
|
|
|
) {
|
|
|
var lccj = lccjInfo[i];
|
|
|
- workJson[k].lccjInfo.push(JSON.parse(lccj.content)[0]);
|
|
|
+ workJson[k].lccjInfo.push({
|
|
|
+ lccjInfo: JSON.parse(lccj.content)[0],
|
|
|
+ score: lccjInfo[i].score,
|
|
|
+ });
|
|
|
+ workJson[k].lccjInfo[i].score = lccjInfo[i].score;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1797,7 +1911,10 @@ export default {
|
|
|
res.data[0][k].task == bgInfo[i].task
|
|
|
) {
|
|
|
var bg = bgInfo[i];
|
|
|
- workJson[k].bgInfo.push(JSON.parse(bg.content));
|
|
|
+ workJson[k].bgInfo.push({
|
|
|
+ bgInfo: JSON.parse(bg.content),
|
|
|
+ score: bgInfo[i].score,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1831,7 +1948,11 @@ export default {
|
|
|
) != -1
|
|
|
) {
|
|
|
t = 1;
|
|
|
- workJson[k].cocopiInfo.push({ url: cocopi.content, type: t });
|
|
|
+ workJson[k].cocopiInfo.push({
|
|
|
+ url: cocopi.content,
|
|
|
+ type: t,
|
|
|
+ score: cocopiInfo[i].score,
|
|
|
+ });
|
|
|
} else if (
|
|
|
c.indexOf(
|
|
|
cocopi.content
|
|
@@ -1846,10 +1967,15 @@ export default {
|
|
|
workJson[k].cocopiInfo.push({
|
|
|
url: a,
|
|
|
type: t,
|
|
|
+ score: cocopiInfo[i].score,
|
|
|
});
|
|
|
} else {
|
|
|
t = 3;
|
|
|
- workJson[k].cocopiInfo.push({ url: cocopi.content, type: t });
|
|
|
+ workJson[k].cocopiInfo.push({
|
|
|
+ url: cocopi.content,
|
|
|
+ type: t,
|
|
|
+ score: cocopiInfo[i].score,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1860,7 +1986,10 @@ export default {
|
|
|
res.data[0][k].task == wordInfo[i].task
|
|
|
) {
|
|
|
var word = wordInfo[i];
|
|
|
- workJson[k].wordInfo.push(JSON.parse(word.content));
|
|
|
+ workJson[k].wordInfo.push({
|
|
|
+ wordInfo: JSON.parse(word.content),
|
|
|
+ score: wordInfo[i].score,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1871,16 +2000,69 @@ export default {
|
|
|
);
|
|
|
});
|
|
|
for (var l = 0; l < b.length; l++) {
|
|
|
- for (var p = 0; p < workEvaList.length; p++) {
|
|
|
- if (
|
|
|
- b[l].stage == workEvaList[p].stage &&
|
|
|
- b[l].task == workEvaList[p].task
|
|
|
- ) {
|
|
|
- var eListOld =
|
|
|
- chapters[0][b[l].stage].chapterInfo[0].taskJson[b[l].task]
|
|
|
- .eList;
|
|
|
+ if (workEvaList.length > 0) {
|
|
|
+ for (var p = 0; p < workEvaList.length; p++) {
|
|
|
+ if (
|
|
|
+ b[l].stage == workEvaList[p].stage &&
|
|
|
+ b[l].task == workEvaList[p].task
|
|
|
+ ) {
|
|
|
+ var eListOld =
|
|
|
+ chapters[0][b[l].stage].chapterInfo[0].taskJson[b[l].task]
|
|
|
+ .eList;
|
|
|
+ var eListNew = Object.keys(eListOld).map(function (key) {
|
|
|
+ return {
|
|
|
+ detail: eListOld[key].detail,
|
|
|
+ score: eListOld[key].score,
|
|
|
+ value: eListOld[key].value,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ eList = eListNew;
|
|
|
+ if (eList && eList.length) {
|
|
|
+ _ooption = [];
|
|
|
+ result[l].eList = eList;
|
|
|
+ for (var i = 0; i < eList.length; i++) {
|
|
|
+ _ooption.push({ value: 0, name: eList[i].value });
|
|
|
+ result[l].rateList[eList[i].value] = 0;
|
|
|
+ }
|
|
|
+ result[l].rateList.content = "";
|
|
|
+ this.ooption[l] = _ooption;
|
|
|
+ }
|
|
|
+ if (workEvaList[p].rate && eList && eList.length) {
|
|
|
+ _rate[l] = JSON.parse(workEvaList[p].rate);
|
|
|
+ _rateList[l] = Object.keys(JSON.parse(workEvaList[p].rate));
|
|
|
+ for (var i = 0; i < _rateList[l].length; i++) {
|
|
|
+ var _c = Object.keys(result[l].rateList);
|
|
|
+ if (_c.indexOf(_rateList[l][i]) != -1) {
|
|
|
+ result[l].rateList[_rateList[l][i]] =
|
|
|
+ _rate[l][_rateList[l][i]];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (var i = 0; i < this.ooption[l].length; i++) {
|
|
|
+ if (_rateList[l].indexOf(this.ooption[l][i].name) != -1) {
|
|
|
+ this.ooption[l][i].value =
|
|
|
+ _rate[l][this.ooption[l][i].name];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ _rate[l] = [];
|
|
|
+ _rateList[l] = [];
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ _rate[l] = [];
|
|
|
+ _rateList[l] = [];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ var eListOld =
|
|
|
+ chapters[0][b[l].stage].chapterInfo[0].taskJson[b[l].task]
|
|
|
+ .eList;
|
|
|
+ if (eListOld && eListOld.length) {
|
|
|
var eListNew = Object.keys(eListOld).map(function (key) {
|
|
|
- return { detail: eListOld[key].detail, score: eListOld[key].score, value: eListOld[key].value };
|
|
|
+ return {
|
|
|
+ detail: eListOld[key].detail,
|
|
|
+ score: eListOld[key].score,
|
|
|
+ value: eListOld[key].value,
|
|
|
+ };
|
|
|
});
|
|
|
eList = eListNew;
|
|
|
if (eList && eList.length) {
|
|
@@ -1893,9 +2075,9 @@ export default {
|
|
|
result[l].rateList.content = "";
|
|
|
this.ooption[l] = _ooption;
|
|
|
}
|
|
|
- if (workEvaList[p].rate && eList && eList.length) {
|
|
|
- _rate[l] = JSON.parse(workEvaList[p].rate);
|
|
|
- _rateList[l] = Object.keys(JSON.parse(workEvaList[p].rate));
|
|
|
+ if (b[l].rate && eList && eList.length) {
|
|
|
+ _rate[l] = JSON.parse(b[l].rate);
|
|
|
+ _rateList[l] = Object.keys(JSON.parse(b[l].rate));
|
|
|
for (var i = 0; i < _rateList[l].length; i++) {
|
|
|
var _c = Object.keys(result[l].rateList);
|
|
|
if (_c.indexOf(_rateList[l][i]) != -1) {
|
|
@@ -1913,9 +2095,6 @@ export default {
|
|
|
_rate[l] = [];
|
|
|
_rateList[l] = [];
|
|
|
}
|
|
|
- } else {
|
|
|
- _rate[l] = [];
|
|
|
- _rateList[l] = [];
|
|
|
}
|
|
|
}
|
|
|
}
|