From f991a8033dc84dd5c9dc2b3e99e29650ab875b58 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Thu, 8 May 2025 14:16:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=87=E6=9C=AC=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E3=80=81=E5=88=9B=E5=BB=BA=E6=96=87=E4=BB=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E8=B0=83=E6=95=B4=E9=80=9A=E7=94=A8=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=B8=83=E5=B1=80=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 17 ++++++ package.json | 1 + src/api/tool.ts | 13 +++++ src/views/system/gen-chat.vue | 101 +++++++++++++++++++++++++++++++++- yarn.lock | 12 ++++ 5 files changed, 141 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 218dd9c..6618580 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,6 +35,7 @@ "mermaid-it-markdown": "^1.0.8", "nprogress": "^0.2.0", "pinia": "^2.1.7", + "vditor": "^3.11.0", "vue": "^3.4.5", "vue-cropper": "1.1.1", "vue-cropperjs": "^5.0.0", @@ -2287,6 +2288,11 @@ "node": ">=0.3.1" } }, + "node_modules/diff-match-patch": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz", + "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==" + }, "node_modules/dom7": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/dom7/-/dom7-3.0.0.tgz", @@ -5222,6 +5228,17 @@ "node": ">=8" } }, + "node_modules/vditor": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/vditor/-/vditor-3.11.0.tgz", + "integrity": "sha512-UfucKF2wstR6w92RG8BOMjbfbE241qP9qIb5i5J64vHTVdWzkWhv6DFNsKe6THBiD+RKQdeQMorCW1uDgoHaMw==", + "dependencies": { + "diff-match-patch": "^1.0.5" + }, + "funding": { + "url": "https://ld246.com/sponsor" + } + }, "node_modules/vite": { "version": "3.2.10", "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.10.tgz", diff --git a/package.json b/package.json index 59a1268..dc2d98c 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "mermaid-it-markdown": "^1.0.8", "nprogress": "^0.2.0", "pinia": "^2.1.7", + "vditor": "^3.11.0", "vue": "^3.4.5", "vue-cropper": "1.1.1", "vue-cropperjs": "^5.0.0", diff --git a/src/api/tool.ts b/src/api/tool.ts index 78b3ca9..f2c395c 100644 --- a/src/api/tool.ts +++ b/src/api/tool.ts @@ -59,4 +59,17 @@ export const GetDashBoardStatisticsService = (Data) => { 'token': Data.token, } }) +} + +export const SetMessageTextToDocService = (Data) => { + const params = new URLSearchParams(); + for (let key in Data) { + params.append(key, Data[key]) + } + //let request1 = getRequest(); + return request.post('/tool/text_to_docx', params,{ + headers: { + 'token': Data.token, + } + }) } \ No newline at end of file diff --git a/src/views/system/gen-chat.vue b/src/views/system/gen-chat.vue index c2e0565..eb510c8 100644 --- a/src/views/system/gen-chat.vue +++ b/src/views/system/gen-chat.vue @@ -63,11 +63,26 @@