Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
海康威视
web-project
Commits
d6fa5f42
Commit
d6fa5f42
authored
Aug 04, 2024
by
朱超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报表更新
parent
39675fe6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
203 additions
and
127 deletions
+203
-127
AreaInfoPage.vue
src/views/Report/AreaInfoPage.vue
+13
-5
ForecastPage.vue
src/views/Report/ForecastPage.vue
+28
-10
HeatAnalysisPage.vue
src/views/Report/HeatAnalysisPage.vue
+6
-6
RealAnalysisPage.vue
src/views/Report/RealAnalysisPage.vue
+124
-68
TransferEnergyPage.vue
src/views/Report/TransferEnergyPage.vue
+32
-38
No files found.
src/views/Report/AreaInfoPage.vue
View file @
d6fa5f42
<
template
>
<div
class=
"contentBlock"
>
<div
class=
"contentBlock"
v-loading=
"loading"
element-loading-background=
"rgba(122, 122, 122, 0.6)"
>
<div
class=
"contentBlockInn"
id=
"printBlock"
>
<el-card
class=
"card-contianer"
>
<table
...
...
@@ -111,7 +115,11 @@
</td>
</tr>
</table>
<el-table
:data=
"tableData"
style=
"width: 100%; margin-top: 10px"
>
<el-table
:data=
"tableData"
empty-text=
"暂无数据"
style=
"width: 100%; margin-top: 10px"
>
<el-table-column
type=
"index"
width=
"60"
label=
"序号"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"jurisdictionName"
label=
"区域名称"
/>
...
...
@@ -213,6 +221,7 @@ import { saveAs } from "file-saver";
import
XLSX
from
"xlsx-js-style"
;
import
{
postTransferArea
}
from
"../../api/report"
;
import
print
from
"vue3-print-nb"
;
const
loading
=
ref
(
false
);
const
radioTitle
=
ref
(
"供热站"
);
const
options
=
reactive
([]);
const
enterpriseId
=
ref
(
null
);
...
...
@@ -411,7 +420,6 @@ function postTransferAreaFun() {
enertyInfo
.
jurisdictionIds
.
forEach
((
item
)
=>
{
options
.
forEach
((
item1
)
=>
{
if
(
item1
.
value
==
item
)
{
console
.
log
(
item1
.
lable
);
areaName
.
value
.
push
(
item1
.
lable
);
}
});
...
...
@@ -423,7 +431,7 @@ function postTransferAreaFun() {
}
else
{
supplyYearSend
=
enertyInfo
.
supplyYear
.
split
(
"-"
)[
1
];
}
loading
.
value
=
true
;
let
params
=
{
jurisdictionIds
:
enertyInfo
.
jurisdictionIds
,
supplyYear
:
supplyYearSend
,
...
...
@@ -448,13 +456,13 @@ function postTransferAreaFun() {
}
else
{
ElMessage
.
error
(
res
.
message
);
}
loading
.
value
=
false
;
});
}
onMounted
(()
=>
{
initRadioList
();
postTransferAreaFun
();
//postHeatForecastFun();
});
onUnmounted
(()
=>
{});
</
script
>
...
...
src/views/Report/ForecastPage.vue
View file @
d6fa5f42
...
...
@@ -673,12 +673,21 @@ function postHeatForecastFun() {
};
postHeatForecast
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
===
true
)
{
temp
.
value
=
res
.
data
.
temp
;
predTemp
.
value
=
res
.
data
.
predTemp
;
weather
.
value
=
res
.
data
.
weather
;
dataList
.
value
=
res
.
data
.
list
;
dataTime
.
value
=
res
.
data
.
time
;
res
.
data
.
temp
?
(
temp
.
value
=
res
.
data
.
temp
)
:
(
temp
.
value
=
{});
res
.
data
.
predTemp
?
(
predTemp
.
value
=
res
.
data
.
predTemp
)
:
(
predTemp
.
value
=
{});
res
.
data
.
weather
?
(
weather
.
value
=
res
.
data
.
weather
)
:
(
weather
.
value
=
{});
res
.
data
.
list
?
(
dataList
.
value
=
res
.
data
.
list
)
:
(
dataList
.
value
=
{});
res
.
data
.
time
?
(
dataTime
.
value
=
res
.
data
.
time
)
:
(
dataTime
.
value
=
{});
}
else
{
temp
.
value
=
{};
predTemp
.
value
=
{};
weather
.
value
=
{};
dataList
.
value
=
{};
dataTime
.
value
=
{};
ElMessage
.
error
(
res
.
message
);
}
loading
.
value
=
false
;
...
...
@@ -696,12 +705,21 @@ function postPrintHeatForecastFun() {
};
postPrintHeatForecast
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
===
true
)
{
temp
.
value
=
res
.
data
.
temp
;
predTemp
.
value
=
res
.
data
.
predTemp
;
weather
.
value
=
res
.
data
.
weather
;
dataList
.
value
=
res
.
data
.
list
;
dataTime
.
value
=
res
.
data
.
time
;
res
.
data
.
temp
?
(
temp
.
value
=
res
.
data
.
temp
)
:
(
temp
.
value
=
{});
res
.
data
.
predTemp
?
(
predTemp
.
value
=
res
.
data
.
predTemp
)
:
(
predTemp
.
value
=
{});
res
.
data
.
weather
?
(
weather
.
value
=
res
.
data
.
weather
)
:
(
weather
.
value
=
{});
res
.
data
.
list
?
(
dataList
.
value
=
res
.
data
.
list
)
:
(
dataList
.
value
=
{});
res
.
data
.
time
?
(
dataTime
.
value
=
res
.
data
.
time
)
:
(
dataTime
.
value
=
{});
}
else
{
temp
.
value
=
{};
predTemp
.
value
=
{};
weather
.
value
=
{};
dataList
.
value
=
{};
dataTime
.
value
=
{};
ElMessage
.
error
(
res
.
message
);
}
loading
.
value
=
false
;
...
...
src/views/Report/HeatAnalysisPage.vue
View file @
d6fa5f42
...
...
@@ -800,7 +800,7 @@ function timeFun() {
const
prehour
=
new
Date
(
today
.
getTime
()
-
60
*
60
*
1000
);
today
.
setDate
(
today
.
getDate
());
enertyInfo
.
queryTime
=
today
.
toISOString
().
split
(
"T"
)[
0
]
+
" "
+
prehour
.
getHours
()
+
":00:0"
;
today
.
toISOString
().
split
(
"T"
)[
0
]
+
" "
+
prehour
.
getHours
()
+
":00:0
0
"
;
}
function
postHeatAnalysisFun
()
{
...
...
@@ -809,11 +809,6 @@ function postHeatAnalysisFun() {
return
false
;
}
loading
.
value
=
true
;
predictionTemp
.
value
=
{};
realTemp
.
value
=
{};
comprehensiveTemp
.
value
=
{};
analysisSupplys
.
value
=
{};
analysisZones
.
value
=
{};
let
params
=
{
QueryTime
:
enertyInfo
.
queryTime
,
};
...
...
@@ -835,6 +830,11 @@ function postHeatAnalysisFun() {
?
(
analysisZones
.
value
=
res
.
data
.
analysisZones
)
:
(
analysisZones
.
value
=
{});
}
else
{
predictionTemp
.
value
=
{};
realTemp
.
value
=
{};
comprehensiveTemp
.
value
=
{};
analysisSupplys
.
value
=
{};
analysisZones
.
value
=
{};
ElMessage
.
error
(
res
.
message
);
}
loading
.
value
=
false
;
...
...
src/views/Report/RealAnalysisPage.vue
View file @
d6fa5f42
<
template
>
<div
class=
"contentBlock"
>
<div
class=
"contentBlock"
v-loading=
"loading"
element-loading-background=
"rgba(122, 122, 122, 0.6)"
>
<div
class=
"contentBlockInn"
id=
"printBlock"
>
<el-card
class=
"card-contianer"
>
<table
...
...
@@ -8,8 +12,13 @@
style=
"background-color: #99bbe8"
>
<tr>
<th
style=
"text-align:center;"
>
<span
style=
"font-size:24px;"
>
港益热量汇总实时分析
<span
style=
"font-size:14px; margin-left:10px;"
>
当前时间:
{{
enertyInfo
.
nowTime
}}
</span></span>
<th
style=
"text-align: center"
>
<span
style=
"font-size: 24px"
>
港益热量汇总实时分析
<span
style=
"font-size: 14px; margin-left: 10px"
>
当前时间:
{{
enertyInfo
.
nowTime
}}
</span
></span
>
</th>
</tr>
</table>
...
...
@@ -59,10 +68,26 @@
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"predictionHeat"
label=
"预测瞬时热量"
width=
"130"
/>
<el-table-column
prop=
"currentPredictionHeat"
label=
"当前预测热量累计"
width=
"150"
/>
<el-table-column
prop=
"currentDifference"
label=
"当前热量偏差量"
width=
"150"
/>
<el-table-column
prop=
"groupFirstSupplyTemp"
width=
"150"
align=
"center"
>
<el-table-column
prop=
"predictionHeat"
label=
"预测瞬时热量"
width=
"130"
/>
<el-table-column
prop=
"currentPredictionHeat"
label=
"当前预测热量累计"
width=
"150"
/>
<el-table-column
prop=
"currentDifference"
label=
"当前热量偏差量"
width=
"150"
/>
<el-table-column
prop=
"groupFirstSupplyTemp"
width=
"150"
align=
"center"
>
<
template
v-slot:header
>
<div>
<div>
滨海供热集团
</div>
...
...
@@ -81,9 +106,9 @@
<el-table-column
prop=
"groupFirstSupplyPress"
width=
"150"
align=
"center"
align=
"center"
>
<
template
v-slot:header
>
<
template
v-slot:header
>
<div>
<div>
滨海供热集团
</div>
<span>
供水压力(MP)
</span>
...
...
@@ -95,60 +120,62 @@
width=
"150"
align=
"center"
>
<
template
v-slot:header
>
<
template
v-slot:header
>
<div>
<div>
滨海供热集团
</div>
<span>
回水压力(MP)
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"groupSupplyFlow"
width=
"180"
align=
"center"
>
<
template
v-slot:header
>
<el-table-column
prop=
"groupSupplyFlow"
width=
"180"
align=
"center"
>
<
template
v-slot:header
>
<div>
<div>
滨海供热集团
</div>
<span>
供水瞬时流量(m³/h)
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"groupSupplyHeat"
width=
"180"
align=
"center"
>
<
template
v-slot:header
>
<el-table-column
prop=
"groupSupplyHeat"
width=
"180"
align=
"center"
>
<
template
v-slot:header
>
<div>
<div>
滨海供热集团
</div>
<span>
供水瞬时热量(GJ/H)
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
prop=
"currentRealHeat"
label=
"当前实际热量累计"
/>
<el-table-column
fixed=
"right"
prop=
"currentRealHeat"
label=
"当前实际热量累计"
/>
</el-table>
<table
cellpadding=
"0"
cellspacing=
"1"
class=
"bottomTable"
style=
"width: 100%
;
"
style=
"width: 100%"
>
<tr>
<td
style=
"text-align:center; width:50%;"
>
预测方案生成 瞬时热量(GJ/H)
</td>
<td
style=
"text-align:center;"
>
{{ tableDataList.prePlan }}
</td>
<td
style=
"text-align: center; width: 50%"
>
预测方案生成 瞬时热量(GJ/H)
</td>
<td
style=
"text-align: center"
>
{{ tableDataList.prePlan }}
</td>
</tr>
<tr>
<td
style=
"text-align:
center;
"
>
滨海供热集团汇总 瞬时热量(GJ/H)
</td>
<td
style=
"text-align:
center;
"
>
{{ tableDataList.groupTotal }}
</td>
<td
style=
"text-align:
center
"
>
滨海供热集团汇总 瞬时热量(GJ/H)
</td>
<td
style=
"text-align:
center
"
>
{{ tableDataList.groupTotal }}
</td>
</tr>
<tr>
<td
style=
"text-align:center;"
>
预测瞬时热量与汇总 瞬时热量 差两(GJ/H)
</td>
<td
style=
"text-align:center;"
>
{{ tableDataList.prePlanDiff }}
</td>
<td
style=
"text-align: center"
>
预测瞬时热量与汇总 瞬时热量 差两(GJ/H)
</td>
<td
style=
"text-align: center"
>
{{ tableDataList.prePlanDiff }}
</td>
</tr>
<tr>
<td
style=
"text-align:center;"
>
预测瞬时热量与汇总 瞬时热量 差量比(%)
</td>
<td
style=
"text-align:center;"
>
{{ tableDataList.diffPercent }}
</td>
<td
style=
"text-align: center"
>
预测瞬时热量与汇总 瞬时热量 差量比(%)
</td>
<td
style=
"text-align: center"
>
{{ tableDataList.diffPercent }}
</td>
</tr>
</table>
<div>
...
...
@@ -170,11 +197,11 @@
style=
"margin: 15px 0 0 10px"
>
导出
</el-button
>
<router-link
to=
"/Forecast"
><el-button
type=
"primary
"
style=
"margin: 15px 0 0 10px"
>
返回
</el-button
>
</router-link>
<router-link
to=
"/Forecast"
><el-button
type=
"primary"
style=
"margin: 15px 0 0 10px
"
>
返回
</el-button
>
</router-link
>
</div>
</div>
</el-card>
...
...
@@ -187,7 +214,11 @@
style=
"background-color: #ff0"
>
<tr>
<td
colspan=
"17"
>
港益热量汇总实时分析
当前时间:{{ enertyInfo.nowTime }}
</td>
<td
colspan=
"17"
>
港益热量汇总实时分析
当前时间:{{
enertyInfo.nowTime
}}
</td>
</tr>
<tr>
<td>
地点
</td>
...
...
@@ -228,22 +259,38 @@
<td>
{{ item.currentRealHeat }}
</td>
</tr>
<tr>
<td
colspan=
"17"
>
预测方案生成 瞬时热量(GJ/H)
{{ tableDataList.prePlan }}
</td>
<td
colspan=
"17"
>
预测方案生成 瞬时热量(GJ/H)
{{
tableDataList.prePlan
}}
</td>
</tr>
<tr>
<td
colspan=
"17"
>
滨海供热集团汇总 瞬时热量(GJ/H)
{{ tableDataList.groupTotal }}
</td>
<td
colspan=
"17"
>
滨海供热集团汇总 瞬时热量(GJ/H)
{{
tableDataList.groupTotal
}}
</td>
</tr>
<tr>
<td
colspan=
"17"
>
预测瞬时热量与汇总 瞬时热量 差两(GJ/H)
{{ tableDataList.prePlanDiff }}
</td>
<td
colspan=
"17"
>
预测瞬时热量与汇总 瞬时热量 差两(GJ/H)
{{
tableDataList.prePlanDiff
}}
</td>
</tr>
<tr>
<td
colspan=
"17"
>
预测瞬时热量与汇总 瞬时热量 差量比(%)
{{ tableDataList.diffPercent }}
</td>
<td
colspan=
"17"
>
预测瞬时热量与汇总 瞬时热量 差量比(%)
{{
tableDataList.diffPercent
}}
</td>
</tr>
</table>
</div>
</template>
<
script
setup
>
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
}
from
"vue"
;
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
onActivated
}
from
"vue"
;
import
http
from
"../../api/http"
;
import
zhCn
from
"element-plus/dist/locale/zh-cn.mjs"
;
import
{
ElMessage
}
from
"element-plus"
;
...
...
@@ -251,10 +298,11 @@ import { saveAs } from "file-saver";
import
XLSX
from
"xlsx-js-style"
;
import
{
postRealAnalysis
}
from
"../../api/report"
;
import
print
from
"vue3-print-nb"
;
const
loading
=
ref
(
false
);
const
enertyInfo
=
reactive
({
nowTime
:
null
,
queryTime
:
null
})
queryTime
:
null
,
})
;
const
tableDataList
=
ref
([]);
const
tableData
=
ref
([]);
const
vPrint
=
print
;
...
...
@@ -390,41 +438,49 @@ function exportTableToExcel() {
ElMessage
.
success
(
"导出成功!请稍后。。。"
);
}
function
postRealAnalysisFun
()
{
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
var
dateArr
=
[
date
.
getMonth
()
+
1
,
date
.
getDate
(),
date
.
getHours
(),
date
.
getMinutes
(),
date
.
getSeconds
(),
];
enertyInfo
.
nowTime
=
year
+
"-"
+
dateArr
[
0
]
+
"-"
+
dateArr
[
1
]
+
" "
+
dateArr
[
2
]
+
":"
+
dateArr
[
3
]
+
":"
+
dateArr
[
4
];
enertyInfo
.
queryTime
=
year
+
"-"
+
dateArr
[
0
]
+
"-"
+
dateArr
[
1
]
+
" "
+
dateArr
[
2
]
+
":"
+
"00:00"
;
console
.
log
(
enertyInfo
.
queryTime
);
const
today
=
new
Date
();
const
prehour
=
new
Date
(
today
.
getTime
()
-
60
*
60
*
1000
);
today
.
setDate
(
today
.
getDate
());
enertyInfo
.
queryTime
=
today
.
toISOString
().
split
(
"T"
)[
0
]
+
" "
+
prehour
.
getHours
()
+
":00:00"
;
let
params
=
{
QueryTime
:
"2024-01-01 09:00:00"
,
//QueryTime: year + "-" + dateArr[0] + "-" + dateArr[1] + " " + dateArr[2] + ":" + "00:00"
QueryTime
:
enertyInfo
.
queryTime
,
};
loading
.
value
=
true
;
postRealAnalysis
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
===
true
)
{
tableDataList
.
value
=
res
.
data
[
0
];
tableData
.
value
=
res
.
data
[
0
].
repData
;
tableData
.
value
.
forEach
(
element
=>
{
element
.
firstInstantaneousFlow
=
parseFloat
(
element
.
firstInstantaneousFlow
).
toFixed
(
1
);
tableData
.
value
.
forEach
((
element
)
=>
{
element
.
firstInstantaneousFlow
=
parseFloat
(
element
.
firstInstantaneousFlow
).
toFixed
(
1
);
element
.
predictionHeat
=
parseFloat
(
element
.
predictionHeat
).
toFixed
(
1
);
element
.
currentPredictionHeat
=
element
.
currentPredictionHeat
?
element
.
currentPredictionHeat
:
"-"
;
element
.
currentDifference
=
element
.
currentDifference
?
element
.
currentDifference
:
"-"
;
element
.
groupFirstSupplyPress
=
element
.
groupFirstSupplyPress
?
element
.
groupFirstSupplyPress
:
"-"
;
element
.
groupFirstBackPress
=
element
.
groupFirstBackPress
?
element
.
groupFirstBackPress
:
"-"
;
element
.
currentRealHeat
=
element
.
currentRealHeat
?
element
.
currentRealHeat
:
"-"
;
})
element
.
currentPredictionHeat
=
element
.
currentPredictionHeat
?
element
.
currentPredictionHeat
:
"-"
;
element
.
currentDifference
=
element
.
currentDifference
?
element
.
currentDifference
:
"-"
;
element
.
groupFirstSupplyPress
=
element
.
groupFirstSupplyPress
?
element
.
groupFirstSupplyPress
:
"-"
;
element
.
groupFirstBackPress
=
element
.
groupFirstBackPress
?
element
.
groupFirstBackPress
:
"-"
;
element
.
currentRealHeat
=
element
.
currentRealHeat
?
element
.
currentRealHeat
:
"-"
;
});
}
else
{
ElMessage
.
error
(
res
.
message
);
}
loading
.
value
=
false
;
});
}
onActivated
(()
=>
{
postRealAnalysisFun
();
});
onMounted
(()
=>
{
postRealAnalysisFun
();
});
...
...
src/views/Report/TransferEnergyPage.vue
View file @
d6fa5f42
<
template
>
<div
class=
"contentBlock"
>
<div
class=
"contentBlock"
v-loading=
"loading"
element-loading-background=
"rgba(122, 122, 122, 0.6)"
>
<div
class=
"contentBlockInn"
id=
"printBlock"
>
<el-card
class=
"card-contianer"
>
<table
cellpadding=
"0"
cellspacing=
"1"
style=
"background-color: #99bbe8"
empty-text=
"暂无数据"
>
<tr>
<th
style=
"width: 25%"
>
起始时间
</th>
...
...
@@ -144,17 +149,17 @@
<td>
电量(KWH/㎡)
</td>
</tr>
<tr
v-for=
"item in tableData"
:key=
"item.sn"
>
<td>
{{
item
.
sn
}}
</td>
<td>
{{
item
.
jurisdictionName
}}
</td>
<td>
{{
item
.
transferName
}}
</td>
<td>
{{
item
.
area
}}
</td>
<td>
{{
item
.
heat
}}
</td>
<td>
{{
item
.
heatG
}}
</td>
<td>
{{
item
.
heatW
}}
</td>
<td>
{{
item
.
water
}}
</td>
<td>
{{
item
.
waterUsed
}}
</td>
<td>
{{
item
.
electric
}}
</td>
<td>
{{
item
.
electricUsed
}}
</td>
<td>
{{
item
.
sn
}}
</td>
<td>
{{
item
.
jurisdictionName
}}
</td>
<td>
{{
item
.
transferName
}}
</td>
<td>
{{
item
.
area
}}
</td>
<td>
{{
item
.
heat
}}
</td>
<td>
{{
item
.
heatG
}}
</td>
<td>
{{
item
.
heatW
}}
</td>
<td>
{{
item
.
water
}}
</td>
<td>
{{
item
.
waterUsed
}}
</td>
<td>
{{
item
.
electric
}}
</td>
<td>
{{
item
.
electricUsed
}}
</td>
</tr>
</table>
</div>
...
...
@@ -169,6 +174,7 @@ import { saveAs } from "file-saver";
import
XLSX
from
"xlsx-js-style"
;
import
{
postTransferEnergy
}
from
"../../api/report"
;
import
print
from
"vue3-print-nb"
;
const
loading
=
ref
(
false
);
const
radioTitle
=
ref
(
"供热站"
);
const
options
=
reactive
([]);
const
enterpriseId
=
ref
(
null
);
...
...
@@ -276,9 +282,7 @@ function exportTableToExcel() {
}
}
ws
[
"!cols"
]
=
[
{
wch
:
5
}
];
ws
[
"!cols"
]
=
[{
wch
:
5
}];
XLSX
.
utils
.
sheet_add_aoa
(
ws
,
[],
{
origin
:
"A1"
,
...
...
@@ -294,28 +298,13 @@ function exportTableToExcel() {
ElMessage
.
success
(
"导出成功!请稍后。。。"
);
}
function
timeFun
()
{
var
date
=
new
Date
();
var
year
=
date
.
getFullYear
();
var
dateArr
=
[
date
.
getMonth
()
+
1
,
date
.
getDate
(),
date
.
getHours
(),
date
.
getMinutes
(),
date
.
getSeconds
(),
];
var
endTimeDay
=
parseInt
(
dateArr
[
1
]
-
1
);
if
(
endTimeDay
<
10
)
{
endTimeDay
=
"0"
+
endTimeDay
;
}
if
(
dateArr
[
0
]
<
10
)
{
dateArr
[
0
]
=
"0"
+
dateArr
[
0
];
}
if
(
dateArr
[
1
]
<
10
)
{
dateArr
[
1
]
=
"0"
+
dateArr
[
1
];
}
enertyInfo
.
startTime
=
year
+
"-"
+
dateArr
[
0
]
+
"-"
+
endTimeDay
;
enertyInfo
.
endTime
=
year
+
"-"
+
dateArr
[
0
]
+
"-"
+
dateArr
[
1
];
console
.
log
(
enertyInfo
);
const
today
=
new
Date
();
const
preday
=
new
Date
(
today
);
preday
.
setDate
(
preday
.
getDate
()
-
1
);
today
.
setDate
(
today
.
getDate
());
enertyInfo
.
startTime
=
preday
.
toISOString
().
split
(
"T"
)[
0
];
enertyInfo
.
endTime
=
today
.
toISOString
().
split
(
"T"
)[
0
];
}
//根据权限初始化单选列表
...
...
@@ -360,7 +349,6 @@ function postTransferEnergyFun() {
enertyInfo
.
jurisdictionIds
.
forEach
((
item
)
=>
{
options
.
forEach
((
item1
)
=>
{
if
(
item1
.
value
==
item
)
{
console
.
log
(
item1
.
lable
);
areaName
.
value
.
push
(
item1
.
lable
);
}
});
...
...
@@ -370,12 +358,18 @@ function postTransferEnergyFun() {
ElMessage
.
error
(
"请选择开始时间"
);
return
false
;
}
if
(
enertyInfo
.
endTime
==
null
)
{
ElMessage
.
error
(
"请选择结束时间"
);
return
false
;
}
loading
.
value
=
true
;
postTransferEnergy
(
enertyInfo
).
then
((
res
)
=>
{
if
(
res
.
success
===
true
)
{
tableData
.
value
=
res
.
data
;
}
else
{
ElMessage
.
error
(
res
.
message
);
}
loading
.
value
=
false
;
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment