From dda68ac0441a9197fe5accc70e7a8e9e20715f88 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期一, 22 十一月 2021 17:30:15 +0800 Subject: [PATCH] 优化录像下载,避免wvp代理使用双份流量 --- web_src/src/components/dialog/platformEdit.vue | 59 ++++++++++++++++++++++++++++++++++------------------------- 1 files changed, 34 insertions(+), 25 deletions(-) diff --git a/web_src/src/components/dialog/platformEdit.vue b/web_src/src/components/dialog/platformEdit.vue index c0e0f9a..1ee777d 100644 --- a/web_src/src/components/dialog/platformEdit.vue +++ b/web_src/src/components/dialog/platformEdit.vue @@ -26,7 +26,7 @@ <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> @@ -35,7 +35,7 @@ <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> @@ -105,9 +105,6 @@ 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 { @@ -122,19 +119,20 @@ onSubmit_text: "绔嬪嵆鍒涘缓", platform: { + id: null, enable: true, ptz: true, rtcp: false, - name: "娴嬭瘯001", - serverGBId: "34020000002000000001", - serverGBDomain: "3402000000", - serverIP: "192.168.1.141", - serverPort: "5060", - deviceGBId: "34020000001320001101", - deviceIp: "192.168.1.20", - devicePort: "5060", - username: "34020000001320001101", - password: "12345678", + 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", @@ -163,27 +161,27 @@ methods: { openDialog: function (platform, callback) { var that = this; - this.$axios({ - method: 'get', - url:`/api/platform/server_config` - }).then(function (res) { + if (platform == null) { + this.onSubmit_text = "绔嬪嵆鍒涘缓"; + this.$axios({ + method: 'get', + url:`/api/platform/server_config` + }).then(function (res) { console.log(res); that.platform.deviceGBId = res.data.username; that.platform.deviceIp = res.data.deviceIp; that.platform.devicePort = res.data.devicePort; that.platform.username = res.data.username; that.platform.password = res.data.password; - }).catch(function (error) { + }).catch(function (error) { console.log(error); }); - this.showDialog = true; - this.listChangeCallback = callback; - if (platform != null) { + }else { this.platform = platform; this.onSubmit_text = "淇濆瓨"; - } else { - this.onSubmit_text = "绔嬪嵆鍒涘缓"; } + this.showDialog = true; + this.listChangeCallback = callback; }, onSubmit: function () { console.log("onSubmit"); @@ -238,6 +236,17 @@ </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; -- Gitblit v1.8.0