diff --git a/hxy-web/html/dataStatistics/header.html b/hxy-web/html/dataStatistics/header.html index 65c2aa5..92901bb 100644 --- a/hxy-web/html/dataStatistics/header.html +++ b/hxy-web/html/dataStatistics/header.html @@ -105,29 +105,29 @@
- +
- +
-
- +
-
-
diff --git a/hxy-web/js/dataStatistics/header.js b/hxy-web/js/dataStatistics/header.js index 7b03c1f..1e70639 100644 --- a/hxy-web/js/dataStatistics/header.js +++ b/hxy-web/js/dataStatistics/header.js @@ -10,12 +10,17 @@ layui.use(['element', 'layer', 'form', 'element','laypage'], function(){ }) //初始化云间公司 function init(){ + var subComId = $(window.parent.document).find("select[id='subComId']").val(); + + $.ajax({ type: 'POST', url: PATH_URL + '/homePageSelect/getSubCom', // 请求地址 contentType: "application/json; charset=utf-8", async: false, - data: {}, //获取提交的表单字段 + data: { + fgsId: subComId + }, //获取提交的表单字段 success: function (data) { if(data.code == 200){ let html = ''; @@ -36,9 +41,33 @@ function init(){ var iframe = $("#indexFrame")[0]; var iframeWindow = iframe.contentWindow; - iframeWindow.initStation(); iframeWindow.setData(); + + var viewPlanFrame = $("#viewPlanFrame")[0]; + var viewPlanWindow = viewPlanFrame.contentWindow; + viewPlanWindow.init(); + + var staffFrame = $("#staffFrame")[0]; + var staffWindow = staffFrame.contentWindow; + staffWindow.init(); + + var viewStatisticsFrame = $("#viewStatisticsFrame")[0]; + var viewStatisticsWindow = viewStatisticsFrame.contentWindow; + viewStatisticsWindow.init(); + + var workVisaFrame = $("#workVisaFrame")[0]; + var workVisaWindow = workVisaFrame.contentWindow; + workVisaWindow.init(); + + var specialPatrolFrame = $("#specialPatrolFrame")[0]; + var specialPatrolWindow = specialPatrolFrame.contentWindow; + specialPatrolWindow.init(); + + var wagesStatisticsFrame = $("#wagesStatisticsFrame")[0]; + var wagesStatisticsWindow = wagesStatisticsFrame.contentWindow; + wagesStatisticsWindow.init(); + }); }, error: function (XMLHttpRequest, textStatus, e) { diff --git a/hxy-web/js/dataStatistics/specialPatrol/specialPatrolList.js b/hxy-web/js/dataStatistics/specialPatrol/specialPatrolList.js index 4942cdd..dc48746 100644 --- a/hxy-web/js/dataStatistics/specialPatrol/specialPatrolList.js +++ b/hxy-web/js/dataStatistics/specialPatrol/specialPatrolList.js @@ -33,6 +33,7 @@ layui.use(['form', 'layer', 'table', 'laydate', 'excel'], function() { function init() { + var subComId = $(window.parent.document).find("select[id='subComId']").val(); let userName = $('#userName').val(); let proName = $('#proName').val(); let yjName = $('#yjName').val(); @@ -84,7 +85,7 @@ function init() { "proName": proName, "yjName": yjName, "makeMonth": makeMonth, - "fgsId": "26" + "fgsId": subComId }, //获取提交的表单字段 success: function(data) { for (var i = 0; i < data.length; i++) { diff --git a/hxy-web/js/dataStatistics/staff/staffList.js b/hxy-web/js/dataStatistics/staff/staffList.js index c3ee6bf..491c2b4 100644 --- a/hxy-web/js/dataStatistics/staff/staffList.js +++ b/hxy-web/js/dataStatistics/staff/staffList.js @@ -77,9 +77,14 @@ layui.use(['form','layer','table'], function () { * 初始化数据 */ function init(){ + var subComId = $(window.parent.document).find("select[id='subComId']").val(); + // 渲染表格 table.render({ elem: '#table', + where: { + fgsId: subComId + }, // url: "/sys/achievement", page: true, skin: 'line', // 表格样式 diff --git a/hxy-web/js/dataStatistics/viewStatistics/viewStatisticsList.js b/hxy-web/js/dataStatistics/viewStatistics/viewStatisticsList.js index f23cb7e..ace7689 100644 --- a/hxy-web/js/dataStatistics/viewStatistics/viewStatisticsList.js +++ b/hxy-web/js/dataStatistics/viewStatistics/viewStatisticsList.js @@ -180,9 +180,13 @@ var col = [ * 初始化数据 */ function init(){ + var subComId = $(window.parent.document).find("select[id='subComId']").val(); // 渲染表格 table.render({ elem: '#table', + where: { + fgsId: subComId + } // url: "/sys/achievement", page: true, border: true, diff --git a/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsList.js b/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsList.js index ecdfbce..655f05c 100644 --- a/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsList.js +++ b/hxy-web/js/dataStatistics/wagesStatistics/wagesStatisticsList.js @@ -70,9 +70,13 @@ layui.use(['form','layer','table','laydate'], function () { * 初始化数据 */ function init(){ + var subComId = $(window.parent.document).find("select[id='subComId']").val(); // 渲染表格 table.render({ elem: '#table', + where: { + fgsId: subComId + }, // url: "/sys/achievement", page: true, skin: 'line', // 表格样式 diff --git a/hxy-web/js/dataStatistics/workVisa/workVisaList.js b/hxy-web/js/dataStatistics/workVisa/workVisaList.js index 9601d0c..6d29bd7 100644 --- a/hxy-web/js/dataStatistics/workVisa/workVisaList.js +++ b/hxy-web/js/dataStatistics/workVisa/workVisaList.js @@ -77,9 +77,13 @@ layui.use(['form','layer','table','laydate'], function () { * 初始化数据 */ function init(){ + var subComId = $(window.parent.document).find("select[id='subComId']").val(); // 渲染表格 table.render({ elem: '#table', + where: { + fgsId: subComId + }, // url: "/sys/achievement", page: true, skin: 'line', // 表格样式