From 64a3cf1a59eff2e93f5340f11927098b3a04be50 Mon Sep 17 00:00:00 2001 From: whycq <whycq> Date: 星期一, 28 三月 2022 09:36:09 +0800 Subject: [PATCH] # ycq --- src/main/webapp/static/js/tableData.js | 44 ++++++++++++++++++++++++++++++-------------- src/main/webapp/static/css/style.css | 10 +++++++++- src/main/webapp/views/index_datashow.html | 5 ++++- 3 files changed, 43 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/static/css/style.css b/src/main/webapp/static/css/style.css index 0fc5e0f..36f1a0c 100644 --- a/src/main/webapp/static/css/style.css +++ b/src/main/webapp/static/css/style.css @@ -51,7 +51,15 @@ font-size: 20px; } - +#proType { + margin-top: 0%; + width: 50%; + color: #d9d9d9; + align: center; + margin-left: 25%; + font-size: 10px; + font-weight: 100; +} #main-tab { diff --git a/src/main/webapp/static/js/tableData.js b/src/main/webapp/static/js/tableData.js index f1f5fc2..8421657 100644 --- a/src/main/webapp/static/js/tableData.js +++ b/src/main/webapp/static/js/tableData.js @@ -1,14 +1,37 @@ setTimeout(function(){ getTheaddData() getThbodyData() - getWang() + getType() },0) setInterval(function(){ getThbodyData() },5000) + + var getType = function () { + $.ajax({ + url:baseurl+'/pms/projectPlan/dataSummary', + type:'GET', + data:{}, + success:function(res){ + if (res.code ===200 ) { + var str = '<tr>' + +'<th>' + '椤圭洰鎬绘暟' + '</th>' + '<th>'+ res.data.totalQuantity +'</th>' + +'<th>' + '闆嗘垚椤圭洰' + '</th>' + '<th>'+ res.data.intoSum +'</th>' + +'<th>' + '闈為泦鎴愰」鐩暟' + '</th>' + '<th>'+ res.data.wrongInto +'</th>' + +'<th>' + '宸查獙鏀堕」鐩暟' + '</th>' + '<th>'+ res.data.inspected +'</th>' + +'<th>' + '鏈獙鏀堕」鐩暟' + '</th>' + '<th>'+ res.data.wrongInspected +'</th>' + +'<th>' + '宸插畬宸ユ湭楠屾敹鏁�' + '</th>' + '<th>'+ res.data.finished +'</th>' + $("#type-header").append(str) + } + } + }) + } + + +/****************************************************************************************************************************************************************************/ + - - var proData = ["椤圭洰鍚嶇О","鍞墠閲戦鏍哥畻","寮�濮嬫椂闂�","缁撴潫鏃堕棿", + var proData = ["椤圭洰鍚嶇О","椤圭洰绫诲瀷","鍞墠閲戦鏍哥畻","寮�濮嬫椂闂�","缁撴潫鏃堕棿", "鍚堢害绛捐","鍥鹃潰浼氱","BOM璁捐/浜岀骇BOM涓嬪彂", "鏉愭枡閲囪喘","鐢熶骇鍒朵綔","鍐呴儴瀹夎璋冩暣锛堢爺鍙戠墿鏂欙級","杩涘満瀹夎","绋嬪簭璋冭瘯","绯荤粺鑱旇皟","涓婄嚎杩愯","椤圭洰楠屾敹","杩愯垂","瀹夎璐�"] var getTheaddData = function(){ @@ -39,7 +62,7 @@ // }, // }) } - + /*****************************************************************************************************************************************************************************/ var getThbodyData = function(){ $.ajax({ @@ -49,6 +72,7 @@ data:{}, success:function(res){ if(res.code==200){ + console.log(res) data=res.data // 鍒ゆ柇鏃堕棿鏄惁鏈塶ull 鏈塶ull鐨勬敼涓� "" for(var i = 0;i<data.length;i++){ @@ -80,6 +104,7 @@ } var str2 = '<tr id="row'+i+'" class="row">' +'<th class="projects">'+data[i].id+'</th>' + +'<th class="projects">'+data[i].type+'</th>' +'<td class="nor-mal">'+data[i].presaleAmt+'</td>' +'<td class="nor-mal">'+data[i].startDay.substring(0,10)+'</td>' +'<td class="nor-mal">'+data[i].endDay.substring(0,10)+'</td>' @@ -152,15 +177,6 @@ } /*****************************************************************************************************************************************************************************/ - function getWang() { - $.ajax({ - url:baseurl+'/pms/projectPlan/dataSummary', - type:'GET', - data:{}, - success:function(res){ - console.log(res) - } - }) - } + diff --git a/src/main/webapp/views/index_datashow.html b/src/main/webapp/views/index_datashow.html index 5694e38..7cbb87c 100644 --- a/src/main/webapp/views/index_datashow.html +++ b/src/main/webapp/views/index_datashow.html @@ -16,12 +16,15 @@ <!-- 鏍囬 --> <div id="top-tab"> <h1>椤圭洰杩涘害琛�</h1> - <div id="logo-bar"></div> + <img src="../static/image/logo-bar.png" alt="logo"> <div id="showTime"> </div> </div> + <table id="proType" cellspacing="0" cellpadding="0"> + <thead id="type-header"></thead> + </table> <table id="main-tab" cellspacing="0" cellpadding="0"> <!-- 琛ㄥご --> <thead id="tab-header"> -- Gitblit v1.9.1