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 @@ - + @@ -20,14 +19,14 @@ - + 搜索 重置 + 新增 @@ -35,25 +34,6 @@ - - - - 新增 - - - - - - - - - - - - @@ -101,23 +81,36 @@ - 编辑 - 发布 - 撤销发布 + 编辑 + 发布 + 撤销发布 - 删除 + 删除 - + @@ -302,9 +295,9 @@ const formatTag = (tagId: string | null) => { // } for (let i = 0; i < sys_user_tagOptions.value.length; i++) { const element = sys_user_tagOptions.value[i]; - if (tagId!=null) { - let filteredArray = tagId.split(',').filter((item) => item==element.id); - if (filteredArray.length>0) { + if (tagId != null) { + let filteredArray = tagId.split(',').filter((item) => item == element.id); + if (filteredArray.length > 0) { tagString += ',' + element.title; } } @@ -383,6 +376,8 @@ const handleSelectionChange = (selection: NotebookVO[]) => { const handleAdd = () => { reset(); dialog.visible = true; + tagvalue.value = ''; + addressvalue.value = ''; dialog.title = '添加笔记'; }; @@ -392,8 +387,8 @@ const handleUpdate = async (row?: NotebookVO) => { const _id = row?.id || ids.value[0]; const res = await getNotebook(_id); Object.assign(form.value, res.data); - tagvalue.value = form.value.tagId.split(','); - addressvalue.value = form.value.location.split(','); + tagvalue.value = form.value.tagId && form.value.tagId.split(','); + addressvalue.value = form.value.tagId && form.value.location.split(','); dialog.visible = true; dialog.title = '修改笔记'; }; diff --git a/src/views/manage/report/index.vue b/src/views/manage/report/index.vue index f8a2a6a..110e0e2 100644 --- a/src/views/manage/report/index.vue +++ b/src/views/manage/report/index.vue @@ -5,20 +5,21 @@ - + - + - + + - + - - + + @@ -42,25 +43,25 @@ - + - 查看笔记 + {{ scope.row.contentName }} - + - 查看活动 + {{ scope.row.contentName }} + + + + + {{ scope.row.contentName }} - - - 查看笔记 - - - {{formatlevel(scope.row.levelId)}} + {{ formatlevel(scope.row.levelId) }} @@ -75,7 +76,7 @@ - + 未处理 已处理 @@ -171,6 +172,7 @@ const data = reactive>({ queryParams: { pageNum: 1, pageSize: 10, + nickName: undefined, contentId: undefined, reportUserId: undefined, reportReason: undefined, @@ -229,6 +231,10 @@ const handleQuery = () => { /** 重置按钮操作 */ const resetQuery = () => { queryFormRef.value?.resetFields(); + queryParams.value.nickName = ''; + queryParams.value.sex = ''; + queryParams.value.handlingStatus = ''; + queryParams.value.levelId = ''; handleQuery(); }; diff --git a/src/views/manage/route/index.vue b/src/views/manage/route/index.vue index 32a0035..dd86f01 100644 --- a/src/views/manage/route/index.vue +++ b/src/views/manage/route/index.vue @@ -1,34 +1,29 @@ - + - + - + 搜索 重置 - 新增 + 新增 - + @@ -80,20 +75,40 @@ - 编辑 - 删除 - 发布 - 撤销发布 + 编辑 + 删除 + 发布 + 撤销发布 - + @@ -110,9 +125,8 @@ - - + + @@ -176,15 +190,13 @@ - + 添加景点 - + @@ -383,7 +395,7 @@ const data = reactive>({ routeDriveHour: [{ required: true, message: '行驶时长', trigger: 'blur' }], routeMileage: [{ required: true, message: '行程里数', trigger: 'blur' }], routeDays: [{ required: true, message: '行程天数', trigger: 'blur' }], - region: [{ required: true, message: '涉及的行政区', trigger: 'blur' }], + region: [{ required: true, message: '涉及的行政区不能为空', trigger: 'blur' }], tagId: [{ required: true, message: '标签不能为空', trigger: 'blur' }], title: [{ required: true, message: '线路标题', trigger: 'blur' }] } @@ -510,9 +522,9 @@ const formatTag = (tagId: string | null) => { // } for (let i = 0; i < sys_user_tagOptions.value.length; i++) { const element = sys_user_tagOptions.value[i]; - if (tagId!=null) { - let filteredArray = tagId.split(',').filter((item) => item==element.id); - if (filteredArray.length>0) { + if (tagId != null) { + let filteredArray = tagId.split(',').filter((item) => item == element.id); + if (filteredArray.length > 0) { tagString += ',' + element.title; } } @@ -536,7 +548,7 @@ const handleUpdate = async (row?: RouteVO) => { /** 提交按钮 */ const submitForm = async (type) => { form.value.tagId = tagvalue?.value.length != 0 ? tagvalue?.value.join(',') : ''; - form.value.region = treevalue?.value ? JSON.stringify(treevalue?.value) : ''; + form.value.region = treevalue?.value.length ==0?'': JSON.stringify(treevalue?.value); form.value.status = Number(type); form.value.routeDetailsList = bookrouteDetailsList.value; if (type == 1) { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 46bffd2..512bf38 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -72,21 +72,21 @@ 删除 - - - - 更多 - - - - 下载模板 - 导入数据 - 导出数据 - - - - + + + + + + + + + + + + + + +