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
09648864
Commit
09648864
authored
Aug 09, 2022
by
王李辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作台新增安全教育培训模块加入培训签到操作
parent
d7f178be
Pipeline
#8696
passed with stage
in 5 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
src/views/saveWorkbench/index.vue
src/views/saveWorkbench/index.vue
+38
-0
No files found.
src/views/saveWorkbench/index.vue
View file @
09648864
...
@@ -56,6 +56,20 @@
...
@@ -56,6 +56,20 @@
/>
/>
</van-grid>
</van-grid>
</van-cell-group>
</van-cell-group>
<!-- 教育培训签到 -->
<van-cell-group
inset
v-if=
"finalSafeEducationList.length > 0"
>
<van-cell
value=
"教育培训签到"
/>
<van-grid
:column-num=
"5"
>
<van-grid-item
@
click=
"jump(item.path)"
v-for=
"item in finalSafeEducationList"
:key=
"item.key"
:icon=
"item.imgUrl"
:text=
"item.text"
/>
</van-grid>
</van-cell-group>
</div>
</div>
<!-- tanBar -->
<!-- tanBar -->
...
@@ -259,6 +273,15 @@ export default {
...
@@ -259,6 +273,15 @@ export default {
text
:
"
预警记录
"
,
text
:
"
预警记录
"
,
},
},
],
],
safeEducationList
:[
// 安全教育培训
{
key
:
"
1
"
,
path
:
"
/scan
"
,
imgUrl
:
require
(
"
@/assets/workbench/inspect-plane.png
"
),
text
:
"
培训签到
"
,
},
],
// 后台给的数据权限对象
// 后台给的数据权限对象
powerObj
:
{},
powerObj
:
{},
...
@@ -267,6 +290,7 @@ export default {
...
@@ -267,6 +290,7 @@ export default {
finalRiskList
:
[],
finalRiskList
:
[],
finalDangerList
:
[],
finalDangerList
:
[],
finalSafetyCheckList
:
[],
finalSafetyCheckList
:
[],
finalSafeEducationList
:
[]
};
};
},
},
created
()
{
created
()
{
...
@@ -376,6 +400,20 @@ export default {
...
@@ -376,6 +400,20 @@ export default {
}
else
{
}
else
{
this
.
finalSafetyCheckList
=
[];
this
.
finalSafetyCheckList
=
[];
}
}
// 安全教育培训
if
(
this
.
powerObj
.
安全教育培训
)
{
this
.
finalSafeEducationList
=
[
...
this
.
safeEducationList
,
].
filter
((
x
)
=>
[...
this
.
powerObj
.
安全教育培训
].
some
(
(
y
)
=>
y
.
menuName
===
x
.
text
)
);
}
else
{
this
.
finalSafetyCheckList
=
[];
}
// 消息
// 消息
this
.
finalNewsCenterList
=
this
.
newsCenterList
;
this
.
finalNewsCenterList
=
this
.
newsCenterList
;
}
else
{
}
else
{
...
...
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