优化显示

This commit is contained in:
强 杨 2024-01-24 18:24:06 +08:00
parent 2ae344739b
commit 8b5898a00e
2 changed files with 9 additions and 2 deletions

View File

@ -352,6 +352,13 @@
</li> </li>
</ul> </ul>
<div style="width: 100%; text-align: center; float: left; padding-bottom: 10px; font-size: 14px; padding-top: 10px; background: #044775; border-top: 2px solid #000000; color: #fff;">模板删减区</div> <div style="width: 100%; text-align: center; float: left; padding-bottom: 10px; font-size: 14px; padding-top: 10px; background: #044775; border-top: 2px solid #000000; color: #fff;">模板删减区</div>
<div><div style="width:40px;height:20px;overflow:hidden;padding:5px;float:left;">题型</div>
<div style="width:70px;height:20px;overflow:hidden;padding:5px;float:left;">题号</div>
<div style="width:50px;height:20px;overflow:hidden;padding:5px;float:left;">选项数</div>
<div style="width:40px;height:20px;overflow:hidden;padding:5px;float:left;">分数</div>
<div style="width:72px;height:20px;overflow:hidden;padding:5px;float:left;">方向/步长</div>
</div>
<ul id="NowSelect" class="lineul" style="overflow-y: scroll; height: 240px;"> <ul id="NowSelect" class="lineul" style="overflow-y: scroll; height: 240px;">
</ul> </ul>
</div> </div>

View File

@ -166,7 +166,7 @@ function SetKeguanTi() {
$("#keguan_" + tihao).draggable({ containment: ".main_papermain" }); $("#keguan_" + tihao).draggable({ containment: ".main_papermain" });
$("#keguan_" + tihao).resizable({ containment: ".main_papermain", handles: 'all' });//设置缩放 $("#keguan_" + tihao).resizable({ containment: ".main_papermain", handles: 'all' });//设置缩放
var listtypeText = listtype == 0 ? "横向" : "竖向"; var listtypeText = listtype == 0 ? "横向" : "竖向";
$("#NowSelect").append("<li style='background:#fff;' id='selectNow_" + tihao + "' ><div class='sp'><div class='go'>" + questionHtml + "</div></div><div class='sf'>" + tihaoM + "</div> <div class='sm'>" + selectNum + "</div><div class='sx'>" + listtypeText + "</div><div class='ss' idAtt='keguan_" + tihao + "' onclick=\"UpdateBaseData(1,'" + score + "','" + tihao + "','客观题')\">" + score + "</div><div class='sd' onclick=\"DeleteKeguanti('" + tihao + "')\">x</div></li>"); $("#NowSelect").append("<li style='background:#fff;' id='selectNow_" + tihao + "' ><div class='sp'><div class='go'>" + questionHtml + "</div></div><div class='sf'>" + tihaoM + "</div> <div class='sm'>" + selectNum + "</div><div class='ss' idAtt='keguan_" + tihao + "' onclick=\"UpdateBaseData(1,'" + score + "','" + tihao + "','客观题')\">" + score + "</div><div class='sx'>" + listtypeText + "</div><div class='sd' onclick=\"DeleteKeguanti('" + tihao + "')\">x</div></li>");
} }
function DeleteKeguanti(tihao) { function DeleteKeguanti(tihao) {
@ -959,7 +959,7 @@ function SetKeguanTiPostion(PostionData) {
$("#keguan_" + tihao).draggable({ containment: ".main_papermain" }); $("#keguan_" + tihao).draggable({ containment: ".main_papermain" });
$("#keguan_" + tihao).resizable({ containment: ".main_papermain", handles: 'all' });//设置缩放 $("#keguan_" + tihao).resizable({ containment: ".main_papermain", handles: 'all' });//设置缩放
var listtypeText = listtype == 0 ? "横向" : "竖向"; var listtypeText = listtype == 0 ? "横向" : "竖向";
$("#NowSelect").append("<li style='background:#fff;' id='selectNow_" + tihao + "' ><div class='sp'><div class='go'>" + questionHtml + "</div></div><div class='sf'>" + tihao + "</div> <div class='sm'>" + selectNum + "</div><div class='sx'>" + listtypeText + "</div><div class='ss' id='ss_" + tihao + "' idAtt='keguan_" + tihao + "' onclick=\"UpdateBaseData(1,'" + score + "','" + tihao + "','客观题')\">" + score + "</div><div class='sd' onclick=\"DeleteKeguanti('" + tihao + "')\">x</div></li>"); $("#NowSelect").append("<li style='background:#fff;' id='selectNow_" + tihao + "' ><div class='sp'><div class='go'>" + questionHtml + "</div></div><div class='sf'>" + tihao + "</div> <div class='sm'>" + selectNum + "</div><div class='ss' id='ss_" + tihao + "' idAtt='keguan_" + tihao + "' onclick=\"UpdateBaseData(1,'" + score + "','" + tihao + "','客观题')\">" + score + "</div><div class='sx'>" + listtypeText + "</div><div class='sd' onclick=\"DeleteKeguanti('" + tihao + "')\">x</div></li>");
} }
} }