wenhongquan 9 rokov pred
rodič
commit
79931a0c3a

+ 5 - 6
VisualInspection/js/mytask/check.js

@@ -1,9 +1,8 @@
 function initCheck() {
-      event = document.createEvent('MessageEvent');
-		var origin = window.location.protocol + '//' + window.location.host;
-		event.initMessageEvent ('setvideoposition', true, true, getVideoPosition(), origin, 1234, window, null);
-		document.dispatchEvent (event);
-
+    event = document.createEvent('MessageEvent');
+    var origin = window.location.protocol + '//' + window.location.host;
+    event.initMessageEvent('setvideoposition', true, true, getVideoPosition(), origin, 1234, window, null);
+    document.dispatchEvent(event);
 
 
     // 仅选择日期
@@ -359,5 +358,5 @@ function getVideoPosition() {
     var Y = $('#tabcontent').offset().left;
     var width = $('#tabcontent').width();
     var height = $('#tabcontent').height();
-    return parseInt(Y) + "|" + parseInt(X)+ "|" +parseInt(width)+ "|" + parseInt(height);
+    return parseInt(Y) + "|" + parseInt(X) + "|" + parseInt(width) + "|" + parseInt(height);
 }

+ 1 - 1
VisualInspection/view/mytask/check.html

@@ -42,7 +42,7 @@
                             <li><a data-tab href="#tabContent2">车道</a></li>
                             <li><a data-tab href="#tabContent3">广场</a></li>
                         </ul>
-                        <div class="tab-content" style="height:350px;">
+                        <div class="tab-content" id="tabcontent" style="height:350px;">
                             <div class="tab-pane active" id="tabContent1" class="col-sm-12">
                             </div>
                             <div class="tab-pane" id="tabContent2" class="col-sm-12">