From 55151ce567cb19ca89dcab79f357ddf4f34ed3f2 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Tue, 12 Nov 2024 09:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=9A=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化多选 --- collect_information/src/store/daily.ts | 11 +- .../dailyInspection/dailyInspection.vue | 106 ++++++------------ .../subPages/select/dailyLife/dailyLife.vue | 41 ++++--- .../subPages/select/signature/signature.vue | 4 +- collect_information/types/global.d.ts | 54 +++++++++ 5 files changed, 117 insertions(+), 99 deletions(-) diff --git a/collect_information/src/store/daily.ts b/collect_information/src/store/daily.ts index 844ed89..8fa40c7 100644 --- a/collect_information/src/store/daily.ts +++ b/collect_information/src/store/daily.ts @@ -12,19 +12,14 @@ export const useDailyStore = defineStore('daily', { this.userdailyinspection = [...data] }, change_base64_1(data) { - // console.log("🚀 ~ change_base64_1 ~ data:", data) this.base64_1 = data }, change_base64_2(data) { this.base64_2 = data }, - cleardailtcolour() { - this.userdailyinspection = { - ...this.userdailyinspection, - markColor: this.userdailyinspection.markColor, - markColor1: this.userdailyinspection.markColor, - comment: '' - } + clearSignData() { + this.base64_1 = '' + this.base64_2 = '' } }, getters: { diff --git a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue index c4e5a64..23eccdf 100644 --- a/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue +++ b/collect_information/src/subPages/police/dailyInspection/dailyInspection.vue @@ -1,6 +1,5 @@