| | |
| | | </el-form-item> |
| | | <el-form-item label="其他选项"> |
| | | <el-checkbox label="启用" v-model="platform.enable" @change="checkExpires"></el-checkbox> |
| | | <el-checkbox label="云台控制" v-model="platform.ptz"></el-checkbox> |
| | | <!-- <el-checkbox label="云台控制" v-model="platform.ptz"></el-checkbox>--> |
| | | <el-checkbox label="拉起离线推流" v-model="platform.startOfflinePush"></el-checkbox> |
| | | <el-checkbox label="RTCP保活" v-model="platform.rtcp" @change="rtcpCheckBoxChange"></el-checkbox> |
| | | <el-checkbox label="作为消息通道" v-model="platform.asMessageChannel" ></el-checkbox> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="onSubmit">{{ |
| | |
| | | showDialog: false, |
| | | isLoging: false, |
| | | onSubmit_text: "立即创建", |
| | | saveUrl: "./api/platform/save", |
| | | saveUrl: "/api/platform/save", |
| | | |
| | | platform: { |
| | | id: null, |
| | | enable: true, |
| | | ptz: true, |
| | | rtcp: false, |
| | | asMessageChannel: false, |
| | | name: null, |
| | | serverGBId: null, |
| | | serverGBDomain: null, |
| | |
| | | devicePort: null, |
| | | username: null, |
| | | password: null, |
| | | expires: 300, |
| | | expires: 3600, |
| | | keepTimeout: 60, |
| | | transport: "UDP", |
| | | characterSet: "GB2312", |
| | |
| | | this.saveUrl = "/api/platform/add"; |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`./api/platform/server_config` |
| | | url:`/api/platform/server_config` |
| | | }).then(function (res) { |
| | | console.log(res); |
| | | if (res.data.code === 0) { |
| | |
| | | this.platform.enable = platform.enable; |
| | | this.platform.ptz = platform.ptz; |
| | | this.platform.rtcp = platform.rtcp; |
| | | this.platform.asMessageChannel = platform.asMessageChannel; |
| | | this.platform.name = platform.name; |
| | | this.platform.serverGBId = platform.serverGBId; |
| | | this.platform.serverGBDomain = platform.serverGBDomain; |
| | |
| | | enable: true, |
| | | ptz: true, |
| | | rtcp: false, |
| | | asMessageChannel: false, |
| | | name: null, |
| | | serverGBId: null, |
| | | administrativeDivision: null, |
| | |
| | | devicePort: null, |
| | | username: null, |
| | | password: null, |
| | | expires: 300, |
| | | expires: 3600, |
| | | keepTimeout: 60, |
| | | transport: "UDP", |
| | | characterSet: "GB2312", |
| | |
| | | var that = this; |
| | | await that.$axios({ |
| | | method: 'get', |
| | | url:`./api/platform/exit/${deviceGbId}`}) |
| | | url:`/api/platform/exit/${deviceGbId}`}) |
| | | .then(function (res) { |
| | | if (res.data.code === 0) { |
| | | result = res.data.data; |
| | |
| | | return result; |
| | | }, |
| | | checkExpires: function() { |
| | | if (this.platform.enable && this.platform.expires == "0") { |
| | | this.platform.expires = "300"; |
| | | if (this.platform.enable && this.platform.expires === "0") { |
| | | this.platform.expires = "3600"; |
| | | } |
| | | }, |
| | | rtcpCheckBoxChange: function (result){ |