diff --git a/.env.development b/.env.development index 060384e..cf28474 100644 --- a/.env.development +++ b/.env.development @@ -8,7 +8,7 @@ VUE_APP_BASE_API = '/api' # VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi" -VUE_APP_URL = "http://192.168.2.106:7201" +VUE_APP_URL = "http://127.0.0.1:7211" VUE_APP_REPORT_URL = "http://192.168.2.106:7202" ##VUE_APP_REPORT_URL = "https://lpk.yyundong.com" ##VUE_APP_REPORT_URL = "https://supervise.yxtsoft.com/lpk" diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 8f6f820..652221f 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -1,388 +1,430 @@ - ], - }; - }, - computed: { - ...mapGetters(["sidebar"]), - // routes() { - // f4d2e507-c4ed-451c-b364-04c08f962045 - // console.log('78979789', this.$router.options.routes) - // return this.$router.options.routes - // }, - activeMenu() { - // const route = this.$route - // const { - // meta, - // path - // } = route - // // if set path, the sidebar will highlight the path you set - // if (meta.activeMenu) { - // return meta.activeMenu - // } - return "/index"; - }, - showLogo() { - return this.$store.state.settings.sidebarLogo; - }, - variables() { - return variables; - }, - isCollapse() { - return !this.sidebar.opened; - }, - }, - created() { - this.postHuoquyonghu(); - }, - methods: { - // 获取用户信息 - postHuoquyonghu() { - // var token = getStorage() - // loginDetails(token).then((response) => { - // console.log('resss', response) - // if (response.code === '200') { - // this.YongHuid = response.data - // this.params.userSid = this.YongHuid.sid - // getrolemenus(this.params).then((res) => { - // const userRoles = this.resRouter(res.data) - this.routes.push({ - path: "*", - redirect: "/404", - hidden: true, - }); - console.log("左侧菜单", this.routes); - return this.routes; - // }) - // } - // }) - }, - resRouter(menus) { - // 递归,将后台传来数组 - for (var i = 0; i < menus.length; i++) { - if (menus[i].children && menus[i].children.length != 0) { - this.resRouter(menus[i].children); - } - if (menus[i].children.length == 0) { - delete menus[i].children; - delete menus[i].redirect; - } - if (menus[i].component == "") { - console.log("55555", menus[i]); - menus[i] = { - path: menus[i].path, - component: "", - redirect: menus[i].path, - children: [menus[i]], - }; - } else { - // menus[i] = { - // path: menus[i].path, - // component: '', - // redirect: menus[i].path, - // children: [menus[i]], - // } - } - } - this.routes = menus; - console.log("左侧菜单", this.routes); - return menus; - }, - }, - }; - \ No newline at end of file diff --git a/src/views/pms/brand/add.vue b/src/views/pms/brand/add.vue new file mode 100644 index 0000000..95eed17 --- /dev/null +++ b/src/views/pms/brand/add.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/src/views/pms/brand/components/BrandDetail.vue b/src/views/pms/brand/components/BrandDetail.vue new file mode 100644 index 0000000..9131524 --- /dev/null +++ b/src/views/pms/brand/components/BrandDetail.vue @@ -0,0 +1,143 @@ + + + + + diff --git a/src/views/pms/brand/index.vue b/src/views/pms/brand/index.vue new file mode 100644 index 0000000..8b34b1f --- /dev/null +++ b/src/views/pms/brand/index.vue @@ -0,0 +1,302 @@ + + + + + diff --git a/src/views/pms/brand/update.vue b/src/views/pms/brand/update.vue new file mode 100644 index 0000000..1109b26 --- /dev/null +++ b/src/views/pms/brand/update.vue @@ -0,0 +1,14 @@ + + + + +