|
@@ -8,6 +8,8 @@
|
|
|
</div>
|
|
|
<div class="page-header-btn">
|
|
|
<div v-if="!showTree" style="display: inline;">
|
|
|
+ <el-button size="medium" type="text" @click="switchUsePs()">{{isUsePs?'启用ps':'不启用ps'}}</el-button>
|
|
|
+
|
|
|
搜索:
|
|
|
<el-input @input="search" style="margin-right: 1rem; width: auto;" size="mini" placeholder="关键字"
|
|
|
prefix-icon="el-icon-search" v-model="searchSrt" clearable></el-input>
|
|
@@ -161,7 +163,8 @@ export default {
|
|
|
beforeUrl: "/deviceList",
|
|
|
isLoging: false,
|
|
|
showTree: false,
|
|
|
- loadSnap: {}
|
|
|
+ loadSnap: {},
|
|
|
+ isUsePs: true,
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -242,16 +245,23 @@ export default {
|
|
|
this.isLoging = false;
|
|
|
this.$refs.ptzControl.showPtzControl(deviceId,channelId);
|
|
|
},
|
|
|
+
|
|
|
+ switchUsePs(){
|
|
|
+ this.isUsePs = !this.isUsePs;
|
|
|
+ },
|
|
|
//通知设备上传媒体流
|
|
|
sendDevicePush: function (itemData) {
|
|
|
let deviceId = this.deviceId;
|
|
|
this.isLoging = true;
|
|
|
let channelId = itemData.channelId;
|
|
|
+ let isUsePs = this.isUsePs?1:0;
|
|
|
+ let pushUrl = `/api/play/start/${deviceId}/${channelId}?isUsePs=${isUsePs}`
|
|
|
+ console.log(pushUrl);
|
|
|
console.log("通知设备推流1:" + deviceId + " : " + channelId);
|
|
|
let that = this;
|
|
|
this.$axios({
|
|
|
method: 'get',
|
|
|
- url: '/api/play/start/' + deviceId + '/' + channelId
|
|
|
+ url: pushUrl
|
|
|
}).then(function (res) {
|
|
|
console.log(res)
|
|
|
that.isLoging = false;
|