From 74dd838d0308ccf3b194244888203a61ab05ea63 Mon Sep 17 00:00:00 2001 From: stone <827672943@qq.com> Date: Wed, 7 Jun 2023 16:15:52 +0800 Subject: [PATCH 1/2] 11 --- psdc-ui/src/views/system/device/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/psdc-ui/src/views/system/device/index.vue b/psdc-ui/src/views/system/device/index.vue index ba13443..617b7c4 100644 --- a/psdc-ui/src/views/system/device/index.vue +++ b/psdc-ui/src/views/system/device/index.vue @@ -300,7 +300,7 @@ const data = reactive({ timingList:[], queryParams: '', queryParams1: { - "deviceModel": "温度传感器" + "deviceModel": null }, sceneCode:null, dateRange:[], @@ -502,8 +502,9 @@ function cancel2() { /** 导出按钮操作 */ function handleExport() { - console.log(data.sceneCode) + data.queryParams1.deviceModel = data.sceneCode proxy.download("system/device/index/daochuDevs",{ + ...queryParams1.value },`device_${new Date().getTime()}.xlsx`); }; /** 新增策略处理 */ From 821e1e2ee1334c040bc8fefb59c9be7791f96b14 Mon Sep 17 00:00:00 2001 From: jiminglei <836545853@qq.com> Date: Wed, 7 Jun 2023 16:49:27 +0800 Subject: [PATCH 2/2] 11 --- psdc-ui/src/views/analyse/nhtj/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/psdc-ui/src/views/analyse/nhtj/index.vue b/psdc-ui/src/views/analyse/nhtj/index.vue index 0097d55..49b2317 100644 --- a/psdc-ui/src/views/analyse/nhtj/index.vue +++ b/psdc-ui/src/views/analyse/nhtj/index.vue @@ -209,7 +209,15 @@ function getTableFun(){ "pageNum": currentPage.value, "pageSize": pageSize.value }).then((res)=>{ + total.value = res.total; + for(let i in res.rows){ + if(res.rows[i].monthDate){ + res.rows[i].monthDate=res.rows[i].monthDate.slice(0,7) + }else if(res.rows[i].yearDate){ + res.rows[i].yearDate=res.rows[i].yearDate.slice(0,4) + } + } dataTable.value = res.rows console.log('发电量数据',dataTable.value) })