diff --git a/src/api/management/mapprd.js b/src/api/management/mapprd.js index e9a8c6257..0de602a42 100644 --- a/src/api/management/mapprd.js +++ b/src/api/management/mapprd.js @@ -1,13 +1,5 @@ import request from '@/utils/request'; -/** 获取发布地图树*/ -export function getPublishMapTree(cityCode) { - return request({ - url: `/api/mapPrd/${cityCode}/tree`, - method: 'get' - }); -} - /** 获取产品详细内容*/ export function getProductDetail(prdId) { return request({ @@ -16,49 +8,6 @@ export function getProductDetail(prdId) { }); } -/** 检查实训编码是否已存在*/ -export function checkCodeExist(data) { - return request({ - url: '/api/mapPrd/checkCodeExist', - method: 'get', - params: data - }); -} - -/** 获取产品树*/ -export function getProductTree() { - return request({ - url: `/api/mapPrd/tree`, - method: 'get' - }); -} - -/** 创建实训类目*/ -export function createTrainingCategory(data) { - return request({ - url: '/api/mapPrd', - method: 'post', - data: data - }); -} - -/** 更新实训类目*/ -export function updateTrainingCategory(data) { - return request({ - url: `/api/mapPrd/${data.id}`, - method: 'put', - data: data - }); -} - -/** 删除实训类目*/ -export function deleteTrainingCategory(data) { - return request({ - url: `/api/mapPrd/${data.id}`, - method: 'delete' - }); -} - /** * 获取地图下的产品列表 */ @@ -69,16 +18,6 @@ export function getCommodityMapProduct(mapId) { }); } -/** - * 获取地图下的产品详情 - */ -export function getMapProductDetail(prdId) { - return request({ - url: `/api/mapPrd/${prdId}`, - method: 'get' - }); -} - /** 获取产品管理列表*/ export function getProductList(data) { return request({ @@ -87,28 +26,3 @@ export function getProductList(data) { params: data }); } - -/** 发布地图产品上架*/ -export function putMapProductOnLine(id) { - return request({ - url: `/api/mapPrd/${id}/onLine`, - method: 'put' - }); -} - -/** 发布地图产品下架*/ -export function putMapProductOffLine(id) { - return request({ - url: `/api/mapPrd/${id}/offLine`, - method: 'put' - }); -} - -/** 校验产品code是否已存在*/ -export function checkMapProductCodeExist(params) { - return request({ - url: `/api/mapPrd/checkCodeExist`, - method: 'get', - params: params - }); -} diff --git a/src/views/components/filterCity/index.vue b/src/views/components/filterCity/index.vue index 9ec73b8bc..887b6abab 100644 --- a/src/views/components/filterCity/index.vue +++ b/src/views/components/filterCity/index.vue @@ -28,10 +28,6 @@ export default { return false; } }, - queryFunction: { - type: Function, - required: true - }, localParamName: { type: String, required: true diff --git a/src/views/trainingPlatform/demonList.vue b/src/views/trainingPlatform/demonList.vue index 0b73c0584..a763d1069 100644 --- a/src/views/trainingPlatform/demonList.vue +++ b/src/views/trainingPlatform/demonList.vue @@ -4,7 +4,7 @@ {{ $t('global.mapList') }}
- +