From c9d843868ff9d4b874b5521e8ad9207edab73d3d Mon Sep 17 00:00:00 2001 From: pengyb <726475269@qq.com> Date: Wed, 21 Aug 2024 21:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=8E=A5=E5=8F=A3=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hxy-web/html/dataStatistics/header.html | 12 +++---- hxy-web/js/dataStatistics/header.js | 33 +++++++++++++++++-- .../specialPatrol/specialPatrolList.js | 3 +- hxy-web/js/dataStatistics/staff/staffList.js | 5 +++ .../viewStatistics/viewStatisticsList.js | 4 +++ .../wagesStatistics/wagesStatisticsList.js | 4 +++ .../dataStatistics/workVisa/workVisaList.js | 4 +++ 7 files changed, 56 insertions(+), 9 deletions(-) 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', // 表格样式