Selaa lähdekoodia

新首页左侧导航bug

gypRoc 4 vuotta sitten
vanhempi
commit
edb878752a

+ 1 - 0
.gitignore

@@ -12,3 +12,4 @@
12 12
 # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
13 13
 hs_err_pid*
14 14
 
15
+src/main/resources/static/build/app.js

+ 17 - 2
src/main/resources/static/app/additionalHome/module.js

@@ -18,7 +18,7 @@ angular.module('app.additionalHome', ['ui.router', 'ngResource']).config(functio
18 18
 	                return lazyScript.register('build/vendor.graphs.js');
19 19
 	            }
20 20
 	        }
21
-	    })
21
+	    })	
22 22
 	    .state('app.additionalHome.defendHome', {
23 23
 	    	url: '/additionalHome/defendHome', 
24 24
 	    	views: {
@@ -82,5 +82,20 @@ angular.module('app.additionalHome', ['ui.router', 'ngResource']).config(functio
82 82
                     templateUrl: 'app/additionalHome/social-wall.html'
83 83
                 }
84 84
             }
85
-        });
85
+        })
86
+		// 监管首页
87
+		.state('app.additionalHome.superviseHome', {
88
+	    	url: '/additionalHome/superviseHome', 
89
+	    	views: {
90
+	    		"content@app": {
91
+	    			controller: 'QualityCheckCtrl',
92
+	    			templateUrl: 'app/dashboard/dashboardCopy.html'
93
+	    		}
94
+	    	},
95
+	    	resolve:{
96
+	    		scripts: function(lazyScript){
97
+	    			return lazyScript.register('build/vendor.graphs.js');
98
+	    		}
99
+	    	}
100
+	    });
86 101
 });

+ 19 - 3
src/main/resources/static/app/dashboard/DashboardCtrl.js

@@ -1,11 +1,9 @@
1 1
 'use strict';
2 2
 
3
-angular.module('app.dashboard').controller('DashboardCtrl', function ($scope, $interval, CalendarEvent) {
3
+angular.module('app.dashboard').controller('DashboardCtrl', function ($scope,$state,$rootScope, $interval, CalendarEvent) {
4 4
 
5 5
     // Live Feeds Widget Data And Display Controls
6 6
     // Live Stats Tab
7
-
8
-
9 7
     function getFakeItem(index, prevValue){
10 8
         var limitUp = Math.min(100, prevValue + 5),
11 9
             limitDown = Math.abs(prevValue - 5);
@@ -304,5 +302,23 @@ angular.module('app.dashboard').controller('DashboardCtrl', function ($scope, $i
304 302
         $scope.events = events;
305 303
     });
306 304
 
305
+           //跳转到监管页面
306
+           $scope.skipLqBugList1 = function () {
307
+            //  $scope.switchTopMenu("app.dashboard.superviseHome");
308
+                $state.go("app.additionalHome.superviseHome")
309
+        };
310
+    
311
+        $scope.switchTopMenu = function(funcId) {
312
+            if (!$("#menu-"+funcId).hasClass('open')) {
313
+                $("#menu-"+funcId).smartCollapseToggle();
314
+            }
315
+            if (funcId==446) {
316
+                $('body').addClass("minified");
317
+            } else {
318
+                $('body').removeClass("minified");
319
+            }
320
+            $rootScope.childSysId = funcId;
321
+            sessionStorage.setItem("childSysId", funcId);
322
+        }
307 323
 
308 324
 });

+ 4 - 5
src/main/resources/static/app/dashboard/dashboard.html

@@ -17,12 +17,11 @@
17 17
                 <!--**待办事项 视频监控 粮食市场价格变化 col-sm-3**-->
18 18
                 <div class="col-lg-9 col-md-9 col-sm-12 home-search-main" style="height:100%;">
19 19
                     <div class="row" style="height: 100%;">
20
-                        <div class="home-search-wrap row" style="height:15%;" >
21
-                            <a href="#/prewarning/index">
22
-                                <img style="width:100%" src="styles/img/home/home-bg.png" alt="">
20
+                        <!-- home-search-wrap  max-height: 558px; padding-top: 15px;-->
21
+                        <div class=" row" style="height:15%;" >
22
+                            <a ng-click="skipLqBugList1()" href="javascript:void(0)" style="display: inline-block;width:100%;">
23
+                                <img style="width:100%;padding-top: 12px;" src="styles/img/home-1/02-shiditu.png" alt="">     
23 24
                             </a>
24
-                        
25
-                        
26 25
                         </div>
27 26
                        
28 27
                     </div>

src/main/resources/static/app/dashboard/dashboard copy.html → src/main/resources/static/app/dashboard/dashboardCopy.html


+ 2 - 7
src/main/resources/static/app/dashboard/module.js

@@ -26,8 +26,8 @@ angular.module('app.dashboard', [
26 26
         })
27 27
         //新首页
28 28
 
29
-        .state('app.dashboard.newHome', {
30
-            url: '/dashboardHome',
29
+        .state('app.dashboard.superviseHome', {
30
+            url: '/superviseHome',
31 31
             views: {
32 32
                 "content@app": {
33 33
                     controller: 'DashboardCtrl',
@@ -36,11 +36,6 @@ angular.module('app.dashboard', [
36 36
             },
37 37
             data:{
38 38
                 title: 'Home'
39
-            },
40
-            resolve:{
41
-                scripts: function(lazyScript){
42
-                    return lazyScript.register('build/vendor.graphs.js');
43
-                }
44 39
             }
45 40
         })
46 41
         .state('app.dashboard-social', {

+ 21 - 1
src/main/resources/static/app/home/controller/daibsxCtrl.js

@@ -1,6 +1,6 @@
1 1
 "use strict";
2 2
 angular.module('app.system')
3
-    .controller("daibsxCtrl", function ($scope, $stateParams, $rootScope, $timeout, $uibModal, selectService, safeProduceNotifyService, drugPurchaseAuditService, drugUseApplyAuditService) {
3
+    .controller("daibsxCtrl", function ($scope, $stateParams, $rootScope,$state, $timeout, $uibModal, selectService, safeProduceNotifyService, drugPurchaseAuditService, drugUseApplyAuditService) {
4 4
         // 获取代办事项数据
5 5
         $scope.loadTodoData = function () {
6 6
             selectService.getloadTodoData().then(function (data) {
@@ -75,4 +75,24 @@ angular.module('app.system')
75 75
             }
76 76
         };
77 77
 
78
+            //跳转到粮情bug页面
79
+    $scope.skipLqBugList = function () {
80
+        console.log(1234)
81
+        $scope.switchTopMenu(18,"app.supervise.cameraPT");
82
+        $state.go("app.supervise.situation.temperature",{isShow :'true'});
83
+    };
84
+
85
+    $scope.switchTopMenu = function(funcId) {
86
+        if (!$("#menu-"+funcId).hasClass('open')) {
87
+            $("#menu-"+funcId).smartCollapseToggle();
88
+        }
89
+        if (funcId==18) {
90
+            $('body').addClass("minified");
91
+        } else {
92
+            $('body').removeClass("minified");
93
+        }
94
+        $rootScope.childSysId = funcId;
95
+        sessionStorage.setItem("childSysId", funcId);
96
+    }
97
+
78 98
     });

+ 6 - 1
src/main/resources/static/app/home/controller/liangspzCtrl.js

@@ -69,6 +69,12 @@ angular.module('app.system').controller("liangspzCtrl",
69 69
                         height:100,
70 70
                         width:100 // y轴间距,值越大,间距越小
71 71
                     },
72
+					/* grid: {
73
+						left: '3%',
74
+						right: '14%',
75
+						bottom: '5%',
76
+						containLabel: true
77
+					  }, */
72 78
             	    calculable: true,
73 79
             	    xAxis: [
74 80
             	        {
@@ -164,7 +170,6 @@ angular.module('app.system').controller("liangspzCtrl",
164 170
 	        lspz.setOption(option);
165 171
 	   setTimeout(function (){
166 172
 	    window.onresize = function () {
167
-			console.log(1111)
168 173
 	    	lspz.resize();
169 174
 	    }
170 175
 	},200)

+ 10 - 6
src/main/resources/static/app/home/views/daibsx.html

@@ -12,16 +12,20 @@
12 12
             </div>
13 13
         </div> -->
14 14
         <div style="padding:0 10px;width:100%;position: absolute;top:35px;">
15
-            <div style="display:flex;justify-content: space-between;border-bottom:1px dashed #cecccc;padding-bottom:5px;cursor:pointer">
16
-                <div style="color:#807c7c;font-size:14px">1号温度过高,请及时查看</div>
15
+            <!-- <ul>
16
+                <li ng-click='skipLqBugList()' style='cursor: pointer;'>粮情报警</li>
17
+            </ul> -->
18
+            
19
+            <div ng-click="skipLqBugList()" style="display:flex;justify-content: space-between;border-bottom:1px dashed #cecccc;padding-bottom:5px;cursor:pointer">
20
+                <div style="color:#807c7c;font-size:14px">1号温度过高,请及时查看1</div>
17 21
                 <div style="color:#807c7c;font-size:14px">今天 12:32:23</div>
18 22
             </div>
19
-            <div style="display:flex;justify-content: space-between;border-bottom:1px dashed #cecccc;padding:5px 0;cursor:pointer">
20
-                <div style="color:#807c7c;font-size:14px">1号温度过高,请及时查看</div>
23
+            <div ng-click="skipLqBugList()" style="display:flex;justify-content: space-between;border-bottom:1px dashed #cecccc;padding:5px 0;cursor:pointer">
24
+                <div style="color:#807c7c;font-size:14px">1号温度过高,请及时查看2</div>
21 25
                 <div style="color:#807c7c;font-size:14px">今天 12:32:23</div>
22 26
             </div>
23
-            <div style="display:flex;justify-content: space-between;border-bottom:1px dashed #cecccc;padding:5px 0;cursor:pointer">
24
-                <div style="color:#807c7c;font-size:14px">1号温度过高,请及时查看</div>
27
+            <div ng-click="skipLqBugList()" style="display:flex;justify-content: space-between;border-bottom:1px dashed #cecccc;padding:5px 0;cursor:pointer">
28
+                <div style="color:#807c7c;font-size:14px">1号温度过高,请及时查看3</div>
25 29
                 <div style="color:#807c7c;font-size:14px">今天 12:32:23</div>
26 30
             </div>
27 31
         </div>

+ 3 - 3
src/main/resources/static/app/layout/partials/header.tpl.html

@@ -47,7 +47,7 @@
47 47
 							<i class="nav-feng-line"></i>
48 48
 						</div> -->
49 49
 						<div class="nav-li" role="presentation">
50
-							<a href-void ng-click="switchTopMenu(445,'app.prewarning.index')">
50
+							<a href-void ng-click="switchTopMenu(445,'app.prewarning.temperature')">
51 51
 								<i class="nav-icon"><img src="styles/img/home-1/nav-icon/liangkyw-icon.png" /></i>
52 52
 								预警报警</a>
53 53
 							<i class="nav-feng-line"></i>
@@ -70,12 +70,12 @@
70 70
 								智能安防</a>
71 71
 							<i class="nav-feng-line"></i>
72 72
 						</div>
73
-						<!-- <div has-func="18" ng-hide="isEmergency" class="nav-li" role="presentation" ng-class="{true:'active'}[childSysId==18]">
73
+						<div has-func="18" ng-hide="isEmergency" class="nav-li" role="presentation" ng-class="{true:'active'}[childSysId==18]">
74 74
 							<a href-void ng-click="switchTopMenu(18,'app.supervise.cameraPT')">
75 75
 								<i class="nav-icon" style='position: relative;top:7px'><img src="styles/img/home-1/nav-icon/yuancjg-icon.png" /></i>
76 76
 								粮库决策</a>
77 77
 							<i class="nav-feng-line"></i>
78
-						</div> -->
78
+						</div>
79 79
 						<!-- <div has-func="324" class="nav-li" role="presentation">
80 80
 							<a href="{{financeUrl}}" target="_blank">
81 81
 								<i class="nav-icon"><img src="styles/img/home-1/nav-icon/cwgl-icon.png" /></i>

+ 17 - 22
src/main/resources/static/app/layout/partials/navigation.tpl.html

@@ -656,11 +656,10 @@
656 656
                                     <li has-func="78">
657 657
                                         <a data-ui-sref="app.supervise.operation.ccZy">仓储作业记录</a>
658 658
                                     </li>
659
-                                    <li has-func="427" data-menu-collapse>
659
+                                    <!-- <li has-func="427" data-menu-collapse>
660 660
                                         <a href="#">
661 661
                                             <i class="fa fa-lg fa-fw fa-folder-open"></i>出入库记录
662
-                                        </a>
663
-                                        <!--三级菜单开始-->
662
+                                        </a> 
664 663
                                         <ul>
665 664
                                             <li has-func="428" data-ui-sref-active="active">
666 665
                                                 <a data-ui-sref="app.storage.quantity.crkresult.trainList">火车出入库记录</a>
@@ -668,9 +667,8 @@
668 667
                                             <li has-func="429" data-ui-sref-active="active">
669 668
                                                 <a data-ui-sref="app.storage.quantity.crkresult.truckList">汽车出入库记录</a>
670 669
                                             </li>
671
-                                        </ul>
672
-                                        <!--三级菜单结束-->
673
-                                    </li>
670
+                                        </ul> 
671
+                                    </li> -->
674 672
                                 </ul>
675 673
                             </li>
676 674
                             <li data-menu-collapse>
@@ -720,11 +718,10 @@
720 718
                                 <a data-ui-sref="app.supervise.decisionSupport.storeSuperviseList">库存监管统计</a>
721 719
                             </li>
722 720
                             <!--粮食购销统计-->
723
-                            <li has-func="199" data-menu-collapse>
721
+                            <!-- <li has-func="199" data-menu-collapse>
724 722
                                 <a has-func="" href="#">
725 723
                                     <i class="fa fa-lg fa-fw fa-folder-open"></i>粮食购销统计
726 724
                                 </a>
727
-                                <!--三级菜单开始-->
728 725
                                 <ul>
729 726
                                     <li has-func="200">
730 727
                                         <a data-ui-sref="app.supervise.decisionSupport.SalesStatistics.plan-schedule">计划执行进度</a>
@@ -736,17 +733,16 @@
736 733
                                         <a data-ui-sref="app.supervise.decisionSupport.SalesStatistics.deliveryStorageNotice-schedule">通知单执行进度</a>
737 734
                                     </li>
738 735
                                 </ul>
739
-                                <!--三级菜单结束-->
740
-                            </li>
736
+                            </li> -->
741 737
                             <!--结束-->
742 738
                             <!--质量追溯统计-->
743 739
                             <li has-func="203">
744 740
                                 <a data-ui-sref="app.supervise.decisionSupport.qualityTraceList">质量追溯统计</a>
745 741
                             </li>
746 742
                             <!--出入库监管统计-->
747
-                            <li has-func="204" data-ui-sref-active="active">
743
+                            <!-- <li has-func="204" data-ui-sref-active="active">
748 744
                                 <a data-ui-sref="app.supervise.decisionSupport.cycleFoodCount">出入库监管统计</a>
749
-                            </li>
745
+                            </li> -->
750 746
                             <!--                            <li has-func="205">-->
751 747
                             <!--                                <a data-ui-sref="app.supervise.decisionSupport.dynamicFood">动态粮情统计</a>-->
752 748
                             <!--                            </li>-->
@@ -2100,31 +2096,30 @@
2100 2096
                     <span class="menu-item-parent" style="color: #fff;background: #2259a5;">预警报警</span>
2101 2097
                 </a>
2102 2098
                 <ul> 
2103
-                    <li>
2099
+                    <!-- <li>
2104 2100
                         <a data-ui-sref="app.prewarning.index">业务介绍</a>
2105
-                    </li>
2101
+                    </li> -->
2106 2102
                     <li>
2107
-                        <a data-ui-sref="app.supervise.situation.temperature">温度报警</a>
2103
+                        <a data-ui-sref="app.prewarning.temperature">温度报警</a>
2108 2104
                     </li>
2109
-                    <!-- <li data-menu-collapse>
2110
-                        <a href="#">
2105
+                    <li data-menu-collapse data-ui-sref-active="active">
2106
+                        <a href="#" data-ui-sref="app.numbermanage.numbermanage.emptyPoliceList">
2111 2107
                             <i class="fa fa-lg fa-fw fa-folder-open"></i>库存空仓报警
2112 2108
                         </a>
2113 2109
                         <ul>
2114 2110
                             <li data-ui-sref-active="active">
2115 2111
                                 <a data-ui-sref="app.business.agent.monitor.play">视频分析</a></li>
2116 2112
                         </ul>
2117
-                    </li> -->
2118
-                    <li>
2119
-                        <a data-ui-sref="app.numbermanage.numbermanage.emptyPoliceList">库存空仓报警</a>
2120 2113
                     </li>
2121 2114
                     <li data-ui-sref-active="active">
2122 2115
                         <a data-ui-sref="app.intelligent.grainDetection.AbnormalEquipment">设备异常报警信息</a>
2123 2116
                     </li>
2117
+                    <!-- <li>
2118
+                        <a data-ui-sref="app.numbermanage.numbermanage.emptyPoliceList">库存空仓报警</a>
2119
+                    </li> 
2124 2120
                     <li data-ui-sref-active="active">
2125 2121
                         <a data-ui-sref="app.business.agent.monitor.play">视频分析</a>
2126
-                    </li>
2127
-                   
2122
+                    </li> --> 
2128 2123
                 </ul>
2129 2124
             </li>
2130 2125
         </ul>

+ 19 - 2
src/main/resources/static/app/prewarning/module.js

@@ -12,7 +12,7 @@ angular.module('app.prewarning')
12 12
                 title: '预警报警'
13 13
             }
14 14
         })      
15
-        //-----------------------------------------预警管理---------------------------------------
15
+        //-----------------------------------------预警报警---------------------------------------
16 16
         .state('app.prewarning.index', {
17 17
 		    url: '/prewarning/index',
18 18
 		    data: {
@@ -23,6 +23,23 @@ angular.module('app.prewarning')
23 23
 		            templateUrl: 'app/business/index/views/business-index.html'
24 24
 		        }
25 25
 		    }
26
-		})              
26
+		})  
27
+        // 温度报警
28
+        .state('app.prewarning.temperature', {
29
+            url: '/prewarning/temperature/:isShow/:houseId',
30
+            data: {
31
+                title: '温度报警列表'
32
+            },
33
+            params:{
34
+                showType : "WD"
35
+            },
36
+            views: {
37
+                "content@app": {
38
+                    controller: 'warningThresholdCtrl',
39
+                    templateUrl: 'app/intelligent/grainDetection/views/warningThreshold-list.html'
40
+                }
41
+            }
42
+        }
43
+    )            
27 44
         
28 45
 });

BIN
src/main/resources/static/styles/img/home-1/02-shiditu.png


BIN
src/main/resources/static/styles/img/home-1/02shiditu.png