This commit is contained in:
王一嘉
2025-07-22 18:38:39 +08:00
parent d4b90b09f8
commit 8d4c585e53
7 changed files with 55 additions and 14 deletions

View File

@@ -29,6 +29,7 @@ const vo = reactive({
const {loading, pagination, initFetchData} = useTableQuery({
api: Api.system.getMessageCenter,
uuid: true,
parameter: po,
callback: (data) => {
Object.assign(vo, data);

View File

@@ -55,14 +55,14 @@ const {loading, pagination, initFetchData, fetchData} = useTableQuery({
<view class="px-[24rpx] py-[16rpx] bg-[#fff] rounded-[8rpx]" v-if="v.pattern===1">
<view v-html="v.content"></view>
<view v-if="v.image_arr.length > 0" class="!flex flex-wrap gap-2">
<x-image v-for="v in v.image_arr" :src="v"
<x-image v-for="(v, index) in v.image_arr" :cur="index" :src="v"
style="width: 80rpx;height: 80rpx"></x-image>
</view>
</view>
<view class="px-[24rpx] py-[16rpx] bg-[#fff] rounded-[8rpx] test-24r text-[#4E5969]" v-else>
<view v-html="v.content"></view>
<view v-if="v.image_arr.length > 0" class="!flex flex-wrap gap-2 justify-end">
<x-image v-for="k in v.image_arr" :src="k" :list="v.image_arr"
<x-image v-for="(k, index) in v.image_arr" :cur="index" :src="k" :list="v.image_arr"
style="width: 70rpx;height: 70rpx"></x-image>
</view>
</view>

View File

@@ -29,6 +29,11 @@ const {loading, pagination, initFetchData} = useTableQuery({
Object.assign(vo, data);
}
});
const init = () => {
sumPo.type = 0;
sumPo.datetime = dayjs().format('YYYY-MM');
}
</script>
<template>
@@ -36,6 +41,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<x-nav></x-nav>
<x-filter
@init="init"
@success="initFetchData"
v-model:model="sumPo"
v-model:visible="showFilter">
@@ -73,7 +79,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
<scroll-view
@refresherpulling="initFetchData()"
@scrolltolower="pagination.current++"
@scrolltolower="pagination.page++"
scroll-y
class="h-[calc(100vh-200rpx)]">
<view class="p-[20rpx]" v-for="item in vo.rows" :key="item.id">