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 isVisibleReport = ref(false)
|
||||||
|
const reportParams = ref({
|
||||||
|
publishId: '',
|
||||||
|
communityId: '',
|
||||||
|
tenantId: '',
|
||||||
|
})
|
||||||
async function handleSelect(event: any, type: string, item: any) {
|
async function handleSelect(event: any, type: string, item: any) {
|
||||||
event.stopPropagation() // 阻止事件冒泡
|
event.stopPropagation() // 阻止事件冒泡
|
||||||
if (type === 'choiceness') {
|
if (type === 'choiceness') {
|
||||||
|
@ -298,6 +302,9 @@ async function handleSelect(event: any, type: string, item: any) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (type === 'complaint') {
|
else if (type === 'complaint') {
|
||||||
|
reportParams.value.communityId = item.communityId
|
||||||
|
reportParams.value.publishId = item.id
|
||||||
|
reportParams.value.tenantId = item.tenantId
|
||||||
isVisibleReport.value = true
|
isVisibleReport.value = true
|
||||||
}
|
}
|
||||||
else if (type === 'delete') {
|
else if (type === 'delete') {
|
||||||
|
@ -405,7 +412,7 @@ function handleDownload(url: string) {
|
||||||
v-for="(subItem, subIndex) in item.fileName.split(',')"
|
v-for="(subItem, subIndex) in item.fileName.split(',')"
|
||||||
:key="subIndex"
|
:key="subIndex"
|
||||||
title="点击下载"
|
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)"
|
@click="handleDownload(subItem)"
|
||||||
>
|
>
|
||||||
<FileChartColumn size="16" class="mr-1" />
|
<FileChartColumn size="16" class="mr-1" />
|
||||||
|
@ -457,7 +464,8 @@ function handleDownload(url: string) {
|
||||||
<div class="left-img">
|
<div class="left-img">
|
||||||
<img :src="ele.userAvatar">
|
<img :src="ele.userAvatar">
|
||||||
</div>
|
</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">
|
<div class="name">
|
||||||
{{ ele.userName }}
|
{{ ele.userName }}
|
||||||
<!-- <div v-if="ele.userId === props.detailsInfo.userId" class="author">
|
<!-- <div v-if="ele.userId === props.detailsInfo.userId" class="author">
|
||||||
|
@ -506,7 +514,7 @@ function handleDownload(url: string) {
|
||||||
<div>
|
<div>
|
||||||
<PlanetReport
|
<PlanetReport
|
||||||
v-model="isVisibleReport"
|
v-model="isVisibleReport"
|
||||||
:publish-list-params="props.publishListParams"
|
:publish-list-params="reportParams"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- <n-modal
|
<!-- <n-modal
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -56,12 +56,12 @@ async function onReport() {
|
||||||
if (reportType.value !== undefined) {
|
if (reportType.value !== undefined) {
|
||||||
const params = {
|
const params = {
|
||||||
communityId: props.publishListParams.communityId,
|
communityId: props.publishListParams.communityId,
|
||||||
content: reportTypeText.value,
|
description: reportTypeText.value,
|
||||||
reportType: reportType.value,
|
reportType: reportType.value,
|
||||||
publishId: props.publishListParams.publishId,
|
publishId: props.publishListParams.publishId,
|
||||||
tenantId: props.publishListParams.tenantId,
|
tenantId: props.publishListParams.tenantId,
|
||||||
}
|
}
|
||||||
const res = await request.post('/report/addReport', params)
|
const res = await request.post('/publish/report', params)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
message.success('举报成功!')
|
message.success('举报成功!')
|
||||||
emit('update:modelValue', false)
|
emit('update:modelValue', false)
|
||||||
|
|
|
@ -77,6 +77,7 @@ async function handlePublish() {
|
||||||
}
|
}
|
||||||
fileList.value = []
|
fileList.value = []
|
||||||
questionUrlList.value = [] // 清空图片URL列表
|
questionUrlList.value = [] // 清空图片URL列表
|
||||||
|
window.location.reload()
|
||||||
emit('success') // 触发成功事件
|
emit('success') // 触发成功事件
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ onMounted(() => {
|
||||||
</n-infinite-scroll>
|
</n-infinite-scroll>
|
||||||
</div>
|
</div>
|
||||||
</n-tab-pane>
|
</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="border border-solid border-gray-200 rounded-lg relative">
|
||||||
<div class="mc-table flex w-full bg-gray-200 sticky top-0">
|
<div class="mc-table flex w-full bg-gray-200 sticky top-0">
|
||||||
<div class="w-[250px]">
|
<div class="w-[250px]">
|
||||||
|
|
|
@ -82,7 +82,7 @@ onMounted(() => {
|
||||||
publishListParams.value = {
|
publishListParams.value = {
|
||||||
communityId: state.communityId,
|
communityId: state.communityId,
|
||||||
tenantId: state.tenantId,
|
tenantId: state.tenantId,
|
||||||
publishId: state.id,
|
publishId: state.publishId,
|
||||||
type: null,
|
type: null,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
@ -91,6 +91,7 @@ onMounted(() => {
|
||||||
questionParams.value = {
|
questionParams.value = {
|
||||||
communityId: state.communityId,
|
communityId: state.communityId,
|
||||||
tenantId: state.tenantId,
|
tenantId: state.tenantId,
|
||||||
|
publishId: state.publishId,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
}
|
}
|
||||||
|
@ -100,7 +101,7 @@ onMounted(() => {
|
||||||
publishListParams.value = {
|
publishListParams.value = {
|
||||||
communityId: route.query.communityId as string,
|
communityId: route.query.communityId as string,
|
||||||
tenantId: route.query.tenantId as string,
|
tenantId: route.query.tenantId as string,
|
||||||
publishId: route.query.id as string,
|
publishId: route.query.publishId as string,
|
||||||
type: null,
|
type: null,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
|
Loading…
Reference in New Issue