From aba625587a45c95d35560f5d4905f3f4959b2b90 Mon Sep 17 00:00:00 2001 From: "@zhu-yuefeng" <761784171@qq.com> Date: Tue, 10 Oct 2023 09:59:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=92=A8=E8=AF=A2=E6=A1=A3=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../electronicConsultation.js | 54 +++ src/views/ea/electronicConsultation/index.vue | 392 ++++++++++++++++++ yarn.lock | 20 +- 3 files changed, 456 insertions(+), 10 deletions(-) create mode 100644 src/api/ea/electronicConsultation/electronicConsultation.js create mode 100644 src/views/ea/electronicConsultation/index.vue diff --git a/src/api/ea/electronicConsultation/electronicConsultation.js b/src/api/ea/electronicConsultation/electronicConsultation.js new file mode 100644 index 00000000..ff97aabc --- /dev/null +++ b/src/api/ea/electronicConsultation/electronicConsultation.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建咨询档案 +export function createElectronicConsultation(data) { + return request({ + url: '/ea/electronic-consultation/create', + method: 'post', + data: data + }) +} + +// 更新咨询档案 +export function updateElectronicConsultation(data) { + return request({ + url: '/ea/electronic-consultation/update', + method: 'put', + data: data + }) +} + +// 删除咨询档案 +export function deleteElectronicConsultation(id) { + return request({ + url: '/ea/electronic-consultation/delete?id=' + id, + method: 'delete' + }) +} + +// 获得咨询档案 +export function getElectronicConsultation(id) { + return request({ + url: '/ea/electronic-consultation/get?id=' + id, + method: 'get' + }) +} + +// 获得咨询档案分页 +export function getElectronicConsultationPage(query) { + return request({ + url: '/ea/electronic-consultation/page', + method: 'get', + params: query + }) +} + +// 导出咨询档案 Excel +export function exportElectronicConsultationExcel(query) { + return request({ + url: '/ea/electronic-consultation/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/ea/electronicConsultation/index.vue b/src/views/ea/electronicConsultation/index.vue new file mode 100644 index 00000000..5a000135 --- /dev/null +++ b/src/views/ea/electronicConsultation/index.vue @@ -0,0 +1,392 @@ + + + diff --git a/yarn.lock b/yarn.lock index 03ac9465..31c83dae 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2332,7 +2332,7 @@ binary-extensions@^2.0.0: bindings@^1.5.0: version "1.5.0" - resolved "https://registry.npmmirror.com/bindings/-/bindings-1.5.0.tgz" + resolved "https://registry.npmmirror.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== dependencies: file-uri-to-path "1.0.0" @@ -3584,7 +3584,7 @@ dashdash@^1.12.0: dayjs@^1.11.9: version "1.11.9" - resolved "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.9.tgz#9ca491933fadd0a60a2c19f6c237c03517d71d1a" + resolved "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.9.tgz" integrity sha512-QvzAURSbQ0pKdIye2txOzNaHmxtUBXerpY0FJsFXUMKbIZeFm5ht1LS/jFsrncjnmtv8HsG0W2g6c0zUjZWmpA== debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: @@ -4684,7 +4684,7 @@ file-saver@2.0.5: file-uri-to-path@1.0.0: version "1.0.0" - resolved "https://registry.npmmirror.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz" + resolved "https://registry.npmmirror.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== filesize@^3.6.1: @@ -4906,16 +4906,16 @@ fs.realpath@^1.0.0: fsevents@^1.2.7: version "1.2.13" - resolved "https://registry.npmmirror.com/fsevents/-/fsevents-1.2.13.tgz" + resolved "https://registry.npmmirror.com/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38" integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw== dependencies: bindings "^1.5.0" nan "^2.12.1" fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.2.tgz" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + version "2.3.3" + resolved "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== function-bind@^1.1.1: version "1.1.1" @@ -6902,9 +6902,9 @@ mz@^2.4.0: thenify-all "^1.0.0" nan@^2.12.1: - version "2.17.0" - resolved "https://registry.npmmirror.com/nan/-/nan-2.17.0.tgz" - integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ== + version "2.18.0" + resolved "https://registry.npmmirror.com/nan/-/nan-2.18.0.tgz#26a6faae7ffbeb293a39660e88a76b82e30b7554" + integrity sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w== nanoid@^3.3.4: version "3.3.4"