Browse Source

fix: 清除提示

master
guoapeng 2 weeks ago
parent
commit
1b56019448
  1. 1
      src/app.vue
  2. 24
      src/layouts/default.vue

1
src/app.vue

@ -17,7 +17,6 @@ import { useSealStore } from './stores/sealStore'
*/ */
// //
const deviceStore = useDeviceStore()
const homeStore = useHomeStore() const homeStore = useHomeStore()
const formulaStore = useFormulaStore() const formulaStore = useFormulaStore()
const liquidStore = useLiquidStore() const liquidStore = useLiquidStore()

24
src/layouts/default.vue

@ -3,6 +3,7 @@ import { syncSendCmd } from 'apis/system'
import WifiConnSvg from 'assets/images/wifi-conn.svg' import WifiConnSvg from 'assets/images/wifi-conn.svg'
import WifiUnconnSvg from 'assets/images/wifi-unconn.svg' import WifiUnconnSvg from 'assets/images/wifi-unconn.svg'
import NetReconnection from 'components/system/NetReconnection.vue' import NetReconnection from 'components/system/NetReconnection.vue'
import { ElMessageBox } from 'element-plus'
import { delToken } from 'libs/token' import { delToken } from 'libs/token'
import { formatDateTime } from 'libs/utils' import { formatDateTime } from 'libs/utils'
import { authRoutes } from 'router/routes' import { authRoutes } from 'router/routes'
@ -18,7 +19,6 @@ import { useLiquidStore } from '@/stores/liquidStore'
import { useSealStore } from '@/stores/sealStore' import { useSealStore } from '@/stores/sealStore'
import { useSystemStore } from '@/stores/systemStore' import { useSystemStore } from '@/stores/systemStore'
import SystemLog = System.SystemLog import SystemLog = System.SystemLog
import { ElMessageBox } from 'element-plus'
// const routes = generateRoutes() // const routes = generateRoutes()
// const childrenRoutes = routes.find(r => r.path === '/')?.children || [] // const childrenRoutes = routes.find(r => r.path === '/')?.children || []
@ -200,15 +200,11 @@ const handleClose = async (item: SystemLog, key: number) => {
systemStore.systemLogList.splice(key, 1) systemStore.systemLogList.splice(key, 1)
} }
const handleCloseAll = async () => { const handleCloseAll = async () => {
await ElMessageBox.confirm(
'确认清除所有?',
'Warning',
{
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
},
)
await ElMessageBox.confirm('确认清除所有?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
for (let i = 0; i < systemStore.systemLogList.length; i++) { for (let i = 0; i < systemStore.systemLogList.length; i++) {
const item = systemStore.systemLogList[i] const item = systemStore.systemLogList[i]
const evenid = item.uuid const evenid = item.uuid
@ -456,19 +452,19 @@ const handleCloseAll = async () => {
width: 100%; width: 100%;
} }
} }
.close-btn{
display: flex;
.close-btn {
display: flex;
justify-content: center; justify-content: center;
align-items: flex-end; align-items: flex-end;
margin-top: 12px; margin-top: 12px;
} }
.tag-box{
.tag-box {
height: 350px; height: 350px;
overflow: auto; overflow: auto;
} }
} }
:deep(.el-popover) { :deep(.el-popover) {
padding: 10px!important;
padding: 10px !important;
} }
.aside { .aside {
overflow: hidden; overflow: hidden;

Loading…
Cancel
Save