|
@@ -204,11 +204,7 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="operate_left">
|
|
<div class="operate_left">
|
|
<el-button
|
|
<el-button
|
|
- v-if="
|
|
|
|
- scope.row.questionType !== 'NESTED_ANSWER_QUESTION' &&
|
|
|
|
- scope.row.questionType !== 'LISTENING_QUESTION' &&
|
|
|
|
- scope.row.questionType !== 'MATCHING_QUESTION'
|
|
|
|
- "
|
|
|
|
|
|
+ v-if="!isNested(scope.row.questionType)"
|
|
size="mini"
|
|
size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
plain
|
|
plain
|
|
@@ -443,6 +439,29 @@ export default {
|
|
this.initVue();
|
|
this.initVue();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ isMatchingQuestion(questionType) {
|
|
|
|
+ if (
|
|
|
|
+ questionType == "PARAGRAPH_MATCHING" ||
|
|
|
|
+ questionType == "BANKED_CLOZE"
|
|
|
|
+ ) {
|
|
|
|
+ return true;
|
|
|
|
+ } else {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ isNested(questionType) {
|
|
|
|
+ if (
|
|
|
|
+ questionType == "PARAGRAPH_MATCHING" ||
|
|
|
|
+ questionType == "BANKED_CLOZE" ||
|
|
|
|
+ questionType == "CLOZE" ||
|
|
|
|
+ questionType == "READING_COMPREHENSION" ||
|
|
|
|
+ questionType == "LISTENING_QUESTION"
|
|
|
|
+ ) {
|
|
|
|
+ return true;
|
|
|
|
+ } else {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
resetForm() {
|
|
resetForm() {
|
|
this.formSearch = {
|
|
this.formSearch = {
|
|
questionType: "",
|
|
questionType: "",
|