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 @@ + + + + +