diff --git a/src/api/enterprise.js b/src/api/enterprise.js index 8912de0..513dacb 100644 --- a/src/api/enterprise.js +++ b/src/api/enterprise.js @@ -1,49 +1,47 @@ import request from '@/utils/request' -const enterprisecategory = '/enterprise/enterpriseCategory' -const enterprise = '/enterprise/enterprise' -const enterpriseScore= '/enterprise/enterpriseScore' -const enterpriseAdditional='enterprise/enterpriseAdditional' +const enterprise = '/enterprise' export function enterpriseCategoryQueryAll(id) { - return request({ - url: `/gateway${enterprisecategory}/enterpriseCategoryQueryAll`, - method: 'post', - data: { - param: { - enterpriseId: id - } + return request({ + url: `/gateway${enterprise}/enterpriseCategory/enterpriseCategoryQueryAll`, + method: 'post', + data: { + param: { + enterpriseId: id } - }) - } + } + }) +} export function enterpriseQueryAll(data) { - return request({ - url: `/gateway${enterprise}/enterpriseQueryAll`, - method: 'post', - data: { - param: { - pageNum: data.pageNum, - pageSize: data.pageSize - } + return request({ + url: `/gateway${enterprise}/enterprise/enterpriseQueryAll`, + method: 'post', + data: { + param: { + incubatorType: data.incubatorType, + pageNum: data.pageNum, + pageSize: data.pageSize } - }) - } + } + }) +} export function enterpriseAdditionalQueryById(id) { - return request({ - url: `/gateway${enterpriseAdditional}/enterpriseAdditionalQueryById`, - method: 'post', - data: { - id: id - } - }) - } + return request({ + url: `/gateway${enterprise}/enterpriseAdditional/enterpriseAdditionalQueryById`, + method: 'post', + data: { + id: id + } + }) +} export function enterpriseScoreQueryById(id) { - return request({ - url: `/gateway${enterpriseScore}/enterpriseScoreQueryById`, - method: 'post', - data: { - id: id - } - }) - } + return request({ + url: `/gateway${enterprise}/enterpriseScore/enterpriseScoreQueryById`, + method: 'post', + data: { + id: id + } + }) +} diff --git a/src/router/index.js b/src/router/index.js index 0b83713..3a9714a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -107,8 +107,8 @@ export const constantRoutes = [ meta: { title: '企业信息管理', icon: '' } }, { - path: 'Rotation', - name: 'Rotation', + path: 'demand', + name: 'demand', component: () => import('@/views/enterprise/demand'), meta: { title: '企业需求管理', icon: '' } } diff --git a/src/views/enterprise/demand.vue b/src/views/enterprise/demand.vue index c3b20b2..76d9f26 100644 --- a/src/views/enterprise/demand.vue +++ b/src/views/enterprise/demand.vue @@ -1,61 +1,61 @@