Browse Source

历史记录删除于列表间距

master
sige 1 year ago
parent
commit
eead099795
  1. 2
      src/components/Setting/components/History.vue
  2. 5
      src/components/dialogs/ClearRecordByKeysModal.vue

2
src/components/Setting/components/History.vue

@ -376,6 +376,7 @@ const showDetailModal = item => {
// height: 500px;
// position: relative;
min-height: 500px;
padding-right: 20px;
.title {
height: 80px;
position: sticky;
@ -407,6 +408,7 @@ const showDetailModal = item => {
line-height: normal;
letter-spacing: 0.07em;
color: #191919;
white-space: nowrap;
}
.line {
position: absolute;

5
src/components/dialogs/ClearRecordByKeysModal.vue

@ -31,7 +31,7 @@
<script setup>
import { useWebSocketStore } from '@/store'
import { cleanDisinfectionRecordByKeysJSON } from '@/mock/command'
import { cleanDisinfectionRecordByKeysJSON, getAllLocalHistoryData } from '@/mock/command'
import { ref } from 'vue'
// props
const props = defineProps({
@ -55,6 +55,9 @@ const handleCancel = () => {
const handleStart = () => {
webSocketStore.sendCommandMsg(cleanDisinfectionRecordByKeysJSON(props.keys))
enable.value = false;
setTimeout(() => {
webSocketStore.sendCommandMsg(getAllLocalHistoryData);
}, 300)
}
</script>

Loading…
Cancel
Save