diff --git a/.env.development b/.env.development index a08e7e1..13c7001 100644 --- a/.env.development +++ b/.env.development @@ -7,9 +7,9 @@ ENV = 'development' # 开发环境 # VUE_APP_BASE_API = '/dev-api' # 后台 -VUE_APP_BASE_API = 'http://192.168.1.222:8080' +# VUE_APP_BASE_API = 'http://192.168.1.222:8080' # 梅州云端 -# VUE_APP_BASE_API = 'http://106.55.173.225:8091' +VUE_APP_BASE_API = 'http://106.55.173.225:8091' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/views/alarm/alarmCode/index.vue b/src/views/alarm/alarmCode/index.vue index fd54f14..3665906 100644 --- a/src/views/alarm/alarmCode/index.vue +++ b/src/views/alarm/alarmCode/index.vue @@ -21,6 +21,7 @@ v-model="queryParams.status" placeholder="选择采集类别" clearable + filterable > diff --git a/src/views/alarm/alarmRule/index.vue b/src/views/alarm/alarmRule/index.vue index df02a8d..e45da8b 100644 --- a/src/views/alarm/alarmRule/index.vue +++ b/src/views/alarm/alarmRule/index.vue @@ -13,6 +13,7 @@ v-model="queryParams.alarmType" placeholder="选择报警类型" clearable + filterable > @@ -358,6 +367,7 @@ v-model="form.timePeriodSet" placeholder="请选择" clearable + filterable > @@ -432,7 +442,12 @@ - + diff --git a/src/views/centerairC/hostRunReport/index.vue b/src/views/centerairC/hostRunReport/index.vue index 0ea661c..59509c2 100644 --- a/src/views/centerairC/hostRunReport/index.vue +++ b/src/views/centerairC/hostRunReport/index.vue @@ -85,7 +85,7 @@ - + @@ -842,27 +842,23 @@ export default { handleExport() { reportSysExport(this.queryParams).then((res) => { console.log("导出返回", res); - if (res.code == 200) { - // 请求的结果就是文件 - // 创建一个blob URL,用于生成下载链接 - const url = window.URL.createObjectURL(new Blob([res])); - // 创建一个元素,并设置其href和download属性 - const link = document.createElement("a"); - link.href = url; - link.setAttribute("download", "主机运行记录报表.xls"); // 设置下载的文件名 - // 模拟点击下载链接 - document.body.appendChild(link); - link.click(); - document.body.removeChild(link); - // 释放blob URL资源 - window.URL.revokeObjectURL(url); - this.$message({ - type: "success", - message: "导出成功!", - }); - } else { - this.$message.error("导出失败!"); - } + // 请求的结果就是文件 + // 创建一个blob URL,用于生成下载链接 + const url = window.URL.createObjectURL(new Blob([res])); + // 创建一个元素,并设置其href和download属性 + const link = document.createElement("a"); + link.href = url; + link.setAttribute("download", "主机运行记录报表.xls"); // 设置下载的文件名 + // 模拟点击下载链接 + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + // 释放blob URL资源 + window.URL.revokeObjectURL(url); + this.$message({ + type: "success", + message: "导出成功!", + }); }); }, // 打印 diff --git a/src/views/device/comm/index.vue b/src/views/device/comm/index.vue index 11fe7f8..55cfc33 100644 --- a/src/views/device/comm/index.vue +++ b/src/views/device/comm/index.vue @@ -13,6 +13,7 @@ v-model="queryParams.mtType" placeholder="请选择仪表类型" clearable + filterable > @@ -207,6 +210,7 @@ @@ -219,6 +223,7 @@ @@ -235,6 +240,7 @@ diff --git a/src/views/device/gateway/index.vue b/src/views/device/gateway/index.vue index adb682b..96391c4 100644 --- a/src/views/device/gateway/index.vue +++ b/src/views/device/gateway/index.vue @@ -21,6 +21,7 @@ v-model="queryParams.status" placeholder="网关状态" clearable + filterable > @@ -466,6 +472,7 @@ v-model="form.protocolType" placeholder="请选择协议类型" clearable + filterable > @@ -524,6 +533,7 @@ v-model="form.systemType" placeholder="请选择系统类型" clearable + filterable > - + @@ -314,6 +321,7 @@ v-model="form.isCollection" placeholder="请选择是否" clearable + filterable > @@ -328,6 +336,7 @@ v-model="form.isCalcEnergy" placeholder="请选择是否" clearable + filterable > @@ -339,6 +348,7 @@ v-model="form.systemType" placeholder="请选择系统类型" clearable + filterable > - +
Base64 Image
@@ -270,11 +269,7 @@ :visible.sync="isMoreqrCode" append-to-body > - + diff --git a/src/views/device/spareInOut/index.vue b/src/views/device/spareInOut/index.vue index 677ad28..01ac533 100644 --- a/src/views/device/spareInOut/index.vue +++ b/src/views/device/spareInOut/index.vue @@ -29,6 +29,7 @@ v-model="queryParams.operaType" placeholder="请选择操作类型" clearable + filterable >
- +