Commit 1c22ae98 authored by 黄奎's avatar 黄奎

页面修改

parent bff5d38b
...@@ -12,21 +12,15 @@ ...@@ -12,21 +12,15 @@
.clozeQuestion .clozeTest_question_tit { .clozeQuestion .clozeTest_question_tit {
width: 100%; width: 100%;
height: 40px;
background: #F7F8FA; background: #F7F8FA;
padding: 0 20px; padding: 0 20px;
height: 40px;
line-height: 40px; line-height: 40px;
font-size: 14px; font-size: 14px;
color: #646873; color: #646873;
display: flex;
justify-content: space-between;
align-items: center;
} }
.clozeQuestion .clozeTest_question_tit i {
color: #acbfd9;
cursor: pointer;
}
.clozeQuestion .add_LiteBtn { .clozeQuestion .add_LiteBtn {
width: 100px; width: 100px;
...@@ -46,40 +40,45 @@ ...@@ -46,40 +40,45 @@
opacity: 0.8; opacity: 0.8;
} }
.clozeQuestion .tdFirst {
width: 40px;
text-align: center;
}
</style> </style>
<template> <template>
<div class="clozeQuestion"> <div class="clozeQuestion">
<div class="question_Title">小题数:{{data.length}}</div> <div class="question_Title">小题数:{{data.length}}</div>
<template v-if="data&&data.length>0" v-for="(item,index) in data"> <template v-if="data&&data.length>0">
<table class="common_TiTable"> <table class="common_TiTable" v-for="(item,index) in data" :key="index">
<thead> <thead>
<tr> <tr class="clozeTest_question_tit">
<th colspan="3"> <th colspan="2" style="text-align:left;">
<div class="clozeTest_question_tit" @click="showNav(index)"> <span @click="showNav(index)" style="cursor:pointer;padding-left:10px;">
<div> <i class="iconfont icon-arrowdown2" v-if="(commonIndex==index)&&!isShow">
<i class="iconfont icon-arrowdown2" v-if="(commonIndex==index)&&!isShow"></i> </i>
<i class="iconfont icon-arrowright" v-else></i> <i class="iconfont icon-arrowright" v-else>
<template v-if="!isShowScore"> </i>
{{index+1}}小题 {{index+1}}小题
</template> <q-tooltip anchor="top middle" self="bottom middle">
<template v-if="isShowScore"> <strong v-if="!isShow">点击收起</strong>
<q-input filled v-model="email" standout type="email" suffix="分数" input-style="height:30px;"> <strong v-else>点击展开</strong>
<template v-slot:before> </q-tooltip>
<span style="font-size:12px;">{{index+1}}小题</span> </span>
</template> <el-input v-if="isShowScore" :placeholder="'请输入第'+(index+1)+'小题分数'" v-model="item.SubScore" size="small"
</q-input> maxlength="6" @keyup.native="checkPrice(item,'SubScore')" @input="getQuestionScore"
</template> style="width:120px;margin-left:5px;">
</div> <template slot="append"></template>
<div> </el-input>
<i class="iconfont icon-img_delete_small" @click.stop="deleteQuestion(index)"></i> </th>
</div> <th class="tdFirst">
</div> <i class="iconfont icon-img_delete_small" @click.stop="deleteQuestion(index)"></i>
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody class="contant" v-if="(commonIndex==index)&&!isShow"> <tbody 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">
<td style="width:40px;text-align:center;"> <td class="tdFirst">
<div class="Answer_List" @click="ChangeItem(item,subItem)" :class="{'Is_Answer':subItem.IsAnswer}"> <div class="Answer_List" @click="ChangeItem(item,subItem)" :class="{'Is_Answer':subItem.IsAnswer}">
{{subItem.Name}} {{subItem.Name}}
</div> </div>
...@@ -89,7 +88,7 @@ ...@@ -89,7 +88,7 @@
</div> </div>
<UeEditor v-model="subItem.Content" :config="config" v-else></UeEditor> <UeEditor v-model="subItem.Content" :config="config" v-else></UeEditor>
</td> </td>
<td style="width:40px;text-align:center;"> <td class="tdFirst">
<i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(item,subIndex)"></i> <i class="iconfont icon-guanbi Tiku_DelIcon" @click="deleteOpion(item,subIndex)"></i>
</td> </td>
</tr> </tr>
......
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