Commit 18ce8843 authored by 黄奎's avatar 黄奎

页面修改

parent 2d385e0f
...@@ -21,21 +21,12 @@ ...@@ -21,21 +21,12 @@
{{index+1}}</el-checkbox> {{index+1}}</el-checkbox>
</td> </td>
<td> <td>
<div class="InpDIV" v-html="item.Content" v-if="commonIndex!=index" @click="changeEdit(index)"></div> <div class="InpDIV" v-html="item.Content"></div>
<UeEditor v-model="item.Content" :config="config" v-else></UeEditor>
</td>
<td style="width:30px;text-align:center;">
<i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(index)"></i>
</td> </td>
</tr> </tr>
</table> </table>
<a class="addTiMuList" @click="addOption()">
<i class="iconfont icon-add"></i>添加更多
</a>
<br />
<br /> <br />
<el-checkbox v-model="setOption.IsMutex" :true-label="1" :false-label="0"><span <span v-if="setOption.IsMutex==1" style="font-size:12px;">答案顺序打乱也判正确</span>
style="font-size:12px;">答案顺序打乱也判正确</span></el-checkbox>
<br /> <br />
<div class="tk_info"> <div class="tk_info">
1. 一个空有多种答案时请用";"隔开。如:水;H2O 1. 一个空有多种答案时请用";"隔开。如:水;H2O
...@@ -61,36 +52,10 @@ ...@@ -61,36 +52,10 @@
data() { data() {
return { return {
data: this.questionData, data: this.questionData,
config: {
initialFrameWidth: null,
initialFrameHeight: 80,
},
commonIndex: -1,
}; };
}, },
created() {}, created() {},
methods: { methods: {
//删除选项
deleteOpion(index) {
this.$q.dialog({
title: '提示信息',
message: '是否确定删除?',
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
this.data.splice(index, 1);
}).onCancel(() => {
});
},
//新增选项
addOption() {
this.data.push({
Content: "",
});
},
//返回数据到父组件 //返回数据到父组件
returnDataToParent() { returnDataToParent() {
if (this.data && this.data.length > 0) { if (this.data && this.data.length > 0) {
...@@ -105,10 +70,6 @@ ...@@ -105,10 +70,6 @@
} }
this.$emit('getChild', this.data); this.$emit('getChild', this.data);
}, },
//点击切换输入
changeEdit(index) {
this.commonIndex = index;
}
}, },
mounted() { mounted() {
......
...@@ -196,26 +196,26 @@ ...@@ -196,26 +196,26 @@
import vMultiple from '../../components/questiontype/v-multiple' import vMultiple from '../../components/questiontype/v-multiple'
import vFillin from '../../components/questiontype/v-fillin' import vFillin from '../../components/questiontype/v-fillin'
import vJudge from '../../components/questiontype/v-judge' import vJudge from '../../components/questiontype/v-judge'
import vShortAnswer from '../../components/questiontype/v-shortanswer' import vShortanswer from '../../components/questiontype/v-shortanswer'
import vEntryProblem from '../../components/questiontype/v-entryproblem' import vEntryproblem from '../../components/questiontype/v-entryproblem'
import vMatching from '../../components/questiontype/v-matching' import vMatching from '../../components/questiontype/v-matching'
import vSortingProblem from '../../components/questiontype/v-sortingproblem' import vSortingproblem from '../../components/questiontype/v-sortingproblem'
import vCloze from '../../components/questiontype/v-cloze' import vCloze from '../../components/questiontype/v-cloze'
import vReadingComprehensio from '../../components/questiontype/v-readingcomprehensio' import vReadingcomprehensio from '../../components/questiontype/v-readingcomprehensio'
import vSharingChoose from '../../components/questiontype/v-sharingchoose' import vSharingchoose from '../../components/questiontype/v-sharingchoose'
export default { export default {
components: { components: {
vSingle, //单选题 vSingle, //单选题
vMultiple, //多选题 vMultiple, //多选题
vFillin, //填空题 vFillin, //填空题
vJudge, //判断题 vJudge, //判断题
vShortAnswer, //简答题 vShortanswer, //简答题
vEntryProblem, //分录题 vEntryproblem, //分录题
vMatching, //连线题 vMatching, //连线题
vSortingProblem, //排序题 vSortingproblem, //排序题
vCloze, //完型填空 vCloze, //完型填空
vReadingComprehensio, //阅读理解 vReadingcomprehensio, //阅读理解
vSharingChoose, //共用选择题 vSharingchoose, //共用选择题
}, },
props: { props: {
setingObj: { setingObj: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment