|
@@ -33,6 +33,7 @@
|
|
|
<script>
|
|
|
import {mapState} from 'vuex'
|
|
|
import {getStaticFile} from "../../utils/tools"
|
|
|
+ import {reqRefreshView} from "../api"
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -80,7 +81,7 @@
|
|
|
|
|
|
methods: {
|
|
|
// 点击按钮
|
|
|
- clickBtn(e) {
|
|
|
+ async clickBtn(e) {
|
|
|
const bigscreenObj = this.$store.state.bigScreenObj
|
|
|
// 只有一个大屏,获取对象的第一个key
|
|
|
const firstKey = Object.keys(bigscreenObj)[0]
|
|
@@ -186,6 +187,12 @@
|
|
|
if (e.ID === '7775e508-c6a5-4044-8264-24772a24fa97' || e.ID === '95c5d676-46a5-4c46-b550-9bc013a59937' || e.ID === 'f47e84bb-c878-4b22-a9d6-eb2e307283bc') {
|
|
|
// 清屏
|
|
|
bigscreenObj[firstKey].signalArr = []
|
|
|
+ // 发送请求
|
|
|
+ const bigScreenId = this.$store.state.curOpeBigscreenId
|
|
|
+ await reqRefreshView({
|
|
|
+ bigScreenId,
|
|
|
+ streamWindows:[]
|
|
|
+ })
|
|
|
this.$store.dispatch('updateBigscreenObj',bigscreenObj)
|
|
|
return
|
|
|
} else if (e.ID === '49653a62-99cb-40e1-a513-60e42893adb7' || e.ID === 'd55c81a8-54d7-4d90-aad7-4f34c3ba3950' || e.ID === '4142ab5b-ce52-4655-a28d-724bfabb24f0') {
|