husq
2023-09-18 9464e5a8d69ff40dd0fef0e02d1947de15621c24
src/pages/page-web/projects/tsa.vue
@@ -56,7 +56,7 @@
                          <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"
@@ -68,7 +68,7 @@
                                <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"
@@ -152,7 +152,7 @@
                <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>
@@ -234,9 +234,6 @@
        </a-collapse-panel>
      </a-collapse>
    </div>
    <Drawer title="项目设置" :styleDrawer="styleDrawer" v-model:show="showDrawer">
      <DockConfig />
    </Drawer>
  </div>
</template>
@@ -250,11 +247,6 @@
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()
@@ -353,7 +345,7 @@
  })
}
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'
@@ -372,6 +364,7 @@
    osdVisible.value.payloads = device.payload
  }
  store.commit('SET_OSD_VISIBLE_INFO', osdVisible)
  store.commit('SET_HMSInfo_DetailSn', sn)
}
function getUnreadHms (sn: string) {