Commit d140b4a0 authored by 黄奎's avatar 黄奎

页面修改

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