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
790a707d
Commit
790a707d
authored
Aug 05, 2024
by
裴文涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
年度参数列表页面完成
parent
aba77d57
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
608 additions
and
351 deletions
+608
-351
index.js
src/router/index.js
+339
-331
AnnualParamPage.vue
src/views/SchedulingPage/AnnualParamPage.vue
+199
-0
WeatherManagePage.vue
src/views/SchedulingPage/WeatherManagePage.vue
+70
-20
BindWindow.vue
src/views/SchedulingPage/weatherManageSub/BindWindow.vue
+0
-0
ReviseWindow.vue
src/views/SchedulingPage/weatherManageSub/ReviseWindow.vue
+0
-0
No files found.
src/router/index.js
View file @
790a707d
This diff is collapsed.
Click to expand it.
src/views/SchedulingPage/AnnualParamPage.vue
0 → 100644
View file @
790a707d
<
script
setup
>
import
{
ref
}
from
"vue"
;
import
{
zhCn
}
from
"element-plus/es/locale/index"
;
const
data
=
[
{
paramId
:
"4229478e-9923-4fce-985d-0109efc1e95f"
,
// 编号
supplyId
:
"33104782-c1ad-432c-953e-e31c2e031be4"
,
// 所属供热站编号
energyType
:
'三步节能'
,
// 类型(能源)
year
:
"2024"
,
// 年度
standard
:
44.2
,
// 热指标
degreeStandard
:
null
,
// 度日数标定值
indoorTemperature
:
23.0
,
// 室内温度
outdoorTemperature
:
-
9.0
,
// 室外温度
backWaterTemperature
:
46.0
,
// 回水温度
updateNullFields
:
null
// 无用
},
{
paramId
:
"4229478e-9923-4fce-985d-0109efc1e95f"
,
// 编号
supplyId
:
"33104782-c1ad-432c-953e-e31c2e031be4"
,
// 所属供热站编号
energyType
:
"二步节能"
,
// 类型(能源)
year
:
"2024"
,
// 年度
standard
:
44.2
,
// 热指标
degreeStandard
:
null
,
// 度日数标定值
indoorTemperature
:
23.0
,
// 室内温度
outdoorTemperature
:
-
9.0
,
// 室外温度
backWaterTemperature
:
46.0
,
// 回水温度
updateNullFields
:
null
// 无用
},
{
paramId
:
"4229478e-9923-4fce-985d-0109efc1e95f"
,
// 编号
supplyId
:
"33104782-c1ad-432c-953e-e31c2e031be4"
,
// 所属供热站编号
energyType
:
null
,
// 类型(能源)
year
:
"2024"
,
// 年度
standard
:
44.2
,
// 热指标
degreeStandard
:
null
,
// 度日数标定值
indoorTemperature
:
23.0
,
// 室内温度
outdoorTemperature
:
-
9.0
,
// 室外温度
backWaterTemperature
:
46.0
,
// 回水温度
updateNullFields
:
null
// 无用
},
{
paramId
:
"4229478e-9923-4fce-985d-0109efc1e95f"
,
// 编号
supplyId
:
"33104782-c1ad-432c-953e-e31c2e031be4"
,
// 所属供热站编号
energyType
:
"二步节能"
,
// 类型(能源)
year
:
"2024"
,
// 年度
standard
:
44.2
,
// 热指标
degreeStandard
:
null
,
// 度日数标定值
indoorTemperature
:
23.0
,
// 室内温度
outdoorTemperature
:
-
9.0
,
// 室外温度
backWaterTemperature
:
46.0
,
// 回水温度
updateNullFields
:
null
// 无用
},
{
paramId
:
"4229478e-9923-4fce-985d-0109efc1e95f"
,
// 编号
supplyId
:
"33104782-c1ad-432c-953e-e31c2e031be4"
,
// 所属供热站编号
energyType
:
"二步节能"
,
// 类型(能源)
year
:
"2024"
,
// 年度
standard
:
44.2
,
// 热指标
degreeStandard
:
null
,
// 度日数标定值
indoorTemperature
:
23.0
,
// 室内温度
outdoorTemperature
:
-
9.0
,
// 室外温度
backWaterTemperature
:
46.0
,
// 回水温度
updateNullFields
:
null
// 无用
}
]
const
tableHeaderClass
=
data
=>
{
// 表头样式
return
'table-header-class'
}
const
tableBodyClass
=
data
=>
{
// 表体样式
return
'table-body-class'
}
const
searchKey
=
ref
(
''
)
// 查询参数
const
currentPage
=
ref
(
1
)
// 当前页码
const
pageSize
=
ref
(
30
)
// 每页显示条数
function
handleEdit
(
val
)
{
}
// 处理修改
function
handleDelete
(
val
)
{
}
// 处理删除
function
handleAdd
()
{
}
// 处理新增
function
handleSearch
()
{
}
// 处理查询
</
script
>
<
template
>
<div
class=
"annual-param-container"
>
<div
class=
"search-add-wrapper"
>
<el-row>
<el-col
:span=
"8"
label
>
年度:
</el-col>
<el-col
:span=
"16"
>
<el-input
v-model=
"searchKey"
/>
</el-col>
</el-row>
<el-button
type=
"primary"
class=
"add-search-btn"
@
click=
"handleAdd"
>
新增
</el-button>
<el-button
type=
"primary"
class=
"add-search-btn"
@
click=
"handleSearch"
>
查询
</el-button>
</div>
<div
class=
"table-wrapper"
>
<el-table
:data=
"data"
border
stripe
:header-cell-class-name=
"tableHeaderClass"
:row-class-name=
"tableBodyClass"
style=
"width: 100%"
>
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
width=
"60"
/>
<el-table-column
label=
"节能类型"
prop=
"energyType"
/>
<el-table-column
label=
"年度"
prop=
"year"
/>
<el-table-column
label=
"热指标(W/m²)"
prop=
"standard"
/>
<el-table-column
label=
"度日数标定值"
prop=
"degreeStandard"
/>
<el-table-column
label=
"室内温度(℃)"
prop=
"indoorTemperature"
/>
<el-table-column
label=
"室外温度(℃)"
prop=
"outdoorTemperature"
/>
<el-table-column
label=
"回水温度(℃)"
prop=
"backWaterTemperature"
/>
<el-table-column
label=
"操作"
>
<template
#
default=
"scope"
>
<div
class=
"table-operate-column"
>
<el-button
link
type=
"primary"
@
click=
"handleEdit(scope.row)"
>
修改
</el-button>
<el-button
link
type=
"primary"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</div>
</
template
>
</el-table-column>
</el-table>
</div>
<div
class=
"pagination-wrapper"
>
<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"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"data.length"
@
change=
"data"
class=
"pagination"
/>
</el-config-provider>
</div>
</div>
</template>
<
style
scoped
lang=
"less"
>
.annual-param-container {
width: 100%;
margin: 4px;
}
.search-add-wrapper {
width: 100%;
display: flex;
justify-content: start;
}
.search-add-wrapper .el-row {
width: 50%;
margin: 5px 10px 5px 5px;
}
.el-col[label] {
display: flex;
justify-content: end;
align-items: center;
}
.add-search-btn{
margin: 5px 10px 5px 0;
}
:deep(.table-header-class) {
text-align: center;
font-size: 12px;
background-color: #c4d8f1 !important;
color: #124c6a;
}
:deep(.table-body-class) {
font-size: 12px;
color: black;
}
.table-operate-column {
display: flex;
justify-content: center;
align-items: center;
}
.table-operate-column .el-button {
font-size: 12px;
}
::v-deep .el-table__body tr:hover > td {
background: linear-gradient(to top, rgb(0, 198, 255), rgb(255, 255, 255)) !important;
}
.pagination-wrapper{
padding: 5px;
display: flex;
justify-content: space-between;
align-items: center;
}
</
style
>
\ No newline at end of file
src/views/Scheduling/WeatherManagePage.vue
→
src/views/Scheduling
Page
/WeatherManagePage.vue
View file @
790a707d
...
@@ -82,10 +82,10 @@ const tableBodyClass = data => { // 表体样式
...
@@ -82,10 +82,10 @@ const tableBodyClass = data => { // 表体样式
}
}
const
setCellStyle
=
(
row
,
column
,
rowIndex
,
columnIndex
)
=>
{
const
setCellStyle
=
(
row
,
column
,
rowIndex
,
columnIndex
)
=>
{
let
css_color
=
{}
let
css_color
=
{}
css_color
[
'padding-left'
]
=
'0px'
//
css_color['padding-left'] = '0px'
css_color
[
'padding-right'
]
=
'0px'
//
css_color['padding-right'] = '0px'
css_color
[
'padding-top'
]
=
'3px'
//
css_color['padding-top'] = '3px'
css_color
[
'padding-bottom'
]
=
'3px'
//
css_color['padding-bottom'] = '3px'
return
css_color
return
css_color
}
}
...
@@ -117,14 +117,24 @@ const confirmRevise = val => { // 修改弹窗确认按钮事件
...
@@ -117,14 +117,24 @@ const confirmRevise = val => { // 修改弹窗确认按钮事件
}
}
reviseWindowOpen
.
value
=
false
reviseWindowOpen
.
value
=
false
}
}
const
confirmBind
=
val
=>
{
const
confirmBind
=
val
=>
{
console
.
log
(
"处理换热站绑定"
)
console
.
log
(
"处理换热站绑定"
)
bindWindowOpen
.
value
=
false
bindWindowOpen
.
value
=
false
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"weather-manage-container"
>
<el-row>
<el-col
:span=
"15"
left-col
>
</el-col>
<el-col
:span=
"9"
right-col
>
<!--
<el-button
type=
"primary"
@
click=
"reviseWindowOpen = true"
class=
"add-btn"
>
新增
</el-button>
-->
<el-button
type=
"primary"
class=
"add-btn"
>
新增
</el-button>
<el-button
type=
"primary"
>
查询
</el-button>
</el-col>
</el-row>
<div
class=
"table-wrapper"
>
<div
class=
"table-wrapper"
>
<el-table
<el-table
:data=
"data"
:data=
"data"
...
@@ -143,13 +153,16 @@ const confirmBind = val =>{
...
@@ -143,13 +153,16 @@ const confirmBind = val =>{
<el-table-column
prop=
"windSpeed"
label=
"风速"
width=
"60"
/>
<el-table-column
prop=
"windSpeed"
label=
"风速"
width=
"60"
/>
<el-table-column
prop=
"illumination"
label=
"光照"
width=
"60"
/>
<el-table-column
prop=
"illumination"
label=
"光照"
width=
"60"
/>
<el-table-column
prop=
"switching"
label=
"手自动切换"
width=
"120"
/>
<el-table-column
prop=
"switching"
label=
"手自动切换"
width=
"120"
/>
<el-table-column
prop=
"deviationPercentage"
label=
"自动偏差百分比"
/>
<el-table-column
prop=
"deviationPercentage"
label=
"自动偏差百分比"
width=
"170"
/>
<el-table-column
prop=
"verifyTime"
label=
"验证时间"
/>
<el-table-column
prop=
"verifyTime"
label=
"验证时间"
width=
"100"
/>
<el-table-column
prop=
"adjustTemperature"
label=
"调节温度"
/>
<el-table-column
prop=
"adjustTemperature"
label=
"调节温度"
width=
"100"
/>
<el-table-column
prop=
"sort"
label=
"排序"
width=
"60"
/>
<el-table-column
prop=
"sort"
label=
"排序"
width=
"60"
/>
<el-table-column
label=
"操作"
width=
"200"
>
<el-table-column
label=
"操作"
width=
"200"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<div
class=
"table-operate-column"
>
<div
class=
"table-operate-column"
>
<!--
<el-link
:underline=
"false"
@
click=
"revise(scope.row)"
type=
"primary"
>
修改
</el-link>
-->
<!--
<el-link
:underline=
"false"
@
click=
"bind(scope.row)"
type=
"primary"
>
绑定换热站
</el-link>
-->
<!--
<el-link
:underline=
"false"
type=
"primary"
>
详情
</el-link>
-->
<el-button
link
@
click=
"revise(scope.row)"
type=
"primary"
>
修改
</el-button>
<el-button
link
@
click=
"revise(scope.row)"
type=
"primary"
>
修改
</el-button>
<el-button
link
@
click=
"bind(scope.row)"
type=
"primary"
>
绑定换热站
</el-button>
<el-button
link
@
click=
"bind(scope.row)"
type=
"primary"
>
绑定换热站
</el-button>
<el-button
link
type=
"primary"
>
详情
</el-button>
<el-button
link
type=
"primary"
>
详情
</el-button>
...
@@ -160,18 +173,29 @@ const confirmBind = val =>{
...
@@ -160,18 +173,29 @@ const confirmBind = val =>{
</div>
</div>
<div
class=
"pagination-wrapper"
>
<div
class=
"pagination-wrapper"
>
<div
class=
"pagination-text-area"
>
<!-- <div class="pagination-text-area">-->
<div
class=
"pagination-text"
>
<!-- <div class="pagination-text">-->
共{{ data.length }}条记录,当前为第{{ currentPage }}页,共{{ totalPageCount }}页
<!-- 共{{ data.length }}条记录,当前为第{{ currentPage }}页,共{{ totalPageCount }}页-->
</div>
<!-- </div>-->
</div>
<!-- </div>-->
<!-- <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"-->
<!-- layout="sizes, prev, pager, next, jumper"-->
<!-- :total="data.length"-->
<!-- @change="data"-->
<!-- class="pagination"/>-->
<!-- </el-config-provider>-->
<el-config-provider
:locale=
"zhCn"
>
<el-config-provider
:locale=
"zhCn"
>
<el-pagination
<el-pagination
v-model:current-page=
"currentPage"
v-model:current-page=
"currentPage"
v-model:page-size=
"pageSize"
v-model:page-size=
"pageSize"
:page-sizes=
"[30, 40, 50, 100, 200, 300]"
:page-sizes=
"[30, 40, 50, 100, 200, 300]"
:small=
"true"
:small=
"true"
layout=
"sizes, prev, pager, next, jumper"
layout=
"
total,
sizes, prev, pager, next, jumper"
:total=
"data.length"
:total=
"data.length"
@
change=
"data"
@
change=
"data"
class=
"pagination"
/>
class=
"pagination"
/>
...
@@ -197,18 +221,45 @@ const confirmBind = val =>{
...
@@ -197,18 +221,45 @@ const confirmBind = val =>{
</template>
</template>
<
style
scoped
>
<
style
scoped
>
.weather-manage-container
{
width
:
100%
;
margin
:
4px
;
}
.el-col
[
left-col
]
{
border-right
:
1px
solid
#a6c3e9
;
}
.el-row
{
width
:
100%
;
border
:
1px
solid
#a6c3e9
;
margin
:
5px
0
10px
0
;
}
.el-col
[
right-col
]
{
padding-left
:
10px
;
}
.add-btn
{
margin
:
5px
0
;
}
:deep
(
.table-header-class
)
{
:deep
(
.table-header-class
)
{
text-align
:
center
;
text-align
:
center
;
font-size
:
12px
;
background-color
:
#c4d8f1
!important
;
background-color
:
#c4d8f1
!important
;
color
:
#124c6a
;
color
:
#124c6a
;
font-weight
:
normal
;
}
}
:deep
(
.table-body-class
)
{
:deep
(
.table-body-class
)
{
font-size
:
12px
;
color
:
black
;
color
:
black
;
}
}
.table-wrapper
{
}
.table-operate-column
{
.table-operate-column
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
...
@@ -216,12 +267,11 @@ const confirmBind = val =>{
...
@@ -216,12 +267,11 @@ const confirmBind = val =>{
}
}
.table-operate-column
.el-button
{
.table-operate-column
.el-button
{
color
:
#124c6a
;
font-size
:
12px
;
font-size
:
12px
;
}
}
.pagination-wrapper
{
.pagination-wrapper
{
padding
:
10
px
;
padding
:
5
px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
...
@@ -235,7 +285,7 @@ const confirmBind = val =>{
...
@@ -235,7 +285,7 @@ const confirmBind = val =>{
}
}
::v-deep
.el-table__body
tr
:hover
>
td
{
::v-deep
.el-table__body
tr
:hover
>
td
{
background
:
linear-gradient
(
to
top
,
rgb
(
0
,
198
,
255
),
rgb
(
255
,
255
,
255
))
!important
;
background
:
linear-gradient
(
to
top
,
rgb
(
0
,
198
,
255
),
rgb
(
255
,
255
,
255
))
!important
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/Scheduling/weatherManageSub/BindWindow.vue
→
src/views/Scheduling
Page
/weatherManageSub/BindWindow.vue
View file @
790a707d
File moved
src/views/Scheduling/weatherManageSub/ReviseWindow.vue
→
src/views/Scheduling
Page
/weatherManageSub/ReviseWindow.vue
View file @
790a707d
File moved
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