Commit 09648864 authored by 王李辉's avatar 王李辉

工作台新增安全教育培训模块加入培训签到操作

parent d7f178be
Pipeline #8696 passed with stage
in 5 minutes and 11 seconds
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment