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

页面修改

parent 2d385e0f
......@@ -21,21 +21,12 @@
{{index+1}}</el-checkbox>
</td>
<td>
<div class="InpDIV" v-html="item.Content" v-if="commonIndex!=index" @click="changeEdit(index)"></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>
<div class="InpDIV" v-html="item.Content"></div>
</td>
</tr>
</table>
<a class="addTiMuList" @click="addOption()">
<i class="iconfont icon-add"></i>添加更多
</a>
<br />
<br />
<el-checkbox v-model="setOption.IsMutex" :true-label="1" :false-label="0"><span
style="font-size:12px;">答案顺序打乱也判正确</span></el-checkbox>
<span v-if="setOption.IsMutex==1" style="font-size:12px;">答案顺序打乱也判正确</span>
<br />
<div class="tk_info">
1. 一个空有多种答案时请用";"隔开。如:水;H2O
......@@ -61,36 +52,10 @@
data() {
return {
data: this.questionData,
config: {
initialFrameWidth: null,
initialFrameHeight: 80,
},
commonIndex: -1,
};
},
created() {},
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() {
if (this.data && this.data.length > 0) {
......@@ -105,10 +70,6 @@
}
this.$emit('getChild', this.data);
},
//点击切换输入
changeEdit(index) {
this.commonIndex = index;
}
},
mounted() {
......
......@@ -196,26 +196,26 @@
import vMultiple from '../../components/questiontype/v-multiple'
import vFillin from '../../components/questiontype/v-fillin'
import vJudge from '../../components/questiontype/v-judge'
import vShortAnswer from '../../components/questiontype/v-shortanswer'
import vEntryProblem from '../../components/questiontype/v-entryproblem'
import vShortanswer from '../../components/questiontype/v-shortanswer'
import vEntryproblem from '../../components/questiontype/v-entryproblem'
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 vReadingComprehensio from '../../components/questiontype/v-readingcomprehensio'
import vSharingChoose from '../../components/questiontype/v-sharingchoose'
import vReadingcomprehensio from '../../components/questiontype/v-readingcomprehensio'
import vSharingchoose from '../../components/questiontype/v-sharingchoose'
export default {
components: {
vSingle, //单选题
vMultiple, //多选题
vFillin, //填空题
vJudge, //判断题
vShortAnswer, //简答题
vEntryProblem, //分录题
vShortanswer, //简答题
vEntryproblem, //分录题
vMatching, //连线题
vSortingProblem, //排序题
vSortingproblem, //排序题
vCloze, //完型填空
vReadingComprehensio, //阅读理解
vSharingChoose, //共用选择题
vReadingcomprehensio, //阅读理解
vSharingchoose, //共用选择题
},
props: {
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