From 26386882f013e7dba924423c2c49789e7f493c28 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Fri, 15 Aug 2025 03:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E7=BB=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../formalitiesAreConsolidated/index.ts | 18 +- src/components/FileUpload/index.vue | 4 + src/store/modules/notice.ts | 1 + src/utils/sse.ts | 2 + src/utils/websocket.ts | 2 + .../formalitiesAreConsolidated/index.vue | 156 ++++++++---------- .../formalities/listOfFormalities/index.vue | 2 +- src/views/materials/appointment/index.vue | 4 +- 8 files changed, 96 insertions(+), 93 deletions(-) diff --git a/src/api/formalities/formalitiesAreConsolidated/index.ts b/src/api/formalities/formalitiesAreConsolidated/index.ts index d9b80c0..af8d458 100644 --- a/src/api/formalities/formalitiesAreConsolidated/index.ts +++ b/src/api/formalities/formalitiesAreConsolidated/index.ts @@ -1,6 +1,10 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { FormalitiesAreConsolidatedVO, FormalitiesAreConsolidatedForm, FormalitiesAreConsolidatedQuery } from '@/api/formalities/formalitiesAreConsolidated/types'; +import { + FormalitiesAreConsolidatedVO, + FormalitiesAreConsolidatedForm, + FormalitiesAreConsolidatedQuery +} from '@/api/formalities/formalitiesAreConsolidated/types'; /** * 查询合规性手续合账列表 @@ -61,3 +65,15 @@ export const delFormalitiesAreConsolidated = (id: string | number | Array { + return request({ + url: '/formalities/formalitiesAreConsolidated/editStatus', + method: 'put', + data: data + }); +}; diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index fc2b092..cea8252 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -20,6 +20,7 @@ :auto-upload="autoUpload" :on-change="handleChange" :on-remove="handleRemove" + :method="method" >
@@ -120,6 +121,9 @@ const props = defineProps({ type: Function as PropType<(files: any[], res: any) => void>, default: undefined }, + // 上传方法 + method: propTypes.string.def('post'), + // 失败回调 onUploadError: { type: Function as PropType<(err: any, file: any, fileList: any) => void>, diff --git a/src/store/modules/notice.ts b/src/store/modules/notice.ts index 95f5294..df786b4 100644 --- a/src/store/modules/notice.ts +++ b/src/store/modules/notice.ts @@ -15,6 +15,7 @@ export const useNoticeStore = defineStore('notice', () => { }); const addNotice = (notice: NoticeItem) => { + console.log('🚀 ~ addNotice ~ notice:', notice); state.notices.push(notice); }; diff --git a/src/utils/sse.ts b/src/utils/sse.ts index 69447ad..97c4cc0 100644 --- a/src/utils/sse.ts +++ b/src/utils/sse.ts @@ -25,6 +25,8 @@ export const initSSE = (url: any) => { }); watch(data, () => { + console.log('SSE connection data:', data); + if (!data.value) return; useNoticeStore().addNotice({ message: data.value, diff --git a/src/utils/websocket.ts b/src/utils/websocket.ts index c9b394c..3c01190 100644 --- a/src/utils/websocket.ts +++ b/src/utils/websocket.ts @@ -32,6 +32,8 @@ export const initWebSocket = (url: any) => { console.log('websocket已经断开'); }, onMessage: (_, e) => { + console.log('websocket收到消息', e); + if (e.data.indexOf('ping') > 0) { return; } diff --git a/src/views/formalities/formalitiesAreConsolidated/index.vue b/src/views/formalities/formalitiesAreConsolidated/index.vue index 7d20ed6..43e696f 100644 --- a/src/views/formalities/formalitiesAreConsolidated/index.vue +++ b/src/views/formalities/formalitiesAreConsolidated/index.vue @@ -3,13 +3,13 @@
- - + + - - + + - + + + + @@ -129,41 +106,28 @@ - - - - - - - + - - - - - - - + + + - +

人员配置