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 @@