|
@@ -54,7 +54,7 @@
|
|
|
<el-table-column label="表计编号" align="left" prop="deviceCode" />
|
|
|
<el-table-column label="抄表时间" align="center" prop="recordTime" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.recordTime }}</span>
|
|
|
+ <span>{{ formatDateTime(scope.row.recordTime) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="时间序列" align="center" prop="timeIndex" />
|
|
@@ -72,14 +72,9 @@
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="表计名称" align="left" prop="deviceName" width="200"/>
|
|
|
<el-table-column label="表计编号" align="left" prop="deviceCode" />
|
|
|
- <el-table-column label="日期" align="center" prop="date" width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.date, '{y}-{m}-{d}') }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="时间" align="center" prop="time" width="180">
|
|
|
+ <el-table-column label="抄表时间" align="center" prop="recordTime" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.time }}</span>
|
|
|
+ <span>{{ formatDateTime(scope.row.recordTime) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="时间序列" align="center" prop="timeIndex" />
|
|
@@ -250,21 +245,22 @@ export default {
|
|
|
console.log("this.queryParams.areaCode ",this.queryParams.areaCode )
|
|
|
this.handleQuery()
|
|
|
},
|
|
|
+ /**树结构*/
|
|
|
async getAreaTreeSelect(areaCode, recursion) {
|
|
|
await areaTreeSelect(areaCode, recursion).then(response => {
|
|
|
this.areaOptions = response.data
|
|
|
})
|
|
|
},
|
|
|
- /** 查询区域树结构 */
|
|
|
- // getAreaTreeSelect(areaCode, recursion) {
|
|
|
- // areaTreeSelect(areaCode, recursion).then(response => {
|
|
|
- // this.areaOptions = [{
|
|
|
- // id: '-1',
|
|
|
- // label: '全部',
|
|
|
- // children: response.data
|
|
|
- // }]
|
|
|
- // })
|
|
|
- // },
|
|
|
+ formatDateTime(dateTime) {
|
|
|
+ if (!dateTime) return '';
|
|
|
+ const date = new Date(dateTime);
|
|
|
+ const year = date.getFullYear();
|
|
|
+ const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
|
+ const day = date.getDate().toString().padStart(2, '0');
|
|
|
+ const hours = date.getHours().toString().padStart(2, '0');
|
|
|
+ const minutes = date.getMinutes().toString().padStart(2, '0');
|
|
|
+ return `${year}-${month}-${day} ${hours}:${minutes}`;
|
|
|
+ },
|
|
|
/** 查询用电计量-小时列表 */
|
|
|
getElecList() {
|
|
|
this.loading = true;
|