From a0c4db27166db3c4ae492e7b52b1f7c672818057 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 17 Jun 2024 13:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/index/index.css | 37 ++++++++++++++++++++++++++------- js/pages/accessMge/accessMge.js | 4 ++-- js/pages/index/index.js | 5 +++-- js/pages/index/indexAjax.js | 33 +++++++++++++++++++++++++++++ js/pages/index/indexEcharts.js | 4 ++-- pages/index/index.html | 31 +++++++++++++++++++++++++-- 6 files changed, 98 insertions(+), 16 deletions(-) diff --git a/css/index/index.css b/css/index/index.css index 04dcea8..73576a8 100644 --- a/css/index/index.css +++ b/css/index/index.css @@ -71,7 +71,7 @@ body { #real-time-monitor { width: 100%; - height: 22.7%; + height: 32.7%; background: url("../../img/index/index_hj.png") no-repeat 0 0 / 100% 100%; background-position: center center !important; justify-content: space-between; @@ -80,7 +80,7 @@ body { .monitor-data { width: 16%; height: 60%; - margin-top: 3%; + margin-top: 6%; flex-direction: column; justify-content: space-around; } @@ -145,14 +145,33 @@ body { #pro-risk { width: 100%; - height: 29.6%; + height: 40.6%; background: url("../../img/index/pro_risk.png") no-repeat 0 0 / 100% 100%; background-position: center center !important; } +#pro-risk table { + width: 96%; + height: calc(100% - 100px); + margin: 0 2%; + margin-top: 66px; + table-layout: fixed; + text-align: center; + border-collapse: collapse; + border-spacing: 0; + box-sizing: border-box; +} + +#pro-risk table tr td { + width: 16%; + height: 50px; + font-size: 16px; + border: 1px solid #34b9aa; +} + #pro-progress { width: 100%; - height: 14.2%; + height: 22.2%; background: url("../../img/index/pro_progress.png") no-repeat 0 0 / 100% 100%; background-position: center center !important; justify-content: space-evenly; @@ -163,21 +182,23 @@ body { height: 58px; background: url("../../img/index/bid_progress.png") no-repeat 0 0 / 100% 100%; background-position: center center !important; - margin-top: 2%; + margin-top: 5%; flex-direction: column; letter-spacing: 1px; } + #bidProgressBox p:nth-child(2), #signProgressBox p:nth-child(2), -#proProgressBox p:nth-child(2){ +#proProgressBox p:nth-child(2) { font-size: 20px; } + #signProgressBox { width: 254px; height: 58px; background: url("../../img/index/sign_progress.png") no-repeat 0 0 / 100% 100%; background-position: center center !important; - margin-top: 2%; + margin-top: 5%; flex-direction: column; letter-spacing: 1px; } @@ -187,7 +208,7 @@ body { height: 58px; background: url("../../img/index/pro_progress2.png") no-repeat 0 0 / 100% 100%; background-position: center center !important; - margin-top: 2%; + margin-top: 5%; flex-direction: column; letter-spacing: 1px; } diff --git a/js/pages/accessMge/accessMge.js b/js/pages/accessMge/accessMge.js index 45c6abb..bf732ff 100644 --- a/js/pages/accessMge/accessMge.js +++ b/js/pages/accessMge/accessMge.js @@ -450,8 +450,8 @@ function getPerStatisticsList(bidCode) { cols: [[ { type: 'numbers', title: '序号', width: '10%' }, // 添加序号列 { field: 'proName', title: '工程名称', align: 'center', width: '25%' }, - { field: 'userName', title: '姓名', align: 'center', width: '15%' }, - { field: 'phone', title: '电话', align: 'center', width: '10%' }, + { field: 'userName', title: '姓名', align: 'center', width: '25%' }, + // { field: 'phone', title: '电话', align: 'center', width: '10%' }, { field: 'accessType', title: '状态', align: 'center', width: '10%' }, { field: 'accesssTime', title: '时间', align: 'center', width: '30%' } ]], diff --git a/js/pages/index/index.js b/js/pages/index/index.js index 0465449..c117fbd 100644 --- a/js/pages/index/index.js +++ b/js/pages/index/index.js @@ -16,10 +16,11 @@ function loadData() { let montageParam = aqEnnable ? encryptCBC(paramData) : ' &' + encryptCBC(paramData); loadProBrief(montageParam); loadRealMonitor(montageParam); - loadProRisk(montageParam); - loadProCost(montageParam); + // loadProRisk(montageParam); + // loadProCost(montageParam); // loadProProgress(montageParam); loadProSchedule(montageParam); + loadProRisk2(montageParam); } diff --git a/js/pages/index/indexAjax.js b/js/pages/index/indexAjax.js index 193b3fb..efcfe01 100644 --- a/js/pages/index/indexAjax.js +++ b/js/pages/index/indexAjax.js @@ -191,4 +191,37 @@ function loadProSchedule(montageParam) { $('#proProgress').html(data.proProgress); } } +} + +/* 项目风险 */ +function loadProRisk2(montageParam) { + const url = commonUrl + 'screen/largeScreen/xcIndex/getProRiskNum?params=' + montageParam; + ajaxRequestGet(url, "GET", true, function () { + }, function (result) { + console.log(result); + if (result.code === 200) { + setData(result.data); + } else if (result.code === 500) { + console.error('项目风险:' + result.msg); + setData(null); + } else if (result.code === 401) { + loginout(1); + } + }, function (xhr, status, error) { + errorFn(xhr, status, error) + }, aqEnnable); + function setData(data) { + if (data) { + $('#twoRiskNum').html(data.twoRiskNum); + $('#threeRiskNum').html(data.threeRiskNum); + $('#fourRiskNum').html(data.fourRiskNum); + $('#fiveRiskNum').html(data.fiveRiskNum); + $('#totalRiskNum').html(data.twoRiskNum + data.threeRiskNum + data.fourRiskNum + data.fiveRiskNum); + $('#twoClassNum').html(data.twoClassNum); + $('#threeClassNum').html(data.threeClassNum); + $('#fourClassNum').html(data.fourClassNum); + $('#fiveClassNum').html(data.fiveClassNum); + $('#totalClassNum').html(data.twoClassNum + data.threeClassNum + data.fourClassNum + data.fiveClassNum); + } + } } \ No newline at end of file diff --git a/js/pages/index/indexEcharts.js b/js/pages/index/indexEcharts.js index a74c9eb..cf2268f 100644 --- a/js/pages/index/indexEcharts.js +++ b/js/pages/index/indexEcharts.js @@ -1,6 +1,6 @@ -let myChart = echarts.init(document.getElementById('pro-risk')); +// let myChart = echarts.init(document.getElementById('pro-risk')); // let myChart2 = echarts.init(document.getElementById('pro-progress-echarts')); -let myChart3 = echarts.init(document.getElementById('pro-cost')); +// let myChart3 = echarts.init(document.getElementById('pro-cost')); /* 项目风险 */ function initEchartsOne(day, week, warn) { diff --git a/pages/index/index.html b/pages/index/index.html index baef286..06d0320 100644 --- a/pages/index/index.html +++ b/pages/index/index.html @@ -65,7 +65,34 @@
-
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
名称\风险等级二级三级四级五级总数
周风险00000
站班会00000
+

标段实际进度

@@ -107,7 +134,7 @@

计划结束

-->
-
+