Procházet zdrojové kódy

视频分析外链+查询追溯原型

gypRoc před 4 roky
rodič
revize
8801b1354d

+ 15 - 0
src/main/resources/static/app/additionalHome/module.js

@@ -97,5 +97,20 @@ angular.module('app.additionalHome', ['ui.router', 'ngResource']).config(functio
97 97
 	    			return lazyScript.register('build/vendor.graphs.js');
98 98
 	    		}
99 99
 	    	}
100
+	    })
101
+		// 查询追溯
102
+		.state('app.additionalHome.traceability', {
103
+	    	url: '/additionalHome/traceability', 
104
+	    	views: {
105
+	    		"content@app": {
106
+	    			controller: 'QualityCheckCtrl',
107
+	    			templateUrl: 'app/synth/qualityTrace/views/qualityIframe.html'
108
+	    		}
109
+	    	},
110
+	    	resolve:{
111
+	    		scripts: function(lazyScript){
112
+	    			return lazyScript.register('build/vendor.graphs.js');
113
+	    		}
114
+	    	}
100 115
 	    });
101 116
 });

+ 8 - 0
src/main/resources/static/app/home/controller/headerCtrl.js

@@ -236,6 +236,14 @@ angular.module('app.system').controller("headerCtrl",
236 236
 	}
237 237
 	
238 238
 	$rootScope.now = new Date();
239
+
240
+	//跳转到查询追溯原型页
241
+	$scope.skipLqBugList = function (a) {
242
+		if(a ==3 ) {
243
+			console.log('这是查询追溯跳转按钮')
244
+		}
245
+		$state.go("app.additionalHome.traceability")
246
+	};
239 247
 	 
240 248
 })
241 249
 

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

@@ -83,7 +83,8 @@
83 83
 							<i class="nav-feng-line"></i>
84 84
 						</div> -->
85 85
 						<div has-func="23" ng-hide="isEmergency" class="nav-li" role="presentation" ng-class="{true:'active'}[childSysId==23]">
86
-							<a href-void ng-click="switchTopMenu(23,'app.synth.warehouseSource')">
86
+							<!-- <a href-void ng-click="switchTopMenu(23,'app.synth.warehouseSource')"> -->
87
+							<a href-void ng-click="skipLqBugList(3)">
87 88
 								<i class="nav-icon" style='position: relative;top:7px'><img alt="查询追溯" src="styles/img/home-1/nav-icon/chaxzs-icon.png" /></i>
88 89
 								查询追溯</a>
89 90
                             <i class="nav-feng-line"></i>

+ 7 - 9
src/main/resources/static/app/layout/partials/navigation.tpl.html

@@ -2099,17 +2099,15 @@
2099 2099
                     <!-- <li>
2100 2100
                         <a data-ui-sref="app.prewarning.index">业务介绍</a>
2101 2101
                     </li> -->
2102
-                    <li>
2102
+                    <li data-ui-sref-active="active">
2103 2103
                         <a data-ui-sref="app.prewarning.temperature">温度报警</a>
2104 2104
                     </li>
2105
-                    <li data-menu-collapse data-ui-sref-active="active">
2106
-                        <a href="#" data-ui-sref="app.numbermanage.numbermanage.emptyPoliceList">
2107
-                            <i class="fa fa-lg fa-fw fa-folder-open"></i>库存空仓报警
2108
-                        </a>
2109
-                        <ul>
2110
-                            <li data-ui-sref-active="active">
2111
-                                <a data-ui-sref="app.business.agent.monitor.play">视频分析</a></li>
2112
-                        </ul>
2105
+                    <li data-ui-sref-active="active">
2106
+                        <a data-ui-sref="app.numbermanage.numbermanage.emptyPoliceList">库存空仓报警</a>
2107
+                    </li>
2108
+
2109
+                    <li data-ui-sref-active="active">
2110
+                        <a data-ui-sref="app.prewarning.video">视频分析</a>
2113 2111
                     </li>
2114 2112
                     <li data-ui-sref-active="active">
2115 2113
                         <a data-ui-sref="app.intelligent.grainDetection.AbnormalEquipment">设备异常报警信息</a>

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

@@ -39,7 +39,18 @@ angular.module('app.prewarning')
39 39
                     templateUrl: 'app/intelligent/grainDetection/views/warningThreshold-list.html'
40 40
                 }
41 41
             }
42
-        }
43
-    )            
42
+        })
43
+        // 视频分析
44
+        .state('app.prewarning.video', {
45
+            url: '/prewarning/video/:orgId',
46
+            data: {
47
+                title: '视频实时画面'
48
+            },
49
+            views: {
50
+                "content@app": {
51
+                    templateUrl: 'app/prewarning/views/video-analysis.html'
52
+                }
53
+            }
54
+        })            
44 55
         
45 56
 });

+ 7 - 0
src/main/resources/static/app/prewarning/views/video-analysis.html

@@ -0,0 +1,7 @@
1
+<META HTTP-EQUIV="pragma" CONTENT="no-cache">
2
+<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
3
+<META HTTP-EQUIV="expires" CONTENT="0">
4
+<div id="content" >
5
+    <iframe id="videoAnalysis" title="视频分析" width="100%"; height =750; src="http://47.100.180.194/" frameborder="0"></iframe>
6
+</div>
7
+

+ 6 - 0
src/main/resources/static/app/synth/qualityTrace/views/qualityIframe.html

@@ -0,0 +1,6 @@
1
+<!-- MAIN CONTENT -->
2
+<div id="content">
3
+	<iframe src="https://t0h0fx.axshare.com" frameborder="0" width="100%" height="750"></iframe>
4
+
5
+</div>
6
+