diff --git a/src/api/bootstraps/index.ts b/src/api/bootstraps/index.ts index f7825def..43849848 100644 --- a/src/api/bootstraps/index.ts +++ b/src/api/bootstraps/index.ts @@ -14,7 +14,8 @@ enum Api { // 收藏案件 AddCaseFavorite = '/api/DroneCaseinfo/AddCaseFavorite', // 获取收藏案件列表 - FavoriteCaseList = '/api/DroneCaseinfo/FavoriteCaseList' + FavoriteCaseList = '/api/DroneCaseinfo/FavoriteCaseList', + DeleteFavoriteCase = '/api/DroneCaseinfo/DeleteFavoriteCase', } /** @@ -47,6 +48,10 @@ export function getLoadTaskDetailList(params?: taskInfoParams) { export function addCaseFavorite(params?: addCaseFavoriteParams) { return defHttp.post({ url: Api.AddCaseFavorite, params }); } +export function deleteFavoriteCase(params: string){ + return defHttp.post({ url: Api.DeleteFavoriteCase, data:params }); +} + export function getFavoriteCaseList(params?: {uid:string}) { return defHttp.get({ url: Api.FavoriteCaseList, params }); } \ No newline at end of file diff --git a/src/views/demo/bootstraps/curbspotcity/MapList/ShowInfoModal/index.vue b/src/views/demo/bootstraps/curbspotcity/MapList/ShowInfoModal/index.vue new file mode 100644 index 00000000..ea1fe720 --- /dev/null +++ b/src/views/demo/bootstraps/curbspotcity/MapList/ShowInfoModal/index.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/views/demo/bootstraps/curbspotcity/MapList/index.vue b/src/views/demo/bootstraps/curbspotcity/MapList/index.vue index 7ac6001b..157dbc51 100644 --- a/src/views/demo/bootstraps/curbspotcity/MapList/index.vue +++ b/src/views/demo/bootstraps/curbspotcity/MapList/index.vue @@ -130,7 +130,7 @@ {{`排序(耕地面积) ${props.infoScreenData.sort === 'gengdi_area'? orderMark(): '-'}`}} 导出 - 我的收藏 + 我的收藏 查询 @@ -167,8 +167,9 @@
- - + + +
@@ -182,14 +183,27 @@ show-quick-jumper @change="changePage" /> + + + diff --git a/src/views/demo/bootstraps/curbspotcity/index.vue b/src/views/demo/bootstraps/curbspotcity/index.vue index f0ee57af..f2595380 100644 --- a/src/views/demo/bootstraps/curbspotcity/index.vue +++ b/src/views/demo/bootstraps/curbspotcity/index.vue @@ -27,6 +27,7 @@ @mapListScreenChange="mapListScreenChange" @closeShowInfo="changeShowInfo" @changeTask="changeTask" + @collectChange="collectChange" /> @@ -72,6 +73,7 @@ const infoScreenData = ref({ markType: '', sort: '', order: '', + type: '', // 收藏 }) const pageNo = ref(1) const pageSize = ref(10) @@ -179,6 +181,7 @@ const getParams = () => { limit: pageSize.value, sort: infoScreenData.value.sort, order: infoScreenData.value.order, + type: infoScreenData.value.type, } Object.keys(params).forEach(key => { if(params[key] !== '' && params[key] !== null){ @@ -230,6 +233,11 @@ const changeInfoPage = (page, limit) => { pageSize.value = limit getInfoList() } +const collectChange = (value) => { + pageNo.value = 1 + infoScreenData.value.type = value + getInfoList() +} function changeTask(val) { console.log(val);