|
|
@@ -332,7 +332,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
if (
|
|
|
- ["3", "8", "22", "23", "831", "832", "84"].includes(params[0].type) &&
|
|
|
+ ["3", "8", "22", "23", "831", "832", "84"].includes(params[0].type) &&
|
|
|
params[0].uid &&
|
|
|
params[0].cid
|
|
|
) {
|
|
|
@@ -399,8 +399,10 @@ export default {
|
|
|
this.loading = false;
|
|
|
if (_data.length) {
|
|
|
_data = _data[0];
|
|
|
+ console.log("select_courseWorks_workPageData",_data);
|
|
|
if (["15", "45", "78", "79", "831", "832", "84"].includes(_data.atool)) {
|
|
|
let _work = JSON.parse(decodeURIComponent(_data.content));
|
|
|
+
|
|
|
this.studentWork = _work;
|
|
|
this.studentWorkToWorkData();
|
|
|
} else {
|
|
|
@@ -421,8 +423,10 @@ export default {
|
|
|
|
|
|
let _work = JSON.parse(JSON.stringify(this.studentWork));
|
|
|
if (this.workData.type == "15") {
|
|
|
- this.workData.json.answer = _work.answer;
|
|
|
- this.workData.json.fileList = _work.fileList;
|
|
|
+ this.workData.json = {...this.workData.json,..._work}
|
|
|
+ console.log("this.workData.json", this.workData.json);
|
|
|
+ this.$refs.questionsAndAnswersRef.setWork(this.workData.json);
|
|
|
+ this.$forceUpdate();
|
|
|
} else if (this.workData.type == "45") {
|
|
|
|
|
|
this.workData.json.testJson.forEach((item, index) => {
|