ws 1 жил өмнө
parent
commit
626665ef29

+ 1 - 1
nngkxxdp/src/main/resources/static/zdjc/pc_sy.html

@@ -463,7 +463,7 @@
                             }
 
                             html += '<div class="text_one" onclick="openWindow(\'' + data[i]['_source'].id + '\')">'
-                                + '<p>' + title + '<span style="margin-left:30px;font-size: 14px;color: #1abdbd; border: 1px solid #1abdbd;">' + tag + '</span>' + '</p>'
+                                + '<p>' + title + '<span style="margin-left:30px;font-size: 14px;color: #1abdbd; border: 1px solid #1abdbd;display: inline-block;">' + tag + '</span>' + '</p>'
                                 + '<p>'
                                 + tcontent
                                 + '</p>'

+ 14 - 5
nngkxxdp/src/main/resources/static/zdjc/symobile.html

@@ -72,7 +72,7 @@
 			text-overflow: ellipsis;
 			cursor: pointer;
 			white-space: nowrap;
-			text-align: center;
+			text-align: left;
 			padding: 3px;
 			margin-top: 5px;
 		}
@@ -80,14 +80,16 @@
 		.search-item-active {
 			color: #1abdbd;
 			border: 1px solid #1abdbd;
+			text-align: center;
 		}
 
 		.search-h2 {
 			font-size: 25px;
 			height: 60px;
 			line-height: 60px;
-			padding-left: 3.5rem;
+			/* padding-left: 3.5rem; */
 			color: blue;
+			text-align: right;
 		}
 
 		.search-h2 i {
@@ -281,11 +283,11 @@
 
 	<script type="text/javascript">
 
-		layui.use(['form', 'jquery'], function () {
+		layui.use(['form', 'jquery', 'layer', 'element'], function () {
 			$ = layui.jquery,
 				form = layui.form,
-				layer = layui.layer;
-
+				layer = layui.layer,
+				element = layui.element;
 			// $('#head').load("header.html");
 			// $('#foot').load("foot.html");
 
@@ -357,6 +359,7 @@
 			initDetail('/elk/deptAll');
 			initPage();
 			hotSearch();
+			element.render();
 		});
 
 		var isDept = true
@@ -507,6 +510,12 @@
 						} else {
 							htmlHead = '<div class="search-item allItem" title="全部" onclick="searchEventByDept(this)">全部</div>';
 						}
+						if ((data.length + 1) % 3 != 0) {
+							const zwf = 3 - ((data.length + 1) % 3)
+							for (let i = 0; i < zwf; i++) {
+								html += '<div class="search-item"></div>'
+							}
+						}
 						$('#searchDept').empty().append(htmlHead + html);
 					}
 				},