From ec35dbd49dfa343a20c332e9db5191569280e5eb Mon Sep 17 00:00:00 2001 From: Zhufu <1176354795@qq.com> Date: Wed, 3 Jul 2024 11:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9B=BE=E6=96=91=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E3=80=91=E6=94=B6=E8=97=8F&=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bootstraps/index.ts | 7 +- .../MapList/ShowInfoModal/index.vue | 46 +++++++++++++ .../bootstraps/curbspotcity/MapList/index.vue | 66 +++++++++++++++---- .../demo/bootstraps/curbspotcity/index.vue | 8 +++ 4 files changed, 112 insertions(+), 15 deletions(-) create mode 100644 src/views/demo/bootstraps/curbspotcity/MapList/ShowInfoModal/index.vue 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);