|
@@ -4043,6 +4043,7 @@ export default {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
.toolChoose[toolIndex].askJson[0].checkList < 2
|
|
|
) {
|
|
|
+ this.openTools(itemTaskIndex, 4, toolIndex)
|
|
|
this.$message({
|
|
|
message: "请填写完整问卷内容",
|
|
|
type: "error",
|
|
@@ -4057,6 +4058,7 @@ export default {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
.toolChoose[toolIndex].answerQ == ""
|
|
|
) {
|
|
|
+ this.openTools(itemTaskIndex, 15, toolIndex)
|
|
|
this.$message({
|
|
|
message: "请填写问答内容",
|
|
|
type: "error",
|
|
@@ -4082,10 +4084,16 @@ export default {
|
|
|
1
|
|
|
);
|
|
|
} else {
|
|
|
- this.$message({
|
|
|
- message: "每个工具只能添加一个",
|
|
|
- type: "error",
|
|
|
- });
|
|
|
+ // this.$message({
|
|
|
+ // message: "每个工具只能添加一个",
|
|
|
+ // type: "error",
|
|
|
+ // });
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ itemTaskIndex
|
|
|
+ ].toolChoose[toolIndex].tool = [];
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ itemTaskIndex
|
|
|
+ ].toolChoose[toolIndex].tool.push(i);
|
|
|
}
|
|
|
} else {
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
@@ -4327,7 +4335,7 @@ export default {
|
|
|
oid: this.oid,
|
|
|
};
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "selectTypeByOid",params)
|
|
|
+ .get(this.$store.state.api + "selectTypeByOid", params)
|
|
|
.then((res) => {
|
|
|
for (var i = 0; i < res.data[0].length; i++) {
|
|
|
for (var j = 0; j < res.data[1].length; j++) {
|