From 2ca215114eb2c997a45526ae37f3de521bdaf01d Mon Sep 17 00:00:00 2001
From: xiebin <123456>
Date: Wed, 21 Sep 2022 17:37:03 +0800
Subject: [PATCH] 取消设置巡检人员跳转页面方式
---
src/views/taskinfo/taskinfoPlan.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/views/taskinfo/taskinfoPlan.vue b/src/views/taskinfo/taskinfoPlan.vue
index 279b585..b79cafb 100644
--- a/src/views/taskinfo/taskinfoPlan.vue
+++ b/src/views/taskinfo/taskinfoPlan.vue
@@ -1,6 +1,6 @@
<template>
<basic-container>
- <avue-crud :option="option"
+ <avue-crud v-show="!isSetPlanUser" :option="option"
:table-loading="loading"
:data="data"
:page.sync="page"
@@ -58,17 +58,23 @@
</template>
</avue-crud>
+ <taskplan-user v-show="isSetPlanUser" ref="taskplanUser" @setPlanUser="setPlanUser"></taskplan-user>
</basic-container>
</template>
+
+
<script>
import {getList, getDetail, add, update, remove, changeStatus} from "@/api/taskinfo/taskinfoPlan";
import option from "@/const/taskinfo/taskinfoPlan";
import {mapGetters} from "vuex";
+ import TaskplanUser from "@/views/taskinfo/taskplanUser";
export default {
+ components: {TaskplanUser},
data() {
return {
+ isSetPlanUser:false,
form: {},
query: {},
loading: true,
@@ -223,7 +229,11 @@
})
},
goToTaskplanUser(planId) {
- this.$router.push({ path: "/taskinfo/taskplanUser", query: {planId:planId} });
+ // this.$router.push({ path: "/taskinfo/taskplanUser", query: {planId:planId} });
+ this.setPlanUser()
+ },
+ setPlanUser() {
+ this.isSetPlanUser = !this.isSetPlanUser
}
}
};
--
Gitblit v1.9.3