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) })