From e09ad2fcc8f46684d188bdb40785a4b386c88479 Mon Sep 17 00:00:00 2001 From: helen Date: Thu, 26 Dec 2024 14:41:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manage/banned/types.ts | 3 ++ src/components/Map/index.vue | 9 ++-- src/views/manage/activity/index.vue | 4 +- src/views/manage/hotel/index.vue | 18 ++----- src/views/manage/mkJigsaw/index.vue | 12 +---- src/views/manage/noteManage/index.vue | 71 ++++++++++++------------- src/views/manage/report/index.vue | 40 ++++++++------ src/views/manage/route/index.vue | 76 ++++++++++++++++----------- src/views/system/user/index.vue | 30 +++++------ 9 files changed, 130 insertions(+), 133 deletions(-) diff --git a/src/api/manage/banned/types.ts b/src/api/manage/banned/types.ts index 86cc5aa..2eabf24 100644 --- a/src/api/manage/banned/types.ts +++ b/src/api/manage/banned/types.ts @@ -48,6 +48,7 @@ export interface BannedVO { * 状态(0=已发布,1=已下架) */ handlingStatus: number; + nickName?: string | number; /** * 1=用户,2=笔记,3=活动,4=评论 @@ -106,6 +107,7 @@ export interface BannedForm extends BaseEntity { * 状态(0=已发布,1=已下架) */ handlingStatus?: number; + nickName?: string | number; /** * 1=用户,2=笔记,3=活动,4=评论 @@ -120,6 +122,7 @@ export interface BannedQuery extends PageQuery { * 被举报内容id */ contentId?: string | number; + nickName?: string | number; /** * 被举报用户ID diff --git a/src/components/Map/index.vue b/src/components/Map/index.vue index e6bad42..378b0fb 100644 --- a/src/components/Map/index.vue +++ b/src/components/Map/index.vue @@ -33,6 +33,7 @@ import { Search } from '@element-plus/icons-vue'; import { propTypes } from '@/utils/propTypes'; import { jsonp } from 'vue-jsonp'; +const { proxy } = getCurrentInstance() as ComponentInternalInstance; import { debounce } from '@/utils/debounce.js'; import { OssVO } from '@/api/system/oss/types'; import { listByIds } from '@/api/system/oss'; @@ -93,8 +94,7 @@ const onClick = (e: any) => { // form.value.city = data.result.address_component.city; // form.value.region = data.result.ad_info.adcode; //行政区划编码 form.value.regionCode = data.result.ad_info.adcode; //行政区划编码 - center.value.lat = data.result.location.lat; - center.value.lng = data.result.location.lng; + center.value = { lat: data.result.location.lat, lng: data.result.location.lng }; searchLocation.value = data.result.formatted_addresses.recommend; geometries.value = [{ styleId: 'marker', position: { lat: data.result.location.lat, lng: data.result.location.lng } }]; console.log(form.value); @@ -119,8 +119,6 @@ const performSearch = async (text) => { jsonp(`https://apis.map.qq.com/ws/geocoder/v1/?address=${text}&key=${'6XFBZ-SAVLT-JGIX2-VOLMK-6S2H3-XUBGO'}&output=jsonp`, {}).then((data) => { console.log(data); if (data.status == 0) { - center.value.lat = data.result.location.lat; - center.value.lng = data.result.location.lng; // form.value.address = // data.result.address_components.province + // data.result.address_components.city + @@ -132,8 +130,9 @@ const performSearch = async (text) => { // form.value.region = data.result.ad_info.adcode; //行政区划编码 // form.value.regionCode = data.result.ad_info.adcode; //行政区划编码 - form.value.address = data.result.formatted_addresses.recommend; + form.value.address = text; // form.value.city = data.result.address_components.city; + center.value = { lat: data.result.location.lat, lng: data.result.location.lng }; geometries.value = [{ styleId: 'marker', position: { lat: data.result.location.lat, lng: data.result.location.lng } }]; console.log(form.value); emit('modelValue', form.value); diff --git a/src/views/manage/activity/index.vue b/src/views/manage/activity/index.vue index 9b557e3..9c69b39 100644 --- a/src/views/manage/activity/index.vue +++ b/src/views/manage/activity/index.vue @@ -465,7 +465,7 @@ const saveupdate = async (row?: ActivityVO, type) => { form.value.status = type == 1 ? 2 : 0; const test = type == 1 ? '发布' : '撤销发布'; const _ids = row?.activityName || ids.value; - await proxy?.$modal.confirm('是否确认' + test + '活动信息编号为' + _ids + '的数据项?').finally(() => (loading.value = false)); + await proxy?.$modal.confirm('是否确认' + test + '活动名称 为' + _ids + '的数据项?').finally(() => (loading.value = false)); await updateActivity(form.value).finally(() => (buttonLoading.value = false)); proxy?.$modal.msgSuccess(test + '成功'); await getList(); @@ -526,7 +526,7 @@ const submitForm = () => { const handleDelete = async (row?: ActivityVO) => { const _ids = row?.id || ids.value; const _idsname = row?.activityName || ids.value; - await proxy?.$modal.confirm('是否确认删除活动信息编号为"' + _idsname + '"的数据项?').finally(() => (loading.value = false)); + await proxy?.$modal.confirm('是否确认删除活动名称为"' + _idsname + '"的数据项?').finally(() => (loading.value = false)); await delActivity(_ids); proxy?.$modal.msgSuccess('删除成功'); await getList(); diff --git a/src/views/manage/hotel/index.vue b/src/views/manage/hotel/index.vue index 50d125d..672d26b 100644 --- a/src/views/manage/hotel/index.vue +++ b/src/views/manage/hotel/index.vue @@ -16,6 +16,7 @@ 搜索 重置 + 新增 @@ -23,15 +24,6 @@ - - @@ -307,7 +299,7 @@ const handleEdit = async (row?: HotelVO) => { const res = await getHotel(_id); Object.assign(form.value, res.data); const _idname = row?.name; - const text = row?.status != 1 ? '是否确认发布商家名称为' : '是否撤销发布商家名称为'; + const text = row?.status != 1 ? '是否确认发布商家名称为"' : '是否撤销发布商家名称为"'; const messages = row?.status != 1 ? '发布成功' : '撤销成功'; await proxy?.$modal.confirm(text + _idname + '"的数据项?').finally(() => (loading.value = false)); const template = { @@ -337,8 +329,6 @@ const performSearch = async (text) => { jsonp(`https://apis.map.qq.com/ws/geocoder/v1/?address=${text}&key=${'6XFBZ-SAVLT-JGIX2-VOLMK-6S2H3-XUBGO'}&output=jsonp`, {}).then((data) => { console.log(data); if (data.status == 0) { - center.value.lat = data.result.location.lat; - center.value.lng = data.result.location.lng; form.value.address = data.result.address_components.province + data.result.address_components.city + @@ -351,6 +341,7 @@ const performSearch = async (text) => { form.value.regionCode = data.result.ad_info.adcode; //行政区划编码 // form.value.province = data.result.address_components.province; // form.value.city = data.result.address_components.city; + center.value = { lat: data.result.location.lat, lng: data.result.location.lng }; geometries.value = [{ styleId: 'marker', position: { lat: data.result.location.lat, lng: data.result.location.lng } }]; } else if (data.status == 348) { //地址信息不明确,需弹出提示 @@ -380,8 +371,7 @@ const onClick = (e: any) => { // form.value.city = data.result.address_component.city; // form.value.region = data.result.ad_info.adcode; //行政区划编码 form.value.regionCode = data.result.ad_info.adcode; //行政区划编码 - center.value.lat = data.result.location.lat; - center.value.lng = data.result.location.lng; + center.value = { lat: data.result.location.lat, lng: data.result.location.lng }; searchLocation.value = data.result.formatted_addresses.recommend; geometries.value = [{ styleId: 'marker', position: { lat: data.result.location.lat, lng: data.result.location.lng } }]; } diff --git a/src/views/manage/mkJigsaw/index.vue b/src/views/manage/mkJigsaw/index.vue index 887acc8..4af0193 100644 --- a/src/views/manage/mkJigsaw/index.vue +++ b/src/views/manage/mkJigsaw/index.vue @@ -15,6 +15,7 @@ 搜索 重置 + 新增 @@ -22,15 +23,6 @@ - - @@ -131,7 +123,7 @@ end-placeholder="选择结束时间" format="YYYY-MM-DD HH:mm:ss" date-format="YYYY/MM/DD ddd" - time-format="A hh:mm:ss" + time-format="HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :picker-options="{ disabledDate: dateOptions }" @change="mkdatetime" diff --git a/src/views/manage/noteManage/index.vue b/src/views/manage/noteManage/index.vue index 1f2d0b1..0dde58c 100644 --- a/src/views/manage/noteManage/index.vue +++ b/src/views/manage/noteManage/index.vue @@ -1,8 +1,7 @@ - + - + + + + - - - @@ -75,7 +76,7 @@ - +