Bladeren bron

修改场景编辑页名称

guolei 1 jaar geleden
bovenliggende
commit
0ad241bb7a

+ 3 - 3
src/router/workManagement.js

@@ -50,14 +50,14 @@ export default [{
         component: () => import("@/views/workManagement/manualRunProjectDetail")
     },
 	{
-	    path: "/multimodeSimulation",
-	    name: "multimodeSimulation",
+	    path: "/multimodeSimulationEdit",
+	    name: "multimodeSimulationEdit",
 	    meta: {
 	        tabname: "场景编辑",
 	        menuKind: "workManagement",
 	        login: true
 	    },
-	    component: () => import("@/views/workManagement/multimodeSimulation")
+	    component: () => import("@/views/workManagement/multimodeSimulationEdit")
 	},
     {
         path: "/autoRunProjectList",

+ 11 - 2
src/views/multimodeSimulation/simulationEdit.vue

@@ -96,7 +96,7 @@
       <el-table-column label="操作" slot="cgInfos" align="center" width="180">
         <template v-slot="scope">
           <span v-if="!isEdit" @click="toEvaluate" class="elIcon"> 评价结果 </span>
-          <span v-if="isEdit" @click="" class="elIcon"> 编辑 </span>
+          <span v-if="isEdit" @click="navigatorEdit" class="elIcon"> 编辑 </span>
           <span v-if="isEdit" @click="" class="elIcon"> 删除 </span>
         </template>
       </el-table-column>
@@ -188,7 +188,16 @@ export default {
       this.$router.push({
         path: '/evaluationResults',
       })
-    }
+    },
+	navigatorEdit(){
+		this.$router.push({
+			name: 'multimodeSimulationEdit',
+			query: {
+				sceneId: 'b1e8fb96cf8a41d9a0364d29a9289628'
+			}
+			
+		})
+	}
   },
 }
 </script>

+ 4 - 4
src/views/workManagement/multimodeSimulation.vue → src/views/workManagement/multimodeSimulationEdit.vue

@@ -28,7 +28,7 @@
 	import SimulationTable from "@/views/workManagement/components/simulationTable";
 
 	export default {
-		name: "MultimodeSimulation", // 工作管理
+		name: "MultimodeSimulationEdit", // 工作管理
 		components: {
 			OpenDrive,
 			PathDialog,
@@ -54,9 +54,9 @@
 		},
 		beforeMount() {
 			this.sceneId = this.$route.query.sceneId;
-			if(!this.sceneId){
-				this.sceneId = "b1e8fb96cf8a41d9a0364d29a9289628";
-			}
+			// if(!this.sceneId){
+			// 	this.sceneId = "b1e8fb96cf8a41d9a0364d29a9289628";
+			// }
 		},
 		mounted() {
 			this.getMapList();