diff --git a/config/index.js b/config/index.js index 1bb3a4b..68765b2 100644 --- a/config/index.js +++ b/config/index.js @@ -87,7 +87,7 @@ }, // Various Dev Server settings - host: "localhost" , // can be overwritten by process.env.HOST + host: "192.168.30.113", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/config/index.js b/config/index.js index 1bb3a4b..68765b2 100644 --- a/config/index.js +++ b/config/index.js @@ -87,7 +87,7 @@ }, // Various Dev Server settings - host: "localhost" , // can be overwritten by process.env.HOST + host: "192.168.30.113", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/components/ConfigManager/SiteManagement.vue b/src/components/ConfigManager/SiteManagement.vue index 188878b..eb85612 100644 --- a/src/components/ConfigManager/SiteManagement.vue +++ b/src/components/ConfigManager/SiteManagement.vue @@ -536,8 +536,18 @@ refresh: 1, initCurpage: 1, fieldList: [ - { label: "设备名称", value: "equipDesc", minWidth: 100, tooltip: true }, - { label: "设备厂家", value: "equipFactory", minWidth: 150, tooltip: true }, + { + label: "设备名称", + value: "equipDesc", + minWidth: 100, + tooltip: true + }, + { + label: "设备厂家", + value: "equipFactory", + minWidth: 150, + tooltip: true + } ] }, //已关联设备表格相关 @@ -612,11 +622,17 @@ } }, "deviceRelatedQuery.searchStr"(val) { - Object.assign(this.isRelatedDeviceTableInfo.query, this.deviceRelatedQuery); - Object.assign(this.unRelatedDeviceTableInfo.query, this.deviceRelatedQuery); + Object.assign( + this.isRelatedDeviceTableInfo.query, + this.deviceRelatedQuery + ); + Object.assign( + this.unRelatedDeviceTableInfo.query, + this.deviceRelatedQuery + ); }, platformCode(val) { - console.log(777,val); + console.log(777, val); this.ruleForm.platformCode = val; } }, @@ -639,7 +655,7 @@ //上传头像 fileChange(file) { this.loading = true; - const isLt1M = file.size / 1024 / 1024 < 1; + const isLt1M = file.size / 1024 / 1024 < 5; if (file.raw.type != "image/jpeg" && file.raw.type != "image/png") { this.loading = false; this.$message.error("上传图片只能是JPG或PNG格式!"); @@ -647,7 +663,7 @@ } if (!isLt1M) { this.loading = false; - this.$message.error("上传图片大小不能超过 1MB!"); + this.$message.error("上传图片大小不能超过 5MB!"); return; } var formdata = new FormData(); diff --git a/config/index.js b/config/index.js index 1bb3a4b..68765b2 100644 --- a/config/index.js +++ b/config/index.js @@ -87,7 +87,7 @@ }, // Various Dev Server settings - host: "localhost" , // can be overwritten by process.env.HOST + host: "192.168.30.113", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/components/ConfigManager/SiteManagement.vue b/src/components/ConfigManager/SiteManagement.vue index 188878b..eb85612 100644 --- a/src/components/ConfigManager/SiteManagement.vue +++ b/src/components/ConfigManager/SiteManagement.vue @@ -536,8 +536,18 @@ refresh: 1, initCurpage: 1, fieldList: [ - { label: "设备名称", value: "equipDesc", minWidth: 100, tooltip: true }, - { label: "设备厂家", value: "equipFactory", minWidth: 150, tooltip: true }, + { + label: "设备名称", + value: "equipDesc", + minWidth: 100, + tooltip: true + }, + { + label: "设备厂家", + value: "equipFactory", + minWidth: 150, + tooltip: true + } ] }, //已关联设备表格相关 @@ -612,11 +622,17 @@ } }, "deviceRelatedQuery.searchStr"(val) { - Object.assign(this.isRelatedDeviceTableInfo.query, this.deviceRelatedQuery); - Object.assign(this.unRelatedDeviceTableInfo.query, this.deviceRelatedQuery); + Object.assign( + this.isRelatedDeviceTableInfo.query, + this.deviceRelatedQuery + ); + Object.assign( + this.unRelatedDeviceTableInfo.query, + this.deviceRelatedQuery + ); }, platformCode(val) { - console.log(777,val); + console.log(777, val); this.ruleForm.platformCode = val; } }, @@ -639,7 +655,7 @@ //上传头像 fileChange(file) { this.loading = true; - const isLt1M = file.size / 1024 / 1024 < 1; + const isLt1M = file.size / 1024 / 1024 < 5; if (file.raw.type != "image/jpeg" && file.raw.type != "image/png") { this.loading = false; this.$message.error("上传图片只能是JPG或PNG格式!"); @@ -647,7 +663,7 @@ } if (!isLt1M) { this.loading = false; - this.$message.error("上传图片大小不能超过 1MB!"); + this.$message.error("上传图片大小不能超过 5MB!"); return; } var formdata = new FormData(); diff --git a/src/components/Engineering/Nowfault.vue b/src/components/Engineering/Nowfault.vue index e2b4b89..367b8bf 100644 --- a/src/components/Engineering/Nowfault.vue +++ b/src/components/Engineering/Nowfault.vue @@ -1,6 +1,35 @@