master
parent
16f4689ab3
commit
f02a22e2b1
Binary file not shown.
Before Width: | Height: | Size: 845 B After Width: | Height: | Size: 838 B |
Binary file not shown.
After Width: | Height: | Size: 845 B |
|
@ -282,7 +282,11 @@ async function handleDel(type: string, item: any) {
|
|||
|
||||
// 举报
|
||||
const isVisibleReport = ref(false)
|
||||
|
||||
const reportParams = ref({
|
||||
publishId: '',
|
||||
communityId: '',
|
||||
tenantId: '',
|
||||
})
|
||||
async function handleSelect(event: any, type: string, item: any) {
|
||||
event.stopPropagation() // 阻止事件冒泡
|
||||
if (type === 'choiceness') {
|
||||
|
@ -298,6 +302,9 @@ async function handleSelect(event: any, type: string, item: any) {
|
|||
}
|
||||
}
|
||||
else if (type === 'complaint') {
|
||||
reportParams.value.communityId = item.communityId
|
||||
reportParams.value.publishId = item.id
|
||||
reportParams.value.tenantId = item.tenantId
|
||||
isVisibleReport.value = true
|
||||
}
|
||||
else if (type === 'delete') {
|
||||
|
@ -405,7 +412,7 @@ function handleDownload(url: string) {
|
|||
v-for="(subItem, subIndex) in item.fileName.split(',')"
|
||||
:key="subIndex"
|
||||
title="点击下载"
|
||||
class="text-[#4a5563] text-sm cursor-pointer flex items-center hover:text-[#4a5563]/80"
|
||||
class="text-[#4a5563] text-sm cursor-pointer flex items-center hover:text-[#4a5563]/80 my-1"
|
||||
@click="handleDownload(subItem)"
|
||||
>
|
||||
<FileChartColumn size="16" class="mr-1" />
|
||||
|
@ -457,7 +464,8 @@ function handleDownload(url: string) {
|
|||
<div class="left-img">
|
||||
<img :src="ele.userAvatar">
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="right relative">
|
||||
<!-- <img src="@/assets/img/accept.png" alt="" class="absolute top-0 right-0 w-10 h-10"> -->
|
||||
<div class="name">
|
||||
{{ ele.userName }}
|
||||
<!-- <div v-if="ele.userId === props.detailsInfo.userId" class="author">
|
||||
|
@ -506,7 +514,7 @@ function handleDownload(url: string) {
|
|||
<div>
|
||||
<PlanetReport
|
||||
v-model="isVisibleReport"
|
||||
:publish-list-params="props.publishListParams"
|
||||
:publish-list-params="reportParams"
|
||||
/>
|
||||
</div>
|
||||
<!-- <n-modal
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -56,12 +56,12 @@ async function onReport() {
|
|||
if (reportType.value !== undefined) {
|
||||
const params = {
|
||||
communityId: props.publishListParams.communityId,
|
||||
content: reportTypeText.value,
|
||||
description: reportTypeText.value,
|
||||
reportType: reportType.value,
|
||||
publishId: props.publishListParams.publishId,
|
||||
tenantId: props.publishListParams.tenantId,
|
||||
}
|
||||
const res = await request.post('/report/addReport', params)
|
||||
const res = await request.post('/publish/report', params)
|
||||
if (res.code === 200) {
|
||||
message.success('举报成功!')
|
||||
emit('update:modelValue', false)
|
||||
|
|
|
@ -77,6 +77,7 @@ async function handlePublish() {
|
|||
}
|
||||
fileList.value = []
|
||||
questionUrlList.value = [] // 清空图片URL列表
|
||||
window.location.reload()
|
||||
emit('success') // 触发成功事件
|
||||
}
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ onMounted(() => {
|
|||
</n-infinite-scroll>
|
||||
</div>
|
||||
</n-tab-pane>
|
||||
<n-tab-pane name="beatles" tab="消费记录">
|
||||
<n-tab-pane name="beatles" tab="收入支出">
|
||||
<div class="border border-solid border-gray-200 rounded-lg relative">
|
||||
<div class="mc-table flex w-full bg-gray-200 sticky top-0">
|
||||
<div class="w-[250px]">
|
||||
|
|
|
@ -82,7 +82,7 @@ onMounted(() => {
|
|||
publishListParams.value = {
|
||||
communityId: state.communityId,
|
||||
tenantId: state.tenantId,
|
||||
publishId: state.id,
|
||||
publishId: state.publishId,
|
||||
type: null,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
|
@ -91,6 +91,7 @@ onMounted(() => {
|
|||
questionParams.value = {
|
||||
communityId: state.communityId,
|
||||
tenantId: state.tenantId,
|
||||
publishId: state.publishId,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
}
|
||||
|
@ -100,7 +101,7 @@ onMounted(() => {
|
|||
publishListParams.value = {
|
||||
communityId: route.query.communityId as string,
|
||||
tenantId: route.query.tenantId as string,
|
||||
publishId: route.query.id as string,
|
||||
publishId: route.query.publishId as string,
|
||||
type: null,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
|
|
Loading…
Reference in New Issue