浏览代码

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 查看文件

} }


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

+ 12
- 13
src/views/dashboard/components/WarningDrawer.vue 查看文件

</template> </template>


<script> <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 Underlay from './Underlay.vue'
import ControlPanel from './ControlPanel.vue' import ControlPanel from './ControlPanel.vue'
import SpeedChart from './SpeedChart.vue' import SpeedChart from './SpeedChart.vue'
} }


const clearTimer = () => { 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) { function handleVideoStatus(status) {
clearTimer() clearTimer()
}) })


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

return { return {
containerRef, containerRef,
sideRef, sideRef,

正在加载...
取消
保存