From c9616eb63a76318e31205a4f37fece2bab7bd7ef Mon Sep 17 00:00:00 2001 From: v-zhangjc9 Date: Mon, 23 Jun 2025 16:54:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E6=8F=90=E4=BA=A4=E9=81=97?= =?UTF-8?q?=E6=BC=8F=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/src/pages/ai/feedback/Feedback.tsx | 97 ++++++++++--------- 1 file changed, 50 insertions(+), 47 deletions(-) diff --git a/service-web/client/src/pages/ai/feedback/Feedback.tsx b/service-web/client/src/pages/ai/feedback/Feedback.tsx index 85804c3..429e4b9 100644 --- a/service-web/client/src/pages/ai/feedback/Feedback.tsx +++ b/service-web/client/src/pages/ai/feedback/Feedback.tsx @@ -5,8 +5,8 @@ import { commonInfo, crudCommonOptions, mappingField, - mappingItem, - pictureFromIds + mappingItem, paginationTemplate, + pictureFromIds, } from '../../../util/amis.tsx' const FeedbackDiv = styled.div` @@ -47,54 +47,57 @@ const Feedback: React.FC = () => { } }, ...crudCommonOptions(), - headerToolbar: [ - 'reload', - { - type: 'action', - label: '', - icon: 'fa fa-plus', - tooltip: '新增', - tooltipPlacement: 'top', - actionType: 'dialog', - dialog: { - title: '新增报账单', - size: 'md', - body: { - debug: commonInfo.debug, - type: 'form', - api: `${commonInfo.baseAiUrl}/feedback/save`, - body: [ - { - type: 'editor', - required: true, - label: '故障描述', - name: 'source', - language: 'plaintext', - options: { - lineNumbers: 'off', - wordWrap: 'bounded', + ...paginationTemplate( + 10, + 5, + [ + { + type: 'action', + label: '', + icon: 'fa fa-plus', + tooltip: '新增', + tooltipPlacement: 'top', + actionType: 'dialog', + dialog: { + title: '新增报账单', + size: 'md', + body: { + debug: commonInfo.debug, + type: 'form', + api: `${commonInfo.baseAiUrl}/feedback/save`, + body: [ + { + type: 'editor', + required: true, + label: '故障描述', + name: 'source', + language: 'plaintext', + options: { + lineNumbers: 'off', + wordWrap: 'bounded', + }, }, - }, - { - type: 'input-image', - name: 'pictures', - label: '相关截图', - autoUpload: false, - multiple: true, - joinValues: false, - extractValue: true, - // 5MB 5242880 - // 100MB 104857600 - // 500MB 524288000 - // 1GB 1073741824 - maxSize: 5242880, - receiver: `${commonInfo.baseAiUrl}/upload`, - }, - ], + { + type: 'input-image', + name: 'pictures', + label: '相关截图', + autoUpload: false, + multiple: true, + joinValues: false, + extractValue: true, + // 5MB 5242880 + // 100MB 104857600 + // 500MB 524288000 + // 1GB 1073741824 + maxSize: 5242880, + receiver: `${commonInfo.baseAiUrl}/upload`, + }, + ], + }, }, }, - }, - ], + ] + ), columns: [ { name: 'id',