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

工作台增加预警提醒记录模块 迁入预警提醒和预警记录功能

parent 630ea071
Pipeline #8791 passed with stage
in 5 minutes and 24 seconds
......@@ -70,6 +70,20 @@
/>
</van-grid>
</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>
<!-- tanBar -->
......@@ -259,29 +273,32 @@ export default {
path: "/checked-confirm",
imgUrl: require("@/assets/workbench/ehcek-record.png"),
text: "整改确认",
}
],
safeEducationList:[
// 安全教育培训
{
key: "1",
path: "/scan",
imgUrl: require("@/assets/workbench/inspect-plane.png"),
text: "培训签到",
},
],
alertReminderRecord:[
// 预警提醒记录
{
key: "9",
key: "1",
path: "/warning",
imgUrl: require("@/assets/workbench/warn-tip.png"),
text: "预警提醒",
},
},
{
key: "10",
key: "2",
path: "/warningNote",
imgUrl: require("@/assets/workbench/warn-record.png"),
text: "预警记录",
},
],
safeEducationList:[
// 安全教育培训
{
key: "1",
path: "/scan",
imgUrl: require("@/assets/workbench/inspect-plane.png"),
text: "培训签到",
},
],
// 后台给的数据权限对象
powerObj: {},
......@@ -290,7 +307,8 @@ export default {
finalRiskList: [],
finalDangerList: [],
finalSafetyCheckList: [],
finalSafeEducationList: []
finalSafeEducationList: [],
finalAlertReminderRecord: []
};
},
created() {
......@@ -413,6 +431,19 @@ export default {
} else {
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;
......
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