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
9dd16573
Commit
9dd16573
authored
Aug 10, 2024
by
裴文涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增年度参数,风力配置,天气工况页面排序
parent
76205dae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
10 deletions
+46
-10
AnnualParamPage.vue
src/views/SchedulingPage/AnnualParamPage.vue
+35
-4
PhenomenonPage.vue
src/views/SchedulingPage/PhenomenonPage.vue
+4
-1
WindManagePage.vue
src/views/SchedulingPage/WindManagePage.vue
+7
-5
No files found.
src/views/SchedulingPage/AnnualParamPage.vue
View file @
9dd16573
...
@@ -7,6 +7,7 @@ import {vFloatNumber} from "@/utils/directives.js";
...
@@ -7,6 +7,7 @@ import {vFloatNumber} from "@/utils/directives.js";
const
data
=
ref
()
const
data
=
ref
()
const
dataBackup
=
ref
([])
const
dataBackup
=
ref
([])
const
elTableRef
=
ref
()
const
tableHeaderClass
=
data
=>
{
// 表头样式
const
tableHeaderClass
=
data
=>
{
// 表头样式
return
'table-header-class'
return
'table-header-class'
}
}
...
@@ -151,9 +152,38 @@ function resetInput() {
...
@@ -151,9 +152,38 @@ function resetInput() {
}
}
}
}
function
energyTypeSort
(){
function
customSort
(
a
,
b
){
return
[
'一步节能'
,
'二步节能'
,
'三步节能'
,
'四步节能'
,
'非节能'
]
let
valA
;
}
// 节能类型排序自定义方法
let
valB
;
if
(
a
.
energyType
===
'一步节能'
){
valA
=
1
}
else
if
(
a
.
energyType
===
'二步节能'
){
valA
=
2
}
else
if
(
a
.
energyType
===
'三步节能'
){
valA
=
3
}
else
if
(
a
.
energyType
===
'四步节能'
){
valA
=
4
}
else
if
(
a
.
energyType
===
'非节能'
){
valA
=
5
}
else
{
valA
=
6
}
if
(
b
.
energyType
===
'一步节能'
){
valB
=
1
}
else
if
(
b
.
energyType
===
'二步节能'
){
valB
=
2
}
else
if
(
b
.
energyType
===
'三步节能'
){
valB
=
3
}
else
if
(
b
.
energyType
===
'四步节能'
){
valB
=
4
}
else
if
(
b
.
energyType
===
'非节能'
){
valB
=
5
}
else
{
valB
=
6
}
return
valA
-
valB
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -173,12 +203,13 @@ function energyTypeSort(){
...
@@ -173,12 +203,13 @@ function energyTypeSort(){
:data=
"data"
:data=
"data"
border
border
stripe
stripe
ref=
"elTableRef"
:default-sort=
"
{prop: 'year', order: 'descending'}"
:default-sort=
"
{prop: 'year', order: 'descending'}"
:header-cell-class-name="tableHeaderClass"
:header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass"
:row-class-name="tableBodyClass"
style="width: 100%">
style="width: 100%">
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
width=
"60"
/>
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
width=
"60"
/>
<el-table-column
label=
"节能类型"
sortable
:sort-method=
"
energyType
Sort"
prop=
"energyType"
/>
<el-table-column
label=
"节能类型"
sortable
:sort-method=
"
custom
Sort"
prop=
"energyType"
/>
<el-table-column
label=
"年度"
sortable
prop=
"year"
/>
<el-table-column
label=
"年度"
sortable
prop=
"year"
/>
<el-table-column
label=
"热指标(W/m²)"
prop=
"standard"
/>
<el-table-column
label=
"热指标(W/m²)"
prop=
"standard"
/>
<el-table-column
label=
"度日数标定值"
prop=
"degreeStandard"
/>
<el-table-column
label=
"度日数标定值"
prop=
"degreeStandard"
/>
...
...
src/views/SchedulingPage/PhenomenonPage.vue
View file @
9dd16573
...
@@ -113,6 +113,9 @@ function getData(){
...
@@ -113,6 +113,9 @@ function getData(){
dataBackup
.
value
=
[...
data
.
value
]
dataBackup
.
value
=
[...
data
.
value
]
})
})
}
}
function
customSort
(
a
,
b
){
return
a
.
phenomenonType
-
b
.
phenomenonType
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"phenomenon-container"
>
<div
class=
"phenomenon-container"
>
...
@@ -135,7 +138,7 @@ function getData(){
...
@@ -135,7 +138,7 @@ function getData(){
:header-cell-class-name=
"tableHeaderClass"
:header-cell-class-name=
"tableHeaderClass"
:row-class-name=
"tableBodyClass"
>
:row-class-name=
"tableBodyClass"
>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
/>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
/>
<el-table-column
prop=
"phenomenonName"
label=
"名称"
/>
<el-table-column
prop=
"phenomenonName"
sortable
:sort-method=
"customSort"
label=
"名称"
/>
<el-table-column
prop=
"phenomenonTemp"
label=
"对应温度"
/>
<el-table-column
prop=
"phenomenonTemp"
label=
"对应温度"
/>
<el-table-column
prop=
"phenomenonDesc"
label=
"描述"
/>
<el-table-column
prop=
"phenomenonDesc"
label=
"描述"
/>
<el-table-column
label=
"操作"
width=
"190"
>
<el-table-column
label=
"操作"
width=
"190"
>
...
...
src/views/SchedulingPage/WindManagePage.vue
View file @
9dd16573
...
@@ -121,6 +121,10 @@ function resetInput() {
...
@@ -121,6 +121,10 @@ function resetInput() {
windDesc
:
""
,
windDesc
:
""
,
};
};
}
}
function
customSort
(
a
,
b
)
{
return
a
.
windLevel
-
b
.
windLevel
;
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"windManage-container"
>
<div
class=
"windManage-container"
>
...
@@ -160,17 +164,15 @@ function resetInput() {
...
@@ -160,17 +164,15 @@ function resetInput() {
:row-class-name=
"tableBodyClass"
:row-class-name=
"tableBodyClass"
>
>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
/>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
/>
<el-table-column
prop=
"windLevel"
label=
"级数"
/>
<el-table-column
prop=
"windLevel"
sortable
:sort-method=
"customSort"
label=
"级数"
/>
<el-table-column
prop=
"windTemp"
label=
"对应温度"
/>
<el-table-column
prop=
"windTemp"
label=
"对应温度"
/>
<el-table-column
prop=
"windDesc"
label=
"描述"
/>
<el-table-column
prop=
"windDesc"
label=
"描述"
/>
<el-table-column
label=
"操作"
width=
"190"
>
<el-table-column
label=
"操作"
width=
"190"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<div
class=
"table-operate-column"
>
<div
class=
"table-operate-column"
>
<el-button
link
@
click=
"revise(scope.row)"
type=
"primary"
<el-button
link
@
click=
"revise(scope.row)"
type=
"primary"
>
修改
</el-button
>
修改
</el-button>
>
<el-button
link
@
click=
"omit(scope.row)"
type=
"primary"
>
删除
</el-button
<el-button
link
@
click=
"omit(scope.row)"
type=
"primary"
>
删除
</el-button
>
>
</div>
</div>
</
template
>
</
template
>
...
...
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