|
@@ -0,0 +1,118 @@
|
|
|
+<!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; text-align: center;">
|
|
|
+ <p id = "reportTitle" style="margin:15px; font-size : 20px"></p>
|
|
|
+ <table id="reportTable" class="layui-table"></table>
|
|
|
+ </div>
|
|
|
+ <div class="layui-form-item box-button display" style="justify-content: flex-end;-webkit-justify-content: flex-end;">
|
|
|
+ <div class="layui-input-block" id="goBack" onclick="downLoadFujian()">
|
|
|
+ <button class="layui-btn">导出</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <script>
|
|
|
+ var pageId = getQueryString("pageId");
|
|
|
+ var reportId = getQueryString("reportId"); //报告id
|
|
|
+ var chuantouType = getQueryString("chuantouType"); //穿透数据
|
|
|
+
|
|
|
+ var cols = null;
|
|
|
+ if (chuantouType == "TQTD00") {
|
|
|
+ cols = [[ //表头
|
|
|
+ {field:'num', title: '序号', width:'5%', type:'numbers'}
|
|
|
+ ,{field: 'addressNum', title: '台区编号', width:'8%'}
|
|
|
+ ,{field: 'addressName', title: '台区名称', width:'10%'}
|
|
|
+ ,{field: 'area', title: '单位', width: '8%'}
|
|
|
+ ,{field: 'comonpanyName', title: '供电所名称', width: '10%'}
|
|
|
+ ,{field: 'terminalName', title: '终端名称', width: '10%'}
|
|
|
+ ,{field: 'terminalNum', title: '终端编号', width: '8%'}
|
|
|
+ ,{field: 'terminalAddress', title: '终端地址码', width: '10%'}
|
|
|
+ ,{field: 'num', title: '停电次数', width: '10%'}
|
|
|
+ ]];
|
|
|
+ } else if (chuantouType == "TQTD01") {
|
|
|
+ cols = [[ //表头
|
|
|
+ {field:'num', title: '序号', width:'5%', type:'numbers'}
|
|
|
+ ,{field: 'addressNum', title: '台区编号', width:'8%'}
|
|
|
+ ,{field: 'addressName', title: '台区名称', width:'10%'}
|
|
|
+ ,{field: 'date', title: '数据日期', width: '8%'}
|
|
|
+ ,{field: 'area', title: '单位', width: '8%'}
|
|
|
+ ,{field: 'comonpanyName', title: '供电所名称', width: '10%'}
|
|
|
+ ,{field: 'terminalName', title: '终端名称', width: '10%'}
|
|
|
+ ,{field: 'terminalNum', title: '终端编号', width: '8%'}
|
|
|
+ ,{field: 'terminalAddress', title: '终端地址码', width: '10%'}
|
|
|
+ ,{field: 'startTime', title: '停电时间', width: '10%'}
|
|
|
+ ,{field: 'endTime', title: '来电时间', width: '10%'}
|
|
|
+ ]];
|
|
|
+ } else if (chuantouType == "TQTD02") {
|
|
|
+ cols = [[ //表头
|
|
|
+ {field:'num', title: '序号', width:'5%', type:'numbers'}
|
|
|
+ ,{field: 'addressNum', title: '台区编号', width:'8%'}
|
|
|
+ ,{field: 'addressName', title: '台区名称', width:'10%'}
|
|
|
+ ,{field: 'area', title: '单位', width: '8%'}
|
|
|
+ ,{field: 'comonpanyName', title: '供电所名称', width: '10%'}
|
|
|
+ ,{field: 'terminalName', title: '终端名称', width: '10%'}
|
|
|
+ ,{field: 'terminalNum', title: '终端编号', width: '8%'}
|
|
|
+ ,{field: 'terminalAddress', title: '终端地址码', width: '10%'}
|
|
|
+ ,{field: 'num', title: '停电次数', width: '10%'}
|
|
|
+ ]];
|
|
|
+ } else if (chuantouType == "TQTD03") {
|
|
|
+ cols = [[ //表头
|
|
|
+ {field:'num', title: '序号', width:'5%', type:'numbers'}
|
|
|
+ ,{field: 'queryDate', title: '日报日期', width: '10%'}
|
|
|
+ ,{field: 'addressNum', title: '台区编号', width:'8%'}
|
|
|
+ ,{field: 'addressName', title: '台区名称', width:'10%'}
|
|
|
+ ,{field: 'date', title: '数据日期', width: '8%'}
|
|
|
+ ,{field: 'area', title: '单位', width: '8%'}
|
|
|
+ ,{field: 'comonpanyName', title: '供电所名称', width: '10%'}
|
|
|
+ ,{field: 'terminalName', title: '终端名称', width: '10%'}
|
|
|
+ ,{field: 'terminalNum', title: '终端编号', width: '8%'}
|
|
|
+ ,{field: 'terminalAddress', title: '终端地址码', width: '10%'}
|
|
|
+ ,{field: 'startTime', title: '停电时间', width: '10%'}
|
|
|
+ ,{field: 'endTime', title: '来电时间', width: '10%'}
|
|
|
+ ]];
|
|
|
+ } else if (chuantouType == "TQTD04") {
|
|
|
+ cols = [[ //表头
|
|
|
+ {field:'num', title: '序号', width:'5%', type:'numbers'}
|
|
|
+ ,{field: 'addressNum', title: '台区编号', width:'8%'}
|
|
|
+ ,{field: 'addressName', title: '台区名称', width:'10%'}
|
|
|
+ ,{field: 'area', title: '单位', width: '8%'}
|
|
|
+ ,{field: 'comonpanyName', title: '供电所名称', width: '10%'}
|
|
|
+ ,{field: 'terminalName', title: '终端名称', width: '10%'}
|
|
|
+ ,{field: 'terminalNum', title: '终端编号', width: '8%'}
|
|
|
+ ,{field: 'terminalAddress', title: '终端地址码', width: '10%'}
|
|
|
+ ,{field: 'num', title: '停电次数', width: '10%'}
|
|
|
+ ,{field: 'date', title: '日报日期', width: '10%'}
|
|
|
+ ]];
|
|
|
+ }
|
|
|
+
|
|
|
+ layui.use('table', function(){
|
|
|
+ var table = layui.table;
|
|
|
+ // 加载数据
|
|
|
+ table.render({
|
|
|
+ id: 'reportTable'
|
|
|
+ ,elem: '#reportTable'
|
|
|
+ ,url: 'TQTDReportAction/reportInfZbChuantou' //数据接口
|
|
|
+ ,method: 'post'
|
|
|
+ ,where:{MINView:"JSON", reportId : reportId, chuantouType : chuantouType}
|
|
|
+ ,page: false
|
|
|
+ ,cols: cols
|
|
|
+ ,done: function(res, curr, count){
|
|
|
+ }
|
|
|
+ ,even: true //开启隔行背景
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
+ //穿透导出详情
|
|
|
+ function downLoadFujian() {
|
|
|
+ var data = {reportId : reportId,chuantouType : chuantouType};
|
|
|
+ exportExcel("../../TQTDReportAction/reportInfZbChuantouDown",data);
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|