From 05ca75b8b6b32f00dfbe1f5d2f6c3af02577e029 Mon Sep 17 00:00:00 2001 From: panqihua Date: Sat, 28 Jan 2023 19:43:57 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E5=8E=82=E5=95=86-?= =?UTF-8?q?=E7=BB=8F=E9=94=80=E5=95=86=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/platform.js | 11 +- src/views/components/manufacturer/detail.vue | 90 ++++++++++++++ src/views/components/manufacturer/index.vue | 117 +++++++++++++++++++ src/views/platform/manufacturer/index.vue | 22 ++-- 4 files changed, 224 insertions(+), 16 deletions(-) create mode 100644 src/views/components/manufacturer/detail.vue create mode 100644 src/views/components/manufacturer/index.vue diff --git a/src/plugins/platform.js b/src/plugins/platform.js index 4c4581b..6b97578 100644 --- a/src/plugins/platform.js +++ b/src/plugins/platform.js @@ -1,14 +1,15 @@ -import router from "@/router"; +//TODO:待删除,通过路由参数控制 +import router from '@/router' function meta(to, type, desc) { to.meta.manufacturer = { - name: to.fullPath.split("/").at(1), + name: to.fullPath.split('/').at(1), //1:厂商管理,2:经销商管理,3:门店管理 type, //1:厂商/经销商/商店列表,2:审核 - subType: to.fullPath.split("/").at(-1), - desc, - }; + subType: to.fullPath.split('/').at(-1), + desc + } } router.beforeEach((to, from, next) => { diff --git a/src/views/components/manufacturer/detail.vue b/src/views/components/manufacturer/detail.vue new file mode 100644 index 0000000..82a5a56 --- /dev/null +++ b/src/views/components/manufacturer/detail.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/src/views/components/manufacturer/index.vue b/src/views/components/manufacturer/index.vue new file mode 100644 index 0000000..317e4ff --- /dev/null +++ b/src/views/components/manufacturer/index.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/src/views/platform/manufacturer/index.vue b/src/views/platform/manufacturer/index.vue index bc6bad7..9b6aaea 100644 --- a/src/views/platform/manufacturer/index.vue +++ b/src/views/platform/manufacturer/index.vue @@ -171,18 +171,18 @@