Yansen 2 년 전
부모
커밋
ec5d94dc74

+ 1
- 1
resources/static/css/common.css 파일 보기

@@ -415,7 +415,7 @@
415 415
 .dashboard-page .act-list .row {
416 416
   width: 100%;
417 417
   height: calc(35vh - 64px);
418
-  padding: 0 80px;
418
+  padding: 0 60px;
419 419
 }
420 420
 .dashboard-page .act-list .row + .row {
421 421
   margin-top: 64px;

+ 5
- 5
resources/static/css/public.css 파일 보기

@@ -26,7 +26,7 @@ img{border: 0;}
26 26
 .left1{position:absolute;z-index:98;top:98px;bottom:40px;left:0;}
27 27
 .layout-content{position:absolute;z-index:97;top:74px;bottom:40px;left:240px;right:0;} */
28 28
 .header{width:100%; height: 94px;}
29
-.layout{ display: flex; position: relative; min-height: calc(100% - 94px);}
29
+.layout{ display: flex; position: relative; min-height: calc(100% - 94px); height: calc(100% - 94px);}
30 30
 .layout .left1 { flex: none; height: 100%; }
31 31
 .layout .layout-content { flex: 1; }
32 32
 
@@ -71,8 +71,8 @@ img{border: 0;}
71 71
 
72 72
 
73 73
 /*左侧*/
74
-.left1{background:#fff;width: 240px;-moz-box-shadow:2px 0 3px rgba(0,0,0,.3);-webkit-box-shadow:2px 0 3px rgba(0,0,0,.3);box-shadow:2px 0 3px rgba(0,0,0,.3);}
75
-.leftNav{top:10px;right:0;bottom:10px;left:0;overflow-y: auto;padding:10px 0;}
74
+.left1{background:var(--main-bg);; color: #fff; width: 240px;-moz-box-shadow:2px 0 3px rgba(0,0,0,.3);-webkit-box-shadow:2px 0 3px rgba(0,0,0,.3);box-shadow:2px 0 3px rgba(0,0,0,.3);}
75
+.leftNav{top:10px;right:0;bottom:10px;left:0;overflow-y: auto;padding:10px 0;height: 100%;}
76 76
 .leftNav::-webkit-scrollbar {display:none}
77 77
 
78 78
 .tree-menu{border:0;border-radius:0;}
@@ -101,8 +101,8 @@ img{border: 0;}
101 101
 .tree-menu li.open > a .icon{background: transparent; color:#4c88fe;opacity: 1;}
102 102
 
103 103
 .tree-menu li > ul{background: #fff;padding:10px 0;border-bottom: #ddd 1px solid;}
104
-.tree-menu > li > a{height: 40px; line-height: 40px;color:#555;padding-left:32px;}
105
-.tree-menu > li > a .iconfont{color:#555;margin-right:10px;font-size:15px;}
104
+.tree-menu > li > a{height: 40px; line-height: 40px;color:#ccc;padding-left:32px;}
105
+.tree-menu > li > a .iconfont{color:#ccc;margin-right:10px;font-size:15px;}
106 106
 
107 107
 .tree-menu > li > a:focus,
108 108
 .tree-menu li.active {background: var(--primary-bg); color:#fff; border-radius: 0 40px 40px 0; }

BIN
resources/static/images/favicon.ico 파일 보기


BIN
resources/static/images/logo.png 파일 보기


+ 1
- 1
resources/static/less/ext-page.less 파일 보기

@@ -203,7 +203,7 @@
203 203
     .row {
204 204
       width: 100%;
205 205
       height: calc(35vh - 64px);
206
-      padding: 0 80px;
206
+      padding: 0 60px;
207 207
 
208 208
       & + .row {
209 209
         margin-top: 64px;

+ 19
- 6
resources/templates/index.html 파일 보기

@@ -53,17 +53,22 @@
53 53
 					</ul>
54 54
 					<ul id="treeMenu" class="tree tree-menu nav-menu-submenu nav-menu-government" data-ride="tree">
55 55
 						<th:block th:each="menu,state:${user.menus}">
56
-							<li id="tmp111" th:if="${state.index == 0}">
57
-								<a href="javascript:childMenuHandle('tmp111','api/station/toList?t=1','监控管理','icon-station-o', 'nav-menu-government')">
58
-									<i class="iconfont icon-film"></i><i class="iconfont icon-film"></i>监控管理
59
-								</a>
60
-							</li>
61 56
 								<li th:id="${menu.oldId}" th:if="${menu.oldId == '100003' || menu.oldId == '100007' || menu.oldId == '100005' || menu.oldId == '100004' || menu.oldId == '100010' || menu.oldId == '100380'}">
62 57
 										<a th:href="@{'javascript:childMenuHandle(\''+ ${menu.oldId} + '\',\'' + ${menu.nodepath} + '\',\'' + ${menu.nodename} + '\',\'' + ${menu.openimg} + '\', \'nav-menu-government\')'}">
63 58
 												<i th:class="'iconfont '+${menu.nodeimg}"></i><i th:class="'iconfont '+${menu.openimg}"></i>[[${menu.nodename}]]
64 59
 										</a>
65 60
 								</li>
66 61
 						</th:block>
62
+						<li id="tmp111">
63
+							<a href="javascript:childMenuHandle('outer-link','http://192.168.9.10','大华监控','icon-station-o', 'nav-menu-government', 'tmp111')">
64
+								<i class="iconfont icon-film"></i><i class="iconfont icon-film"></i>大华监控
65
+							</a>
66
+						</li>
67
+						<li id="tmp222">
68
+							<a href="javascript:childMenuHandle('outer-link','http://192.168.9.10','海康监控','icon-station-o', 'nav-menu-government', 'tmp111')">
69
+								<i class="iconfont icon-film"></i><i class="iconfont icon-film"></i>海康监控
70
+							</a>
71
+						</li>
67 72
 					</ul>
68 73
 					<ul id="treeMenu" class="tree tree-menu nav-menu-submenu nav-menu-system" data-ride="tree">
69 74
 						<th:block th:each="menu:${user.menus}">
@@ -108,7 +113,15 @@
108 113
 		bootbox.confirm(confirmData);
109 114
 	}
110 115
 	  //二级菜单事件处理
111
-	function childMenuHandle(tmpId, tmpUrl, tmpText, openimg, parentMenu) {
116
+	function childMenuHandle(tmpId, tmpUrl, tmpText, openimg, parentMenu, parentId) {
117
+		if ('outer-link' == tmpId) {
118
+			var a = document.createElement('a');
119
+			a.target = '_blank';
120
+			a.href = tmpUrl;
121
+			a.click();
122
+			return;
123
+		}
124
+
112 125
 		var arr = document.getElementsByTagName("li");
113 126
 		for (var j = 0; j < arr.length; j++) {
114 127
 			arr[j].classList.remove("active");

+ 84
- 0
resources/templates/main/dashboard.html 파일 보기

@@ -166,9 +166,93 @@
166 166
         </div>
167 167
       </div>
168 168
     </div>
169
+    <div class="row">
170
+      <div class="col-md-3" onclick="onAction('out-link','/rotationChart/list')">
171
+        <div class="act-bg">
172
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
173
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
174
+        </div>
175
+  
176
+        <div class="act-body">
177
+          <div class="act-icon">
178
+            <img th:src="@{/images/dashboard/军供供应设备.png}" alt="">
179
+            <img th:src="@{/images/dashboard/军供供应设备click.png}" alt="">
180
+          </div>
181
+          <div class="act-content">
182
+            <img th:src="@{/images/dashboard/left.png}" alt="">
183
+            <span>轮播图管理</span>
184
+            <img th:src="@{/images/dashboard/right.png}" alt="">
185
+          </div>
186
+        </div>
187
+      </div>
188
+      <div class="col-md-3" onclick="onAction('out-link','/dish/list')">
189
+        <div class="act-bg">
190
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
191
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
192
+        </div>
193
+  
194
+        <div class="act-body">
195
+          <div class="act-icon">
196
+            <img th:src="@{/images/dashboard/军供任务明细.png}" alt="">
197
+            <img th:src="@{/images/dashboard/军供任务明细click.png}" alt="">
198
+          </div>
199
+          <div class="act-content">
200
+            <img th:src="@{/images/dashboard/left.png}" alt="">
201
+            <span>菜肴管理</span>
202
+            <img th:src="@{/images/dashboard/right.png}" alt="">
203
+          </div>
204
+        </div>
205
+      </div>
206
+      <div class="col-md-3" onclick="onAction('out-link','/package/list')">
207
+        <div class="act-bg">
208
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
209
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
210
+        </div>
211
+  
212
+        <div class="act-body">
213
+          <div class="act-icon">
214
+            <img th:src="@{/images/dashboard/社会保障预案.png}" alt="">
215
+            <img th:src="@{/images/dashboard/社会保障预案click.png}" alt="">
216
+          </div>
217
+          <div class="act-content">
218
+            <img th:src="@{/images/dashboard/left.png}" alt="">
219
+            <span>套餐管理</span>
220
+            <img th:src="@{/images/dashboard/right.png}" alt="">
221
+          </div>
222
+        </div>
223
+      </div>
224
+      <div class="col-md-3" onclick="onAction('out-link','/guaranteeTask/list')">
225
+        <div class="act-bg">
226
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
227
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
228
+        </div>
229
+  
230
+        <div class="act-body">
231
+          <div class="act-icon">
232
+            <img th:src="@{/images/dashboard/年度任务汇总.png}" alt="">
233
+            <img th:src="@{/images/dashboard/年度任务汇总click.png}" alt="">
234
+          </div>
235
+          <div class="act-content">
236
+            <img th:src="@{/images/dashboard/left.png}" alt="">
237
+            <span>任务管理</span>
238
+            <img th:src="@{/images/dashboard/right.png}" alt="">
239
+          </div>
240
+        </div>
241
+      </div>
242
+    </div>
169 243
   </div>
170 244
   <script>
245
+    var outLinkHost = 'http://127.0.0.1:8000/#';
246
+    var outLink = document.createElement('a');
247
+    outLink.target = '_blank';
248
+
171 249
     function onAction(menuId, subMenuName) {
250
+      if (menuId == 'out-link') {
251
+        outLink.href = `${outLinkHost}${subMenuName}`;
252
+        outLink.click();
253
+        return;
254
+      }
255
+
172 256
       // 额外添加, 显示菜单栏
173 257
       parent.onNavMenuClick(menuId);
174 258
       parent.subMenuClick(subMenuName);