Jelajahi Sumber

处理没有视频的情况

zhangliang2 2 tahun lalu
induk
melakukan
627d219b49

+ 5 - 0
src/views/systemManagement/sceneLibraryManagement/naturalDrivingScene.vue

@@ -570,6 +570,11 @@ export default {
             }
         },
         viewRow(row) {
+            if (!row.videoAddress) {
+                this.$message.warning("本场景无仿真视频");
+                return;
+            }
+            
             this.dialogVisible = true;
             this.videoDiaTitle = row.naturalName;
 

+ 5 - 0
src/views/systemManagement/sceneLibraryManagement/standardRegulationSimulationScene.vue

@@ -260,6 +260,11 @@ export default {
             }
         },
         viewRow(row) {
+            if (!row.videoAddress) {
+                this.$message.warning("本场景无仿真视频");
+                return;
+            }
+            
             this.dialogVisible = true;
             this.videoDiaTitle = row.sceneName;
 

+ 5 - 0
src/views/systemManagement/sceneLibraryManagement/trafficAccidentSimulationScene.vue

@@ -385,6 +385,11 @@ export default {
             }
         },
         viewRow(row) {
+            if (!row.videoAddress) {
+                this.$message.warning("本场景无仿真视频");
+                return;
+            }
+            
             this.dialogVisible = true;
             this.videoDiaTitle = row.sceneName;