路由调整
This commit is contained in:
parent
ed9075e569
commit
9430b866ad
@ -200,99 +200,90 @@ export const constantRoutes = [
|
|||||||
path: '/sub-operation-service/farmService',
|
path: '/sub-operation-service/farmService',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
name: 'farmService',
|
name: 'farmService',
|
||||||
redirect: '/sub-operation-service/farmService/consult/laborServices',
|
redirect: '/sub-operation-service/farmService/farmPolicy',
|
||||||
meta: { title: '农事服务' },
|
meta: { title: '农事服务' },
|
||||||
children: [
|
children: [
|
||||||
|
// {
|
||||||
|
// path: 'policy',
|
||||||
|
// component: Views,
|
||||||
|
// name: 'farmPolicys',
|
||||||
|
// meta: { title: '劳务用工' },
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: '',
|
||||||
|
// component: () => import('@/views/farmingService/farmingConsult/index.vue'),
|
||||||
|
// name: 'farmPolicy',
|
||||||
|
// meta: { title: '农业政策', hideInBread: true },
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: 'detail',
|
||||||
|
// component: () => import('@/views/farmingService/farmingConsult/policyDetail.vue'),
|
||||||
|
// name: 'farmPolicyDetail',
|
||||||
|
// meta: { title: '农业政策详情' },
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
path: 'consult',
|
path: '/sub-operation-service/farmService/farmPolicy',
|
||||||
component: Views,
|
component: () => import('@/views/farmingService/farmingConsult/index.vue'),
|
||||||
redirect: '/sub-operation-service/farmService/consult/laborServices',
|
name: 'farmPolicy',
|
||||||
name: 'farmServiceMain',
|
meta: { title: '农业政策', hideInBread: true },
|
||||||
meta: { title: '农事' },
|
|
||||||
children: [
|
|
||||||
// {
|
|
||||||
// path: 'policy',
|
|
||||||
// component: Views,
|
|
||||||
// name: 'farmPolicys',
|
|
||||||
// meta: { title: '劳务用工' },
|
|
||||||
// children: [
|
|
||||||
// {
|
|
||||||
// path: '',
|
|
||||||
// component: () => import('@/views/farmingService/farmingConsult/index.vue'),
|
|
||||||
// name: 'farmPolicy',
|
|
||||||
// meta: { title: '农业政策', hideInBread: true },
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: 'detail',
|
|
||||||
// component: () => import('@/views/farmingService/farmingConsult/policyDetail.vue'),
|
|
||||||
// name: 'farmPolicyDetail',
|
|
||||||
// meta: { title: '农业政策详情' },
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// },
|
|
||||||
{
|
|
||||||
path: 'farmPolicy',
|
|
||||||
component: () => import('@/views/farmingService/farmingConsult/index.vue'),
|
|
||||||
name: 'farmPolicy',
|
|
||||||
meta: { title: '农业政策', hideInBread: true },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'farmPolicyDetail',
|
|
||||||
component: () => import('@/views/farmingService/farmingConsult/policyDetail.vue'),
|
|
||||||
name: 'farmPolicyDetail',
|
|
||||||
meta: { title: '农业政策详情' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'laborServices',
|
|
||||||
component: () => import('@/views/farmingService/farmingConsult/laborServices.vue'),
|
|
||||||
// component: Views,
|
|
||||||
name: 'laborServices',
|
|
||||||
meta: { title: '劳务用工' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'laborServicesDel',
|
|
||||||
component: () => import('@/views/farmingService/farmingConsult/laborServicesDel.vue'),
|
|
||||||
name: 'laborServicesDel',
|
|
||||||
meta: { title: '劳务用工详情页' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'agriculturalMachinery',
|
|
||||||
component: () => import('@/views/farmingService/farmingConsult/agriculturalMachinery.vue'),
|
|
||||||
name: 'agriculturalMachinery',
|
|
||||||
meta: { title: '农机服务' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'agriculturalMachineryDel',
|
|
||||||
component: () => import('@/views/farmingService/farmingConsult/agriculturalMachineryDel.vue'),
|
|
||||||
name: 'agriculturalMachineryDel',
|
|
||||||
meta: { title: '农机服务详情' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'agriculturalTechnology',
|
|
||||||
component: () => import('@/views/farmingService/farmingConsult/agriculturalTechnology.vue'),
|
|
||||||
name: 'agriculturalTechnology',
|
|
||||||
meta: { title: '农技服务' },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'agriculturalTechnologyDel',
|
|
||||||
component: () => import('@/views/farmingService/farmingConsult/agriculturalTechnologyDel.vue'),
|
|
||||||
name: 'agriculturalTechnologyDel',
|
|
||||||
meta: { title: '农技服务详情页' },
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// path: 'technology',
|
|
||||||
// component: () => import('@/views/farmingService/farmingConsult/farmingTec.vue'),
|
|
||||||
// name: 'farmTechnology',
|
|
||||||
// meta: { title: '农事技术' },
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// path: 'situation',
|
|
||||||
// component: () => import('@/views/farmingService/farmingConsult/situation.vue'),
|
|
||||||
// name: 'farmSituation',
|
|
||||||
// meta: { title: '市场行情' },
|
|
||||||
// },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/sub-operation-service/farmService/farmPolicyDetail',
|
||||||
|
component: () => import('@/views/farmingService/farmingConsult/policyDetail.vue'),
|
||||||
|
name: 'farmPolicyDetail',
|
||||||
|
meta: { title: '农业政策详情' },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'laborServices',
|
||||||
|
component: () => import('@/views/farmingService/farmingConsult/laborServices.vue'),
|
||||||
|
// component: Views,
|
||||||
|
name: 'laborServices',
|
||||||
|
meta: { title: '劳务用工' },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'laborServicesDel',
|
||||||
|
component: () => import('@/views/farmingService/farmingConsult/laborServicesDel.vue'),
|
||||||
|
name: 'laborServicesDel',
|
||||||
|
meta: { title: '劳务用工详情页' },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'agriculturalMachinery',
|
||||||
|
component: () => import('@/views/farmingService/farmingConsult/agriculturalMachinery.vue'),
|
||||||
|
name: 'agriculturalMachinery',
|
||||||
|
meta: { title: '农机服务' },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'agriculturalMachineryDel',
|
||||||
|
component: () => import('@/views/farmingService/farmingConsult/agriculturalMachineryDel.vue'),
|
||||||
|
name: 'agriculturalMachineryDel',
|
||||||
|
meta: { title: '农机服务详情' },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'agriculturalTechnology',
|
||||||
|
component: () => import('@/views/farmingService/farmingConsult/agriculturalTechnology.vue'),
|
||||||
|
name: 'agriculturalTechnology',
|
||||||
|
meta: { title: '农技服务' },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'agriculturalTechnologyDel',
|
||||||
|
component: () => import('@/views/farmingService/farmingConsult/agriculturalTechnologyDel.vue'),
|
||||||
|
name: 'agriculturalTechnologyDel',
|
||||||
|
meta: { title: '农技服务详情页' },
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// path: 'technology',
|
||||||
|
// component: () => import('@/views/farmingService/farmingConsult/farmingTec.vue'),
|
||||||
|
// name: 'farmTechnology',
|
||||||
|
// meta: { title: '农事技术' },
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: 'situation',
|
||||||
|
// component: () => import('@/views/farmingService/farmingConsult/situation.vue'),
|
||||||
|
// name: 'farmSituation',
|
||||||
|
// meta: { title: '市场行情' },
|
||||||
|
// },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -51,25 +51,25 @@ const leftMenu = reactive([
|
|||||||
name: 'farmPolicy',
|
name: 'farmPolicy',
|
||||||
title: '农业政策',
|
title: '农业政策',
|
||||||
icon: 'menu1.png',
|
icon: 'menu1.png',
|
||||||
path: '/sub-operation-service/farmService/consult/farmPolicy',
|
path: '/sub-operation-service/farmService/farmPolicy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'laborServices',
|
name: 'laborServices',
|
||||||
title: '劳务用工',
|
title: '劳务用工',
|
||||||
icon: 'menu1.png',
|
icon: 'menu1.png',
|
||||||
path: '/sub-operation-service/farmService/consult/laborServices',
|
path: '/sub-operation-service/farmService/laborServices',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'agriculturalMachinery',
|
name: 'agriculturalMachinery',
|
||||||
title: '农机服务',
|
title: '农机服务',
|
||||||
icon: 'menu1.png',
|
icon: 'menu1.png',
|
||||||
path: '/sub-operation-service/farmService/consult/agriculturalMachinery',
|
path: '/sub-operation-service/farmService/agriculturalMachinery',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'agriculturalTechnology',
|
name: 'agriculturalTechnology',
|
||||||
title: '农技服务',
|
title: '农技服务',
|
||||||
icon: 'menu1.png',
|
icon: 'menu1.png',
|
||||||
path: '/sub-operation-service/farmService/consult/agriculturalTechnology',
|
path: '/sub-operation-service/farmService/agriculturalTechnology',
|
||||||
},
|
},
|
||||||
//farmPolicy
|
//farmPolicy
|
||||||
|
|
||||||
@ -84,19 +84,19 @@ const leftMenu = reactive([
|
|||||||
// name: 'laborServices',
|
// name: 'laborServices',
|
||||||
// title: '劳务用工',
|
// title: '劳务用工',
|
||||||
// icon: 'menu1.png',
|
// icon: 'menu1.png',
|
||||||
// path: '/sub-operation-service/farmService/consult/laborServices',
|
// path: '/sub-operation-service/farmService/laborServices',
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// name: 'agriculturalMachinery',
|
// name: 'agriculturalMachinery',
|
||||||
// title: '农机服务',
|
// title: '农机服务',
|
||||||
// icon: 'menu1.png',
|
// icon: 'menu1.png',
|
||||||
// path: '/sub-operation-service/farmService/consult/agriculturalMachinery',
|
// path: '/sub-operation-service/farmService/agriculturalMachinery',
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// name: 'agriculturalTechnology',
|
// name: 'agriculturalTechnology',
|
||||||
// title: '农技服务',
|
// title: '农技服务',
|
||||||
// icon: 'menu1.png',
|
// icon: 'menu1.png',
|
||||||
// path: '/sub-operation-service/farmService/consult/agriculturalTechnology',
|
// path: '/sub-operation-service/farmService/agriculturalTechnology',
|
||||||
// },
|
// },
|
||||||
// ],
|
// ],
|
||||||
// },
|
// },
|
||||||
@ -186,7 +186,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const currentChild = window.sessionStorage.getItem('currentChild');
|
const currentChild = window.sessionStorage.getItem('currentChild');
|
||||||
if (currentChild && currentChild === 'main') {
|
if (currentChild && currentChild === 'farmPolicy') {
|
||||||
currentIndex.value = 0;
|
currentIndex.value = 0;
|
||||||
currentCIndex.value = '';
|
currentCIndex.value = '';
|
||||||
} else if (currentChild) {
|
} else if (currentChild) {
|
||||||
|
@ -214,7 +214,7 @@ const goDetail = (id) => {
|
|||||||
// message: '功能正在维护中,请稍后点击',
|
// message: '功能正在维护中,请稍后点击',
|
||||||
// type: 'warning',
|
// type: 'warning',
|
||||||
// });
|
// });
|
||||||
router.push('/sub-operation-service/farmService/consult/agriculturalMachineryDel?id=' + id);
|
router.push('/sub-operation-service/farmService/agriculturalMachineryDel?id=' + id);
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
</script>
|
</script>
|
||||||
|
@ -219,7 +219,7 @@ const goDetail = (id) => {
|
|||||||
// message: '功能正在维护中,请稍后点击',
|
// message: '功能正在维护中,请稍后点击',
|
||||||
// type: 'warning',
|
// type: 'warning',
|
||||||
// });
|
// });
|
||||||
router.push('/sub-operation-service/farmService/consult/agriculturalTechnologyDel?id=' + id);
|
router.push('/sub-operation-service/farmService/agriculturalTechnologyDel?id=' + id);
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
</script>
|
</script>
|
||||||
@ -236,7 +236,7 @@ const goDetail = (id) => {
|
|||||||
.card-item {
|
.card-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin: 20px 0;
|
margin: 10px 0 0 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
.choose {
|
.choose {
|
||||||
|
@ -98,7 +98,7 @@ const queryList = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const goDetail = (id) => {
|
const goDetail = (id) => {
|
||||||
router.push('/sub-operation-service/farmService/consult/farmPolicyDetail?id=' + id);
|
router.push('/sub-operation-service/farmService/farmPolicyDetail?id=' + id);
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
</script>
|
</script>
|
||||||
|
@ -210,7 +210,7 @@ const goDetail = (id) => {
|
|||||||
// message: '功能正在维护中,请稍后点击',
|
// message: '功能正在维护中,请稍后点击',
|
||||||
// type: 'warning',
|
// type: 'warning',
|
||||||
// });
|
// });
|
||||||
router.push('/sub-operation-service/farmService/consult/laborServicesDel?id=' + id);
|
router.push('/sub-operation-service/farmService/laborServicesDel?id=' + id);
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user