Compare commits

...

2 Commits

Author SHA1 Message Date
31fa4e0a5c update 2025-06-21 15:59:38 +08:00
5d714030be update 2025-06-21 15:45:01 +08:00
3 changed files with 19 additions and 8 deletions

View File

@@ -176,7 +176,8 @@ onMounted(() => {
</resubmit> </resubmit>
</view> </view>
<view class="!w-[50%]" v-if="data.children.back[current]?.operate === 2"> <view class="!w-[50%]" v-if="data.children.back[current]?.operate === 2">
<reply-message-modal :data="data" @success="emits('success')" :backId="data.children.back[current].id"> <reply-message-modal :data="data" @success="emits('success')" :backId="data.children.back[current].id"
:pattern="1">
<tui-button>回复</tui-button> <tui-button>回复</tui-button>
</reply-message-modal> </reply-message-modal>
</view> </view>

View File

@@ -51,11 +51,18 @@ const {loading, pagination, initFetchData, fetchData} = useTableQuery({
:src="v.people.avatar"></image> :src="v.people.avatar"></image>
<view class="flex-grow content !flex flex-col"> <view class="flex-grow content !flex flex-col">
<view class="time">{{ dayjs(v.createtime).format('MM月DD日 HH:mm') }}</view> <view class="time">{{ dayjs(v.createtime).format('MM月DD日 HH:mm') }}</view>
<view class="px-[24rpx] py-[16rpx] bg-[#fff] rounded-[8rpx]" v-if="v.pattern===1" <view class="px-[24rpx] py-[16rpx] bg-[#fff] rounded-[8rpx]" v-if="v.pattern===1">
v-html="v.content"> <view v-html="v.content"></view>
<view v-if="v.image_arr.length > 0">
<x-image v-for="v in v.image_arr"></x-image>
</view>
</view> </view>
<view class="px-[24rpx] py-[16rpx] bg-[#fff] rounded-[8rpx] test-24r text-[#4E5969]" v-else <view class="px-[24rpx] py-[16rpx] bg-[#fff] rounded-[8rpx] test-24r text-[#4E5969]" v-else>
v-html="v.content"> <view v-html="v.content"></view>
<view v-if="v.image_arr.length > 0">
<x-image v-for="k in v.image_arr" :src="k" :list="v.image_arr"
style="width: 70rpx;height: 70rpx"></x-image>
</view>
</view> </view>
<view <view
:class="[v.status===0?'text_warn':'',v.status===1?'text_success':'',v.status===-1?'text_error':'', 'text_info']"> :class="[v.status===0?'text_warn':'',v.status===1?'text_success':'',v.status===-1?'text_error':'', 'text_info']">

View File

@@ -7,7 +7,7 @@ import {showToast, uploadFile} from "../../../utils/uils.js";
import Api from "../../../api/index.js"; import Api from "../../../api/index.js";
const emits = defineEmits(['success']); const emits = defineEmits(['success']);
const {data, backId, intervention} = defineProps({ const {data, backId, intervention, pattern} = defineProps({
data: { data: {
type: Object, type: Object,
default: {}, default: {},
@@ -16,6 +16,10 @@ const {data, backId, intervention} = defineProps({
type: Number, type: Number,
default: null, default: null,
}, },
pattern: {
type: Number,
default: null,
},
intervention: { intervention: {
type: Boolean, type: Boolean,
default: false, default: false,
@@ -26,7 +30,6 @@ const form = reactive({
id: data.children.id, id: data.children.id,
content: null, content: null,
images: [], images: [],
pattern: 0,
}); });
const upload = async () => { const upload = async () => {
@@ -39,7 +42,7 @@ const upload = async () => {
const success = async () => { const success = async () => {
const api = intervention ? Api.system.intervention : Api.system.addExchangeLog const api = intervention ? Api.system.intervention : Api.system.addExchangeLog
const {msg} = await api({...form, backfill_id: backId}); const {msg} = await api({...form, backfill_id: backId, pattern: pattern});
showToast(msg); showToast(msg);
form.images.length = 0; form.images.length = 0;
form.content = null; form.content = null;