|
|
@@ -4,12 +4,18 @@ import { Modal, message } from 'ant-design-vue'
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
import { logout } from '../api/auth'
|
|
|
+import logo from '../assets/logo.png'
|
|
|
import { useAlarmsStore } from '../stores/alarms'
|
|
|
import { useModelStore } from '../stores/model'
|
|
|
import { useScenesStore } from '../stores/scenes'
|
|
|
import { useViewerStore } from '../stores/viewer'
|
|
|
import type { ScenePosition } from '../types'
|
|
|
|
|
|
+const logoStyle = {
|
|
|
+ maskImage: `url(${logo})`,
|
|
|
+ WebkitMaskImage: `url(${logo})`,
|
|
|
+}
|
|
|
+
|
|
|
const modelStore = useModelStore()
|
|
|
const viewerStore = useViewerStore()
|
|
|
const scenesStore = useScenesStore()
|
|
|
@@ -73,7 +79,10 @@ function removeFromRename(): void {
|
|
|
|
|
|
<template>
|
|
|
<header class="topbar">
|
|
|
- <h1 class="title">压缩机故障预测模型</h1>
|
|
|
+ <div class="brand">
|
|
|
+ <span class="logo" :style="logoStyle" />
|
|
|
+ <h1 class="title">压缩机故障预测模型</h1>
|
|
|
+ </div>
|
|
|
<div class="field">
|
|
|
<span class="label">模型</span>
|
|
|
<a-select
|
|
|
@@ -139,13 +148,34 @@ function removeFromRename(): void {
|
|
|
position: relative;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
+.brand {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ gap: 8px;
|
|
|
+ width: 300px;
|
|
|
+ flex: 0 0 auto;
|
|
|
+}
|
|
|
+.logo {
|
|
|
+ display: block;
|
|
|
+ flex: 0 0 auto;
|
|
|
+ height: 30px;
|
|
|
+ width: 58px;
|
|
|
+ background-color: #2e7cf6;
|
|
|
+ -webkit-mask-repeat: no-repeat;
|
|
|
+ mask-repeat: no-repeat;
|
|
|
+ -webkit-mask-size: contain;
|
|
|
+ mask-size: contain;
|
|
|
+ -webkit-mask-position: center;
|
|
|
+ mask-position: center;
|
|
|
+}
|
|
|
.title {
|
|
|
font-size: 23px;
|
|
|
font-weight: 600;
|
|
|
line-height: 1;
|
|
|
- width: 300px;
|
|
|
margin: 0;
|
|
|
- text-align: center;
|
|
|
+ white-space: nowrap;
|
|
|
+ color: #2e7cf6;
|
|
|
}
|
|
|
/* 顶部除标题外统一 12px(含 antd 控件) */
|
|
|
.topbar :deep(.ant-select),
|