diff --git a/src/api/manage/banned/index.ts b/src/api/manage/banned/index.ts index 9385afa..9d7ad39 100644 --- a/src/api/manage/banned/index.ts +++ b/src/api/manage/banned/index.ts @@ -10,7 +10,7 @@ import { BannedVO, BannedForm, BannedQuery } from '@/api/manage/banned/types'; export const listBanned = (query?: BannedQuery): AxiosPromise => { return request({ - url: '/manage/banned/list', + url: '/manage/report/list', method: 'get', params: query }); diff --git a/src/components/Map/index.vue b/src/components/Map/index.vue new file mode 100644 index 0000000..2202018 --- /dev/null +++ b/src/components/Map/index.vue @@ -0,0 +1,177 @@ + + + + diff --git a/src/views/manage/activity/index.vue b/src/views/manage/activity/index.vue index 7854f52..4ff1c5b 100644 --- a/src/views/manage/activity/index.vue +++ b/src/views/manage/activity/index.vue @@ -5,10 +5,10 @@ - + - + @@ -62,7 +62,7 @@ @@ -136,13 +136,9 @@ /> -
- - - - - - +
+ +
@@ -220,7 +216,7 @@ import { activityUsersList } from '@/api/manage/activity'; import { ActivityVO, ActivityQuery, ActivityForm } from '@/api/manage/activity/types'; - +import { Search } from '@element-plus/icons-vue'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; const activityList = ref([]); @@ -238,8 +234,30 @@ const listdatatime = ref([{ activityTime: '', planContent: '' }]); const Answeringlist = ref([]); const activityUsersListarr = ref([]); const queryFormRef = ref(); +const publisherAddress = ref({}); +const Mapvalue = ref({}); +const Mapvaluetwo = ref({}); +const note_publish_list = ref([ + { value: 2, label: '已发布' }, + { value: 2, label: '未发布' }, + { value: 1, label: '草稿' } +]); const activityFormRef = ref(); - +const getMapValue = (value: any) => { + // console.log(value, 'wwwwwwwwwww'); + // publisherAddress.value = value; + //发布者地址 + form.value.publisherAddress = value.address; + form.value.publisherLongitude = value.longitude; + form.value.publisherLatitude = value.latitude; +}; +const getMapValueTwo = (value: any) => { + //活动地址 + console.log(value.address); + form.value.activityLocation = value.address; + form.value.activityLongitude = value.longitude; + form.value.activityLatitude = value.latitude; +}; const dialog = reactive({ visible: false, title: '' @@ -304,8 +322,8 @@ const data = reactive>({ isSelected: [{ required: true, message: '挑选玩友 0-不挑选 1-挑选不能为空', trigger: 'blur' }], activityTime: [{ required: true, message: '活动时间不能为空', trigger: 'blur' }], registrationDeadline: [{ required: true, message: '报名截止时间不能为空', trigger: 'blur' }], - publisherAddress: [{ required: true, message: '发布者地址不能为空', trigger: 'blur' }], - activityLocation: [{ required: true, message: '活动地点不能为空', trigger: 'blur' }], + // publisherAddress: [{ required: true, message: '发布者地址不能为空', trigger: 'blur' }], + // activityLocation: [{ required: true, message: '活动地点不能为空', trigger: 'blur' }], paymentMethod: [{ required: true, message: '收费方式 0-免费 1-发起人收款不能为空', trigger: 'blur' }], status: [{ required: true, message: '发布状态 0-未发布 1-审核中 2-发布不能为空', trigger: 'change' }] } @@ -370,13 +388,26 @@ const handleUpdate = async (row?: ActivityVO) => { console.log(arr); // = arr.data; Object.assign(form.value, res.data); - Object.assign(listdatatime.value, arr.data); + // Object.assign(listdatatime.value, arr.data); + Mapvalue.value = { + address: res.data.publisherAddress, + longitude: res.data.publisherLongitude, + latitude: res.data.publisherLatitude + }; + Mapvaluetwo.value = { + address: res.data.activityLocation, + longitude: res.data.activityLongitude, + latitude: res.data.activityLatitude + }; + listdatatime.value = arr.data; dialog.visible = true; dialog.title = '修改活动信息'; }; /** 提交按钮 */ const submitForm = () => { + console.log(form.value); + // return; form.value.dyActivityProcessList = listdatatime.value; console.log(form.value); // return @@ -438,8 +469,18 @@ const registrationCountnum = async (row) => { activityUsersListarr.value = res.rows; activityUserstotal.value = res.total; numdialog.visible = true; +}; +const chakanhandle = async (row?: ActivityVO) => { + }; onMounted(() => { getList(); }); + diff --git a/src/views/manage/banned/index.vue b/src/views/manage/banned/index.vue index 37f1ace..0f36198 100644 --- a/src/views/manage/banned/index.vue +++ b/src/views/manage/banned/index.vue @@ -45,24 +45,36 @@ - - - + + + + + + + + + - + - - + + diff --git a/src/views/manage/hotel/index.vue b/src/views/manage/hotel/index.vue index b8587b9..2e73db5 100644 --- a/src/views/manage/hotel/index.vue +++ b/src/views/manage/hotel/index.vue @@ -51,7 +51,7 @@ - +