|
@@ -1599,7 +1599,7 @@
|
|
|
<div class="tool">
|
|
|
<div
|
|
|
class="whiteBIcon"
|
|
|
- @click="addTools(48, itemTaskIndex, toolIndex)"
|
|
|
+ @click="openTools(itemTaskIndex, 48, toolIndex)"
|
|
|
>
|
|
|
<img
|
|
|
src="../../assets/icon/fourthToolList/table.png"
|
|
@@ -5454,24 +5454,24 @@ export default {
|
|
|
}
|
|
|
this.dialogVisibleSentence = true;
|
|
|
}
|
|
|
- // else if (i == 48) {
|
|
|
- // if (
|
|
|
- // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
- // .toolChoose[toolIndex].tableJson
|
|
|
- // ) {
|
|
|
- // this.tableJson = JSON.parse(
|
|
|
- // JSON.stringify(
|
|
|
- // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
- // itemTaskIndex
|
|
|
- // ].toolChoose[toolIndex].tableJson
|
|
|
- // )
|
|
|
- // );
|
|
|
- // } else {
|
|
|
- // var tableJson = { text: "" };
|
|
|
- // this.tableJson = tableJson;
|
|
|
- // }
|
|
|
- // this.dialogVisibleTable = true;
|
|
|
- // }
|
|
|
+ else if (i == 48) {
|
|
|
+ if (
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
+ .toolChoose[toolIndex].tableJson
|
|
|
+ ) {
|
|
|
+ this.tableJson = JSON.parse(
|
|
|
+ JSON.stringify(
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ itemTaskIndex
|
|
|
+ ].toolChoose[toolIndex].tableJson
|
|
|
+ )
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ var tableJson = { text: "" };
|
|
|
+ this.tableJson = tableJson;
|
|
|
+ }
|
|
|
+ this.dialogVisibleTable = true;
|
|
|
+ }
|
|
|
else if (i == 50) {
|
|
|
if (
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
@@ -6716,10 +6716,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
addTableJson() {
|
|
|
- if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
|
|
|
- this.$message.error("请将信息填写完整!");
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
|
|
|
+ // this.$message.error("请将信息填写完整!");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
this.taskCount
|
|
|
].toolChoose[this.toolIndex].tableJson = this.tableJson;
|