数据页面样式调试8

master
zcstatham 2 years ago
parent 52954f1411
commit a7ddba10b8
  1. 5
      app/view/index/index.html

@ -214,6 +214,7 @@
{{# } }} {{# } }}
</script> </script>
<script> <script>
var tableIns;
var local_storage_key = 'data_table_col_list'; var local_storage_key = 'data_table_col_list';
$(function () { $(function () {
layui.form.on('checkbox(dataStatus)', function(data){ layui.form.on('checkbox(dataStatus)', function(data){
@ -245,7 +246,7 @@
} }
} }
}); });
var tableIns = layui.table.render(tableRender('')); tableIns = layui.table.render(tableRender(''));
//监听行工具事件 //监听行工具事件
layui.table.on('tool(car-info)', function(obj){ //注:tool 是工具条事件名,test 是 table 原始容器的属性 lay-filter="对应的值" layui.table.on('tool(car-info)', function(obj){ //注:tool 是工具条事件名,test 是 table 原始容器的属性 lay-filter="对应的值"
@ -422,7 +423,7 @@
loading: true, loading: true,
cols: [tableCols], cols: [tableCols],
done: function (res, curr, count) { done: function (res, curr, count) {
tableDone(this.elem, ins.config.cols[0], local_storage_key); tableDone(this.elem, tableIns.config.cols[0], local_storage_key);
if(res.code == -1){ if(res.code == -1){
$('#lock-screen').css('display','flex'); $('#lock-screen').css('display','flex');
} }

Loading…
Cancel
Save