xiabin修改
This commit is contained in:
parent
a40f04df31
commit
837b31076d
@ -44,9 +44,12 @@ const PermissionStore = usePermissionStore();
|
|||||||
|
|
||||||
// 用户信息
|
// 用户信息
|
||||||
const userInfo = computed(() => UserStore.getUserInfo());
|
const userInfo = computed(() => UserStore.getUserInfo());
|
||||||
|
// eslint-disable-next-line vue/return-in-computed-property
|
||||||
const roles = computed(() => {
|
const roles = computed(() => {
|
||||||
|
if (userInfo.value.roles) {
|
||||||
const arr = userInfo.value.roles.map((item) => item.roleName);
|
const arr = userInfo.value.roles.map((item) => item.roleName);
|
||||||
return arr.join(' | ');
|
return arr.join(' | ');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const logOut = async () => {
|
const logOut = async () => {
|
||||||
|
@ -23,17 +23,10 @@ const inputSuppliesRoutes = [
|
|||||||
meta: { title: '投入品管理', icon: 'OfficeBuilding' },
|
meta: { title: '投入品管理', icon: 'OfficeBuilding' },
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
|
||||||
path: '/sub-government-affairs-service/material/pesticide',
|
path: '/sub-government-affairs-service/material/pesticide',
|
||||||
name: 'input-supplies-pesticide',
|
name: 'input-supplies-pesticide',
|
||||||
component: () => import('@/views/inputSuppliesManage/material/pesticide/index.vue'),
|
component: () => import('@/views/inputSuppliesManage/material/pesticide/index.vue'),
|
||||||
meta: { title: '农药管理', icon: '' },
|
meta: { title: '农药管理', icon: '' },
|
||||||
=======
|
|
||||||
path: '/sub-government-affairs-service/material/seed',
|
|
||||||
name: 'input-supplies-seed',
|
|
||||||
component: () => import('@/views/inputSuppliesManage/material/seed/index.vue'),
|
|
||||||
meta: { title: '种源管理', icon: 'Document' },
|
|
||||||
>>>>>>> dev
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/sub-government-affairs-service/material/fertilizer',
|
path: '/sub-government-affairs-service/material/fertilizer',
|
||||||
@ -54,15 +47,12 @@ const inputSuppliesRoutes = [
|
|||||||
meta: { title: '兽药管理', icon: '' },
|
meta: { title: '兽药管理', icon: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
|
||||||
path: '/sub-government-affairs-service/material/seed',
|
path: '/sub-government-affairs-service/material/seed',
|
||||||
name: 'input-supplies-seed',
|
name: 'input-supplies-seed',
|
||||||
component: () => import('@/views/inputSuppliesManage/material/seed/index.vue'),
|
component: () => import('@/views/inputSuppliesManage/material/seed/index.vue'),
|
||||||
meta: { title: '种源管理', icon: '' },
|
meta: { title: '种源管理', icon: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
=======
|
|
||||||
>>>>>>> dev
|
|
||||||
path: '/sub-government-affairs-service/material/farmMachinery',
|
path: '/sub-government-affairs-service/material/farmMachinery',
|
||||||
name: 'input-supplies-farmMachinery',
|
name: 'input-supplies-farmMachinery',
|
||||||
component: () => import('@/views/inputSuppliesManage/material/farmMachinery/index.vue'),
|
component: () => import('@/views/inputSuppliesManage/material/farmMachinery/index.vue'),
|
||||||
|
@ -15,7 +15,6 @@ export default [
|
|||||||
meta: { title: '数据可视化管理', icon: '' },
|
meta: { title: '数据可视化管理', icon: '' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
|
||||||
path: '/sub-government-affairs-service/individual',
|
path: '/sub-government-affairs-service/individual',
|
||||||
component: () => import('@/views/productOperateMain/individual/index.vue'),
|
component: () => import('@/views/productOperateMain/individual/index.vue'),
|
||||||
name: 'individual',
|
name: 'individual',
|
||||||
@ -38,12 +37,6 @@ export default [
|
|||||||
component: () => import('@/views/productOperateMain/enterprise/index.vue'),
|
component: () => import('@/views/productOperateMain/enterprise/index.vue'),
|
||||||
name: 'enterprise',
|
name: 'enterprise',
|
||||||
meta: { title: '经营企业', icon: '' },
|
meta: { title: '经营企业', icon: '' },
|
||||||
=======
|
|
||||||
path: '/sub-government-affairs-service/businessEntity',
|
|
||||||
component: () => import('@/views/productOperateMain/businessEntity/index.vue'),
|
|
||||||
name: 'businessEntity',
|
|
||||||
meta: { title: '经营主体', icon: 'Document' },
|
|
||||||
>>>>>>> dev
|
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// path: '/sub-government-affairs-service/individual',
|
// path: '/sub-government-affairs-service/individual',
|
||||||
@ -73,21 +66,13 @@ export default [
|
|||||||
path: '/sub-government-affairs-service/examineList',
|
path: '/sub-government-affairs-service/examineList',
|
||||||
component: () => import('@/views/productOperateMain/examine/list.vue'),
|
component: () => import('@/views/productOperateMain/examine/list.vue'),
|
||||||
name: 'examineList',
|
name: 'examineList',
|
||||||
<<<<<<< HEAD
|
|
||||||
meta: { title: '主体审核管理', icon: '' },
|
meta: { title: '主体审核管理', icon: '' },
|
||||||
=======
|
|
||||||
meta: { title: '待审核', icon: 'Document' },
|
|
||||||
>>>>>>> dev
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/sub-government-affairs-service/examineRecord',
|
path: '/sub-government-affairs-service/examineRecord',
|
||||||
component: () => import('@/views/productOperateMain/examine/record.vue'),
|
component: () => import('@/views/productOperateMain/examine/record.vue'),
|
||||||
name: 'examineRecord',
|
name: 'examineRecord',
|
||||||
<<<<<<< HEAD
|
|
||||||
meta: { title: '主体审核历史', icon: '' },
|
meta: { title: '主体审核历史', icon: '' },
|
||||||
=======
|
|
||||||
meta: { title: '审核历史', icon: 'Document' },
|
|
||||||
>>>>>>> dev
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -123,78 +123,7 @@ export const constantRoutes = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
<<<<<<< HEAD
|
|
||||||
// ...demo,
|
// ...demo,
|
||||||
=======
|
|
||||||
{
|
|
||||||
path: '/sub-operation-service/farmingService',
|
|
||||||
name: 'farmingService',
|
|
||||||
component: Layout,
|
|
||||||
redirect: '/sub-operation-service/farmingServiceMain',
|
|
||||||
meta: { title: '农事服务', headerActive: 'farmingService' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/sub-operation-service/farmingServiceMain',
|
|
||||||
component: () => import('@/views/farmingService/index.vue'),
|
|
||||||
name: 'farmingServiceMain',
|
|
||||||
meta: { title: '农资服务', headerActive: 'farmingService' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'farmingConsult',
|
|
||||||
component: () => import('@/views/farmingService/farmingConsult/index.vue'),
|
|
||||||
name: 'farmingConsult',
|
|
||||||
meta: { title: '农资服务', headerActive: 'farmingService' },
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/sub-operation-service/userCenter',
|
|
||||||
name: 'userCentre',
|
|
||||||
component: userCentre,
|
|
||||||
redirect: '/sub-operation-service/userCenter-shoppingCart',
|
|
||||||
meta: { title: '个人中心' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '/sub-operation-service/userCenter-shoppingCart',
|
|
||||||
component: () => import('@/views/userCenter/shoppingCart.vue'),
|
|
||||||
name: 'ShoppingCar',
|
|
||||||
meta: { title: '我的购物车' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/sub-operation-service/userCenter-sureOrder',
|
|
||||||
component: () => import('@/views/userCenter/sureOrder.vue'),
|
|
||||||
name: 'sureOrder',
|
|
||||||
meta: { title: '确认订单' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/sub-operation-service/userCenter-orderSuccess',
|
|
||||||
component: () => import('@/views/userCenter/orderSuccess.vue'),
|
|
||||||
name: 'orderSuccess',
|
|
||||||
meta: { title: '订单提交成功' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/sub-operation-service/userCenter-paySuccess',
|
|
||||||
component: () => import('@/views/userCenter/paySuccess.vue'),
|
|
||||||
name: 'paySuccess',
|
|
||||||
meta: { title: '支付成功' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/sub-operation-service/userCenter-userOrders',
|
|
||||||
component: () => import('@/views/userCenter/userOrders.vue'),
|
|
||||||
name: 'userOrders',
|
|
||||||
meta: { title: '我的订单' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/sub-operation-service/userCenter-userLands',
|
|
||||||
component: () => import('@/views/userCenter/userLands.vue'),
|
|
||||||
name: 'userLands',
|
|
||||||
meta: { title: '我的土地' },
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
>>>>>>> dev
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user