|
@@ -8,7 +8,12 @@
|
|
|
<el-col :span="20" class="elColClasss">
|
|
|
<div class="container">
|
|
|
<div class="typeContainer">
|
|
|
- <div v-for="(item, index) in stepComponents" :key="index" :class="getNameClass(index)" class="typeBox">
|
|
|
+ <div
|
|
|
+ v-for="(item, index) in stepComponents"
|
|
|
+ :key="index"
|
|
|
+ :class="getNameClass(index)"
|
|
|
+ class="typeBox"
|
|
|
+ >
|
|
|
<router-link :to="{ name: item.path }">
|
|
|
<div class="svgIcon">
|
|
|
<svg-icon :icon-class="item.compentType" size="30" />
|
|
@@ -20,10 +25,9 @@
|
|
|
<!-- 二级路由盒子 -->
|
|
|
<div class="routerView">
|
|
|
<router-view v-slot="{ Component, route }">
|
|
|
- <keep-alive v-if="route.meta.keepAlive == true">
|
|
|
- <component :is="Component" :key="route.name" />
|
|
|
+ <keep-alive include="Dianjian,Jiluxiang">
|
|
|
+ <component :is="Component" :key="route.fullPath" />
|
|
|
</keep-alive>
|
|
|
- <component v-else :is="Component" :key="route.name" />
|
|
|
</router-view>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -36,7 +40,9 @@
|
|
|
import { onMounted } from "vue";
|
|
|
import Jiluxiang from "@/views/pro-steps/Jiluxiang.vue";
|
|
|
import { processViewStore } from "@/store";
|
|
|
+
|
|
|
const store = processViewStore();
|
|
|
+defineOptions({ name: "ProSteps" });
|
|
|
const route = useRoute();
|
|
|
//配置标签信息Data
|
|
|
const stepComponents = ref([
|
|
@@ -58,7 +64,7 @@ const stepComponents = ref([
|
|
|
{
|
|
|
compentName: "点检",
|
|
|
compentType: "dianjian",
|
|
|
- path: "dianjian",
|
|
|
+ path: "Dianjian",
|
|
|
},
|
|
|
{
|
|
|
compentName: "设备记录",
|