From ee03de8f4c7719625c58c152114bc61e134750ec Mon Sep 17 00:00:00 2001
From: pengyb <726475269@qq.com>
Date: Wed, 21 Aug 2024 11:19:49 +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/wireManager/header.html | 4 ++--
.../js/wireManager/attendance/attendance.js | 21 +++++++++++++------
.../attendance/attendanceDetail.js | 2 ++
hxy-web/js/wireManager/header.js | 13 ++++++++++++
hxy-web/js/wireManager/project/projectList.js | 2 ++
5 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/hxy-web/html/wireManager/header.html b/hxy-web/html/wireManager/header.html
index 302986f..2638bcd 100644
--- a/hxy-web/html/wireManager/header.html
+++ b/hxy-web/html/wireManager/header.html
@@ -83,12 +83,12 @@
-
-
diff --git a/hxy-web/js/wireManager/attendance/attendance.js b/hxy-web/js/wireManager/attendance/attendance.js
index e4b185a..c845baf 100644
--- a/hxy-web/js/wireManager/attendance/attendance.js
+++ b/hxy-web/js/wireManager/attendance/attendance.js
@@ -115,6 +115,8 @@ function resetClick(){
* 初始化数据 全部
*/
function initTable1(){
+ var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
+
console.log('全部')
table.render({
id: 'layui_table1',
@@ -122,7 +124,8 @@ function initTable1(){
url: PATH_URL + '/attendance/getAllInspectionList',
where: {
startMakeMonth: $('#makeMonth').val(),
- endMakeMonth: $('#makeMonth').val()
+ endMakeMonth: $('#makeMonth').val(),
+ yjId: yjId
},
page: true, //开启分页
method:'post',
@@ -165,6 +168,7 @@ function initTable1(){
*/
function initTable2(){
console.log('正常巡视统计')
+ var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
// 渲染表格
table.render({
id: 'layui_table2',
@@ -172,7 +176,8 @@ function initTable2(){
url: PATH_URL + '/attendance/getNormalInspectionList',
where: {
startMakeMonth: $('#makeMonth').val(),
- endMakeMonth: $('#makeMonth').val()
+ endMakeMonth: $('#makeMonth').val(),
+ yjId: yjId
},
page: true, //开启分页
method:'post',
@@ -212,7 +217,7 @@ function initTable2(){
*/
function initTable3(userName,proName,yjName,makeMonth){
console.log('特巡统计')
-
+ var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
//保存数据
var tableData = []
@@ -225,6 +230,7 @@ function initTable3(userName,proName,yjName,makeMonth){
align: 'center',
type: 'numbers'
},
+ {field:'userId', style: 'display:none'},
{field:'userName', title: '姓 名',align: 'center', width: '80'},
{field:'proName', title: '管辖线路名称',align: 'center', width: '200'},
{field:'yjName', title: '所属运检站',align: 'center', width: '200'},
@@ -238,12 +244,13 @@ function initTable3(userName,proName,yjName,makeMonth){
userName: userName,
proName: proName,
yjName: yjName,
- makeMonth: $('#makeMonth').val()
+ makeMonth: $('#makeMonth').val(),
+ yjId: yjId
}, //获取提交的表单字段
success: function (data) {
for (var i = 0; i < data.length; i++) {
var json =
- {'userName': data[i].userName, 'proName': data[i].proName, 'yjName': data[i].yjName, 'special': data[i].special, 'makeMonth': data[i].makeMonth, 'proId': data[i].proId }
+ {'userId': data[i].userId, 'userName': data[i].userName, 'proName': data[i].proName, 'yjName': data[i].yjName, 'special': data[i].special, 'makeMonth': data[i].makeMonth, 'proId': data[i].proId }
var spMakeList = data[i].spMakeList;
for (var j = 0; j < spMakeList.length; j++) {
json[`${ spMakeList[j].currDay }`] = spMakeList[j].isAtt;
@@ -294,6 +301,7 @@ function initTable3(userName,proName,yjName,makeMonth){
* 详情
* */
function checkView(obj) {
+ debugger
let height = '98%';
let width = '95%';
$.ajax({
@@ -302,7 +310,8 @@ function checkView(obj) {
contentType: "application/json; charset=utf-8",
data: JSON.stringify({
makeMonth: $("#makeMonth").val(),
- proId: obj.data.proId
+ proId: obj.data.proId,
+ userId: obj.data.userId
}),
success: function (data) {
console.log("dataaaaaa:", data)
diff --git a/hxy-web/js/wireManager/attendance/attendanceDetail.js b/hxy-web/js/wireManager/attendance/attendanceDetail.js
index d6cc227..67072b5 100644
--- a/hxy-web/js/wireManager/attendance/attendanceDetail.js
+++ b/hxy-web/js/wireManager/attendance/attendanceDetail.js
@@ -102,6 +102,8 @@ function getView(data){
}
$("#firstViewBox").append(html1);
+
+
var twoMakeList = data.data.twoMakeList;
$("#secondViewBox").html('');
let html2 = ``;
diff --git a/hxy-web/js/wireManager/header.js b/hxy-web/js/wireManager/header.js
index e759713..0216488 100644
--- a/hxy-web/js/wireManager/header.js
+++ b/hxy-web/js/wireManager/header.js
@@ -36,10 +36,23 @@ function init(){
$("#taskSourceId").attr("gsName", item.parentName);
+ /**
+ * 选择运检站后会根据运检id重新查询页面内容
+ */
localStorage.setItem("selectyj", item.id)
var iframe = $("#indexFrame")[0];
var iframeWindow = iframe.contentWindow;
iframeWindow.setData();
+
+
+ var projectFrame = $("#projectFrame")[0];
+ var projectWindow = projectFrame.contentWindow;
+ projectWindow.init();
+
+ var attendanceFrame = $("#attendanceFrame")[0];
+ var attendanceWindow = attendanceFrame.contentWindow;
+ attendanceWindow.init();
+
},
});
},
diff --git a/hxy-web/js/wireManager/project/projectList.js b/hxy-web/js/wireManager/project/projectList.js
index 4d1ece7..1968161 100644
--- a/hxy-web/js/wireManager/project/projectList.js
+++ b/hxy-web/js/wireManager/project/projectList.js
@@ -52,12 +52,14 @@ function resetClick(){
* 初始化数据
*/
function init(){
+ var yjId = $(window.parent.document).find("input[id='taskSourceId']").attr("stationId");
// 渲染表格
table.render({
id: 'layui_table',
elem: '#table',
url: PATH_URL + '/lineProject/getLineProjectList',
where: {
+ 'yjId': yjId
},
page: true, //开启分页
method:'post',