|
@@ -164,7 +164,7 @@ export default {
|
|
|
ttype: 1,
|
|
|
type: topicType,
|
|
|
};
|
|
|
- if (this.topicType == 1) {
|
|
|
+ if (topicType == 1) {
|
|
|
json.json = {
|
|
|
title: "标题",
|
|
|
type: 1,
|
|
@@ -174,13 +174,13 @@ export default {
|
|
|
],
|
|
|
answer: "",
|
|
|
};
|
|
|
- } else if (this.topicType == 3) {
|
|
|
+ } else if (topicType == 3) {
|
|
|
json.json = {
|
|
|
title: "标题",
|
|
|
type: 1,
|
|
|
answer: "",
|
|
|
};
|
|
|
- } else if (this.topicType == 5) {
|
|
|
+ } else if (topicType == 5) {
|
|
|
json.json = {
|
|
|
title: "标题",
|
|
|
type: 1,
|
|
@@ -227,10 +227,35 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
if (type == 1) {
|
|
|
- this.manualJson.push({
|
|
|
+ let json1 = {
|
|
|
ttype: 1,
|
|
|
type: topicType,
|
|
|
- });
|
|
|
+ };
|
|
|
+
|
|
|
+ if (topicType == 1) {
|
|
|
+ json1.json = {
|
|
|
+ title: "标题",
|
|
|
+ type: 1,
|
|
|
+ array: [
|
|
|
+ { option: "选项1", img: "" },
|
|
|
+ { option: "选项2", img: "" },
|
|
|
+ ],
|
|
|
+ answer: "",
|
|
|
+ };
|
|
|
+ } else if (topicType == 3) {
|
|
|
+ json1.json = {
|
|
|
+ title: "标题",
|
|
|
+ type: 1,
|
|
|
+ answer: "",
|
|
|
+ };
|
|
|
+ } else if (topicType == 5) {
|
|
|
+ json1.json = {
|
|
|
+ title: "标题",
|
|
|
+ type: 1,
|
|
|
+ detail: "",
|
|
|
+ };
|
|
|
+ }
|
|
|
+ this.manualJson.push(json1);
|
|
|
} else if (type == 3 || type == 2) {
|
|
|
this.$message.error("请选中分页或者分组添加题目");
|
|
|
return;
|