From 9bb8ee8f5d5a38b295e029a708c833a51a11267b Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Mon, 31 Jul 2023 20:36:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TagsView/index.vue | 5 +- src/permission.js | 82 ++++++----- src/router/index.js | 98 +++++-------- src/store/modules/myselfPermission.js | 5 +- src/views/a1/index.vue | 3 + src/views/administrative/index.vue | 3 + src/views/enterpriseMsg/index.vue | 3 + src/views/index.vue | 135 +++++++++++++++++- src/views/logout/index.vue | 3 + .../components/cosmeticsArchives.vue | 5 + .../productsMsg/components/drugArchives.vue | 3 + src/views/productsMsg/components/health.vue | 5 + src/views/productsMsg/index.vue | 3 + 13 files changed, 249 insertions(+), 104 deletions(-) create mode 100644 src/views/a1/index.vue create mode 100644 src/views/administrative/index.vue create mode 100644 src/views/enterpriseMsg/index.vue create mode 100644 src/views/logout/index.vue create mode 100644 src/views/productsMsg/components/cosmeticsArchives.vue create mode 100644 src/views/productsMsg/components/drugArchives.vue create mode 100644 src/views/productsMsg/components/health.vue create mode 100644 src/views/productsMsg/index.vue diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 55f766e..704b72f 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -26,7 +26,7 @@ - + + +
+
+ + + + {{ itemb.name }} + + +
+
+ + +
+
+
@@ -33,7 +77,64 @@ import router from "@/router"; export default { components: { myHeader, TagsView }, data() { - return {}; + return { + routerIndex: "1-1", + routerList: [ + { + path: "/administrative", + name: "行政审批", + icon: require("@/assets/images/tree4.svg"), + component: () => import("@/views/administrative/index"), + meta: { title: "行政审批", icon: "netWork" }, + }, + + { + path: "/enterpriseMsg", + name: "企业档案", + icon: require("@/assets/images/tree4.svg"), + component: () => import("@/views/enterpriseMsg/index"), + meta: { title: "企业档案", icon: "netWork" }, + }, + { + path: "/productsMsg", + name: "产品档案", + icon: require("@/assets/images/tree4.svg"), + meta: { title: "产品档案", icon: "netWork" }, + children: [ + { + path: "/drugArchives", + name: "药品档案", + icon: require("@/assets/images/tree4.svg"), + component: () => + import("@/views/productsMsg/components/drugArchives"), + meta: { title: "药品档案", icon: "netWork" }, + }, + { + path: "/cosmeticsArchives", + name: "化妆品档案", + icon: require("@/assets/images/tree4.svg"), + component: () => + import("@/views/productsMsg/components/cosmeticsArchives"), + meta: { title: "化妆品档案", icon: "netWork" }, + }, + { + path: "/health", + name: "医疗器械档案", + icon: require("@/assets/images/tree4.svg"), + component: () => import("@/views/productsMsg/components/health"), + meta: { title: "医疗器械档案", icon: "netWork" }, + }, + ], + }, + { + path: "/logout", + name: "依法注销", + icon: require("@/assets/images/tree4.svg"), + component: () => import("@/views/logout/index"), + meta: { title: "依法注销", icon: "netWork" }, + }, + ], + }; }, computed: { //获取自定义路由 @@ -44,14 +145,40 @@ export default { // )[0].children; // return staticRouter; // return this.$store.state.myselfPermission.routerList; + console.log(this.$router.options.routes[6].children); return this.$router.options.routes[6].children; }, + get1(e) { + console.log(e); + }, }, created() {}, };