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
cd57e9b3
Commit
cd57e9b3
authored
Aug 13, 2024
by
xuke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-能源消耗
parent
fe361d1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
EnergyManagePage.vue
src/views/SchedulingPage/EnergyManagePage.vue
+7
-3
No files found.
src/views/SchedulingPage/EnergyManagePage.vue
View file @
cd57e9b3
...
@@ -7,7 +7,6 @@ import {
...
@@ -7,7 +7,6 @@ import {
getOrganizationStructureInterface
getOrganizationStructureInterface
}
from
"@/api/scheduling"
;
}
from
"@/api/scheduling"
;
import
http
from
"../../api/http"
;
import
http
from
"../../api/http"
;
import
loading
from
"element-plus"
;
import
store
from
"../../store"
;
import
store
from
"../../store"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
{
proxy
}
=
getCurrentInstance
();
const
{
proxy
}
=
getCurrentInstance
();
...
@@ -32,12 +31,14 @@ const reset = () => {
...
@@ -32,12 +31,14 @@ const reset = () => {
"energyName"
:
''
"energyName"
:
''
}
}
}
}
const
loading
=
ref
(
false
)
const
energyForm
=
ref
()
const
energyForm
=
ref
()
const
dialogVisible
=
ref
(
false
)
const
dialogVisible
=
ref
(
false
)
const
getEnergyData
=
()
=>
{
const
getEnergyData
=
()
=>
{
loading
.
value
=
true
http
.
post
(
"/api/energy/getData"
,
config
.
supplyType
).
then
((
res
)
=>
{
http
.
post
(
"/api/energy/getData"
,
config
.
supplyType
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
loading
.
value
=
false
tableData
.
value
=
res
.
data
;
tableData
.
value
=
res
.
data
;
ElMessage
.
success
(
res
.
message
);
ElMessage
.
success
(
res
.
message
);
}
else
{
}
else
{
...
@@ -93,6 +94,8 @@ const handleSearch = () => {
...
@@ -93,6 +94,8 @@ const handleSearch = () => {
// 重置按钮
// 重置按钮
const
handleReset
=
()
=>
{
const
handleReset
=
()
=>
{
formInline
.
keyWord
=
""
formInline
.
keyWord
=
""
config
.
supplyType
=
[
"0"
,
"1"
,
"2"
,
"3"
,
"4"
]
getEnergyData
()
}
}
const
timeFormat
=
(
time
)
=>
{
const
timeFormat
=
(
time
)
=>
{
...
@@ -257,6 +260,7 @@ function getOrganizationStructure() {
...
@@ -257,6 +260,7 @@ function getOrganizationStructure() {
onMounted
(()
=>
{
onMounted
(()
=>
{
getOrganizationStructure
()
getOrganizationStructure
()
getEnergyData
()
getEnergyData
()
})
})
</
script
>
</
script
>
...
@@ -302,7 +306,7 @@ onMounted(() => {
...
@@ -302,7 +306,7 @@ onMounted(() => {
</table>
</table>
<el-table
:data=
"tableData"
style=
"width: 100%;font-size: 12px;color: #181818;"
<el-table
v-loading=
"loading"
:data=
"tableData"
style=
"width: 100%;font-size: 12px;color: #181818;"
:header-cell-style=
"
{ color: '#225475', backgroundColor: '#B8CFEE', 'text-align': 'center', height: '40px', padding: '0px', border: '1px solid #99bbe8' }"
:header-cell-style=
"
{ color: '#225475', backgroundColor: '#B8CFEE', 'text-align': 'center', height: '40px', padding: '0px', border: '1px solid #99bbe8' }"
:cell-style="{ 'text-align': 'center', padding: '0px' }" :row-style="{ height: '30px', padding: '0px' }" border
:cell-style="{ 'text-align': 'center', padding: '0px' }" :row-style="{ height: '30px', padding: '0px' }" border
stripe max-height="633">
stripe max-height="633">
...
...
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