|
|
@@ -0,0 +1,71 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <title>报表管理</title>
|
|
|
+ <script src="../../js/min-loader-next.js"></script>
|
|
|
+</head>
|
|
|
+<body class="content">
|
|
|
+ <div class="shadow-content" style="margin:1.5rem;">
|
|
|
+ <table id="tableTest" lay-filter="tableFilter"></table>
|
|
|
+ </div>
|
|
|
+ <script>
|
|
|
+ var pageId = "220003";
|
|
|
+
|
|
|
+ var table;
|
|
|
+ var form;
|
|
|
+ layui.use(['table'], function(){
|
|
|
+ table = layui.table;
|
|
|
+
|
|
|
+ // 加载数据
|
|
|
+ table.render({
|
|
|
+ id: 'tableTest'
|
|
|
+ ,elem: '#tableTest'
|
|
|
+ ,limit:1
|
|
|
+ ,url: 'TQTDReportAction/areaNumManage' //数据接口
|
|
|
+ ,method: 'post'
|
|
|
+ ,where:{MINView:"JSON"}
|
|
|
+ ,page: false
|
|
|
+ ,cols: [[ //表头
|
|
|
+ {field: '新泰', title: '新泰', width:'10%', edit : "text"}
|
|
|
+ ,{field: '岱岳', title: '岱岳', width:'10%', edit : "text"}
|
|
|
+ ,{field: '宁阳', title: '宁阳', width:'10%', edit : "text"}
|
|
|
+ ,{field: '泰山', title: '泰山', width:'10%', edit : "text"}
|
|
|
+ ,{field: '东平', title: '东平', width:'10%', edit : "text"}
|
|
|
+ ,{field: '肥城', title: '肥城', width:'10%', edit : "text"}
|
|
|
+ ,{field: '泰山景区', title: '泰山景区', width:'10%', edit : "text"}
|
|
|
+ ,{field: '高新', title: '高新', width:'10%', edit : "text"}
|
|
|
+ ,{field: '合计', title: '合计', width:'10%'}
|
|
|
+ ]]
|
|
|
+ ,done: function(res, curr, count){
|
|
|
+ }
|
|
|
+ ,even: true //开启隔行背景
|
|
|
+ });
|
|
|
+
|
|
|
+ table.on('edit(tableFilter)', function(obj){
|
|
|
+ var value = obj.value //得到修改后的值
|
|
|
+ ,data = obj.data //得到所在行所有键值
|
|
|
+ ,field = obj.field; //得到字段
|
|
|
+ $.request({
|
|
|
+ action : 'TQTDReportAction/areaNumUpdate',
|
|
|
+ data : {
|
|
|
+ field : field,
|
|
|
+ value : value
|
|
|
+ },
|
|
|
+ success : function(data) {
|
|
|
+ console.log(data);
|
|
|
+ table.reload('tableTest', {
|
|
|
+ });
|
|
|
+ },
|
|
|
+ error : function(data2) {
|
|
|
+ $.ErrorAlert(data2.MINErrorMessage);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|