通道增加自定义属性 是否支持云台控制和是否支持语音对讲
This commit is contained in:
@@ -203,6 +203,11 @@
|
||||
<el-option label="3级增强" value="3" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item >
|
||||
<el-checkbox v-model="form.enablePtzForBool" >云台控制(非标属性)</el-checkbox>
|
||||
<el-checkbox v-model="form.enableBroadcastForBool" >语音对讲(非标属性)</el-checkbox>
|
||||
</el-form-item>
|
||||
|
||||
<div style="float: right;">
|
||||
<el-button type="primary" @click="onSubmit">保存</el-button>
|
||||
<el-button v-if="cancel" @click="cancelSubmit">取消</el-button>
|
||||
@@ -254,6 +259,8 @@ export default {
|
||||
if (this.form.gbDownloadSpeedArray) {
|
||||
this.form.gbDownloadSpeed = this.form.gbDownloadSpeedArray.join('/')
|
||||
}
|
||||
this.form.enablePtz = this.form.enablePtzForBool ? 1 : 0
|
||||
this.form.enableBroadcast = this.form.enableBroadcastForBool ? 1 : 0
|
||||
if (this.form.gbId) {
|
||||
this.$store.dispatch('commonChanel/update', this.form)
|
||||
.then(data => {
|
||||
@@ -321,6 +328,8 @@ export default {
|
||||
data.gbDownloadSpeedArray = data.gbDownloadSpeed.split('/')
|
||||
}
|
||||
this.form = data
|
||||
this.$set(this.form, 'enablePtzForBool', this.form.enablePtz === 1)
|
||||
this.$set(this.form, 'enableBroadcastForBool', this.form.enableBroadcast === 1)
|
||||
})
|
||||
.finally(() => {
|
||||
this.loading = false
|
||||
|
||||
Reference in New Issue
Block a user