Parcourir la source

处理没有视频的情况

zhangliang2 il y a 2 ans
Parent
commit
17bc10b82d

+ 5 - 0
src/views/sceneLibrary/naturalDrivingScenarioList.vue

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

+ 5 - 0
src/views/sceneLibrary/standardRegulationSimulationScenarioList.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/sceneLibrary/trafficAccidentSimulationScenarioList.vue

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