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

页面修改

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