| | |
| | | <div :class="hmsInfo[dock.gateway.sn][0].level === EHmsLevel.CAUTION ? 'caution' : |
| | | hmsInfo[dock.gateway.sn][0].level === EHmsLevel.WARN ? 'warn' : 'notice'" |
| | | style="margin-left: 3px; width: 62px; height: 16px;"> |
| | | <span class="word-loop">{{ hmsInfo[dock.gateway.sn][0].message_en }}</span> |
| | | <span class="word-loop">{{ hmsInfo[dock.gateway.sn][0].message_zh }}</span> |
| | | </div> |
| | | <template #content> |
| | | <a-collapse style="background: black; height: 300px; overflow-y: auto;" :bordered="false" |
| | |
| | | <template #header="{ isActive }"> |
| | | <div class="flex-row flex-align-center" style="width: 130px;"> |
| | | <div style="width: 110px;"> |
| | | <span class="word-loop">{{ hms.message_en }}</span> |
| | | <span class="word-loop">{{ hms.message_zh }}</span> |
| | | </div> |
| | | <div style="width: 20px; height: 15px; font-size: 10px; z-index: 2 " |
| | | class="flex-row flex-align-center flex-justify-center" |
| | |
| | | <div style="float: right; background: #595959; height: 100%; width: 40px;" |
| | | class="flex-row flex-justify-center flex-align-center"> |
| | | <div class="fz16" |
| | | @click="switchVisible($event, dock, true, dockInfo[dock.gateway.sn] && dockInfo[dock.gateway.sn].basic_osd?.mode_code !== EDockModeCode.Disconnected)"> |
| | | @click="switchVisible($event, dock, true, dockInfo[dock.gateway.sn] && dockInfo[dock.gateway.sn].basic_osd?.mode_code !== EDockModeCode.Disconnected, dock.gateway.sn)"> |
| | | <a v-if="osdVisible.gateway_sn === dock.gateway.sn && osdVisible.visible"> |
| | | <EyeOutlined /> |
| | | </a> |
| | |
| | | </a-collapse-panel> |
| | | </a-collapse> |
| | | </div> |
| | | <Drawer title="项目设置" :styleDrawer="styleDrawer" v-model:show="showDrawer"> |
| | | <DockConfig /> |
| | | </Drawer> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { getDeviceTopo, getUnreadDeviceHms, updateDeviceHms } from '/@/api/manage' |
| | | import { RocketOutlined, EyeInvisibleOutlined, EyeOutlined, RobotOutlined, DoubleRightOutlined } from '@ant-design/icons-vue' |
| | | import { EHmsLevel } from '/@/types/enums' |
| | | import Drawer from '/@/components/Drawer/Drawer.vue' |
| | | import { styleDrawer } from './common/common' |
| | | import DockConfig from './components/DockConfig.vue' |
| | | |
| | | const showDrawer = ref(false) |
| | | const { appContext } = getCurrentInstance() |
| | | const global = appContext.config.globalProperties |
| | | const route = useRoute() |
| | |
| | | }) |
| | | } |
| | | |
| | | function switchVisible (e: any, device: OnlineDevice, isDock: boolean, isClick: boolean) { |
| | | function switchVisible (e: any, device: OnlineDevice, isDock: boolean, isClick: boolean, sn?: any) { |
| | | // showDrawer.value = !showDrawer.value |
| | | if (!isClick) { |
| | | e.target.style.cursor = 'not-allowed' |
| | |
| | | osdVisible.value.payloads = device.payload |
| | | } |
| | | store.commit('SET_OSD_VISIBLE_INFO', osdVisible) |
| | | store.commit('SET_HMSInfo_DetailSn', sn) |
| | | } |
| | | |
| | | function getUnreadHms (sn: string) { |