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
accff522
Commit
accff522
authored
Aug 08, 2024
by
xuke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报警状态-第一次提交
parent
d4c16b07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
17 deletions
+32
-17
AlarmStatusPage.vue
src/views/AlarmPage/AlarmStatusPage.vue
+32
-17
No files found.
src/views/AlarmPage/AlarmStatusPage.vue
View file @
accff522
...
@@ -67,9 +67,8 @@
...
@@ -67,9 +67,8 @@
<el-row>
<el-row>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<div
class=
"left"
>
<div
class=
"left"
>
<p>
ZTY
</p>
<p
v-for=
"(item,index) in cnNames_before"
>
{{item.cnName}}
</p>
<p>
LPJ
</p>
<p>
LXH
</p>
</div>
</div>
</el-col>
</el-col>
...
@@ -188,7 +187,8 @@
...
@@ -188,7 +187,8 @@
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<div
class=
"left"
>
<div
class=
"left"
>
<ul>
<ul>
<li>
<li
v-for=
"(item,index) in cnNames_after"
>
{{item.cnName}}
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -471,24 +471,39 @@ function getImgUrl(scope, item) {
...
@@ -471,24 +471,39 @@ function getImgUrl(scope, item) {
// 报警参数设置
// 报警参数设置
const
cnNames
=
reactive
([{}])
let
cnNames_before
=
reactive
([{}])
let
cnNames_after
=
reactive
([{}])
const
getCnNames
=
()
=>
{
const
getCnNames
=
()
=>
{
let
newType
=
let
newType
=
type
.
value
==
"GetPipeAlarmStatusData"
?
1
:
type
.
value
==
"GetBoilerAlarmStatusData"
?
2
:
3
type
.
value
==
"GetPipeAlarmStatusData"
?
1
:
type
.
value
==
"GetBoilerAlarmStatusData"
?
2
:
3
let
newAlarmInfo
=
AlarmInfo
.
value
[
0
];
let
newAlarmInfo
=
AlarmInfo
.
value
[
0
];
const
data
=
http
.
post
(
"api/alarm/para/GetAlarmPara"
,
{
type
:
newType
,
id
:
newAlarmInfo
},
false
)
let
data
=
http
.
post
(
"api/alarm/para/GetAlarmPara"
,
{
type
:
newType
,
id
:
newAlarmInfo
},
false
)
console
.
log
(
"data:"
,
data
);
// console.log("data:", data);
data
.
then
(
function
(
val
)
{
cnNames_before
=
val
.
data
.
before
cnNames_after
=
val
.
data
.
after
// console.log("@@@@",cnNames_before);
// console.log("@@@@",cnNames_after);
});
console
.
log
(
"报警参数cnnames:"
,
data
.
data
);
fillTable
()
// data.data.forEach(function(obj, index) => {
// console.log(`Object ${index + 1} items:`, obj.items);
// console.log(obj);
// });
// cnNames = data.data.before;
console
.
log
(
"cnNames.value"
,
cnNames
);
}
}
const
params
=
reactive
([{}])
const
fillTable
=
()
=>
{
let
newType
=
type
.
value
==
"GetPipeAlarmStatusData"
?
1
:
type
.
value
==
"GetBoilerAlarmStatusData"
?
2
:
3
let
newAlarmInfo
=
AlarmInfo
.
value
[
0
];
const
data
=
http
.
post
(
"/api/alarm/para/GetAlarmParaInfo"
,{
type
:
newType
,
id
:
newAlarmInfo
,
baseid
:
cnNames_before
.
transParaBaseId
},
false
)
console
.
log
(
data
);
}
getCnNames
()
getCnNames
()
...
@@ -505,7 +520,7 @@ onUnmounted(() => {
...
@@ -505,7 +520,7 @@ onUnmounted(() => {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
>
.moduleCard {
.moduleCard {
width: auto;
width: auto;
overflow: auto;
overflow: auto;
...
@@ -617,7 +632,7 @@ table td {
...
@@ -617,7 +632,7 @@ table td {
.left {
.left {
// border: 1px solid red;
// border: 1px solid red;
overflow: auto;
overflow: auto;
height:
1
0px;
height:
80
0px;
border-top: 1px solid #eff1f4;
border-top: 1px solid #eff1f4;
border-bottom: 1px solid #eff1f4;
border-bottom: 1px solid #eff1f4;
padding: 0px 30px 11px 27px;
padding: 0px 30px 11px 27px;
...
...
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