Browse Source

平台向上级联,重新启用时自动重设Expires值

pull/33/head
Lawrence 4 years ago
parent
commit
df321f27af
  1. 7
      web_src/src/components/platformEdit.vue

7
web_src/src/components/platformEdit.vue

@ -74,7 +74,7 @@
</el-select>
</el-form-item>
<el-form-item label="其他选项">
<el-checkbox label="启用" v-model="platform.enable"></el-checkbox>
<el-checkbox label="启用" v-model="platform.enable" @change="checkExpires"></el-checkbox>
<el-checkbox label="云台控制" v-model="platform.PTZEnable"></el-checkbox>
<el-checkbox label="RTCP保活" v-model="platform.rtcp"></el-checkbox>
</el-form-item>
@ -245,6 +245,11 @@ export default {
});
return result;
},
checkExpires: function() {
if (this.platform.enable && this.platform.expires == "0") {
this.platform.expires = "300";
}
}
},
};
</script>

Loading…
Cancel
Save