| xqd
@@ -97,7 +97,7 @@
|
|
|
methods: {
|
|
|
resetbtn() {
|
|
|
if (this.isxian == '在营') {
|
|
|
- axios.get("http://172.31.31.199/upVersion?id=" + this.value + "&type=" + 2).then(res => {
|
|
|
+ axios.get("/upVersion?id=" + this.value + "&type=" + 2).then(res => {
|
|
|
if (res.data.status == 200) {
|
|
|
alert("重置命令发送成功,请耐心等待30s,系统将自动重置")
|
|
|
}
|
| xqd
@@ -108,7 +108,7 @@
|
|
|
},
|
|
|
installbtn() {
|
|
|
if (this.value != "") {
|
|
|
- axios.get("http://172.31.31.199/getDevice?id=" + this.value).then(res => {
|
|
|
+ axios.get("/getDevice?id=" + this.value).then(res => {
|
|
|
console.log(res)
|
|
|
if (res.data.status == 200) {
|
|
|
this.isInstall = false
|
| xqd
@@ -127,7 +127,7 @@
|
|
|
},
|
|
|
upbtn() {
|
|
|
if (this.isxian == '在营' && this.isnew == 0) {
|
|
|
- axios.get("http://172.31.31.199/upVersion?id=" + this.value + "&type=" + 1).then(res => {
|
|
|
+ axios.get("/upVersion?id=" + this.value + "&type=" + 1).then(res => {
|
|
|
if (res.data.status == 200) {
|
|
|
alert('升级命令发送成功,请耐心等待3-5分钟设备升级完成后,所有锁口会变为通电状态')
|
|
|
}
|
| xqd
@@ -143,4 +143,4 @@
|
|
|
</script>
|
|
|
</body>
|
|
|
|
|
|
-</html>
|
|
|
+</html>
|