diff --git a/view/admin/src/views/order/list/orderDetails.vue b/view/admin/src/views/order/list/orderDetails.vue index 4af3506..86b46c3 100644 --- a/view/admin/src/views/order/list/orderDetails.vue +++ b/view/admin/src/views/order/list/orderDetails.vue @@ -292,15 +292,15 @@ @@ -389,6 +389,9 @@ import { orderLogApi, getChildrenOrderApi } from '@/api/order'; +import { + getMerCateApi +} from "@/api/merchant"; export default { props: { drawer: { @@ -435,9 +438,16 @@ export default { }, }, orderImg: require('@/assets/images/order_icon.png'), - + merCateList:[] }; }, + mounted(){ + getMerCateApi().then(res => { + this.merCateList = res.data + }).catch(res => { + this.$message.error(res.message) + }) + }, filters: { }, methods: { @@ -469,6 +479,16 @@ export default { toSendGoods() { this.sendGoods = true; }, + getLable(id){ + let arr = this.merCateList.filter(item=>{ + return item.value==id + }) + if(arr.length>0){ + return arr[0].label + }else{ + return '' + } + }, getDelivery() { orderDeliveryApi(this.orderId) .then((res) => { diff --git a/view/admin/src/views/order/orderCancellate/index.vue b/view/admin/src/views/order/orderCancellate/index.vue index e63bdec..c47bb60 100644 --- a/view/admin/src/views/order/orderCancellate/index.vue +++ b/view/admin/src/views/order/orderCancellate/index.vue @@ -159,6 +159,15 @@ + + +
import('@/views/dashboard/index'), - name: 'Dashboard', - meta: { title: '控制台', icon: 'dashboard', affix: true } - } - ] - }, + // { + // path: roterPre, + // component: Layout, + // redirect: `${roterPre}/dashboard`, + // children: [ + // { + // path: `${roterPre}/dashboard`, + // component: () => import('@/views/dashboard/index'), + // name: 'Dashboard', + // meta: { title: '控制台', icon: 'dashboard', affix: true } + // } + // ] + // }, { path: '/', component: Layout, - redirect: `${roterPre}/dashboard`, - children: [ - { - path: `${roterPre}/dashboard`, - component: () => import('@/views/dashboard/index'), - name: 'Dashboard', - meta: { title: '控制台', icon: 'dashboard', affix: true } - } - ] + redirect: `${roterPre}/product/list`, + // children: [ + // { + // path: `${roterPre}/dashboard`, + // component: () => import('@/views/dashboard/index'), + // name: 'Dashboard', + // meta: { title: '控制台', icon: 'dashboard', affix: true } + // } + // ] }, { path: `${roterPre}/login`, diff --git a/view/mer/src/store/modules/user.js b/view/mer/src/store/modules/user.js index e1fbf05..e8c7d9e 100644 --- a/view/mer/src/store/modules/user.js +++ b/view/mer/src/store/modules/user.js @@ -69,8 +69,11 @@ const actions = { getMenus({ commit }) { return new Promise((resolve, reject) => { getMenusApi().then(response => { - commit('SET_MENU_LIST', response.data) - localStorage.setItem('MenuList', JSON.stringify(response.data)) + let menus = response.data.filter(item=>{ + return item.route.indexOf('/merchant/dashboard')==-1 + }) + commit('SET_MENU_LIST', menus) + localStorage.setItem('MenuList', JSON.stringify(menus)) resolve(response) }).catch(error => { this.$message.error(error.message)