Commit 1c108262 authored by maliang's avatar maliang

上传bug修复

parent 185e6ef3
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
</div> </div>
<div class="layui-row"> <div class="layui-row">
<table class="layui-table" id="copyrightMonth_table"> <table class="layui-table" id="copyrightMonth_table" lay-filter="test">
</table> </table>
</div> </div>
</div> </div>
...@@ -36,9 +36,7 @@ ...@@ -36,9 +36,7 @@
<script src="../../js/libs/jquery.treetable.js"></script> <script src="../../js/libs/jquery.treetable.js"></script>
<script type="text/javascript" src="../../js/echarts.min.js"></script> <script type="text/javascript" src="../../js/echarts.min.js"></script>
<script type="text/html" id="operation"> <script type="text/html" id="operation">
<button type="button" class="layui-btn"> <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<i class="layui-icon">&#xe642;</i> 编
</button>
</script> </script>
<script> <script>
...@@ -63,9 +61,15 @@ ...@@ -63,9 +61,15 @@
,{field: 'totalAmount', title: '销售金额'} ,{field: 'totalAmount', title: '销售金额'}
,{field: 'totalAdvertAmount', title: '广告金额'} ,{field: 'totalAdvertAmount', title: '广告金额'}
,{field: 'jiesuanStatusName', title: '结算状态'} ,{field: 'jiesuanStatusName', title: '结算状态'}
,{title: '操作', templet: '#operation',fixed: 'right'} ,{title: '操作', toolbar: '#operation',fixed: 'right'}
]] //设置表头 ]] //设置表头
}); });
table.on('tool(test)', function(obj){
var data = obj.data; //获得当前行数据
console.log(data);
layer.msg("hehe");
});
}); });
...@@ -73,8 +77,6 @@ ...@@ -73,8 +77,6 @@
form = layui.form; form = layui.form;
form.on('select(copyright)', function(data){ form.on('select(copyright)', function(data){
copyrights=data.value; copyrights=data.value;
//tableIns.reload({where:{copyrightIds:copyrights}});
//console.log(copyrights)
reload(copyrights) reload(copyrights)
}); });
......
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