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
f39ae078
Commit
f39ae078
authored
Jul 25, 2024
by
王亚晖
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitee.com/tj-wang-yahui/AMS_HeatSys_Vue_V10
parents
7e8f18d3
639266c3
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1302 additions
and
36 deletions
+1302
-36
AlarmInfoPage.vue
src/views/AlarmPage/AlarmInfoPage.vue
+623
-3
EnergyConsumptionPage.vue
src/views/HandlerPage/EnergyConsumptionPage.vue
+143
-27
HeatUserPage.vue
src/views/HeatUserPage/HeatUserPage.vue
+273
-3
TapPage.vue
src/views/HeatUserPage/TapPage.vue
+263
-3
No files found.
src/views/AlarmPage/AlarmInfoPage.vue
View file @
f39ae078
This diff is collapsed.
Click to expand it.
src/views/HandlerPage/EnergyConsumptionPage.vue
View file @
f39ae078
This diff is collapsed.
Click to expand it.
src/views/HeatUserPage/HeatUserPage.vue
View file @
f39ae078
<
template
>
<el-card
class=
"card-contianer"
:body-style=
"
{ 'padding': '0px 0px 0px 0px', 'height': '110px' }">
<div
class=
"div-header"
>
<el-row>
<el-col
:span=
"2"
>
<div
class=
"div-button"
>
<el-button
class=
"el-button-button"
type=
"primary"
:span=
"6"
@
click=
"refresh"
icon=
"Search"
>
搜
索
</el-button>
</div>
</el-col>
<el-col
:span=
"7"
>
<div
class=
"div-dropdown text-center"
>
<span>
小区名称
:
</span>
<el-cascader
:options=
"TransferInfo.tree"
v-model=
"TransferInfo.id"
:props=
"props"
collapse-tags
clearable
:show-all-levels=
"false"
filterable
placeholder=
"请选择"
style=
"min-width: 200px;"
/>
</div>
</el-col>
<el-col
:span=
"4"
>
<div>
<el-date-picker
v-model=
"value1"
type=
"datetime"
placeholder=
"Pick a Date"
format=
"YYYY/MM/DD hh:mm:ss"
/>
</div>
</el-col>
<el-col
:span=
"11"
>
<div
class=
"div-button"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"3"
>
</el-col>
<el-col
:span=
"3"
>
</el-col>
<el-col
:span=
"3"
>
</el-col>
<el-col
:span=
"5"
>
</el-col>
<el-col
:span=
"10"
>
<div
style=
"display: flex;"
>
<div
class=
"div-autoRefresh"
>
<el-switch
v-model=
"autoRefresh"
class=
"switch-autoRefresh"
active-text=
"历史数据"
inactive-text=
"实时数据"
style=
"--el-switch-on-color: #13ce66; --el-switch-off-color: rgb(64, 158, 255)"
@
change=
"changeRefresh"
/>
</div>
</div>
</el-col>
</el-row>
</div>
</el-col>
</el-row>
</div>
</el-card>
<
template
>
<el-card
class=
"moduleCard"
:height=
"tableHeight"
>
热用户数据
<el-table
:data=
"tableInfo.tableData"
:height=
"tableHeight"
v-loading=
"loading"
:cell-style=
"setCellStyle"
</
template
>
border
highlight-current-row
:header-cell-style=
"setHeaderCellStyle"
\ No newline at end of file
:header-cell-class-name=
"handleHeadAddClass"
>
<el-table-column
v-for=
"(item, i) in tableInfo.title.frozenList"
:prop=
"item.field"
:label=
"item.title"
:width=
"item.width"
:sortable=
"(item.field === 'name' || item.field === 'gatherTime') ? true : false"
fixed
/>
<template
v-for=
"(item, i) in tableInfo.title.otherList"
>
<el-table-column
:prop=
"item.enName"
:label=
"item.alias"
:width=
"item.width"
>
</el-table-column>
</
template
>
</el-table>
</el-card>
<el-config-provider
:locale=
"zhCn"
>
<el-pagination
v-model:current-page=
"currentPage"
v-model:page-size=
"pageSize"
:page-sizes=
"[30, 40, 50, 100, 200, 300]"
:small=
"true"
:disabled=
"disabled"
:background=
"background"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
@
size-change=
"getdata"
@
current-change=
"getdata"
class=
"pagination"
/>
</el-config-provider>
</template>
<
style
lang=
"less"
scoped
>
.moduleCard {
width: auto;
overflow: auto;
//max-height: 540px;
padding: 0px;
::v-deep .el-card__body {
padding: 0px;
}
}
.pagination {
padding: 4px;
margin-left: 20px;
height: 30px;
//background-color: #8939cf;
vertical-align: middle;
}
//鼠标所在行的颜色
::v-deep .el-table__body tr:hover>td {
background: linear-gradient(to top, rgb(0, 198, 255), rgb(255, 255, 255)) !important;
}
::v-deep .el-table__body tr.current-row>td {
background-color: #92cbf1 !important;
}
//------
.card-contianer {
width: calc(100%-1px);
font-size: medium;
height: 60px;
overflow: hidden;
.div-header {
width: 100%;
margin: 5px;
height: 80px;
}
.div-list {
// margin-left: -50px;
padding-top: 10px;
widows: 100%;
.span-time {
font-family: simhei;
font-weight: bold;
font-size: medium;
}
}
.div-button {
// width: 100%;
text-align: right;
// margin-left: 10px;
//margin-right: 10px;
padding-top: 2px;
padding-left: 15px;
padding-right: 0px;
height: 80px;
.el-button-button {
margin-top: 5px;
width: 80px;
// height: 40px;
// color: rgb(64, 158, 255);
}
.div-autoRefresh {
background-color: white;
color: rgb(64, 158, 255);
// padding-right: 10px;
display: flex;
margin-top: 5px;
border-radius: var(--el-border-radius-base);
padding: 6px 15px;
font-size: 14px;
height: 20px;
overflow: hidden;
}
.switch-autoRefresh {
margin-left: 0px;
margin-top: -6px;
}
}
}
.card-form {
width: 100%;
height: 300px;
}
.div-dropdown {
//display: flex;
padding-top: 7px;
height: 50px;
padding-left: 10px;
.el-dropdown-link {
margin-top: 5px;
color: white;
}
}
.text-center {
text-align: center;
}
:deep(.div-form-img) {
display: flex;
align-items: center;
justify-content: center;
}
:deep(.col-center) {
display: flex;
align-items: center;
justify-content: center;
}
.span-text {}
</
style
>
<
script
setup
>
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
provide
,
computed
,
handleError
}
from
'vue'
import
DataForm
from
'../../components/DataForm.vue'
;
import
{
useRoute
}
from
'vue-router'
import
http
from
'../../api/http'
import
store
from
"../../store/index"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
Search
,
ArrowLeft
,
ArrowRight
,
Warning
}
from
'@element-plus/icons-vue'
import
CfgSupply
from
'../../components/CfgSupply.vue'
;
// import { ca } from 'element-plus/es/locale';
const
enterpriseId
=
ref
(
null
);
enterpriseId
.
value
=
store
.
getters
.
getEnterpriseId
();
var
gatherTime
=
ref
([]);
var
showSupply
=
ref
([])
var
showBoilder
=
ref
([])
var
useDropdown
=
ref
([
false
]);
//ref([{label:'全部',value:''}])
var
selectList
=
reactive
({
supplyList
:
[],
dropdownList
:
[],
pipeInfo
:
{}
});
var
cardForms
=
reactive
({
tableData
:
[],
alarm
:
[],
forms
:
[],
title
:
[]
});
//无排序和筛选
var
autoRefresh
=
ref
(
false
);
var
refreshTime
=
ref
(
60
);
var
timer
;
const
props
=
{
multiple
:
true
,
emitPath
:
false
}
const
TransferInfo
=
reactive
({
"enterpriseId"
:
enterpriseId
.
value
,
tree
:
[],
"supplyId"
:
[],
"deviceType"
:
3
,
"id"
:
[],
"name"
:
[],
"interval"
:
2
,
"sort"
:
""
,
"pageIndex"
:
0
,
"pageCount"
:
30
})
//分页
const
currentPage
=
ref
(
1
)
var
pageSize
=
ref
(
30
)
const
total
=
ref
(
100
)
const
disabled
=
ref
(
false
)
const
background
=
ref
(
false
)
//表格
var
h
=
window
.
innerHeight
-
230
const
tableHeight
=
ref
(
h
);
var
tableInfo
=
reactive
({
tableData
:
[],
title
:
{
frozenList
:
[],
otherList
:
[]
}
})
const
loading
=
ref
(
false
);
const
value
=
ref
(
true
);
</
script
>
\ No newline at end of file
src/views/HeatUserPage/TapPage.vue
View file @
f39ae078
<
template
>
<
template
>
阀门数据
<el-card
class=
"card-contianer"
:body-style=
"
{ 'padding': '0px 0px 0px 0px', 'height': '110px' }">
</
template
>
<div
class=
"div-header"
>
\ No newline at end of file
<el-row>
<el-col
:span=
"7"
>
<div
class=
"div-dropdown text-center"
>
<span>
小区名称
:
</span>
<el-cascader
:options=
"TransferInfo.tree"
v-model=
"TransferInfo.id"
:props=
"props"
collapse-tags
clearable
:show-all-levels=
"false"
filterable
placeholder=
"请选择"
style=
"min-width: 310px;"
/>
</div>
</el-col>
<el-col
:span=
"2"
>
<div
class=
"div-button"
>
<el-button
class=
"el-button-button"
type=
"primary"
:span=
"6"
@
click=
"refresh"
icon=
"Search"
>
搜
索
</el-button>
</div>
</el-col>
<el-col
:span=
"4"
>
</el-col>
<el-col
:span=
"11"
>
<div
class=
"div-button"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"13"
>
</el-col>
<el-col
:span=
"3"
>
</el-col>
<el-col
:span=
"3"
>
</el-col>
<el-col
:span=
"5"
>
</el-col>
</el-row>
</div>
</el-col>
</el-row>
</div>
</el-card>
<el-card
class=
"moduleCard"
:height=
"tableHeight"
>
<el-table
:data=
"tableInfo.tableData"
:height=
"tableHeight"
v-loading=
"loading"
:cell-style=
"setCellStyle"
border
highlight-current-row
:header-cell-style=
"setHeaderCellStyle"
:header-cell-class-name=
"handleHeadAddClass"
>
<el-table-column
v-for=
"(item, i) in tableInfo.title.frozenList"
:prop=
"item.field"
:label=
"item.title"
:width=
"item.width"
:sortable=
"(item.field === 'name' || item.field === 'gatherTime') ? true : false"
fixed
/>
<template
v-for=
"(item, i) in tableInfo.title.otherList"
>
<el-table-column
:prop=
"item.enName"
:label=
"item.alias"
:width=
"item.width"
>
</el-table-column>
</
template
>
</el-table>
</el-card>
<el-config-provider
:locale=
"zhCn"
>
<el-pagination
v-model:current-page=
"currentPage"
v-model:page-size=
"pageSize"
:page-sizes=
"[30, 40, 50, 100, 200, 300]"
:small=
"true"
:disabled=
"disabled"
:background=
"background"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
@
size-change=
"getdata"
@
current-change=
"getdata"
class=
"pagination"
/>
</el-config-provider>
</template>
<
style
lang=
"less"
scoped
>
.moduleCard {
width: auto;
overflow: auto;
//max-height: 540px;
padding: 0px;
::v-deep .el-card__body {
padding: 0px;
}
}
.pagination {
padding: 4px;
margin-left: 20px;
height: 30px;
//background-color: #8939cf;
vertical-align: middle;
}
//鼠标所在行的颜色
::v-deep .el-table__body tr:hover>td {
background: linear-gradient(to top, rgb(0, 198, 255), rgb(255, 255, 255)) !important;
}
::v-deep .el-table__body tr.current-row>td {
background-color: #92cbf1 !important;
}
//------
.card-contianer {
width: calc(100%-1px);
font-size: medium;
height: 60px;
overflow: hidden;
.div-header {
width: 100%;
margin: 5px;
height: 80px;
}
.div-list {
// margin-left: -50px;
padding-top: 10px;
widows: 100%;
.span-time {
font-family: simhei;
font-weight: bold;
font-size: medium;
}
}
.div-button {
// width: 100%;
text-align: right;
// margin-left: 10px;
//margin-right: 10px;
padding-top: 2px;
padding-left: 15px;
padding-right: 0px;
height: 80px;
.el-button-button {
margin-top: 5px;
width: 80px;
// height: 40px;
// color: rgb(64, 158, 255);
}
.div-autoRefresh {
background-color: white;
color: rgb(64, 158, 255);
// padding-right: 10px;
display: flex;
margin-top: 5px;
border-radius: var(--el-border-radius-base);
padding: 6px 15px;
font-size: 14px;
height: 20px;
overflow: hidden;
}
.switch-autoRefresh {
margin-left: 0px;
margin-top: -6px;
}
}
}
.card-form {
width: 100%;
height: 300px;
}
.div-dropdown {
//display: flex;
padding-top: 7px;
height: 50px;
padding-left: 10px;
.el-dropdown-link {
margin-top: 5px;
color: white;
}
}
.text-center {
text-align: center;
}
:deep(.div-form-img) {
display: flex;
align-items: center;
justify-content: center;
}
:deep(.col-center) {
display: flex;
align-items: center;
justify-content: center;
}
.span-text {}
</
style
>
<
script
setup
>
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
provide
,
computed
,
handleError
}
from
'vue'
import
DataForm
from
'../../components/DataForm.vue'
;
import
{
useRoute
}
from
'vue-router'
import
http
from
'../../api/http'
import
store
from
"../../store/index"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
Search
,
ArrowLeft
,
ArrowRight
,
Warning
}
from
'@element-plus/icons-vue'
import
CfgSupply
from
'../../components/CfgSupply.vue'
;
// import { ca } from 'element-plus/es/locale';
const
enterpriseId
=
ref
(
null
);
enterpriseId
.
value
=
store
.
getters
.
getEnterpriseId
();
var
gatherTime
=
ref
([]);
var
showSupply
=
ref
([])
var
showBoilder
=
ref
([])
var
useDropdown
=
ref
([
false
]);
//ref([{label:'全部',value:''}])
var
selectList
=
reactive
({
supplyList
:
[],
dropdownList
:
[],
pipeInfo
:
{}
});
var
cardForms
=
reactive
({
tableData
:
[],
alarm
:
[],
forms
:
[],
title
:
[]
});
//无排序和筛选
var
autoRefresh
=
ref
(
false
);
var
refreshTime
=
ref
(
60
);
var
timer
;
const
props
=
{
multiple
:
true
,
emitPath
:
false
}
const
TransferInfo
=
reactive
({
"enterpriseId"
:
enterpriseId
.
value
,
tree
:
[],
"supplyId"
:
[],
"deviceType"
:
3
,
"id"
:
[],
"name"
:
[],
"interval"
:
2
,
"sort"
:
""
,
"pageIndex"
:
0
,
"pageCount"
:
30
})
//分页
const
currentPage
=
ref
(
1
)
var
pageSize
=
ref
(
30
)
const
total
=
ref
(
100
)
const
disabled
=
ref
(
false
)
const
background
=
ref
(
false
)
//表格
var
h
=
window
.
innerHeight
-
230
const
tableHeight
=
ref
(
h
);
var
tableInfo
=
reactive
({
tableData
:
[],
title
:
{
frozenList
:
[],
otherList
:
[]
}
})
const
loading
=
ref
(
false
);
const
value
=
ref
(
true
);
</
script
>
\ No newline at end of file
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