Commit d140b4a0 authored by 黄奎's avatar 黄奎

页面修改

parent 47a4312a
<!--共用选择题-->
<style>
.sharingChooseQuestion{
width:100%;
.sharingChooseQuestion {
width: 100%;
}
.B-info{
.B-info {
font-size: 14PX;
color: #A8A8B3;
padding-bottom: 10px;
margin-left:13px;
margin-left: 13px;
}
</style>
<template>
<div class="sharingChooseQuestion">
......@@ -22,7 +24,7 @@
<UeEditor v-model="item.Content" :config="config" v-else></UeEditor>
</td>
<td style="width:40px;text-align:center;">
<i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(index)"></i>
<i v-if="index>0" class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(index)"></i>
</td>
</tr>
<tfoot>
......@@ -45,7 +47,7 @@
<UeEditor v-model="item.Content" :config="config" v-else></UeEditor>
</td>
<td style="width:40px;text-align:center;">
<i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteQuestion(index)"></i>
<i v-if="index>0" class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteQuestion(index)"></i>
</td>
</tr>
<tfoot>
......@@ -101,8 +103,8 @@
initialFrameHeight: 80,
},
optionTitleList: [],
commonIndex:-1,
commonIndex2:-2
commonIndex: -1,
commonIndex2: -2
};
},
created() {
......@@ -123,7 +125,7 @@
cancel: "取消",
}).onOk(() => {
this.data[0].splice(index, 1);
this.commonIndex=-1;
this.commonIndex = -1;
this.calcOptionTitle();
}).onCancel(() => {
......@@ -158,7 +160,7 @@
cancel: "取消",
}).onOk(() => {
this.data[1].splice(index, 1);
this.commonIndex2=-1;
this.commonIndex2 = -1;
this.calcOptionTitle();
}).onCancel(() => {
......@@ -184,13 +186,26 @@
returnDataToParent() {
this.$emit('getChild', this.data);
},
changeEdit(index){
this.commonIndex=index;
this.commonIndex2=-1;
getAnswer() {
this.setOption.Answer = "";
if (this.data && this.data.length > 1) {
var answer = "";
this.data[1].forEach(item => {
answer += "," + item.Name;
})
if (answer != "") {
answer = answer.substring(1);
}
this.setOption.Answer = answer;
}
},
changeEdit(index) {
this.commonIndex = index;
this.commonIndex2 = -1;
},
changeEdit2(index){
this.commonIndex=-1;
this.commonIndex2=index;
changeEdit2(index) {
this.commonIndex = -1;
this.commonIndex2 = index;
}
},
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