查看所有题目功能完毕

This commit is contained in:
caoqianming 2020-10-27 21:50:37 +08:00
parent cf9d681843
commit 1bd6748a21
2 changed files with 14 additions and 3 deletions

View File

@ -62,9 +62,10 @@
<option value="3">判断</option>
</select>
<input class="easyui-textbox" style="width:300px" name="title" data-options="prompt:'题干/分类名'"></input>
{% if request|has_permission:'b_question_showall' %}
<label>显示全部</label>
<input type="checkbox" id="showAll" name="all" value="1">
{% endif %}
<a onclick="searchTm()" class="easyui-linkbutton" data-options="iconCls:'fa-search',plain:true">查询</a>
<a onclick="reset()" class="easyui-linkbutton"
data-options="iconCls:'fa-undo',plain:true">重置</a>
@ -361,7 +362,9 @@
}
function reset() {
$('#searchtmff').form('clear')
$('#tmtable').datagrid('reload', {'tmlx':''})
var querydata = $('#searchtmff').serializeJSON();
querydata['tmlx'] = ''
$('#tmtable').datagrid('reload', querydata);
}
document.getElementById('drfile').onchange = function () {
var fileObj = this.files[0];

View File

@ -19,10 +19,14 @@
<option value="3">判断</option>
</select>
<input class="easyui-textbox" style="width:300px" name="title" data-options="prompt:'题干/分类名'"></input>
{% load myfilter %}
{% if request|has_permission:'b_question_showall' %}
<label>显示全部</label>
<input type="checkbox" id="showAll" name="all" value="1">
{% endif %}
<a onclick="searchTm()" class="easyui-linkbutton" data-options="iconCls:'fa-search',plain:true">查询</a>
<a onclick="reset()" class="easyui-linkbutton"
data-options="iconCls:'fa-undo',plain:true">重置</a>
</form>
</div>
<table id="tmtable" style="height:100%;"></table>
@ -56,6 +60,10 @@
});
}
});
function reset() {
$('#searchtmff').form('clear')
$('#tmtable').datagrid('reload', {'tmlx':''})
}
$('#zjfltree').tree({
url: 'api/questioncat?a=tree2',
animate: true,