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
3fc0bbc1
Commit
3fc0bbc1
authored
Aug 15, 2024
by
xuke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://gitlab.91isoft.com:10022/hikvision/web-project
parents
0f495525
b0a1bfb4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
10 deletions
+29
-10
AnnualParamPage.vue
src/views/SchedulingPage/AnnualParamPage.vue
+18
-2
PhenomenonPage.vue
src/views/SchedulingPage/PhenomenonPage.vue
+3
-4
WindManagePage.vue
src/views/SchedulingPage/WindManagePage.vue
+8
-4
No files found.
src/views/SchedulingPage/AnnualParamPage.vue
View file @
3fc0bbc1
...
@@ -24,7 +24,7 @@ const reviseWindowOpen = ref(false)
...
@@ -24,7 +24,7 @@ const reviseWindowOpen = ref(false)
const
addWindowOpen
=
ref
(
false
)
const
addWindowOpen
=
ref
(
false
)
const
reviseForm
=
ref
({})
const
reviseForm
=
ref
({})
const
addForm
=
ref
({
const
addForm
=
ref
({
supplyId
:
"
00000000-0000-0000-0000-000000000000
"
,
supplyId
:
""
,
energyType
:
''
,
energyType
:
''
,
year
:
''
,
year
:
''
,
standard
:
''
,
standard
:
''
,
...
@@ -96,7 +96,12 @@ function handleSearch() {
...
@@ -96,7 +96,12 @@ function handleSearch() {
if
(
!
searchKey
.
value
)
{
if
(
!
searchKey
.
value
)
{
getData
()
getData
()
}
else
{
}
else
{
data
.
value
=
dataBackup
.
value
.
filter
(
item
=>
item
.
year
.
includes
(
searchKey
.
value
))
data
.
value
=
dataBackup
.
value
.
filter
(
item
=>
{
if
(
typeof
item
.
year
===
'object'
){
item
.
year
=
''
}
return
item
.
year
.
includes
(
searchKey
.
value
)
})
}
}
}
// 处理查询
}
// 处理查询
function
onReviseSubmit
()
{
function
onReviseSubmit
()
{
...
@@ -174,6 +179,17 @@ onBeforeMount(() => {
...
@@ -174,6 +179,17 @@ onBeforeMount(() => {
function
getData
()
{
function
getData
()
{
getAnnualParam
().
then
(
res
=>
{
getAnnualParam
().
then
(
res
=>
{
data
.
value
=
res
.
data
data
.
value
=
res
.
data
for
(
let
item
of
data
.
value
){
let
flag
=
true
for
(
let
supply
of
supplyData
.
value
){
if
(
item
.
supplyId
===
supply
.
supplyId
){
flag
=
false
}
}
if
(
flag
){
item
.
supplyId
=
''
}
}
dataBackup
.
value
=
[...
data
.
value
]
dataBackup
.
value
=
[...
data
.
value
]
})
})
}
}
...
...
src/views/SchedulingPage/PhenomenonPage.vue
View file @
3fc0bbc1
...
@@ -18,7 +18,7 @@ const formRef = ref()
...
@@ -18,7 +18,7 @@ const formRef = ref()
//校验规则
//校验规则
const
rules
=
reactive
({
const
rules
=
reactive
({
phenomenonTemp
:
[
phenomenonTemp
:
[
{
pattern
:
/^
(
-
?\d{1,11})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的对应温度"
,
trigger
:
"
blur
"
}
{
pattern
:
/^
(
-
?\d{1,11})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的对应温度"
,
trigger
:
"
change
"
}
]
]
});
});
const
tableHeaderClass
=
data
=>
{
// 表头样式
const
tableHeaderClass
=
data
=>
{
// 表头样式
...
@@ -204,7 +204,7 @@ function customSort(a, b) {
...
@@ -204,7 +204,7 @@ function customSort(a, b) {
<el-dialog
title=
"天气工况设置修改"
v-model=
"reviseWindowOpen"
width=
"700px"
:before-close=
"handleClose"
>
<el-dialog
title=
"天气工况设置修改"
v-model=
"reviseWindowOpen"
width=
"700px"
:before-close=
"handleClose"
>
<
template
#
default
>
<
template
#
default
>
<el-form
ref=
"formRef"
:rules=
"rules"
:model=
"reviseForm"
label-width=
"auto"
>
<el-form
ref=
"formRef"
:rules=
"rules"
:model=
"reviseForm"
label-width=
"auto"
>
<el-row>
<el-row
first
>
<el-col
:span=
"8"
col-label
class=
"energy-type-class"
>
名称:
</el-col>
<el-col
:span=
"8"
col-label
class=
"energy-type-class"
>
名称:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
""
size=
"small"
v-model=
"reviseForm.phenomenonName"
style=
"width: 370px"
>
<el-select
placeholder=
""
size=
"small"
v-model=
"reviseForm.phenomenonName"
style=
"width: 370px"
>
...
@@ -247,7 +247,7 @@ function customSort(a, b) {
...
@@ -247,7 +247,7 @@ function customSort(a, b) {
</el-col>
</el-col>
</el-row>
-->
</el-row>
-->
<el-form
ref=
"formRef"
:model=
"addForm"
:rules=
"rules"
label-width=
"auto"
>
<el-form
ref=
"formRef"
:model=
"addForm"
:rules=
"rules"
label-width=
"auto"
>
<el-row>
<el-row
first
>
<el-col
:span=
"8"
col-label
class=
"energy-type-class"
>
名称:
</el-col>
<el-col
:span=
"8"
col-label
class=
"energy-type-class"
>
名称:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
""
size=
"small"
v-model=
"addForm.phenomenonName"
style=
"width: 370px"
>
<el-select
placeholder=
""
size=
"small"
v-model=
"addForm.phenomenonName"
style=
"width: 370px"
>
...
@@ -352,7 +352,6 @@ function customSort(a, b) {
...
@@ -352,7 +352,6 @@ function customSort(a, b) {
height: 35px;
height: 35px;
color: #124362;
color: #124362;
}
}
.el-col[col-label] {
.el-col[col-label] {
display: flex;
display: flex;
justify-content: end;
justify-content: end;
...
...
src/views/SchedulingPage/WindManagePage.vue
View file @
3fc0bbc1
...
@@ -36,7 +36,11 @@ const formRef = ref()
...
@@ -36,7 +36,11 @@ const formRef = ref()
//校验规则
//校验规则
const
rules
=
reactive
({
const
rules
=
reactive
({
windTemp
:
[
windTemp
:
[
{
pattern
:
/^
(
-
?\d{1,11})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的对应温度"
,
trigger
:
"blur"
}
{
pattern
:
/^
(
-
?\d{1,11})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的对应温度"
,
trigger
:
"change"
}
]
]
});
});
...
@@ -220,14 +224,14 @@ function customSort(a, b) {
...
@@ -220,14 +224,14 @@ function customSort(a, b) {
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-col
:span=
"16"
col-value
>
<el-form-item
prop=
"windTemp"
style=
"padding: 0; margin: 0;"
>
<el-form-item
prop=
"windTemp"
style=
"padding: 0; margin: 0;"
>
<el-input
v-model=
"reviseForm.windTemp"
placeholder=
""
style=
"width: 370px"
/>
<el-input
maxlength=
"11"
v-model=
"reviseForm.windTemp"
placeholder=
""
style=
"width: 370px"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
描述:
</el-col>
<el-col
:span=
"8"
col-label
>
描述:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"reviseForm.windDesc"
placeholder=
""
style=
"width: 370px"
/>
<el-input
maxlength=
"11"
v-model=
"reviseForm.windDesc"
placeholder=
""
style=
"width: 370px"
/>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
...
@@ -256,7 +260,7 @@ function customSort(a, b) {
...
@@ -256,7 +260,7 @@ function customSort(a, b) {
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-col
:span=
"16"
col-value
>
<el-form-item
prop=
"windTemp"
style=
"padding: 0; margin: 0;"
>
<el-form-item
prop=
"windTemp"
style=
"padding: 0; margin: 0;"
>
<el-input
v-model=
"addForm.windTemp"
placeholder=
""
style=
"width: 370px"
/>
<el-input
maxlength=
"11"
v-model=
"addForm.windTemp"
placeholder=
""
style=
"width: 370px"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
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