Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BCDH-APP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
首开风险隐患双控平台
BCDH-APP
Commits
f8b781a7
Commit
f8b781a7
authored
Sep 09, 2022
by
王李辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作台增加预警提醒记录模块 迁入预警提醒和预警记录功能
parent
630ea071
Pipeline
#8791
passed with stage
in 5 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
13 deletions
+44
-13
src/views/saveWorkbench/index.vue
src/views/saveWorkbench/index.vue
+44
-13
No files found.
src/views/saveWorkbench/index.vue
View file @
f8b781a7
...
@@ -70,6 +70,20 @@
...
@@ -70,6 +70,20 @@
/>
/>
</van-grid>
</van-grid>
</van-cell-group>
</van-cell-group>
<!-- 预警提醒记录 -->
<van-cell-group
inset
v-if=
"finalAlertReminderRecord.length > 0"
>
<van-cell
value=
"预警提醒记录"
/>
<van-grid
:column-num=
"5"
>
<van-grid-item
@
click=
"jump(item.path)"
v-for=
"item in finalAlertReminderRecord"
:key=
"item.key"
:icon=
"item.imgUrl"
:text=
"item.text"
/>
</van-grid>
</van-cell-group>
</div>
</div>
<!-- tanBar -->
<!-- tanBar -->
...
@@ -259,29 +273,32 @@ export default {
...
@@ -259,29 +273,32 @@ export default {
path
:
"
/checked-confirm
"
,
path
:
"
/checked-confirm
"
,
imgUrl
:
require
(
"
@/assets/workbench/ehcek-record.png
"
),
imgUrl
:
require
(
"
@/assets/workbench/ehcek-record.png
"
),
text
:
"
整改确认
"
,
text
:
"
整改确认
"
,
}
],
safeEducationList
:[
// 安全教育培训
{
key
:
"
1
"
,
path
:
"
/scan
"
,
imgUrl
:
require
(
"
@/assets/workbench/inspect-plane.png
"
),
text
:
"
培训签到
"
,
},
},
],
alertReminderRecord
:[
// 预警提醒记录
{
{
key
:
"
9
"
,
key
:
"
1
"
,
path
:
"
/warning
"
,
path
:
"
/warning
"
,
imgUrl
:
require
(
"
@/assets/workbench/warn-tip.png
"
),
imgUrl
:
require
(
"
@/assets/workbench/warn-tip.png
"
),
text
:
"
预警提醒
"
,
text
:
"
预警提醒
"
,
},
},
{
{
key
:
"
10
"
,
key
:
"
2
"
,
path
:
"
/warningNote
"
,
path
:
"
/warningNote
"
,
imgUrl
:
require
(
"
@/assets/workbench/warn-record.png
"
),
imgUrl
:
require
(
"
@/assets/workbench/warn-record.png
"
),
text
:
"
预警记录
"
,
text
:
"
预警记录
"
,
},
},
],
],
safeEducationList
:[
// 安全教育培训
{
key
:
"
1
"
,
path
:
"
/scan
"
,
imgUrl
:
require
(
"
@/assets/workbench/inspect-plane.png
"
),
text
:
"
培训签到
"
,
},
],
// 后台给的数据权限对象
// 后台给的数据权限对象
powerObj
:
{},
powerObj
:
{},
...
@@ -290,7 +307,8 @@ export default {
...
@@ -290,7 +307,8 @@ export default {
finalRiskList
:
[],
finalRiskList
:
[],
finalDangerList
:
[],
finalDangerList
:
[],
finalSafetyCheckList
:
[],
finalSafetyCheckList
:
[],
finalSafeEducationList
:
[]
finalSafeEducationList
:
[],
finalAlertReminderRecord
:
[]
};
};
},
},
created
()
{
created
()
{
...
@@ -413,6 +431,19 @@ export default {
...
@@ -413,6 +431,19 @@ export default {
}
else
{
}
else
{
this
.
finalSafetyCheckList
=
[];
this
.
finalSafetyCheckList
=
[];
}
}
// 预警提醒记录
if
(
this
.
powerObj
.
预警提醒记录
)
{
this
.
finalAlertReminderRecord
=
[
...
this
.
alertReminderRecord
,
].
filter
((
x
)
=>
[...
this
.
powerObj
.
预警提醒记录
].
some
(
(
y
)
=>
y
.
menuName
===
x
.
text
)
);
}
else
{
this
.
finalAlertReminderRecord
=
[];
}
// 消息
// 消息
this
.
finalNewsCenterList
=
this
.
newsCenterList
;
this
.
finalNewsCenterList
=
this
.
newsCenterList
;
...
...
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