From 5d655892ee07d47f38572b4fad7553125233f172 Mon Sep 17 00:00:00 2001 From: lq Date: Wed, 17 Dec 2025 10:12:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=95=86=E5=9F=8E=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/adapter/component/index.ts | 2 + apps/web-antd/src/app.vue | 2 +- .../form/components/upload-image-sortable.vue | 267 ++++++++++++++++++ .../form/components/upload-image.vue | 240 ++++++++-------- .../western-medicine/components/modal.vue | 55 +++- .../product/western-medicine/config/form.ts | 14 +- .../src/views/system/store/api/index.ts | 8 + .../src/views/system/store/config/form.ts | 28 ++ .../src/views/system/store/config/search.ts | 13 + .../src/views/system/store/config/table.ts | 14 + .../web-antd/src/views/system/store/index.vue | 34 ++- 11 files changed, 543 insertions(+), 134 deletions(-) create mode 100644 apps/web-antd/src/components/form/components/upload-image-sortable.vue diff --git a/apps/web-antd/src/adapter/component/index.ts b/apps/web-antd/src/adapter/component/index.ts index e4b38e89..ddd6552d 100644 --- a/apps/web-antd/src/adapter/component/index.ts +++ b/apps/web-antd/src/adapter/component/index.ts @@ -78,6 +78,8 @@ export type ComponentType = | 'TimePicker' | 'TreeSelect' | 'Upload' + | 'UploadImage' + | 'UploadImageSortable' | BaseFormComponentType; async function initComponentAdapter() { diff --git a/apps/web-antd/src/app.vue b/apps/web-antd/src/app.vue index ea81f39f..b5dce8d7 100644 --- a/apps/web-antd/src/app.vue +++ b/apps/web-antd/src/app.vue @@ -71,7 +71,7 @@ const initWebsocket = () => { // 当userInfo加载完成后再执行初始化 watch(userInfoLoaded, (loaded) => { if (loaded) { - initWebsocket(); + // initWebsocket(); } }); diff --git a/apps/web-antd/src/components/form/components/upload-image-sortable.vue b/apps/web-antd/src/components/form/components/upload-image-sortable.vue new file mode 100644 index 00000000..6922f3f1 --- /dev/null +++ b/apps/web-antd/src/components/form/components/upload-image-sortable.vue @@ -0,0 +1,267 @@ + + + + + diff --git a/apps/web-antd/src/components/form/components/upload-image.vue b/apps/web-antd/src/components/form/components/upload-image.vue index 65304632..04a18d0a 100644 --- a/apps/web-antd/src/components/form/components/upload-image.vue +++ b/apps/web-antd/src/components/form/components/upload-image.vue @@ -1,112 +1,135 @@