From 31c40d68f69d4bfa57bc6c75095e763378d0b84a Mon Sep 17 00:00:00 2001 From: Euni4U <958079825@qq.com> Date: Thu, 26 Dec 2024 10:44:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E9=94=AE=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BF=AE=E6=94=B9=E8=BF=94?= =?UTF-8?q?=E4=BF=AE=E7=94=B3=E8=AF=B7=E6=9D=83=E9=99=90=E5=88=A4=E6=96=AD?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=A4=8D=E5=88=B6=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + pnpm-lock.yaml | 51 +++++++++++++++++-- src/types/vue-clipboard3.d.ts | 5 ++ src/views/ECG/ECGForm.vue | 39 ++++++++------ src/views/ECG/ECGModify/ECGApplyforRepair.vue | 16 ++++-- 5 files changed, 86 insertions(+), 26 deletions(-) create mode 100644 src/types/vue-clipboard3.d.ts diff --git a/package.json b/package.json index 240dfcce..a19c55c1 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "url": "^0.11.3", "video.js": "^7.21.5", "vue": "3.4.21", + "vue-clipboard3": "^2.0.0", "vue-dompurify-html": "^4.1.4", "vue-i18n": "9.10.2", "vue-qrcode": "^2.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 235c75a8..3b5056dd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,6 +128,9 @@ importers: vue: specifier: 3.4.21 version: 3.4.21(typescript@5.3.3) + vue-clipboard3: + specifier: ^2.0.0 + version: 2.0.0 vue-dompurify-html: specifier: ^4.1.4 version: 4.1.4(vue@3.4.21(typescript@5.3.3)) @@ -2621,6 +2624,9 @@ packages: resolution: {integrity: sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==} engines: {node: '>=18'} + clipboard@2.0.11: + resolution: {integrity: sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==} + cliui@6.0.0: resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} @@ -2917,6 +2923,9 @@ packages: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} + delegate@3.2.0: + resolution: {integrity: sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==, tarball: https://r2.cnpmjs.org/delegate/-/delegate-3.2.0.tgz} + destr@2.0.3: resolution: {integrity: sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ==} @@ -3066,7 +3075,7 @@ packages: engines: {node: '>=6'} errno@0.1.8: - resolution: {integrity: sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==} + resolution: {integrity: sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==, tarball: https://r2.cnpmjs.org/errno/-/errno-0.1.8.tgz} hasBin: true error-ex@1.3.2: @@ -3477,6 +3486,9 @@ packages: globjoin@0.1.4: resolution: {integrity: sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==} + good-listener@1.2.2: + resolution: {integrity: sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==, tarball: https://r2.cnpmjs.org/good-listener/-/good-listener-1.2.2.tgz} + gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} @@ -3602,7 +3614,7 @@ packages: engines: {node: '>= 4'} image-size@0.5.5: - resolution: {integrity: sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==} + resolution: {integrity: sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==, tarball: https://r2.cnpmjs.org/image-size/-/image-size-0.5.5.tgz} engines: {node: '>=0.10.0'} hasBin: true @@ -4101,7 +4113,7 @@ packages: resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} make-dir@2.1.0: - resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==} + resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==, tarball: https://r2.cnpmjs.org/make-dir/-/make-dir-2.1.0.tgz} engines: {node: '>=6'} map-cache@0.2.2: @@ -4166,7 +4178,7 @@ packages: engines: {node: '>= 0.6'} mime@1.6.0: - resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==} + resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==, tarball: https://r2.cnpmjs.org/mime/-/mime-1.6.0.tgz} engines: {node: '>=4'} hasBin: true @@ -4833,6 +4845,9 @@ packages: scule@1.3.0: resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==} + select@1.1.2: + resolution: {integrity: sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==, tarball: https://r2.cnpmjs.org/select/-/select-1.1.2.tgz} + selection-update@0.1.2: resolution: {integrity: sha512-4jzoJNh7VT2s2tvm/kUSskSw7pD0BVcrrGccbfOMK+3AXLBPz6nIy1yo+pbXgvNoTNII96Pq92+sAY+rF0LUAA==} @@ -4950,7 +4965,7 @@ packages: engines: {node: '>=0.10.0'} source-map@0.6.1: - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, tarball: https://r2.cnpmjs.org/source-map/-/source-map-0.6.1.tgz} engines: {node: '>=0.10.0'} split-string@3.1.0: @@ -5152,6 +5167,9 @@ packages: through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} + tiny-emitter@2.1.0: + resolution: {integrity: sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==, tarball: https://r2.cnpmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz} + tiny-svg@2.2.4: resolution: {integrity: sha512-NOi39lBknf4UdDEahNkbEAJnzhu1ZcN2j75IS2vLRmIhsfxdZpTChfLKBcN1ShplVmPIXJAIafk6YY5/Aa80lQ==} @@ -5452,6 +5470,9 @@ packages: terser: optional: true + vue-clipboard3@2.0.0: + resolution: {integrity: sha512-Q9S7dzWGax7LN5iiSPcu/K1GGm2gcBBlYwmMsUc5/16N6w90cbKow3FnPmPs95sungns4yvd9/+JhbAznECS2A==} + vue-demi@0.14.7: resolution: {integrity: sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==} engines: {node: '>=12'} @@ -8291,6 +8312,12 @@ snapshots: slice-ansi: 5.0.0 string-width: 7.1.0 + clipboard@2.0.11: + dependencies: + good-listener: 1.2.2 + select: 1.1.2 + tiny-emitter: 2.1.0 + cliui@6.0.0: dependencies: string-width: 4.2.3 @@ -8563,6 +8590,8 @@ snapshots: delayed-stream@1.0.0: {} + delegate@3.2.0: {} + destr@2.0.3: {} diagram-js-direct-editing@1.8.0(diagram-js@7.9.0): @@ -9326,6 +9355,10 @@ snapshots: globjoin@0.1.4: {} + good-listener@1.2.2: + dependencies: + delegate: 3.2.0 + gopd@1.0.1: dependencies: get-intrinsic: 1.2.4 @@ -10632,6 +10665,8 @@ snapshots: scule@1.3.0: {} + select@1.1.2: {} + selection-update@0.1.2: {} semver@5.7.2: @@ -11017,6 +11052,8 @@ snapshots: through@2.3.8: {} + tiny-emitter@2.1.0: {} + tiny-svg@2.2.4: {} tiny-svg@3.0.1: {} @@ -11398,6 +11435,10 @@ snapshots: sass: 1.75.0 terser: 5.30.4 + vue-clipboard3@2.0.0: + dependencies: + clipboard: 2.0.11 + vue-demi@0.14.7(vue@3.4.21(typescript@5.3.3)): dependencies: vue: 3.4.21(typescript@5.3.3) diff --git a/src/types/vue-clipboard3.d.ts b/src/types/vue-clipboard3.d.ts new file mode 100644 index 00000000..fcb3ce96 --- /dev/null +++ b/src/types/vue-clipboard3.d.ts @@ -0,0 +1,5 @@ +declare module 'vue-clipboard3' { + export default function useClipboard(): { + toClipboard: (text: string) => Promise; + } +} \ No newline at end of file diff --git a/src/views/ECG/ECGForm.vue b/src/views/ECG/ECGForm.vue index f24a5d1f..4dc057ff 100644 --- a/src/views/ECG/ECGForm.vue +++ b/src/views/ECG/ECGForm.vue @@ -28,29 +28,24 @@ - 采集 - -
+
+ 复制链接
+ - - - 重采 { try { diff --git a/src/views/ECG/ECGModify/ECGApplyforRepair.vue b/src/views/ECG/ECGModify/ECGApplyforRepair.vue index 08483575..bb11f21a 100644 --- a/src/views/ECG/ECGModify/ECGApplyforRepair.vue +++ b/src/views/ECG/ECGModify/ECGApplyforRepair.vue @@ -86,10 +86,8 @@