Commit 49f8e26d authored by zhengke's avatar zhengke

修改

parent 4e1cc4ff
...@@ -20,22 +20,14 @@ ...@@ -20,22 +20,14 @@
{{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" style="border:0;margin-top:-2px;" v-html="item.Content"></div>
<UeEditor v-model="item.Content" :config="config" v-else></UeEditor>
</td> </td>
<td style="width:40px;text-align:center;"> <td style="width:40px;text-align:center;">
<i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(index)"></i>
</td> </td>
</tr> </tr>
</table> </table>
<br /> <br />
<a class="addTiMuList" @click="addOption()"> <span v-if="setOption.IsMutex==1" style="font-size:12px;">答案顺序打乱也判正确</span>
<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>
<br /> <br />
<br /> <br />
<div class="entrytk_info"> <div class="entrytk_info">
...@@ -115,9 +107,6 @@ ...@@ -115,9 +107,6 @@
this.getAnswer(); this.getAnswer();
this.$emit('getChild', this.data); this.$emit('getChild', this.data);
}, },
changeEdit(index) {
this.commonIndex = index;
}
}, },
mounted() { mounted() {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{{index+1}}</el-checkbox> {{index+1}}</el-checkbox>
</td> </td>
<td> <td>
<div class="InpDIV" v-html="item.Content"></div> <div class="InpDIV" style="border:0;margin-top:-2px;" v-html="item.Content"></div>
</td> </td>
</tr> </tr>
</table> </table>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<table v-if="data&&data.length>0" class="common_TiTable"> <table v-if="data&&data.length>0" class="common_TiTable">
<tr v-for="(item,index) in data"> <tr v-for="(item,index) in data">
<td style="width:50px;text-align:center;"> <td style="width:50px;text-align:center;">
<div class="Answer_List" @click="ChangeItem(item)" :class="{'Is_Answer':item.IsAnswer}"> <div class="Answer_List" :class="{'Is_Answer':item.IsAnswer}">
{{item.Name}} {{item.Name}}
</div> </div>
</td> </td>
...@@ -52,15 +52,6 @@ ...@@ -52,15 +52,6 @@
this.getAnswer(); this.getAnswer();
this.$emit('getChild', this.data); this.$emit('getChild', this.data);
}, },
ChangeItem(item) {
if (this.data && this.data.length > 0) {
this.data.forEach(item => {
item.IsAnswer = false;
})
}
item.IsAnswer = true;
this.getAnswer();
},
//获取正确答案 //获取正确答案
getAnswer() { getAnswer() {
this.setOption.Answer = ""; this.setOption.Answer = "";
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<br /> <br />
答案 答案
<br /> <br />
<UeEditor v-model="setOption.Answer" :config="config"></UeEditor> <div v-html="setOption.Answer"></div>
</div> </div>
</template> </template>
<script> <script>
......
...@@ -35,42 +35,31 @@ ...@@ -35,42 +35,31 @@
</style> </style>
<template> <template>
<div class="sortingProblemQuestion"> <div class="sortingProblemQuestion">
<table v-if="data&&data.length>0" class="common_TiTable"> <table v-if="data&&data.length>0">
<tr v-for="(item,index) in data[0]"> <tr v-for="(item,index) in data[0]">
<td style="width:40px;text-align:center;"> <td style="width:40px;text-align:center;">
{{item.Name}} {{item.Name}}
</td> </td>
<td> <td>
<div class="InpDIV" v-html="item.Content" v-if="commonIndex!=index" @click="changeEdit(index)"></div> <div class="InpDIV" style="border:0;margin-top:-2px;" v-html="item.Content"></div>
<UeEditor v-model="item.Content" :config="config" v-else></UeEditor>
</td> </td>
<td style="width:40px;text-align:center;"> <td style="width:40px;text-align:center;">
<i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(index)"></i>
</td> </td>
</tr> </tr>
</table> </table>
<br /> <br />
<a class="addTiMuList" @click="addOption()">
<i class="iconfont icon-add"></i>添加更多
</a>
<br /> <br />
<div class="team_tit">答案:请在下方下拉框中对选项进行排序(顺序从左到右)</div> <div style="padding-bottom:20px;">答案:请在下方下拉框中对选项进行排序(顺序从左到右)</div>
<table v-if="data&&data.length>0"> <table v-if="data&&data.length>0">
<tr> <tr>
<td> <td>
<template v-for="(item,index) in data[1]"> <span v-for="(cItem,cIndex) in data[0]">
<select v-model="item.Name" class="selectBox" :class="{'blue-border':index==clickIndex}" {{cItem.Name}}
@click="clickIndex=index"> </span>
<template v-for="(cItem,cIndex) in data[0]">
<option :key="cIndex" :label="cItem.Name" :value="cItem.Name">
</option>
</template>
</select>
</template>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</template> </template>
<script> <script>
import { import {
...@@ -103,6 +92,8 @@ ...@@ -103,6 +92,8 @@
}, },
created() { created() {
this.initConfig(); this.initConfig();
console.log(this.data[1],'data1');
console.log(this.data[0],'data0');
}, },
methods: { methods: {
initConfig() { initConfig() {
...@@ -179,10 +170,6 @@ ...@@ -179,10 +170,6 @@
this.setOption.Answer = answer; this.setOption.Answer = answer;
} }
}, },
//点击切换输入
changeEdit(index) {
this.commonIndex = index;
},
}, },
mounted() { mounted() {
......
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