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>
</view>
<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>
</reply-message-modal>
</view>

View File

@@ -51,11 +51,18 @@ const {loading, pagination, initFetchData, fetchData} = useTableQuery({
:src="v.people.avatar"></image>
<view class="flex-grow content !flex flex-col">
<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"
v-html="v.content">
<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">
<x-image v-for="v in v.image_arr"></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">
<x-image v-for="k in v.image_arr" :src="k" :list="v.image_arr"
style="width: 70rpx;height: 70rpx"></x-image>
</view>
<view class="px-[24rpx] py-[16rpx] bg-[#fff] rounded-[8rpx] test-24r text-[#4E5969]" v-else
v-html="v.content">
</view>
<view
: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";
const emits = defineEmits(['success']);
const {data, backId, intervention} = defineProps({
const {data, backId, intervention, pattern} = defineProps({
data: {
type: Object,
default: {},
@@ -16,6 +16,10 @@ const {data, backId, intervention} = defineProps({
type: Number,
default: null,
},
pattern: {
type: Number,
default: null,
},
intervention: {
type: Boolean,
default: false,
@@ -26,7 +30,6 @@ const form = reactive({
id: data.children.id,
content: null,
images: [],
pattern: 0,
});
const upload = async () => {
@@ -39,7 +42,7 @@ const upload = async () => {
const success = async () => {
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);
form.images.length = 0;
form.content = null;