소스 검색

Merge branch 'lixin' of gitadmin/tuoheng_lc_web into develop

pull/217/head
lixin 1 년 전
부모
커밋
e135d2addd
2개의 변경된 파일16개의 추가작업 그리고 13개의 파일을 삭제
  1. +4
    -0
      src/views/dashboard/components/FireAlarm.vue
  2. +12
    -13
      src/views/dashboard/components/WarningDrawer.vue

+ 4
- 0
src/views/dashboard/components/FireAlarm.vue 파일 보기

@@ -270,6 +270,10 @@ export default {
}

const executeNow = async() => {
if (data.airportId === null) {
$message.warning('当前无在线机场!')
return
}
var airportName = ''
data.airpotOptions?.map((item) => {
if (item.value === data.airportId) {

+ 12
- 13
src/views/dashboard/components/WarningDrawer.vue 파일 보기

@@ -65,7 +65,7 @@
</template>

<script>
import { defineComponent, ref, reactive, toRefs, computed, watch, nextTick, onBeforeUnmount, onMounted } from 'vue'
import { defineComponent, ref, reactive, toRefs, computed, watch, nextTick, onBeforeUnmount, onMounted, onUnmounted } from 'vue'
import Underlay from './Underlay.vue'
import ControlPanel from './ControlPanel.vue'
import SpeedChart from './SpeedChart.vue'
@@ -373,18 +373,12 @@ export default defineComponent({
}

const clearTimer = () => {
if (data.chartTimer) {
clearInterval(data.chartTimer)
data.chartTimer = null
}
if (data.liveTimer) {
clearInterval(data.liveTimer)
data.liveTimer = null
}
if (data.failTimer) {
clearInterval(data.failTimer)
data.failTimer = null
}
clearInterval(data.chartTimer)
data.chartTimer = null
clearInterval(data.liveTimer)
data.liveTimer = null
clearInterval(data.failTimer)
data.failTimer = null
}

function handleVideoStatus(status) {
@@ -405,6 +399,11 @@ export default defineComponent({
clearTimer()
})

onUnmounted(() => {
clearInterval(data.failTimer)
data.failTimer = null
})

return {
containerRef,
sideRef,

Loading…
취소
저장