2025-05-20 16:37:46 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html>
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
2025-05-20 16:37:46 +08:00
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
|
<title>自有班组二级界面</title>
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="../../js/layui-v2.8.18/layui/css/layui.css">
|
|
|
|
|
|
<link rel="stylesheet" href="../../css/mainList.css">
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
th {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.layui-table-tool {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.layui-table thead th {
|
|
|
|
|
|
background-color: #0A2559;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
border: 0px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.layui-table-cell {
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*.layui-laydate-content>table>tbody>tr>td{*/
|
|
|
|
|
|
/* background-color: white;*/
|
|
|
|
|
|
/*}*/
|
|
|
|
|
|
#layui-laydate1 {
|
|
|
|
|
|
left: 534.578px;
|
|
|
|
|
|
top: 171.484px;
|
|
|
|
|
|
background: #020B31;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
2025-05-20 16:37:46 +08:00
|
|
|
|
.laydate-footer-btns span {
|
|
|
|
|
|
height: 26px;
|
|
|
|
|
|
line-height: 26px;
|
|
|
|
|
|
margin: 0 0 0 -1px;
|
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
border: 1px solid #C9C9C9;
|
2025-05-20 16:50:25 +08:00
|
|
|
|
background-color: #020B31 !important;
|
2025-05-20 16:37:46 +08:00
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
2025-05-20 16:37:46 +08:00
|
|
|
|
.layui-btn {
|
|
|
|
|
|
background-color: #2a91d3;
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
2025-05-20 16:37:46 +08:00
|
|
|
|
.layui-btn-sm {
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
width: 75px;
|
|
|
|
|
|
border-radius: 9px;
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
|
|
|
|
|
.layui-form-select .layui-input {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
2025-05-20 16:37:46 +08:00
|
|
|
|
.clickable-text {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-05-20 16:50:25 +08:00
|
|
|
|
.layui-table-view {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
height: 80%;
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
|
|
|
|
|
.layui-table-fixed-r {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
right: -150px !important;
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
2025-05-20 16:37:46 +08:00
|
|
|
|
/* 弹出层标题栏关闭按钮的颜色设置为 #011F50 */
|
|
|
|
|
|
.layui-layer-setwin .layui-layer-close {
|
|
|
|
|
|
color: #c8c8c9 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
2025-05-20 16:37:46 +08:00
|
|
|
|
<body>
|
2025-05-20 16:50:25 +08:00
|
|
|
|
<div class="figure">
|
|
|
|
|
|
<div class="figures">
|
|
|
|
|
|
<div style="padding-top: 5%;">
|
|
|
|
|
|
<img src="../../img/home/name.png" style="margin-left: 20%; margin-top: -2%;">
|
|
|
|
|
|
<span style="font-size: 18px;color: #ffffff;" id="returnPage">自有班组</span>
|
|
|
|
|
|
</div>
|
2025-05-20 16:37:46 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-05-20 16:50:25 +08:00
|
|
|
|
<div class="time" id="nowTime"></div>
|
2025-05-20 16:37:46 +08:00
|
|
|
|
|
2025-05-20 16:50:25 +08:00
|
|
|
|
<div class="tou">
|
|
|
|
|
|
<div class="head centers">
|
|
|
|
|
|
<span class="head centers clickable-text">线路承载力看板</span>
|
|
|
|
|
|
</div>
|
2025-05-20 16:37:46 +08:00
|
|
|
|
|
2025-05-20 16:50:25 +08:00
|
|
|
|
<form class="layui-form" action="" onsubmit="return false">
|
|
|
|
|
|
<div style="height: 7%;width: 100%;margin-top: 2%;">
|
|
|
|
|
|
<div class="layui-input-inline" style="margin-left: 16px;">
|
|
|
|
|
|
<input type="text" id="keyWord" placeholder="请输入关键字" autocomplete="off" class="layui-input"
|
|
|
|
|
|
style="border-radius: 8px;">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="layui-input-inline" style="width: 162px;margin-left: 18px;">
|
|
|
|
|
|
<select id="teamTypeId" name="teamTypeId" class="form-control input-sm">
|
|
|
|
|
|
<option value="">班组类型</option>
|
|
|
|
|
|
<option value="1">基础</option>
|
|
|
|
|
|
<option value="2">组塔</option>
|
|
|
|
|
|
<option value="3">架线</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="layui-input-inline" style="width: 162px;margin-left: 18px;">
|
|
|
|
|
|
<select id="statusId" name="statusId" class="form-control input-sm">
|
|
|
|
|
|
<option value="">选择状态</option>
|
|
|
|
|
|
<option value="0">闲置中</option>
|
|
|
|
|
|
<option value="1">已投入</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="layui-input-inline" style="width: 70px;margin-top: 1px;margin-left: 16px;">
|
|
|
|
|
|
<button id="searchBt" class="layui-btn layui-btn-sm" style="border-radius: 9px;">
|
|
|
|
|
|
<i class="layui-icon layui-icon-search"></i> 查询
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="layui-input-inline" style="width: 70px;margin-top: 1px;margin-left: 16px;">
|
|
|
|
|
|
<button id="exportBt" class="layui-btn layui-btn-sm" style="border-radius: 9px;">
|
|
|
|
|
|
导出
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
2025-05-20 16:37:46 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-05-20 16:50:25 +08:00
|
|
|
|
</form>
|
|
|
|
|
|
<table id="demo" lay-filter="test" style="margin-top: 1%"></table>
|
|
|
|
|
|
</div>
|
2025-05-20 16:37:46 +08:00
|
|
|
|
</body>
|
2025-05-20 16:50:25 +08:00
|
|
|
|
|
2025-05-20 16:37:46 +08:00
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
2025-10-28 17:05:44 +08:00
|
|
|
|
<script type="text/javascript" src="../../js/libs/jquery.min.js"></script>
|
2025-05-20 16:37:46 +08:00
|
|
|
|
<script type="text/javascript" src="../../js/jq.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../js/my/permission.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../js/layui-v2.8.18/layui/layui.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../js/dict.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../js/publicJs.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../../js/select.js"></script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
let layer;
|
|
|
|
|
|
let table;
|
|
|
|
|
|
let laydate;
|
|
|
|
|
|
let form;
|
|
|
|
|
|
let oldKeyWord = "";
|
|
|
|
|
|
let teamStatus = "";
|
|
|
|
|
|
let subStatus = "";
|
|
|
|
|
|
const token = localStorage.getItem("token");
|
|
|
|
|
|
var ownType = localStorage.getItem("ownType");
|
|
|
|
|
|
let state = localStorage.getItem("state");
|
|
|
|
|
|
layui.use(['layer', 'table', 'form', 'laydate'], function () {
|
|
|
|
|
|
layer = layui.layer;
|
|
|
|
|
|
table = layui.table;
|
|
|
|
|
|
form = layui.form;
|
|
|
|
|
|
laydate = layui.laydate;
|
|
|
|
|
|
|
|
|
|
|
|
setInterval(function () {
|
|
|
|
|
|
$("#nowTime").text(getNowTime())
|
2025-05-20 16:50:25 +08:00
|
|
|
|
}, 1000);
|
|
|
|
|
|
if (state == '0') {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
statusSelect = document.getElementById("statusId");
|
|
|
|
|
|
statusSelect.value = 0;
|
2025-05-20 16:50:25 +08:00
|
|
|
|
} else if (state == '1') {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
statusSelect = document.getElementById("statusId");
|
|
|
|
|
|
statusSelect.value = 1;
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
if (ownType == "基础") {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
$("#teamTypeId").val("1");
|
|
|
|
|
|
$("#teamTypeId").find("option[value=" + 1 + "]").prop("selected", true);
|
2025-05-20 16:50:25 +08:00
|
|
|
|
} else if (ownType == "组塔") {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
$("#teamTypeId").val("2");
|
|
|
|
|
|
$("#teamTypeId").find("option[value=" + 2 + "]").prop("selected", true);
|
2025-05-20 16:50:25 +08:00
|
|
|
|
} else if (ownType == "架线") {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
$("#teamTypeId").val("3");
|
|
|
|
|
|
$("#teamTypeId").find("option[value=" + 3 + "]").prop("selected", true);
|
|
|
|
|
|
}
|
|
|
|
|
|
form.render();
|
|
|
|
|
|
//渲染表格
|
|
|
|
|
|
table.render({
|
|
|
|
|
|
elem: '#demo'
|
|
|
|
|
|
, url: ctxPath + '/dataDetail/getOwnTeamDetailMessage' //数据接口
|
|
|
|
|
|
|
|
|
|
|
|
, method: 'post' //方式默认是get
|
|
|
|
|
|
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
|
|
|
|
|
, where: {
|
2025-05-20 16:50:25 +08:00
|
|
|
|
subStatus: $("#teamTypeId").val(),
|
|
|
|
|
|
teamStatus: $("#statusId").val(),
|
2025-05-20 16:37:46 +08:00
|
|
|
|
} //post请求必须加where ,post请求需要的参数
|
|
|
|
|
|
, cellMinWidth: 80
|
|
|
|
|
|
|
|
|
|
|
|
, cols: [[ //表头
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'number', width: 80, title: '序号', align: 'center', type: 'numbers'
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
, {
|
|
|
|
|
|
field: 'teamType', width: 300, align: 'center', title: '工序', templet: d => {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
let text = "";
|
|
|
|
|
|
if (d.teamType === "1") {
|
|
|
|
|
|
text = "基础";
|
|
|
|
|
|
} else if (d.teamType === "2") {
|
|
|
|
|
|
text = "组塔";
|
|
|
|
|
|
} else if (d.teamType === "3") {
|
|
|
|
|
|
text = "架线";
|
|
|
|
|
|
}
|
|
|
|
|
|
return text;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
, { field: 'proTeamName', width: 200, align: 'center', title: '班组' }
|
|
|
|
|
|
, { field: 'standardTeamType', align: 'center', title: '标准班组类型' }
|
|
|
|
|
|
, {
|
|
|
|
|
|
field: 'teamNum', align: 'center', title: '班组人数', templet: d => {
|
|
|
|
|
|
return text = "<span style='color: blue;cursor:pointer;' onclick='openTeamForm(\"" + d.id + "\",\"" + d.standardTeamTypeId + "\",\"" + d.teamType + "\")'>" + d.teamNum + "</span>";
|
2025-05-20 16:37:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-05-20 16:50:25 +08:00
|
|
|
|
, { field: 'branchName', title: '分配分公司', align: 'center' }
|
|
|
|
|
|
, { field: 'proName', width: 300, align: 'center', title: '所在项目' }
|
|
|
|
|
|
, {
|
|
|
|
|
|
field: 'teamStatus', width: 300, align: 'center', title: '状态', templet: d => {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
let text = "";
|
|
|
|
|
|
if (d.teamStatus === "1") {
|
|
|
|
|
|
text = "<span class='layui-badge-dot layui-bg-green'></span>已投入";
|
|
|
|
|
|
} else if (d.teamStatus === "0") {
|
|
|
|
|
|
text = "<span class='layui-badge-dot'></span>闲置中";
|
|
|
|
|
|
}
|
|
|
|
|
|
return text;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
]]
|
|
|
|
|
|
, id: 'menuTable'
|
|
|
|
|
|
, page: true //开启分页
|
|
|
|
|
|
, loading: true //数据加载中。。。
|
|
|
|
|
|
, limits: [5, 10, 20] //一页选择显示3,5或10条数据
|
|
|
|
|
|
, limit: 10 //一页显示5条数据
|
|
|
|
|
|
, response: {
|
|
|
|
|
|
statusCode: 200 //规定成功的状态码,默认:0
|
|
|
|
|
|
}, parseData: function (res) { //将原始数据解析成 table 组件所规定的数据,res为从url中get到的数据
|
|
|
|
|
|
// alert(JSON.stringify(res));
|
|
|
|
|
|
let result;
|
|
|
|
|
|
if (res.data !== '' && res.data != null && res.data !== "null") {
|
|
|
|
|
|
if (this.page.curr) {
|
|
|
|
|
|
result = res.data.slice(this.limit * (this.page.curr - 1), this.limit * this.page.curr);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
result = res.data.slice(0, this.limit);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
|
|
|
"code": res.code, //解析接口状态
|
|
|
|
|
|
"msg": res.msg, //解析提示文本
|
|
|
|
|
|
"count": res.count, //解析数据长度
|
|
|
|
|
|
"data": result, //解析数据列表
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
toolbar: "#toolbar"
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
laydate.render({
|
|
|
|
|
|
elem: '#time',
|
|
|
|
|
|
range: true,
|
|
|
|
|
|
value: getNowDay() + " - " + getNowDay() // 设置默认值为当天
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
var userStatus = showDictSelect("status", "userStatus", true);
|
|
|
|
|
|
|
|
|
|
|
|
var pers = checkPermission();
|
|
|
|
|
|
|
|
|
|
|
|
var example;
|
|
|
|
|
|
$("#returnPage").click(function () {
|
|
|
|
|
|
window.history.go(-1);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2025-05-20 16:50:25 +08:00
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
$(".clickable-text").on("click", function () {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
window.location.href = "./home.html";
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#searchBt").click(function () {
|
|
|
|
|
|
oldKeyWord = $("#keyWord").val();
|
|
|
|
|
|
subStatus = $("#teamTypeId").val();
|
|
|
|
|
|
teamStatus = $("#statusId").val();
|
|
|
|
|
|
table.reload('menuTable', {
|
|
|
|
|
|
url: ctxPath + '/dataDetail/getOwnTeamDetailMessage'
|
|
|
|
|
|
, method: 'post' //方式默认是get
|
|
|
|
|
|
, page: true
|
|
|
|
|
|
, where: {
|
|
|
|
|
|
keyWord: oldKeyWord,
|
|
|
|
|
|
subStatus: subStatus,
|
|
|
|
|
|
teamStatus: teamStatus,
|
|
|
|
|
|
} //设定异步数据接口的额外参数
|
|
|
|
|
|
});
|
|
|
|
|
|
$("#keyWord").val(oldKeyWord);
|
|
|
|
|
|
$("#teamTypeId").val(subStatus);
|
|
|
|
|
|
$("#statusId").val(teamStatus);
|
|
|
|
|
|
});
|
2025-05-20 16:50:25 +08:00
|
|
|
|
$("#exportBt").click(function () {
|
2025-05-20 16:37:46 +08:00
|
|
|
|
keyWord = $("#keyWord").val();
|
|
|
|
|
|
subStatus = $("#teamTypeId").val();
|
|
|
|
|
|
teamStatus = $("#statusId").val();
|
2025-05-20 16:50:25 +08:00
|
|
|
|
window.location.href = pagesPath + "/dataDetail/OwnTeamExportPhysicalCheckResults?"
|
|
|
|
|
|
+ "keyWord=" + keyWord
|
2025-05-20 16:37:46 +08:00
|
|
|
|
+ "&teamStatus=" + teamStatus
|
|
|
|
|
|
+ "&subStatus=" + subStatus
|
|
|
|
|
|
+ "&type=" + '1'
|
|
|
|
|
|
+ "&token=" + token; //下载文件
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2025-05-20 16:50:25 +08:00
|
|
|
|
function openTeamForm(id, standardTeamTypeId, teamType) {
|
|
|
|
|
|
localStorage.setItem('id', id);
|
|
|
|
|
|
localStorage.setItem('resourceId', standardTeamTypeId);
|
|
|
|
|
|
localStorage.setItem('teamTypeId', teamType);
|
|
|
|
|
|
layerOpenFormForSencond("分包班组成员", "./z_ownTeam_populationList.html");
|
2025-05-20 16:37:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function layerOpenFormForSencond(title, contentUrl) {
|
|
|
|
|
|
var index = layer.open({
|
|
|
|
|
|
type: 2,
|
|
|
|
|
|
title: false,
|
|
|
|
|
|
content: contentUrl,
|
2025-05-20 16:50:25 +08:00
|
|
|
|
area: ['95%', '95%'],
|
2025-05-20 16:37:46 +08:00
|
|
|
|
maxmin: false,
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function getNowDay() {
|
|
|
|
|
|
var time = new Date();
|
|
|
|
|
|
var year = time.getFullYear();
|
|
|
|
|
|
var month = time.getMonth() + 1 >= 10 ? time.getMonth() + 1 : '0' + (time.getMonth() + 1);
|
|
|
|
|
|
var day = time.getDate() >= 10 ? time.getDate() : '0' + time.getDate();
|
|
|
|
|
|
return year + "-" + month + "-" + day;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|