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
fee5e7d1
Commit
fee5e7d1
authored
Aug 26, 2024
by
xuke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面验收修改
parent
03071fe6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
33 deletions
+77
-33
index.js
src/router/index.js
+1
-1
AlarmStatusPage.vue
src/views/AlarmPage/AlarmStatusPage.vue
+1
-1
ConfigBoilerPage.vue
src/views/SchedulingPage/ConfigBoilerPage.vue
+4
-3
EnergyManagePage.vue
src/views/SchedulingPage/EnergyManagePage.vue
+66
-24
InstantHeatPage.vue
src/views/SchedulingPage/InstantHeatPage.vue
+5
-4
No files found.
src/router/index.js
View file @
fee5e7d1
...
@@ -34,7 +34,7 @@ const routes = [
...
@@ -34,7 +34,7 @@ const routes = [
component
:
HomePage
,
component
:
HomePage
,
children
:
[
children
:
[
{
{
path
:
"/RealSupply"
,
path
:
"/
Scheduling/
RealSupply"
,
name
:
"RealSupplyPage"
,
name
:
"RealSupplyPage"
,
component
:
()
=>
import
(
"@/views/RealPage/RealSupplyPage.vue"
),
component
:
()
=>
import
(
"@/views/RealPage/RealSupplyPage.vue"
),
meta
:
{
meta
:
{
...
...
src/views/AlarmPage/AlarmStatusPage.vue
View file @
fee5e7d1
...
@@ -845,7 +845,7 @@ const onDel = () => {
...
@@ -845,7 +845,7 @@ const onDel = () => {
// 关闭dialog右上× 清空数据
// 关闭dialog右上× 清空数据
const
onClose
=
()
=>
{
const
onClose
=
()
=>
{
type
.
value
=
""
//
type.value = ""
dept
.
value
=
""
dept
.
value
=
""
cnNames_before
.
value
=
""
cnNames_before
.
value
=
""
cnNames_after
.
value
=
""
cnNames_after
.
value
=
""
...
...
src/views/SchedulingPage/ConfigBoilerPage.vue
View file @
fee5e7d1
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"maxTargetTemperature"
style=
"padding: 0;margin: 0;"
>
<el-form-item
prop=
"maxTargetTemperature"
style=
"padding: 0;margin: 0;"
>
<el-input
v-float-number
maxlength=
"10"
style=
"width: 80%"
<el-input
v-float-number
maxlength=
"10"
style=
"width: 80%"
v-model=
"formDatas.maxTargetTemperature"
>
v-model=
"formDatas.maxTargetTemperature"
>
<
template
#
append
>
<
template
#
append
>
<div
style=
"width: 40px"
>
℃
</div>
<div
style=
"width: 40px"
>
℃
</div>
...
@@ -220,7 +220,8 @@ const rules = reactive({
...
@@ -220,7 +220,8 @@ const rules = reactive({
{
required
:
true
,
message
:
"锅炉房供水总管流量下限值是必填项"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"锅炉房供水总管流量下限值是必填项"
,
trigger
:
"blur"
}
],
],
maxTargetTemperature
:
[
maxTargetTemperature
:
[
{
required
:
true
,
message
:
"目标温度最大值是必填项"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"目标温度最大值是必填项"
,
trigger
:
"blur"
},
{
pattern
:
/^
(
-
([
1-9
]?[
0-9
]{0,2}(\.\d
+
)?
|1
[
01
][
0-9
]{2}(\.\d
+
)?
|1200
(\.
0+
)?)
|
([
0-9
]?[
0-9
]{0,2}(\.\d
+
)?
|1
[
01
][
0-9
]{2}(\.\d
+
)?
|1200
(\.
0+
)?))
$/
,
message
:
"目标温度的最大值是不超过1200最小值不小于-1200"
,
trigger
:
"blur"
}
],
],
bestHoldingTime
:
[
bestHoldingTime
:
[
{
required
:
true
,
message
:
"总管流量上下限范围内保持时间必填项"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"总管流量上下限范围内保持时间必填项"
,
trigger
:
"blur"
}
...
@@ -233,7 +234,7 @@ const getListData = () => {
...
@@ -233,7 +234,7 @@ const getListData = () => {
http
.
get
(
"/api/configboiler/getData"
).
then
((
result
)
=>
{
http
.
get
(
"/api/configboiler/getData"
).
then
((
result
)
=>
{
if
(
result
.
success
)
{
if
(
result
.
success
)
{
formDatas
.
value
=
result
.
data
;
formDatas
.
value
=
result
.
data
;
ElMessage
.
success
(
result
.
message
)
//
ElMessage.success(result.message)
formDatas
.
value
.
transferIds
=
formDatas
.
value
.
transferIds
.
split
(
","
);
formDatas
.
value
.
transferIds
=
formDatas
.
value
.
transferIds
.
split
(
","
);
formDatas
.
value
.
updateNullFields
=
""
;
formDatas
.
value
.
updateNullFields
=
""
;
loading
.
value
=
false
loading
.
value
=
false
...
...
src/views/SchedulingPage/EnergyManagePage.vue
View file @
fee5e7d1
<
script
setup
>
<
script
setup
>
import
{
ref
,
onMounted
,
getCurrentInstance
,
reactive
,
nextTick
}
from
"vue"
;
import
{
ref
,
onMounted
,
getCurrentInstance
,
reactive
,
nextTick
,
watch
,
computed
}
from
"vue"
;
import
{
useRoute
}
from
'vue-router'
import
{
useRoute
}
from
'vue-router'
import
{
ElMessageBox
,
ElMessage
}
from
"element-plus"
;
import
{
ElMessageBox
,
ElMessage
,
ElPopover
,
ElButton
,
ElCheckbox
,
ElCheckboxGroup
}
from
"element-plus"
;
import
axios
from
"axios"
;
import
axios
from
"axios"
;
import
{
Search
,
Minus
,
Document
}
from
"@element-plus/icons-vue"
;
import
{
Search
,
Minus
,
Document
}
from
"@element-plus/icons-vue"
;
import
{
import
{
...
@@ -10,7 +10,6 @@ import {
...
@@ -10,7 +10,6 @@ import {
import
http
from
"../../api/http"
;
import
http
from
"../../api/http"
;
import
store
from
"../../store"
;
import
store
from
"../../store"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
import
{
computed
}
from
"vue"
;
const
{
proxy
}
=
getCurrentInstance
();
const
{
proxy
}
=
getCurrentInstance
();
const
tableData
=
ref
([{}]);
const
tableData
=
ref
([{}]);
// 获取渲染
// 获取渲染
...
@@ -44,7 +43,7 @@ const getEnergyData = () => {
...
@@ -44,7 +43,7 @@ const getEnergyData = () => {
if
(
res
.
success
)
{
if
(
res
.
success
)
{
loading
.
value
=
false
loading
.
value
=
false
tableData
.
value
=
res
.
data
;
tableData
.
value
=
res
.
data
;
ElMessage
.
success
(
res
.
message
);
//
ElMessage.success(res.message);
}
else
{
}
else
{
ElMessage
.
error
(
"系统繁忙, 请稍后再试"
)
ElMessage
.
error
(
"系统繁忙, 请稍后再试"
)
}
}
...
@@ -91,8 +90,9 @@ const options = [
...
@@ -91,8 +90,9 @@ const options = [
{
value
:
'4'
,
label
:
'四步节能'
},
{
value
:
'4'
,
label
:
'四步节能'
},
];
];
const
formInline
=
reactive
({
// 选中的
keyWord
:
options
.
map
(
option
=>
option
.
value
),
const
formInline
=
ref
({
keyWord
:
[]
});
});
const
config
=
reactive
({
const
config
=
reactive
({
...
@@ -100,14 +100,13 @@ const config = reactive({
...
@@ -100,14 +100,13 @@ const config = reactive({
});
});
const
handleSearch
=
()
=>
{
const
handleSearch
=
()
=>
{
config
.
supplyType
=
formInline
.
keyWord
;
config
.
supplyType
=
formInline
.
value
.
keyWord
;
config
.
supplyType
=
[
`
${
config
.
supplyType
}
`
];
getEnergyData
()
getEnergyData
()
};
};
// 重置按钮
// 重置按钮
const
handleReset
=
()
=>
{
const
handleReset
=
()
=>
{
formInline
.
keyWord
=
""
formInline
.
value
.
keyWord
=
[]
config
.
supplyType
=
[
"0"
,
"1"
,
"2"
,
"3"
,
"4"
]
config
.
supplyType
=
[
"0"
,
"1"
,
"2"
,
"3"
,
"4"
]
getEnergyData
()
getEnergyData
()
}
}
...
@@ -138,7 +137,21 @@ const rules = reactive({
...
@@ -138,7 +137,21 @@ const rules = reactive({
recordDate
:
[{
required
:
true
,
message
:
"日期是必选项"
}],
recordDate
:
[{
required
:
true
,
message
:
"日期是必选项"
}],
});
});
// 放重复点击操作
// 搜索
// 全选按钮的文本和值
const
selectAllLabel
=
'全选'
const
selectAllValue
=
'ALL'
// 判断是否全部选中
const
isAllSelected
=
computed
(()
=>
formInline
.
value
.
keyWord
.
length
===
options
.
length
)
// 计算全选选项是否已被选中
const
isSelectAllOption
=
computed
(()
=>
formInline
.
value
.
keyWord
.
includes
(
selectAllValue
)
)
// 放重复点击操作
const
clicked
=
ref
(
false
)
const
clicked
=
ref
(
false
)
// 删除
// 删除
...
@@ -188,7 +201,6 @@ const getCurrentDateTime = () => {
...
@@ -188,7 +201,6 @@ const getCurrentDateTime = () => {
const
hours
=
String
(
date
.
getHours
()).
padStart
(
2
,
'0'
);
const
hours
=
String
(
date
.
getHours
()).
padStart
(
2
,
'0'
);
const
minutes
=
String
(
date
.
getMinutes
()).
padStart
(
2
,
'0'
);
const
minutes
=
String
(
date
.
getMinutes
()).
padStart
(
2
,
'0'
);
const
seconds
=
String
(
date
.
getSeconds
()).
padStart
(
2
,
'0'
);
const
seconds
=
String
(
date
.
getSeconds
()).
padStart
(
2
,
'0'
);
// return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
recordDate
.
value
=
year
+
"-"
+
month
+
"-"
+
day
+
" "
+
hours
+
":"
+
minutes
+
":"
+
seconds
recordDate
.
value
=
year
+
"-"
+
month
+
"-"
+
day
+
" "
+
hours
+
":"
+
minutes
+
":"
+
seconds
};
};
...
@@ -220,10 +232,6 @@ const handleEdit = (val) => {
...
@@ -220,10 +232,6 @@ const handleEdit = (val) => {
console
.
log
(
"一行的数据val===>"
,
val
);
console
.
log
(
"一行的数据val===>"
,
val
);
action
.
value
=
"edit"
;
action
.
value
=
"edit"
;
dialogVisible
.
value
=
true
;
dialogVisible
.
value
=
true
;
// nextTick(() => {
// Object.assign(formEnergy.value, { ...val });
// console.log("val:", val);
// });
formEnergy
.
value
=
{
...
val
}
formEnergy
.
value
=
{
...
val
}
};
};
...
@@ -312,6 +320,22 @@ function getOrganizationStructure() {
...
@@ -312,6 +320,22 @@ function getOrganizationStructure() {
})
})
}
}
const
checkAll
=
ref
(
false
)
watch
(
()
=>
checkAll
.
value
,
(
newVal
,
oldVal
)
=>
{
if
(
!
newVal
)
{
formInline
.
value
.
keyWord
=
[]
// 如果已经全选,则取消全选
}
else
{
formInline
.
value
.
keyWord
=
options
.
map
(
option
=>
option
.
value
)
// 否则全选
}
}
)
const
changeValue
=
()
=>
{
formInline
.
value
.
keyWord
=
formInline
.
value
.
keyWord
.
filter
(
i
=>
i
!=
''
)
}
// 清除表单校验
// 清除表单校验
const
clearFormValidation
=
()
=>
{
const
clearFormValidation
=
()
=>
{
...
@@ -321,7 +345,6 @@ const clearFormValidation = () => {
...
@@ -321,7 +345,6 @@ const clearFormValidation = () => {
}
}
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
getOrganizationStructure
()
getOrganizationStructure
()
getEnergyData
()
getEnergyData
()
...
@@ -337,24 +360,43 @@ onMounted(() => {
...
@@ -337,24 +360,43 @@ onMounted(() => {
<div
class=
"contentBlock"
>
<div
class=
"contentBlock"
>
<table
cellpadding=
"0"
cellspacing=
"1"
style=
"background-color: #99bbe8;width: 100%;"
>
<table
cellpadding=
"0"
cellspacing=
"1"
style=
"background-color: #99bbe8;width: 100%;"
>
<tr
style=
"height: 10px;"
>
<tr
style=
"height: 10px;"
>
<th
width=
"30%"
>
<th>
<span>
能源类型:
</span>
<span>
能源类型:
</span>
</th>
</th>
<th
width=
"40%"
style=
" background-color: #ffffff;"
>
<th
style=
" background-color: #ffffff;"
>
<div
class=
"th_div"
>
<div
class=
"th_div"
>
<el-form
ref=
"formRef"
:model=
"formInline"
:inline=
"true"
<el-form
ref=
"formRef"
:model=
"formInline"
:inline=
"true"
style=
"display: flex; justify-content: center; align-items: center; margin: 0;"
>
style=
"display: flex; justify-content: center; align-items: center; margin: 0;"
>
<el-form-item
class=
"select-clean"
prop=
"supplyType"
label-width=
"280px"
style=
"margin: 0;"
>
<el-form-item
class=
"select-clean"
prop=
"supplyType"
label-width=
"280px"
style=
"margin: 0;"
>
<el-select
v-model=
"formInline.keyWord"
placeholder=
"请选择"
multiple
<el-select
v-model=
"formInline.keyWord"
placeholder=
"请选择"
multiple
style=
"width:360px; margin-left: 20px;"
>
style=
"width: 500px; margin-left: 20px;"
>
<el-option
v-for=
"option in options"
:key=
"option.value"
:label=
"option.label"
<el-option
value=
""
>
:value=
"option.value"
/>
<template
#
default
>
<!-- 全选按钮 -->
<el-checkbox
:label=
"selectAllLabel"
v-model=
"checkAll"
>
</el-checkbox>
</
template
>
</el-option>
<!-- 正常选项 -->
<el-option
value=
""
>
<
template
#
default
>
<el-checkbox-group
v-model=
"formInline.keyWord"
@
change=
"changeValue"
>
<el-checkbox
v-for=
"opt in options"
:key=
"opt.value"
:label=
"opt.value"
:value=
"opt.value"
>
{{
opt
.
label
}}
</el-checkbox>
</el-checkbox-group>
</
template
>
</el-option>
<el-option
v-for=
"(option, index) in options"
:key=
"option.value"
:label=
"option.label"
:value=
"option.value"
v-show=
"false"
@
click=
"() => { }"
>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
</th>
</th>
<th
width=
"100%"
style=
"background-color: #ffffff;text-align: center;"
>
<th
style=
"background-color: #ffffff;text-align: center;"
>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
<Search
style=
"width: 1em; height: 1em; margin-right: 8px"
/>
<Search
style=
"width: 1em; height: 1em; margin-right: 8px"
/>
查询
查询
...
@@ -374,7 +416,7 @@ onMounted(() => {
...
@@ -374,7 +416,7 @@ onMounted(() => {
<el-table
v-loading=
"loading"
: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: '
3
0px', padding: '0px' }" border
:cell-style=
"{ 'text-align': 'center', padding: '0px' }"
:row-style=
"{ height: '
4
0px', padding: '0px' }"
border
stripe
max-height=
"633"
>
stripe
max-height=
"633"
>
<el-table-column
prop=
"allowPagingId"
label=
"序号"
/>
<el-table-column
prop=
"allowPagingId"
label=
"序号"
/>
<el-table-column
prop=
"supplyName"
label=
"名称"
/>
<el-table-column
prop=
"supplyName"
label=
"名称"
/>
...
@@ -415,7 +457,7 @@ onMounted(() => {
...
@@ -415,7 +457,7 @@ onMounted(() => {
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"supplyId"
style=
"margin: 0; padding: 0; width: 100%;"
>
<el-form-item
prop=
"supplyId"
style=
"margin: 0; padding: 0; width: 100%;"
>
<el-select
v-model=
"formEnergy.supplyId"
placeholder=
"请选择"
>
bbbbnnn
<el-select
v-model=
"formEnergy.supplyId"
placeholder=
"请选择"
>
<el-option
v-for=
"item in supplyData"
:key=
"item.supplyId"
:label=
"item.supplyName"
<el-option
v-for=
"item in supplyData"
:key=
"item.supplyId"
:label=
"item.supplyName"
:value=
"item.supplyId"
/>
:value=
"item.supplyId"
/>
</el-select>
</el-select>
...
...
src/views/SchedulingPage/InstantHeatPage.vue
View file @
fee5e7d1
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"timeoutMin"
style=
"padding: 0;margin: 0;"
>
<el-form-item
prop=
"timeoutMin"
style=
"padding: 0;margin: 0;"
>
<el-input
v-float-number
maxlength=
"
2
"
style=
"width: 80%"
v-model=
"List.timeoutMin"
></el-input>
<el-input
v-float-number
maxlength=
"
5
"
style=
"width: 80%"
v-model=
"List.timeoutMin"
></el-input>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
@@ -118,15 +118,16 @@ const rules = reactive({
...
@@ -118,15 +118,16 @@ const rules = reactive({
],
],
timeoutMin
:
[
timeoutMin
:
[
{
required
:
true
,
message
:
"判断时间是必填项"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"判断时间是必填项"
,
trigger
:
"blur"
},
{
pattern
:
/^
([
1-9
]
|
[
1-5
][
0-9
])
$/
,
"message"
:
"判断时间必须是大于0小于60的整数"
,
trigger
:
"
blur
"
}
{
pattern
:
/^
([
1-9
]
|
[
1-5
][
0-9
])
$/
,
"message"
:
"判断时间必须是大于0小于60的整数"
,
trigger
:
"
change
"
}
],
],
diffPercentage
:
[
diffPercentage
:
[
{
required
:
true
,
message
:
"偏差百分比是必填项"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"偏差百分比是必填项"
,
trigger
:
"blur"
},
{
pattern
:
/^
([
0-9
]\d{0,1}
|100$
)(\.\d{1,4})?
$/
,
"message"
:
"
请输入正确的百分比格式
"
,
trigger
:
"blur"
}
{
pattern
:
/^
([
0-9
]\d{0,1}
|100$
)(\.\d{1,4})?
$/
,
"message"
:
"
百分比必须是0-100
"
,
trigger
:
"blur"
}
],
],
tempRegulation
:
[
tempRegulation
:
[
{
required
:
true
,
message
:
"调节温度是必填项"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"调节温度是必填项"
,
trigger
:
"blur"
},
{
pattern
:
/^^
(
-
([
1-2
]?\d(\.\d
+
)?
|30
(\.
0+
)?)
|
([
0-3
]?\d(\.\d
+
)?
|4
[
0-4
](\.\d
+
)?
|45
(\.
0+
)?))
$$/
,
message
:
"调节温度必须是高于-30且低于45的浮点数"
,
trigger
:
"blur"
}
{
pattern
:
/^
(
-
([
1-2
]?\d(\.\d
+
)?
|30
(\.
0+
)?)
|
([
0-3
]?\d(\.\d
+
)?
|4
[
0-4
](\.\d
+
)?
|45
(\.
0+
)?))
$/
,
message
:
"调节温度必须是高于-30且低于45的浮点数"
,
trigger
:
"blur"
},
],
],
description
:
[
description
:
[
{
required
:
true
,
message
:
"备注是必填项"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"备注是必填项"
,
trigger
:
"blur"
},
...
...
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