diff --git a/yifengdian-company-report/src/api/test.js b/yifengdian-company-report/src/api/test.js index ff1bda1..217415a 100644 --- a/yifengdian-company-report/src/api/test.js +++ b/yifengdian-company-report/src/api/test.js @@ -32,4 +32,26 @@ export function getVegetableOutputList (params) { method: 'GET', params }) + } + //种业资讯列表 + export function seedNewsScreenList (params) { + return request({ + url: '/api/resi/partymember/yifengScreen/seedNewsScreenList', + method: 'GET', + params + }) + } + // 种业资讯详情 +export function seedNewsScreenDetail (id) { + return request({ + url: `/api/resi/partymember/yifengScreen/seedNewsScreenDetail/${id}`, + method: 'GET' + }) + } + // 种都力量-企业详情 +export function getVegetableOutputListDetail () { + return request({ + url: '/api/resi/partymember/screenenterpriseoutput/yifengScreen/getVegetableOutputListDetail', + method: 'GET' + }) } \ No newline at end of file diff --git a/yifengdian-company-report/src/router/index.js b/yifengdian-company-report/src/router/index.js index 12f7fb7..6c6e59e 100644 --- a/yifengdian-company-report/src/router/index.js +++ b/yifengdian-company-report/src/router/index.js @@ -18,4 +18,5 @@ router.beforeEach((to,from,next)=>{ router.afterEach((to,from)=>{ console.log(to,from); }) + export default router diff --git a/yifengdian-company-report/src/router/router_modular/index.js b/yifengdian-company-report/src/router/router_modular/index.js index c060016..7a32fa8 100644 --- a/yifengdian-company-report/src/router/router_modular/index.js +++ b/yifengdian-company-report/src/router/router_modular/index.js @@ -2,7 +2,7 @@ const router_modular = [ { - path: '/', + path: '/login', name: 'login', component: () => import('@/views/login') }, @@ -16,10 +16,11 @@ const router_modular = [ path: '/vegetableDetails', name: 'vegetableDetails', component: () => import(/* webpackChunkName: "about" */ '@/views/vegetableDetails.vue'), - title:'企业上报' + title:'企业上报', + meta: { requiresAuth: true }, }, { - path: '/home', + path: '/', name: 'home', component: () => import(/* webpackChunkName: "about" */ '@/views/home.vue'), title:'首页' @@ -51,4 +52,5 @@ const router_modular = [ ] + export default router_modular \ No newline at end of file diff --git a/yifengdian-company-report/src/views/bazaar.vue b/yifengdian-company-report/src/views/bazaar.vue index 2802b20..8152db2 100644 --- a/yifengdian-company-report/src/views/bazaar.vue +++ b/yifengdian-company-report/src/views/bazaar.vue @@ -8,10 +8,10 @@