minitiger 9 tahun lalu
induk
melakukan
3a32c90131
2 mengubah file dengan 17 tambahan dan 14 penghapusan
  1. 16 0
      VisualInspection/js/mytask/check.js
  2. 1 14
      VisualInspection/js/util/video.js

+ 16 - 0
VisualInspection/js/mytask/check.js

@@ -1,4 +1,5 @@
 function initCheck() {
+    setVideoList("1|2|4");
     event = document.createEvent('MessageEvent');
     var origin = window.location.protocol + '//' + window.location.host;
     event.initMessageEvent('setvideoposition', true, true, getVideoPosition(), origin, 1234, window, null);
@@ -86,6 +87,21 @@ function deleteScore(id) {
     deleteItem4Common(id, "/score/delete/", queryScores);
 }
 
+function setVideoList(videos){
+    var videoArr;
+    if(videos){
+        videoArr = videos.split("|");
+        var selectStr="";
+        for(var i in videoArr){
+            if(i==0)
+                selectStr += '<option value="'+videoArr[i]+'" selected="selected">视频'+videoArr[i]+'</option>'
+            else
+                selectStr += '<option value="'+videoArr[i]+'">视频'+videoArr[i]+'</option>';
+        }
+    }
+    $('#video_list').html(selectStr);
+}
+
 function addPic(pic) {
     if (pic) {
         var i=0;

+ 1 - 14
VisualInspection/js/util/video.js

@@ -3,20 +3,7 @@ function setProgress(percent){
     $('input[type="range"]').val(percent).change();
 }
 
-function setVideoList(videos){
-    var videoArr;
-    if(videos){
-        videoArr = videos.split("|");
-        var selectStr="";
-        for(var i in videoArr){
-            if(i==0)
-                selectStr += '<option value="'+videoArr[i]+'" selected="selected">视频'+videoArr[i]+'</option>'
-            else
-                selectStr += '<option value="'+videoArr[i]+'">视频'+videoArr[i]+'</option>';
-        }
-    }
-    $('#video_list').html(selectStr);
-}
+
 
 
 function doAction(func){