新增设备主子码流选择,默认为不开启

This commit is contained in:
‘sxh’
2023-06-15 11:00:29 +08:00
parent 314423bd01
commit 15df08964b
25 changed files with 901 additions and 367 deletions

View File

@@ -26,6 +26,12 @@
<el-option label="在线" value="true"></el-option>
<el-option label="离线" value="false"></el-option>
</el-select>
清晰度:
<el-select size="mini" style="margin-right: 1rem;" @change="search" v-model="isSubStream" placeholder="请选择"
default-first-option>
<el-option label="原画" :value="false"></el-option>
<el-option label="流畅" :value="true"></el-option>
</el-select>
</div>
<el-button icon="el-icon-refresh-right" circle size="mini" @click="refresh()"></el-button>
<el-button v-if="showTree" icon="iconfont icon-list" circle size="mini" @click="switchList()"></el-button>
@@ -146,6 +152,7 @@ export default {
searchSrt: "",
channelType: "",
online: "",
isSubStream: false,
winHeight: window.innerHeight - 200,
currentPage: 1,
count: 15,
@@ -237,7 +244,10 @@ export default {
let that = this;
this.$axios({
method: 'get',
url: '/api/play/start/' + deviceId + '/' + channelId
url: '/api/play/start/' + deviceId + '/' + channelId,
params:{
isSubStream: this.isSubStream
}
}).then(function (res) {
console.log(res)
that.isLoging = false;
@@ -277,7 +287,10 @@ export default {
var that = this;
this.$axios({
method: 'get',
url: '/api/play/stop/' + this.deviceId + "/" + itemData.channelId
url: '/api/play/stop/' + this.deviceId + "/" + itemData.channelId,
params:{
isSubStream: this.isSubStream
}
}).then(function (res) {
that.initData();
}).catch(function (error) {

View File

@@ -64,6 +64,12 @@
<el-form-item v-if="form.subscribeCycleForMobilePosition > 0" label="移动位置报送间隔" prop="subscribeCycleForCatalog" >
<el-input v-model="form.mobilePositionSubmissionInterval" clearable ></el-input>
</el-form-item>
<el-form-item label="主子码流开关" prop="switchPrimarySubStream" >
<el-select v-model="form.switchPrimarySubStream" style="float: left; width: 100%" >
<el-option key="true" label="开启" :value="true"></el-option>
<el-option key="false" label="关闭" :value="false"></el-option>
</el-select>
</el-form-item>
<el-form-item label="其他选项">
<el-checkbox label="SSRC校验" v-model="form.ssrcCheck" style="float: left"></el-checkbox>
<el-checkbox label="作为消息通道" v-model="form.asMessageChannel" style="float: left"></el-checkbox>