工程进度分析页面以及接口调试
This commit is contained in:
parent
98974bd9e9
commit
e2208da2ac
|
|
@ -35,7 +35,7 @@ function changeData(that, type) {
|
||||||
src = "engineeringSafetyAnalysis.html";
|
src = "engineeringSafetyAnalysis.html";
|
||||||
} else if (type == 3) {
|
} else if (type == 3) {
|
||||||
// 工程进度分析
|
// 工程进度分析
|
||||||
src = "";
|
src = "projectProgress.html";
|
||||||
} else if (type == 4) {
|
} else if (type == 4) {
|
||||||
// 资源利用率分析
|
// 资源利用率分析
|
||||||
src = "";
|
src = "";
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,154 @@
|
||||||
|
let table, layer, form;
|
||||||
|
layui.use(["layer", "table", "form"], function () {
|
||||||
|
layer = layui.layer;
|
||||||
|
table = layui.table;
|
||||||
|
form = layui.form;
|
||||||
|
// 响应成功后的拦截器
|
||||||
|
$.ajaxSetup({
|
||||||
|
beforeSend: function (xhr, options) {
|
||||||
|
var originalSuccess = options.success;
|
||||||
|
options.success = function (data, textStatus, jqXhr) {
|
||||||
|
data = modifyResponseData(data);
|
||||||
|
// success(data,textStatus, jqXhr);
|
||||||
|
originalSuccess.apply(this, arguments);
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
initTable(1, parent.$("#bidPro").val());
|
||||||
|
});
|
||||||
|
|
||||||
|
/* 切换数据 */
|
||||||
|
function changeData(that, type) {
|
||||||
|
const bidCode = parent.$("#bidPro").val();
|
||||||
|
$(".ul-box li").each(function () {
|
||||||
|
if ($(this).hasClass("check")) {
|
||||||
|
$(this).removeClass("check").addClass("nocheck");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
var tableElem = $("#demo2").parents(".layui-table-view");
|
||||||
|
tableElem.remove();
|
||||||
|
$(that).removeClass("nocheck").addClass("check");
|
||||||
|
if (type === 1 || type === 2 || type === 3 || type === 6 || type === 12) {
|
||||||
|
initTable(type, bidCode);
|
||||||
|
$("#right-table-box").removeAttr("style");
|
||||||
|
$("#no-data-box").css({ display: "none" });
|
||||||
|
$("#right-box").css({ display: "none" });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function initTable(type, bidCode) {
|
||||||
|
const url = commonUrl + "screen/largeScreen/tb_project_progress_new/list";
|
||||||
|
table.render({
|
||||||
|
elem: "#demo2",
|
||||||
|
url: url,
|
||||||
|
skin: "line",
|
||||||
|
page: true,
|
||||||
|
height: "full-100",
|
||||||
|
headers: {
|
||||||
|
decrypt: "decrypt",
|
||||||
|
Authorization: token,
|
||||||
|
},
|
||||||
|
where: {
|
||||||
|
bidCode: bidCode,
|
||||||
|
type: type,
|
||||||
|
},
|
||||||
|
response: {
|
||||||
|
statusName: "code", // 规定数据状态的字段名称,默认:code
|
||||||
|
statusCode: 200, // 规定成功的状态码,默认:0
|
||||||
|
countName: "count", // 规定数据总数的字段名称,默认:count
|
||||||
|
dataName: "rows", // 规定数据列表的字段名称,默认:data
|
||||||
|
},
|
||||||
|
cols: [setCols(type)],
|
||||||
|
initComplete: function () {
|
||||||
|
// 在表格渲染完成后,重新渲染序号列
|
||||||
|
var that = this.elem.next();
|
||||||
|
var tool = that
|
||||||
|
.children(".layui-table-box")
|
||||||
|
.children(".layui-table-fixed")
|
||||||
|
.children(".layui-table-body")
|
||||||
|
.children(".layui-table");
|
||||||
|
tool.find("tr").each(function (index, item) {
|
||||||
|
$(this)
|
||||||
|
.find('td[data-field="LAY_TABLE_INDEX"]')
|
||||||
|
.text(index + 1);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
done: function (res, curr, count, origin) {
|
||||||
|
// console.log(res);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
function setCols(type) {
|
||||||
|
if (type === 1) {
|
||||||
|
// 工程质量分析
|
||||||
|
return [
|
||||||
|
{ type: "numbers", title: "序号", width: "10%" }, // 添加序号列
|
||||||
|
{
|
||||||
|
field: "projectName",
|
||||||
|
title: "项目名称",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "taskName",
|
||||||
|
title: "作业任务名称",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "taskCode",
|
||||||
|
title: "任务编号",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "planStartTime",
|
||||||
|
title: "计划开始时间",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "planEndTime",
|
||||||
|
title: "计划完成时间",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "actualStartTime",
|
||||||
|
title: "实际开始时间",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "actualEndTime",
|
||||||
|
title: "实际完成时间",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "processDiff",
|
||||||
|
title: "进度偏差",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "completeEffort",
|
||||||
|
title: "已完成工程量",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "totalEffort",
|
||||||
|
title: "总工程量",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "delayActor",
|
||||||
|
title: "延误因素分析",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "resourceMatchStatus",
|
||||||
|
title: "资源匹配状态",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "keyPathFlag",
|
||||||
|
title: "关键路径任务标识",
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
<script src="../../api/commonRequest.js"></script>
|
<script src="../../api/commonRequest.js"></script>
|
||||||
<!-- <script src="../../js/publics/shuiYin.js"></script> -->
|
<!-- <script src="../../js/publics/shuiYin.js"></script> -->
|
||||||
<script src="../../plugin/watermark.js"></script>
|
<script src="../../plugin/watermark.js"></script>
|
||||||
<title>工程质量分析</title>
|
<title>工程管理分析</title>
|
||||||
</head>
|
</head>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
let text = nickName + "\r\n" + roleName + "\r\n" + '建设部';
|
let text = nickName + "\r\n" + roleName + "\r\n" + '建设部';
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,45 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="stylesheet" href="../../css/font.css">
|
||||||
|
<link rel="stylesheet" href="../../plugin/layui-v2.9.7/layui/css/layui.css">
|
||||||
|
<link rel="stylesheet" href="../../css/dataAnalysis/dataAnalysis.css">
|
||||||
|
<link rel="stylesheet" href="../../css/shuiYin/shuiYin.css">
|
||||||
|
<link rel="stylesheet" href="../../css/coreTable.css" />
|
||||||
|
<link rel="stylesheet" href="../../css/accessMge/accessMge.css">
|
||||||
|
<script src="../../js/publics/sm4.js" type="text/javascript"></script>
|
||||||
|
<script src="../../js/publics/jquery-3.6.0.min.js" type="text/javascript"></script>
|
||||||
|
<script src="../../js/publics/public.js"></script>
|
||||||
|
<script src="../../plugin/scroll/jquery.nicescroll.min.js"></script>
|
||||||
|
<!--<!– <script src="../../js/publics/echarts.js"></script>–>-->
|
||||||
|
<script src="../../plugin/layui-v2.9.7/layui/layui.js"></script>
|
||||||
|
<script src="../../js/publics/aescbc.js"></script>
|
||||||
|
<script src="../../js/publics/sm3.js"></script>
|
||||||
|
<script src="../../api/commonRequest.js"></script>
|
||||||
|
<!-- <script src="../../js/publics/shuiYin.js"></script> -->
|
||||||
|
<script src="../../plugin/watermark.js"></script>
|
||||||
|
<title>工程进度分析</title>
|
||||||
|
</head>
|
||||||
|
<script type="text/javascript">
|
||||||
|
let text = nickName + "\r\n" + roleName + "\r\n" + '建设部';
|
||||||
|
// watermark.load({ watermark_txt: text });
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<table id="demo2" lay-filter="test"></table>
|
||||||
|
</body>
|
||||||
|
<style>
|
||||||
|
.layui-table-init {
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#demo2 {
|
||||||
|
margin-top: 26px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script src="../../js/pages/newDataAnalysis/projectProgress.js" type="text/javascript"></script>
|
||||||
|
|
||||||
|
</html>
|
||||||
Loading…
Reference in New Issue