Commit eba40dba by wushanyu

系统管理权限查询页面,专项业务省厅负责人查询页面,改获取树对象失败bug

parent c60a2b75
...@@ -57,41 +57,6 @@ ...@@ -57,41 +57,6 @@
</div> </div>
<script src="${pageContext.request.contextPath}/resources/layui/layui.js"></script> <script src="${pageContext.request.contextPath}/resources/layui/layui.js"></script>
<script> <script>
function resetAll() {
$("#trueName").val();
$("#policemanid").val();
$("#telephone").val();
$("#unitname").val();
$("#unitcode").val();
$("#check").attr("checked","checked");
}
layui.use(['table', 'element','jquery'], function () {
$('.demoTable .layui-btn').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
//弹出层
var msg = "${msg}";
if (msg.length != "") {
layer.msg(msg, {icon: 6});
$("#msg").text("");
}
var data = ${unit};
var zNodes =[];
for (var i=0;i<data.length;i++){
zNodes.push({id:data[i].codeStr,pId:data[i].pid,name:data[i].name,open:false,file:"core/simpleData"});
}
setTree(zNodes,"unit","nocheck","unitcode","unitname","");
});
</script>
<script>
/*$(document).ready(function() {
$('input[type=radio][name=type]').change(function() {
$('#type').attr("value",this.value);
});
});*/
layui.use('table', function(){ layui.use('table', function(){
var table = layui.table; var table = layui.table;
//方法级渲染 //方法级渲染
...@@ -114,21 +79,11 @@ ...@@ -114,21 +79,11 @@
}, },
// height: 480 //添加这个高度后,出现了滚动条,导致表头和表格体的竖格现对不齐,后期有需要再放开 // height: 480 //添加这个高度后,出现了滚动条,导致表头和表格体的竖格现对不齐,后期有需要再放开
}); });
var $ = layui.$, active = { var $ = layui.$, active = {
reload: function(){ reload: function(){
var trueName = cheNull($('#trueName').val());
var policemanid = cheNull($('#policemanid').val());
var telephone = cheNull($('#telephone').val());
var unitcode = cheNull($('#unitcode').val());
var type = cheNull($('#type').val()); var type = cheNull($('#type').val());
table.reload('testReload', { table.reload('testReload', {
where: { where: {
/*trueName: trueName,
policemanid:policemanid,
telephone:telephone,
unitcode:unitcode,*/
type:type type:type
}, },
page: { page: {
...@@ -142,14 +97,9 @@ ...@@ -142,14 +97,9 @@
}; };
$('input[type=radio][name=type]').change(function() { $('input[type=radio][name=type]').change(function() {
$('#type').attr("value",this.value); $('#type').attr("value",this.value);
//var type = $(this).data('type');
var type="reload"; var type="reload";
active[type] ? active[type].call(this) : ''; active[type] ? active[type].call(this) : '';
}); });
/*$('.queryUserList').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});*/
}); });
function cheNull(str) { function cheNull(str) {
if (str==""){ if (str==""){
...@@ -158,8 +108,6 @@ ...@@ -158,8 +108,6 @@
return str; return str;
} }
} }
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
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