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
5d72ca4d
Commit
5d72ca4d
authored
Aug 12, 2024
by
xuke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善报警参数
parent
9b74824a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
AlarmStatusPage.vue
src/views/AlarmPage/AlarmStatusPage.vue
+10
-8
ConfigBoilerPage.vue
src/views/SchedulingPage/ConfigBoilerPage.vue
+5
-6
No files found.
src/views/AlarmPage/AlarmStatusPage.vue
View file @
5d72ca4d
...
...
@@ -15,7 +15,7 @@
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"getdata"
style=
"min-width: 70px;"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"open"
style=
"min-width: 70px;"
>
报警参数设置
</el-button>
<el-button
type=
"primary"
v-show=
"roleId"
@
click=
"open"
style=
"min-width: 70px;"
>
报警参数设置
</el-button>
</el-form-item>
</div>
</el-card>
...
...
@@ -279,7 +279,7 @@ const show = ref(false)
const
refreshItem
=
ref
(
0
)
const
AlarmInfo
=
ref
([])
const
dept
=
ref
(
''
)
const
roleId
=
ref
(
false
)
function
open
()
{
show
.
value
=
true
...
...
@@ -514,22 +514,23 @@ console.log("AlarmInfo.value:::", AlarmInfo.value);
const
userId
=
ref
();
const
roleIds
=
ref
();
//获取用户信息
function
getuser
()
{
const
getuser
=
()
=>
{
var
user
=
store
.
getters
.
getUserInfo
();
console
.
log
(
"user================>"
,
user
);
console
.
log
(
"user.enterpriseId================>"
,
user
.
enterpriseId
);
if
(
user
)
{
enterpriseId
.
value
=
user
.
enterpriseId
;
userId
.
value
=
user
.
userId
;
roleIds
.
value
=
user
.
roleId
;
}
// 权限小于3显示按钮
if
(
roleIds
.
value
<
3
)
{
roleId
.
value
=
true
}
}
console
.
log
(
"userId=========>"
,
userId
.
value
);
console
.
log
(
"roleIds=========>"
,
roleIds
.
value
);
getuser
()
let
cnNames_before
=
ref
([])
let
cnNames_after
=
ref
([])
console
.
log
(
"---------------------AlarmInfo.value:"
,
AlarmInfo
.
value
);
let
params
=
ref
({
"pipeAlarmParaId"
:
""
,
...
...
@@ -835,6 +836,7 @@ const onClose = () => {
}
onMounted
(()
=>
{
getuser
()
setContentHeight
();
window
.
addEventListener
(
'resize'
,
setContentHeight
);
})
...
...
src/views/SchedulingPage/ConfigBoilerPage.vue
View file @
5d72ca4d
...
...
@@ -282,12 +282,11 @@ function getSupplys() {
let
c
=
[];
center
.
supplyList
.
forEach
((
supply
)
=>
{
let
chi
=
[];
// if(supplyId === "b354f45b-23e5-42be-a210-0fb92394f457") {
// }
supply
.
transferList
.
forEach
((
unit
)
=>
{
options
.
push
({
value
:
unit
.
unitId
,
label
:
unit
.
unitName
});
});
if
(
supply
.
supplyId
===
"b354f45b-23e5-42be-a210-0fb92394f457"
)
{
supply
.
transferList
.
forEach
((
unit
)
=>
{
options
.
push
({
value
:
unit
.
unitId
,
label
:
unit
.
unitName
});
});
}
// c.push({ children: chi, label: supply.supplyName });
});
// options.push({ children: c, label: center.serviceCenterName });
...
...
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