tudc 5 年之前
父節點
當前提交
c0099e1747
共有 2 個文件被更改,包括 72 次插入1 次删除
  1. 71 0
      src/main/webapp/admin/tqtd/areaNumManage.html
  2. 1 1
      src/main/webapp/admin/tqtd/reportManageTqtd.html

+ 71 - 0
src/main/webapp/admin/tqtd/areaNumManage.html

@@ -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>

+ 1 - 1
src/main/webapp/admin/tqtd/reportManageTqtd.html

@@ -43,7 +43,7 @@
 		{{#  if(timeType == '00'){ }}
 			<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
 		{{#  } }}
-     	<a class="layui-btn layui-btn-xs" lay-event="downLoad">下载</a>
+     	<!-- <a class="layui-btn layui-btn-xs" lay-event="downLoad">下载</a> -->
 		<a class="layui-btn layui-btn-xs" lay-event="delete">删除</a>
    	</script>
 	<script type="text/html" id="algorithmBar">