zx 3 years ago
parent 82e042f2fd
commit 6e23d16861

@ -41,7 +41,7 @@ export default defineComponent({
list = row.children list = row.children
} }
}, },
{ immediate: true } { immediate: true }
) )
return { return {
list, list,

@ -5,7 +5,7 @@ const routes = [
path: "/", path: "/",
name: "Layout", name: "Layout",
component: () => import("@/components/Layout/index.vue"), component: () => import("@/components/Layout/index.vue"),
redirect: '/homePage', redirect: '/questManage',
meta: { meta: {
title: '首页', title: '首页',
}, },
@ -33,6 +33,7 @@ const routes = [
component: () => import("@/views/QuestManage/_questList/index.vue"), component: () => import("@/views/QuestManage/_questList/index.vue"),
meta: { meta: {
title: '任务列表', title: '任务列表',
keepAlive: true
}, },
}, },
{ {
@ -41,6 +42,7 @@ const routes = [
component: () => import("@/views/QuestManage/_infoCollect/index.vue"), component: () => import("@/views/QuestManage/_infoCollect/index.vue"),
meta: { meta: {
title: '线索收集', title: '线索收集',
keepAlive: true
}, },
}, },
{ {

@ -1,5 +1,9 @@
<template> <template>
<router-view></router-view> <router-view v-slot="{ Component }">
<keep-alive>
<component :is="Component" />
</keep-alive>
</router-view>
</template> </template>
<script> <script>

@ -1,5 +1,9 @@
<template> <template>
<router-view></router-view> <router-view v-slot="{ Component }">
<keep-alive>
<component :is="Component" />
</keep-alive>
</router-view>
</template> </template>
<script> <script>

@ -1,5 +1,9 @@
<template> <template>
<router-view></router-view> <router-view v-slot="{ Component }">
<keep-alive>
<component :is="Component" />
</keep-alive>
</router-view>
</template> </template>
<script> <script>

@ -95,6 +95,10 @@ export default defineComponent({
this.getData() this.getData()
}) })
}, },
beforeRouteLeave(to, from, next) {
to.meta.keepAlive = true;
next(0);
},
methods: { methods: {
getApi() { getApi() {
this.proxy.$post("/user/department", {}).then(res => { this.proxy.$post("/user/department", {}).then(res => {

@ -118,6 +118,10 @@ export default defineComponent({
this.getData() this.getData()
}) })
}, },
beforeRouteLeave(to, from, next) {
to.meta.keepAlive = true;
next(0);
},
methods: { methods: {
getApi() { getApi() {
this.proxy.$post("/tag/list", {}).then(res => { this.proxy.$post("/tag/list", {}).then(res => {

@ -1,5 +1,9 @@
<template> <template>
<router-view></router-view> <router-view v-slot="{ Component }">
<keep-alive>
<component :is="Component" />
</keep-alive>
</router-view>
</template> </template>
<script> <script>

@ -1,5 +1,9 @@
<template> <template>
<router-view></router-view> <router-view v-slot="{ Component }">
<keep-alive>
<component :is="Component" />
</keep-alive>
</router-view>
</template> </template>
<script> <script>

@ -3,13 +3,13 @@
<div class="area-form"> <div class="area-form">
<el-form :inline="true" size="default"> <el-form :inline="true" size="default">
<el-form-item label="用户名"> <el-form-item label="用户名">
<el-input clearable v-model:value="form.account" placeholder="请输入"></el-input> <el-input clearable v-model="form.account" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="真实姓名"> <el-form-item label="真实姓名">
<el-input clearable v-model:value="form.name" placeholder="请输入"></el-input> <el-input clearable v-model="form.name" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电话号码"> <el-form-item label="电话号码">
<el-input clearable v-model:value="form.tel" placeholder="请输入"></el-input> <el-input clearable v-model="form.tel" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="confirm"> </el-button> <el-button type="primary" @click="confirm"> </el-button>

@ -1,5 +1,9 @@
<template> <template>
<router-view></router-view> <router-view v-slot="{ Component }">
<keep-alive>
<component :is="Component" />
</keep-alive>
</router-view>
</template> </template>
<script> <script>

Loading…
Cancel
Save