|
@@ -63,6 +63,19 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+
|
|
|
|
+ <el-form-item label="作答类型">
|
|
|
|
+ <el-select v-model="quesModel.answerType">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in answerTypes"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+
|
|
<el-form-item label="属性列表">
|
|
<el-form-item label="属性列表">
|
|
<el-tooltip
|
|
<el-tooltip
|
|
placement="top"
|
|
placement="top"
|
|
@@ -225,9 +238,10 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import { QUESTION_API } from "@/constants/constants";
|
|
import { QUESTION_API } from "@/constants/constants";
|
|
-import { QUESTION_TYPES } from "../constants/constants";
|
|
|
|
|
|
+import { isEmptyStr, QUESTION_TYPES } from "../constants/constants";
|
|
import ckeditor from "../component/ckeditor.vue";
|
|
import ckeditor from "../component/ckeditor.vue";
|
|
import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
|
|
import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: "editOtherApp",
|
|
name: "editOtherApp",
|
|
components: { ckeditor, LinkTitlesCustom },
|
|
components: { ckeditor, LinkTitlesCustom },
|
|
@@ -267,6 +281,10 @@ export default {
|
|
{ label: "公开", value: true },
|
|
{ label: "公开", value: true },
|
|
{ label: "非公开", value: false }
|
|
{ label: "非公开", value: false }
|
|
],
|
|
],
|
|
|
|
+ answerTypes: [
|
|
|
|
+ { label: "文本", value: "DIVERSIFIED_TEXT" },
|
|
|
|
+ { label: "音频", value: "SINGLE_AUDIO" }
|
|
|
|
+ ],
|
|
coursePropertyList: [],
|
|
coursePropertyList: [],
|
|
coursePropertyName: "", //课程属性名
|
|
coursePropertyName: "", //课程属性名
|
|
firstPropertyList: [], //一级属性集合
|
|
firstPropertyList: [], //一级属性集合
|
|
@@ -340,6 +358,11 @@ export default {
|
|
getQues(id) {
|
|
getQues(id) {
|
|
this.$http.get(QUESTION_API + "/question/" + id).then(response => {
|
|
this.$http.get(QUESTION_API + "/question/" + id).then(response => {
|
|
this.quesModel = response.data;
|
|
this.quesModel = response.data;
|
|
|
|
+
|
|
|
|
+ if (isEmptyStr(this.quesModel.answerType)) {
|
|
|
|
+ this.quesModel.answerType = "DIVERSIFIED_TEXT";
|
|
|
|
+ }
|
|
|
|
+
|
|
this.initCourseProperty();
|
|
this.initCourseProperty();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -504,6 +527,10 @@ export default {
|
|
this.coursePropertyList = response.data;
|
|
this.coursePropertyList = response.data;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (isEmptyStr(this.quesModel.answerType)) {
|
|
|
|
+ this.quesModel.answerType = "DIVERSIFIED_TEXT";
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted() {}
|
|
mounted() {}
|
|
};
|
|
};
|