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
4652fca6
Commit
4652fca6
authored
Aug 20, 2024
by
裴文涛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.91isoft.com:90/hikvision/web-project
parents
7583a04c
b618c440
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
168 additions
and
75 deletions
+168
-75
AlarmStatusPage.vue
src/views/AlarmPage/AlarmStatusPage.vue
+8
-21
ConfigBoilerPage.vue
src/views/SchedulingPage/ConfigBoilerPage.vue
+57
-20
EnergyManagePage.vue
src/views/SchedulingPage/EnergyManagePage.vue
+27
-26
InstantHeatPage.vue
src/views/SchedulingPage/InstantHeatPage.vue
+44
-8
WeatherManagePage.vue
src/views/SchedulingPage/WeatherManagePage.vue
+4
-0
ReviseWindow.vue
src/views/SchedulingPage/weatherManageSub/ReviseWindow.vue
+28
-0
No files found.
src/views/AlarmPage/AlarmStatusPage.vue
View file @
4652fca6
...
...
@@ -127,10 +127,10 @@
<th
style=
"width: 25%"
>
报警上上限:
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr
height=
"60px"
>
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"topMost"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"addParams.topMost"
></el-input>
<el-input
v-float-number
maxlength=
"10"
style=
"width: 80%"
v-model=
"addParams.topMost"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -141,10 +141,10 @@
<th
style=
"width: 25%"
>
报警上限:
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr
height=
"60px"
>
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"upper"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"addParams.upper"
></el-input>
<el-input
v-float-number
maxlength=
"10"
style=
"width: 80%"
v-model=
"addParams.upper"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -156,10 +156,10 @@
<th
style=
"width: 25%"
>
报警下限:
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr
height=
"60px"
>
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"lower"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"addParams.lower"
></el-input>
<el-input
v-float-number
maxlength=
"10"
style=
"width: 80%"
v-model=
"addParams.lower"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -170,10 +170,10 @@
<th
style=
"width: 25%"
>
报警下下限:
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr
height=
"60px"
>
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"downMost"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"addParams.downMost"
></el-input>
<el-input
v-float-number
maxlength=
"10"
style=
"width: 80%"
v-model=
"addParams.downMost"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -581,19 +581,6 @@ let param = ref({
const
formRef
=
ref
()
addParams
.
value
=
{}
const
rules
=
reactive
({
topMost
:
[
{
pattern
:
/^
(\d{1,10})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"上上限值长度超出范围"
,
trigger
:
"blur"
}
],
upper
:
[
{
pattern
:
/^
(\d{1,10})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"上限值长度超出范围"
,
trigger
:
"blur"
}
],
lower
:
[
{
pattern
:
/^
(\d{1,10})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"下限值长度超出范围"
,
trigger
:
"blur"
}
],
downMost
:
[
{
pattern
:
/^
(\d{1,10})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"下下限值长度超出范围"
,
trigger
:
"blur"
}
],
alarmPlan
:
[
{
pattern
:
/^.
{1,50}
$/
,
"message"
:
"报警预案必须是1-50位字符"
,
trigger
:
"blur"
}
]
...
...
src/views/SchedulingPage/ConfigBoilerPage.vue
View file @
4652fca6
...
...
@@ -2,7 +2,7 @@
<div
class=
"contentBlock"
>
<div
class=
"contentBlockInn"
>
<el-card
class=
"card-contianer"
>
<el-form
ref=
"formRef"
:rules=
"rules"
:model=
"formDatas"
label-width=
"auto"
>
<el-form
ref=
"formRef"
:rules=
"rules"
:model=
"formDatas"
label-width=
"auto"
:inline-message=
"true"
>
<table
v-loading=
"loading"
cellpadding=
"0"
cellspacing=
"1"
style=
"background-color: #99bbe8"
>
<tr>
<th
style=
"width: 25%"
>
电调阈开启度
</th>
...
...
@@ -11,7 +11,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"openingOfElectricValve"
style=
"padding: 0;margin: 0;"
>
<el-input
v-float-number
style=
"width: 80%; text-align: left"
<el-input
maxlength=
"3"
v-float-number
style=
"width: 80%; text-align: left"
v-model=
"formDatas.openingOfElectricValve"
>
<template
#
append
>
<div
style=
"width: 40px"
>
%
</div>
...
...
@@ -40,7 +40,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"boilerOutletWaterTemperature"
style=
"padding: 0;margin: 0;"
>
<el-input
style=
"width: 80%"
v-model=
"formDatas.boilerOutletWaterTemperature"
>
<el-input
maxlength=
"10"
style=
"width: 80%"
v-model=
"formDatas.boilerOutletWaterTemperature"
>
<
template
#
append
>
<div
style=
"width: 40px"
>
℃
</div>
</
template
>
...
...
@@ -58,7 +58,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"holdingTime"
style=
"padding: 0;margin: 0;"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"formDatas.holdingTime"
>
<el-input
maxlength=
"10"
v-float-number
style=
"width: 80%"
v-model=
"formDatas.holdingTime"
>
<
template
#
append
>
<div
style=
"width: 40px"
>
分钟
</div>
</
template
>
...
...
@@ -76,7 +76,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"upperLlimitMainFlow"
style=
"padding: 0;margin: 0;"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"formDatas.upperLlimitMainFlow"
>
<el-input
maxlength=
"10"
v-float-number
style=
"width: 80%"
v-model=
"formDatas.upperLlimitMainFlow"
>
<
template
#
append
>
<div
style=
"width: 40px"
>
m3/h
</div>
</
template
>
...
...
@@ -94,7 +94,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"lowerLlimitMainFlow"
style=
"padding: 0;margin: 0;"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"formDatas.lowerLlimitMainFlow"
>
<el-input
maxlength=
"10"
v-float-number
style=
"width: 80%"
v-model=
"formDatas.lowerLlimitMainFlow"
>
<
template
#
append
>
<div
style=
"width: 40px"
>
m3/h
</div>
</
template
>
...
...
@@ -112,7 +112,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"maxTargetTemperature"
style=
"padding: 0;margin: 0;"
>
<el-input
style=
"width: 80%"
v-model=
"formDatas.maxTargetTemperature"
>
<el-input
maxlength=
"10"
style=
"width: 80%"
v-model=
"formDatas.maxTargetTemperature"
>
<
template
#
append
>
<div
style=
"width: 40px"
>
℃
</div>
</
template
>
...
...
@@ -130,7 +130,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"bestHoldingTime"
style=
"padding: 0;margin: 0;"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"formDatas.bestHoldingTime"
>
<el-input
maxlength=
"10"
v-float-number
style=
"width: 80%"
v-model=
"formDatas.bestHoldingTime"
>
<
template
#
append
>
<div
style=
"width: 40px"
>
分钟
</div>
</
template
>
...
...
@@ -202,22 +202,22 @@ const rules = reactive({
boilerOutletWaterTemperature
:
[
{
pattern
:
/^
(
-
?\d{1,5})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的锅炉出水温度"
,
trigger
:
"blur"
}
],
upperLlimitMainFlow
:
[
{
pattern
:
/^
(\d{1,5})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"请输入正确的锅炉房供水总管流量上限值"
,
trigger
:
"blur"
}
],
lowerLlimitMainFlow
:
[
{
pattern
:
/^
(\d{1,5})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"请输入正确的锅炉房供水总管流量下限值"
,
trigger
:
"blur"
}
],
//
upperLlimitMainFlow: [
//
{ pattern: /^(\d{1,5})(\.[0-9]{1,4})?$/, "message": "请输入正确的锅炉房供水总管流量上限值", trigger: "blur" }
//
],
//
lowerLlimitMainFlow: [
//
{ pattern: /^(\d{1,5})(\.[0-9]{1,4})?$/, "message": "请输入正确的锅炉房供水总管流量下限值", trigger: "blur" }
//
],
maxTargetTemperature
:
[
{
pattern
:
/^
(
-
?\d{1,5})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的目标温度最大值"
,
trigger
:
"blur"
},
],
bestHoldingTime
:
[
{
pattern
:
/^
(\d{1,5})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"请输入正确的持续时间"
,
trigger
:
"blur"
}
],
holdingTime
:
[
{
pattern
:
/^
(\d{1,5})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"请输入正确的保持时间"
,
trigger
:
"blur"
}
]
//
bestHoldingTime: [
//
{ pattern: /^(\d{1,5})(\.[0-9]{1,4})?$/, "message": "请输入正确的持续时间", trigger: "blur" }
//
],
//
holdingTime: [
//
{ pattern: /^(\d{1,5})(\.[0-9]{1,4})?$/, "message": "请输入正确的保持时间", trigger: "blur" }
//
]
});
// 获取数据列表
...
...
@@ -355,4 +355,41 @@ table.botList td {
text-align: left;
font-weight: bolder;
}
// 校验时样式
.el-form-item__content {
margin-left: 0 !important;
}
.el-form-item__error--inline {
top: auto;
left: auto;
display: inline-block;
margin-left: 10px;
line-height: 18px;
position: fixed;
padding: 5px 10px;
background: rgba(0, 0, 0, 0.85);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 5px rgba(0, 0, 0, 0.6);
word-break: break-all;
word-wrap: break-word;
border-radius: 4px;
margin-top: 4px;
max-width: 160px;
min-width: 100px;
height: auto;
z-index: 10000;
color: white !important;
}
.el-form-item__error--inline::before {
content: '';
width: 0;
height: 0;
border: 6px solid transparent;
border-right-color: #080B12;
position: absolute;
left: -11px;
top: 8px;
}
</
style
>
src/views/SchedulingPage/EnergyManagePage.vue
View file @
4652fca6
...
...
@@ -78,8 +78,18 @@ const tableLabel = reactive([
},
]);
// 多选options
// 定义选项
const
options
=
[
{
value
:
'0'
,
label
:
'非节能'
},
{
value
:
'1'
,
label
:
'一步节能'
},
{
value
:
'2'
,
label
:
'二步节能'
},
{
value
:
'3'
,
label
:
'三步节能'
},
{
value
:
'4'
,
label
:
'四步节能'
},
];
const
formInline
=
reactive
({
keyWord
:
""
keyWord
:
options
.
map
(
option
=>
option
.
value
),
});
const
config
=
reactive
({
...
...
@@ -92,12 +102,6 @@ const handleSearch = () => {
getEnergyData
()
};
// 重置按钮
const
handleReset
=
()
=>
{
formInline
.
keyWord
=
""
config
.
supplyType
=
[
"0"
,
"1"
,
"2"
,
"3"
,
"4"
]
getEnergyData
()
}
const
timeFormat
=
(
time
)
=>
{
var
time
=
new
Date
(
time
);
...
...
@@ -118,7 +122,7 @@ const rules = reactive({
],
record
:
[
{
required
:
true
,
message
:
"能源用度是必选项"
,
trigger
:
"blur"
},
{
pattern
:
/^
(\d{1,10})
$/
,
"message"
:
"能源用度是 1-10位正整数"
,
trigger
:
"blur"
}
],
recordDate
:
[{
required
:
true
,
message
:
"日期是必选项"
}],
});
...
...
@@ -154,11 +158,13 @@ const handleDelete = (row) => {
// 新增
const
action
=
ref
(
'add'
)
const
handleClose
=
()
=>
{
loading
.
value
=
false
dialogVisible
.
value
=
false
reset
()
}
const
handleCancel
=
()
=>
{
dialogVisible
.
value
=
false
loading
.
value
=
false
}
const
handleAdd
=
()
=>
{
action
.
value
=
"add"
,
...
...
@@ -184,6 +190,8 @@ const handleEdit = (val) => {
formEnergy
.
value
=
{
...
val
}
};
const
onSubmit
=
()
=>
{
addSaveBtnLoading
.
value
=
true
loading
.
value
=
true
...
...
@@ -194,8 +202,8 @@ const onSubmit = () => {
?
formEnergy
.
recordDate
:
timeFormat
(
formEnergy
.
recordDate
);
if
(
action
.
value
===
"add"
)
{
http
.
post
(
"api/energy/Save"
,
{
...
formEnergy
.
value
},
false
).
then
(
res
=>
{
loading
.
value
=
true
http
.
post
(
"api/energy/Save"
,
{
...
formEnergy
.
value
},
false
).
then
(
res
=>
{
loading
.
value
=
true
if
(
res
.
success
)
{
dialogVisible
.
value
=
false
ElMessage
.
success
(
res
.
message
)
...
...
@@ -268,7 +276,6 @@ function getOrganizationStructure() {
onMounted
(()
=>
{
getOrganizationStructure
()
getEnergyData
()
})
</
script
>
...
...
@@ -285,12 +292,10 @@ onMounted(() => {
<el-form
ref=
"formRef"
:model=
"formInline"
:inline=
"true"
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-select
v-model=
"formInline.keyWord"
placeholder=
"请选择"
style=
"width:360px; margin-left: 20px;"
>
<el-option
label=
"非节能"
value=
"0"
/>
<el-option
label=
"一步节能"
value=
"1"
/>
<el-option
label=
"二步节能"
value=
"2"
/>
<el-option
label=
"三步节能"
value=
"3"
/>
<el-option
label=
"四步节能"
value=
"4"
/>
<el-select
v-model=
"formInline.keyWord"
placeholder=
"请选择"
multiple
style=
"width:360px; margin-left: 20px;"
>
<el-option
v-for=
"option in options"
:key=
"option.value"
:label=
"option.label"
:value=
"option.value"
/>
</el-select>
</el-form-item>
</el-form>
...
...
@@ -301,10 +306,6 @@ onMounted(() => {
<Search
style=
"width: 1em; height: 1em; margin-right: 8px"
/>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"handleReset"
>
<Minus
style=
"width: 1em; height: 1em; margin-right: 8px"
/>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"handleAdd"
>
<Document
style=
"width: 1em; height: 1em; margin-right: 8px"
/>
新增
...
...
@@ -352,7 +353,7 @@ onMounted(() => {
<th
style=
"width: 25%"
>
供热站
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr
height=
"50px"
>
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"supplyName"
style=
"margin: 0; padding: 0; width: 100%;"
>
<el-select
v-model=
"formEnergy.supplyId"
placeholder=
"请选择"
>
...
...
@@ -369,7 +370,7 @@ onMounted(() => {
<th
style=
"width: 25%"
>
能源类型
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr
height=
"66px"
>
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"energyType"
style=
"margin: 0; padding: 0; width: 100%"
>
<el-select
v-model=
"formEnergy.energyType"
placeholder=
"请选择"
>
...
...
@@ -389,10 +390,10 @@ onMounted(() => {
<th
style=
"width: 25%"
>
能源用度
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr
height=
"66px"
>
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"record"
style=
"margin: 0; padding: 0; width: 100%"
>
<el-input
v-float-number
v-model=
"formEnergy.record"
placeholder=
"请输入能源用度"
/>
<el-input
v-float-number
maxlength=
"10"
v-model=
"formEnergy.record"
placeholder=
"请输入能源用度"
/>
</el-form-item>
</td>
</tr>
...
...
@@ -403,7 +404,7 @@ onMounted(() => {
<th
style=
"width: 25%"
>
日期
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr
height=
"66px"
>
<tr>
<td>
<el-form-item
prop=
"recordDate"
style=
"margin: 0; padding: 0; width: 100%"
>
<el-date-picker
value-format=
"YYYY-MM-DD HH:mm:ss"
v-model=
"formEnergy.recordDate"
type=
"datetime"
...
...
src/views/SchedulingPage/InstantHeatPage.vue
View file @
4652fca6
...
...
@@ -5,7 +5,7 @@
<div
class=
"card-header"
>
<span>
瞬时热量对比配置
</span>
</div>
<el-form
ref=
"formRef"
:rules=
"rules"
:model=
"List"
label-width=
"auto"
>
<el-form
ref=
"formRef"
:rules=
"rules"
:model=
"List"
label-width=
"auto"
:inline-message=
"true"
>
<table
v-loading=
"loading"
cellpadding=
"0"
cellspacing=
"1"
>
<tr>
<th
style=
"width: 25%"
>
计划名称
</th>
...
...
@@ -14,7 +14,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"planName"
style=
"padding: 0;margin: 0;"
>
<el-input
style=
"width: 80%"
v-model=
"List.planName"
></el-input>
<el-input
maxlength=
"20"
style=
"width: 80%"
v-model=
"List.planName"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -28,7 +28,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"diffPercentage"
style=
"padding: 0;margin: 0;"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"List.diffPercentage"
></el-input>
<el-input
v-float-number
maxLenght=
"10"
style=
"width: 80%"
v-model=
"List.diffPercentage"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -42,7 +42,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"timeoutMin"
style=
"padding: 0;margin: 0;"
>
<el-input
style=
"width: 80%"
v-model=
"List.timeoutMin"
></el-input>
<el-input
v-float-number
maxlength=
"10"
style=
"width: 80%"
v-model=
"List.timeoutMin"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -56,7 +56,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"tempRegulation"
style=
"padding: 0;margin: 0;"
>
<el-input
style=
"width: 80%"
v-model=
"List.tempRegulation"
></el-input>
<el-input
maxlength=
"10"
style=
"width: 80%"
v-model=
"List.tempRegulation"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -111,14 +111,12 @@ const List = ref(
//校验规则
const
rules
=
reactive
({
planName
:
[
{
required
:
true
,
message
:
"计划名称是必填项"
,
trigger
:
"blur"
},
{
pattern
:
/^.
{1,20}
$/
,
"message"
:
"计划名称必须是1-20位字符"
,
trigger
:
"blur"
}
],
diffPercentage
:
[
{
pattern
:
/^
([
0-9
]\d{0,1}
|100$
)(\.\d{1,4})?
$/
,
"message"
:
"请输入正确的百分比格式"
,
trigger
:
"blur"
}
],
timeoutMin
:
[
{
pattern
:
/^
(\d{1,10})
$/
,
"message"
:
"判断时间必须是1-10位正整数"
,
trigger
:
"blur"
}
],
tempRegulation
:
[
{
pattern
:
/^
(
-
?\d{1,10})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的调节温度最大值"
,
trigger
:
"blur"
}
],
...
...
@@ -214,4 +212,42 @@ table.botList td {
text-align: left;
font-weight: bolder;
}
// 校验时样式
.el-form-item__content {
margin-left: 0 !important;
}
.el-form-item__error--inline {
top: auto;
left: auto;
display: inline-block;
margin-left: 10px;
line-height: 18px;
position: fixed;
padding: 5px 10px;
background: rgba(0, 0, 0, 0.85);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 5px rgba(0, 0, 0, 0.6);
word-break: break-all;
word-wrap: break-word;
border-radius: 4px;
margin-top: 4px;
max-width: 160px;
min-width: 100px;
height: auto;
z-index: 10000;
color: white !important;
}
.el-form-item__error--inline::before {
content: '';
width: 0;
height: 0;
border: 6px solid transparent;
border-right-color: #080B12;
position: absolute;
left: -11px;
top: 8px;
}
</
style
>
src/views/SchedulingPage/WeatherManagePage.vue
View file @
4652fca6
...
...
@@ -201,6 +201,10 @@ function resetSearch(){
supplySearchKey
.
value
=
''
getData
()
}
function
revise1
(
row
)
{
console
.
log
(
"scope.row"
,
row
);
}
</
script
>
<
template
>
...
...
src/views/SchedulingPage/weatherManageSub/ReviseWindow.vue
View file @
4652fca6
...
...
@@ -80,7 +80,16 @@ const rules = reactive({
]
})
watchEffect
(()
=>
{
<<<<<<<
HEAD
// reviseData.value = {...props.data}
props
.
data
.
transfers
=
[]
props
.
data
.
updateNullFields
=
''
reviseData
.
value
=
cloneDeep
(
props
.
data
)
// 深拷贝数据
console
.
log
(
"props.data===>"
,
props
.
data
);
console
.
log
(
reviseData
.
value
);
=======
reviseData
.
value
=
props
.
data
// 深拷贝数据
>>>>>>>
44482294
a0f0e141cfad6fc71ae5bd19c87d6aed
})
const
inputStyle
=
{
color
:
'black'
,
...
...
@@ -164,6 +173,14 @@ function handleConfirm() {
)
}
}
<<<<<<<
HEAD
formRef
.
value
.
validate
(
valid
=>
{
if
(
valid
)
{
emit
(
'onConfirm'
,
reviseData
.
value
)
}
})
})
=======
}
else
{
delete
reviseData
.
value
.
supplyId
}
...
...
@@ -171,11 +188,22 @@ function handleConfirm() {
reviseData
.
value
.
isFixed
=
reviseData
.
value
.
isFixed
===
'固定模式'
?
true
:
false
;
console
.
log
(
'修改数据'
,
reviseData
.
value
)
emit
(
'onConfirm'
,
reviseData
.
value
)
>>>>>>>
44482294
a0f0e141cfad6fc71ae5bd19c87d6aed
}
})
}
<<<<<<<
HEAD
// 重置表单
const
reset
=
()
=>
{
const
form
=
unref
(
formRef
)
form
.
resetFields
()
}
function
onClose
(){
reset
()
=======
function
onClose
()
{
>>>>>>>
44482294
a0f0e141cfad6fc71ae5bd19c87d6aed
emit
(
'onCancel'
)
}
...
...
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