浏览代码

处理没有视频的情况

zhangliang2 2 年之前
父节点
当前提交
627d219b49

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

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

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

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

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

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