题库考试增加bug

This commit is contained in:
caoqianming 2020-12-27 22:47:19 +08:00
parent 7f1cc7c19f
commit 3b3d698494
3 changed files with 6 additions and 3 deletions

View File

@ -40,6 +40,7 @@
var a = GetQueryString2("a");
top.$('#in').attr('value', id);
top.$('#in').attr('show', name);
top.$('#in').attr('show2', item.total.total.score);
top.$('#in').attr('target', a);
aaa(a);
closeForm2()

View File

@ -19,6 +19,7 @@
editable=false>
<input type="hidden" name="exampaper" id="exampaper"/>
<a id="choseexampaper" class='easyui-linkbutton' onclick="javascript:opendg2('选择试卷','html/exampaper/chose/', 'exampaper')" style="width:auto">选择</a>
<a id="editpaper" class='easyui-linkbutton' onclick="editpaper()" style="width:auto;display:none" >编辑</a>
</div>
<div style="margin-bottom:5px;">
<input id="totalscore" name="totalscore" class="easyui-numberbox" style="width:90%"
@ -105,9 +106,9 @@
}
function editpaper(){
var id=$('#exampaper').combobox('getValue')
var url = 'html/exampaper/edit/' + id
var url = 'html/exampaper/edit/?id' + id
var myw = screen.availWidth * 0.7;
opendg('编辑试卷',url,myw)
opendg2('编辑试卷',url,myw)
}
function aaa(x) {
if (x == "participant") {
@ -118,6 +119,7 @@
else if (x == "exampaper") {
$('#exampaper').attr('value', top.$('#in').val());
$('#exampapername').textbox('setValue', top.$('#in').attr('show'));
$('#totalscore').numberbox('setValue', top.$('#in').attr('show2'))
}
}
</script>

View File

@ -167,7 +167,7 @@
<div id="dd" style="overflow: hidden;"></div>
<div id="userdd" style="overflow: hidden;"></div>
<div id="questiondd" style="overflow: hidden;"></div>
<input type="hidden" id="in" show="" total="" target="" />
<input type="hidden" id="in" show="" total="" target="" show2=""/>
<!-- <button type="hidden" id="getb" onclick="test()" /> -->
<script>