| | |
| | | <el-input v-model="platform.serverIP" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="SIP服务端口" prop="serverPort"> |
| | | <el-input v-model="platform.serverPort" clearable></el-input> |
| | | <el-input v-model="platform.serverPort" clearable type="number"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="设备国标编号" prop="deviceGBId"> |
| | | <el-input v-model="platform.deviceGBId" clearable></el-input> |
| | |
| | | <el-input v-model="platform.deviceIp" :disabled="true"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="本地端口" prop="devicePort"> |
| | | <el-input v-model="platform.devicePort" :disabled="true"></el-input> |
| | | <el-input v-model="platform.devicePort" :disabled="true" type="number"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-col> |
| | |
| | | name: "platformEdit", |
| | | props: {}, |
| | | computed: {}, |
| | | created() {}, |
| | | created() { |
| | | this.platform = { |
| | | id: null, |
| | | enable: true, |
| | | ptz: true, |
| | | rtcp: false, |
| | | name: null, |
| | | serverGBId: null, |
| | | serverGBDomain: null, |
| | | serverIP: null, |
| | | serverPort: null, |
| | | deviceGBId: null, |
| | | deviceIp: null, |
| | | devicePort: null, |
| | | username: null, |
| | | password: null, |
| | | expires: 300, |
| | | keepTimeout: 60, |
| | | transport: "UDP", |
| | | characterSet: "GB2312", |
| | | } |
| | | }, |
| | | data() { |
| | | var deviceGBIdRules = async (rule, value, callback) => { |
| | | console.log(value); |
| | |
| | | callback(new Error("请输入设备国标编号")); |
| | | } else { |
| | | var exit = await this.deviceGBIdExit(value); |
| | | console.log(exit); |
| | | console.log(exit == "true"); |
| | | console.log(exit === "true"); |
| | | if (exit) { |
| | | callback(new Error("设备国标编号已存在")); |
| | | } else { |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | /* 谷歌 */ |
| | | input::-webkit-outer-spin-button, |
| | | input::-webkit-inner-spin-button { |
| | | -webkit-appearance: none; |
| | | appearance: none; |
| | | margin: 0; |
| | | } |
| | | /* 火狐 */ |
| | | input{ |
| | | -moz-appearance:textfield; |
| | | } |
| | | .control-wrapper-not-used { |
| | | position: relative; |
| | | width: 6.25rem; |