Commit 4fb949e5 authored by 黄奎's avatar 黄奎

页面修改

parent a93f6161
......@@ -61,16 +61,18 @@
<i class="iconfont icon-arrowright" v-else></i>
{{index+1}}小题
</div>
<div v-if="isShowScore">
<q-input filled stack-label maxlength="5" :dense="false" @keyup.native="checkPrice(item,'SubScore')"
v-model="item.SubScore" class="col-12 q-pb-lg" label="分数" @input="getQuestionScore" />
</div>
<div>
<i class="iconfont icon-img_delete_small" @click.stop="deleteQuestion(index)"></i>
</div>
</div>
</th>
</tr>
<tr v-if="isShowScore">
<th colspan="3">
<q-input filled stack-label maxlength="5" :dense="false" @keyup.native="checkPrice(item,'SubScore')"
v-model="item.SubScore" class="col-12 q-pb-lg" label="分数" @input="getQuestionScore" />
</th>
</tr>
</thead>
<tbody class="contant" v-if="(commonIndex==index)&&!isShow">
<tr v-for="(subItem,subIndex) in item.OptionList" :key="subIndex">
......@@ -148,9 +150,8 @@
},
methods: {
//计算分数
getQuestionScore()
{
this.$emit('getScore');
getQuestionScore() {
this.$emit('getScore');
},
initConfig() {
this.optionTitleList = getOptionList();
......
......@@ -40,16 +40,18 @@
<i class="iconfont icon-arrowright" v-else></i>
{{index+1}}小题<span style="color:#A8A8B3;">({{item.QuestionName}})</span>
</div>
<div v-if="isShowScore">
<q-input filled stack-label maxlength="5" :dense="false" @keyup.native="checkPrice(item,'SubScore')"
v-model="item.SubScore" class="col-12 q-pb-lg" label="分数" @input="getQuestionScore" />
</div>
<div>
<i class="iconfont icon-img_delete_small" @click.stop="deleteQuestion(index)"></i>
</div>
</div>
</th>
</tr>
<tr v-if="isShowScore">
<th colspan="3">
<q-input filled stack-label maxlength="5" :dense="false" @keyup.native="checkPrice(item,'SubScore')"
v-model="item.SubScore" class="col-12 q-pb-lg" label="分数" @input="getQuestionScore" />
</th>
</tr>
</thead>
<tbody v-if="(commonIndex==index)&&!isShow">
<tr>
......
......@@ -909,6 +909,7 @@
this.DataObj.CreateNum = tempData.CreateNum;
this.DataObj.PaperType = tempData.PaperType;
this.DataObj.ParentId = tempData.ParentId;
this.DataObj.IsOpen=tempData.IsOpen;
if (tempData.GroupList && tempData.GroupList.length > 0) {
this.DataObj.GroupList = tempData.GroupList;
}
......
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