删除maprd有关的接口
This commit is contained in:
parent
d15eca77ea
commit
e67d1fb279
@ -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
|
||||
});
|
||||
}
|
||||
|
@ -28,10 +28,6 @@ export default {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
queryFunction: {
|
||||
type: Function,
|
||||
required: true
|
||||
},
|
||||
localParamName: {
|
||||
type: String,
|
||||
required: true
|
||||
|
@ -4,7 +4,7 @@
|
||||
<span>{{ $t('global.mapList') }}</span>
|
||||
</div>
|
||||
<div style="height: calc(100% - 47px);">
|
||||
<filter-city v-if="project==='login'" ref="filerCity" filter-empty :query-function="queryFunction" :local-param-name="localParamName" @filterSelectChange="refresh" />
|
||||
<filter-city v-if="project==='login'" ref="filerCity" filter-empty :local-param-name="localParamName" @filterSelectChange="refresh" />
|
||||
<el-input v-if="project==='login'" v-model="filterText" :placeholder="this.$t('global.filteringKeywords')" clearable />
|
||||
<div style="height: calc(100% - 76px); overflow: auto;">
|
||||
<el-tree
|
||||
@ -37,7 +37,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getPublishMapTree } from '@/api/management/mapprd';
|
||||
import { getTrainingSystemList, getSubSystemInfo, getSubSystemByProjectCode } from '@/api/trainingPlatform';
|
||||
import { UrlConfig } from '@/router/index';
|
||||
import FilterCity from '@/views/components/filterCity';
|
||||
@ -60,7 +59,6 @@ export default {
|
||||
return {
|
||||
loading: true,
|
||||
defaultShowKeys: [],
|
||||
queryFunction: getPublishMapTree,
|
||||
filterText: '',
|
||||
treeList: [],
|
||||
selected: {},
|
||||
|
Loading…
Reference in New Issue
Block a user