From a2243bde8e564b64fdd9c98837b009b371452ddc Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Sun, 10 Sep 2023 08:43:23 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=A9=BAmodal?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Setting/components/ExportExcel.vue | 51 ++++++++-
src/components/dialogs/ClearAuditModal.vue | 124 ++++++++++++++++++++++
src/components/dialogs/ClearRecordModal.vue | 124 ++++++++++++++++++++++
3 files changed, 295 insertions(+), 4 deletions(-)
create mode 100644 src/components/dialogs/ClearAuditModal.vue
create mode 100644 src/components/dialogs/ClearRecordModal.vue
diff --git a/src/components/Setting/components/ExportExcel.vue b/src/components/Setting/components/ExportExcel.vue
index a13005f..3b4c678 100644
--- a/src/components/Setting/components/ExportExcel.vue
+++ b/src/components/Setting/components/ExportExcel.vue
@@ -12,6 +12,14 @@
+
+
@@ -20,14 +28,24 @@ import { ref } from 'vue'
import {
exportUserBehaviorRecordJSON,
exportDisinfectionRecordJSON,
- cleanDisinfectionRecordJSON,
- cleanUserBehaviorRecordJSON,
} from '@/mock/command'
+import ClearAuditModal from 'cpns/dialogs/ClearAuditModal'
+import ClearRecordModal from 'cpns/dialogs/ClearRecordModal'
import { useWebSocketStore, useSettingStore } from '@/store'
const webSocketStore = useWebSocketStore()
const settingStore = useSettingStore()
+const auditModalVisible = ref(false)
+const hideAuditModal = () => {
+ auditModalVisible.value = false
+}
+
+const recordModalVisible = ref(false)
+const hideRecordModal = () => {
+ recordModalVisible.value = false
+}
+
const exportAudit = () => {
settingStore.updateExportText('导出审计中')
settingStore.updateExportLoading(true)
@@ -41,11 +59,11 @@ const exportRecord = () => {
}
const clearAudit = () => {
- webSocketStore.sendCommandMsg(cleanDisinfectionRecordJSON)
+ auditModalVisible.value = true
}
const clearRecord = () => {
- webSocketStore.sendCommandMsg(cleanUserBehaviorRecordJSON)
+ recordModalVisible.value = true
}
@@ -78,4 +96,29 @@ const clearRecord = () => {
margin-bottom: 16px;
}
}
+.wrapper {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 100%;
+}
+.block {
+ width: 120px;
+ height: 120px;
+ display: flex;
+ flex-direction: column;
+ padding: 16px;
+ align-items: center;
+ justify-content: center;
+ .shutdown_text {
+ margin-top: 24px;
+ font-family: Source Han Sans CN;
+ font-size: 18px;
+ font-weight: normal;
+ line-height: normal;
+ letter-spacing: 0.06em;
+ color: #fff;
+ white-space: nowrap;
+ }
+}
diff --git a/src/components/dialogs/ClearAuditModal.vue b/src/components/dialogs/ClearAuditModal.vue
new file mode 100644
index 0000000..7940e17
--- /dev/null
+++ b/src/components/dialogs/ClearAuditModal.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
+ 确定要清空所有审计吗!
+
+
+
+
+
+
+
+
+
diff --git a/src/components/dialogs/ClearRecordModal.vue b/src/components/dialogs/ClearRecordModal.vue
new file mode 100644
index 0000000..36dc6d8
--- /dev/null
+++ b/src/components/dialogs/ClearRecordModal.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
+ 确定要清空所有消毒记录吗!
+
+
+
+
+
+
+
+
+