From 9f024dc848670f41cc96114b0954faf0645bacf0 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 12 九月 2022 16:13:51 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/css/style3.css      |    5 +++--
 src/main/webapp/static/css/style.css       |    2 +-
 src/main/webapp/views/index_datashow.html  |    1 +
 src/main/webapp/views/index_datashow3.html |    2 +-
 src/main/webapp/static/js/tableData3.js    |   42 +++++++++++++++++++++++++++++++++++++++++-
 5 files changed, 47 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/static/css/style.css b/src/main/webapp/static/css/style.css
index 50899d9..1aa4d8c 100644
--- a/src/main/webapp/static/css/style.css
+++ b/src/main/webapp/static/css/style.css
@@ -77,7 +77,7 @@
 	color: #d9d9d9;
 	margin-left: 1%;
 	margin-right: 1%;
-	margin-bottom: 10%;
+	/*margin-bottom: 10%;*/
 }
 #main-tab,th,td{
 	border: 1px solid #fff;
diff --git a/src/main/webapp/static/css/style3.css b/src/main/webapp/static/css/style3.css
index 5e3ca21..d8a8dae 100644
--- a/src/main/webapp/static/css/style3.css
+++ b/src/main/webapp/static/css/style3.css
@@ -8,13 +8,14 @@
 }
 body{
 	background-color: #2e4e7e;
-	height: 1080px;
+	height: 500px;
 	width: 100%;
 }
 /* 鐢诲竷 */
 #root {
     /*height: 100%;*/
     width: 100%;
+	height: 500px;
 	/*margin: 0;*/
 	/*background-color: !* #2C3E50 *! #2e4e7e;*/
 	position: relative;
@@ -78,7 +79,7 @@
 	color: #d9d9d9;
 	margin-left: 1%;
 	margin-right: 1%;
-	margin-bottom: 10%;
+	/*margin-bottom: 10%;*/
 	/*min-height: 1080px;*/
 	/*height: auto !important;*/
 	/*height: 1080px;*/
diff --git a/src/main/webapp/static/js/tableData3.js b/src/main/webapp/static/js/tableData3.js
index cb694e3..b6f0506 100644
--- a/src/main/webapp/static/js/tableData3.js
+++ b/src/main/webapp/static/js/tableData3.js
@@ -82,10 +82,50 @@
         data: {},
         success: function (res) {
             if (res.code == 200) {
-                console.log(res)
                 data = res.data
+                switch (data.length) {
+                    case 0:
+                        $("#emptyDiv").attr("style", "height:608px")
+                        break;
+                    case 1:
+                        $("#emptyDiv").attr("style", "height:557px")
+                        break;
+                    case 2:
+                        $("#emptyDiv").attr("style", "height:506px")
+                        break;
+                    case 3:
+                        $("#emptyDiv").attr("style", "height:455px")
+                        break;
+                    case 4:
+                        $("#emptyDiv").attr("style", "height:404px")
+                        break;
+                    case 5:
+                        $("#emptyDiv").attr("style", "height:353px")
+                        break;
+                    case 6:
+                        $("#emptyDiv").attr("style", "height:302px")
+                        break;
+                    case 7:
+                        $("#emptyDiv").attr("style", "height:251px")
+                        break;
+                    case 8:
+                        $("#emptyDiv").attr("style", "height:200px")
+                        break;
+                    case 9:
+                        $("#emptyDiv").attr("style", "height:150px")
+                        break;
+                    case 10:
+                        $("#emptyDiv").attr("style", "height:100px")
+                        break;
+                    case 11:
+                        $("#emptyDiv").attr("style", "height:49px")
+                        break;
+                    default:
+                        $("#emptyDiv").attr("style", "height:80px")
+                }
                 // 鍒ゆ柇鏃堕棿鏄惁鏈塶ull  鏈塶ull鐨勬敼涓� ""
                 for (var i = 0; i < data.length; i++) {
+                    console.log(data.length)
                     var dataNode = data[i].projectPlans
                     for (var j = 0; j < dataNode.length; j++) {
                         var dataNull = dataNode[j]
diff --git a/src/main/webapp/views/index_datashow.html b/src/main/webapp/views/index_datashow.html
index 1713975..3c278df 100644
--- a/src/main/webapp/views/index_datashow.html
+++ b/src/main/webapp/views/index_datashow.html
@@ -44,6 +44,7 @@
 
 				</table>
 			</div>
+			<div style="width: 100%;height: 100px"></div>
 		</div>
 
     </div>
diff --git a/src/main/webapp/views/index_datashow3.html b/src/main/webapp/views/index_datashow3.html
index cb841ce..1896796 100644
--- a/src/main/webapp/views/index_datashow3.html
+++ b/src/main/webapp/views/index_datashow3.html
@@ -41,7 +41,7 @@
 				<!-- 娉ㄦ剰浜嬮」 -->
 				<tr><th>娉ㄦ剰浜嬮」</th></tr>
 			</table>
-
+		<div id="emptyDiv" style="width: 100%;height: 507px"></div>
 		</div>
     </div>
 

--
Gitblit v1.9.1