Commit c19f6e29 authored by 13841799530's avatar 13841799530

解润东

隐患巡查
20220428
parent 8bd6a889
Pipeline #8218 passed with stage
in 5 minutes and 2 seconds
......@@ -561,6 +561,16 @@ const routes = [{
},
component: () => import( /* webpackChunkName: "SaveWorkbench" */ '../views/danger/dangerPatrol'),
},
// 隐患巡查首页
{
path: '/danger-Patrol-Time',
name: 'danger-Patrol-Time',
meta: {
title: '执行巡查首页-时间管理',
index: 1
},
component: () => import( /* webpackChunkName: "SaveWorkbench" */ '../views/danger/dangerPatrol/dangerPatrolTime'),
},
// 执行巡查首页-安全管理类
{
path: '/implement',
......
<template>
<div>
<LHeader :text="text"></LHeader>
<van-search
v-model="value"
show-action
placeholder="请输入搜索内容"
@search="onSearch"
>
<template #action>
<div @click="onSearch" >搜索</div>
</template>
</van-search>
<van-cell-group inset v-if="finalDangerList.length > 0">
<van-grid :column-num="4">
<van-grid-item
@click="dangerJump(item.path)"
v-for="item in finalDangerList"
:key="item.key"
:icon="item.imgUrl"
:text="item.text"
/>
</van-grid>
</van-cell-group>
<!-- 内容列表 -->
<div class="title">2022年4月26日</div>
<!-- <div class="title">2022年4月26日</div>
<p class="title-text">系统提示:请依据当日任务完成当日巡查工作。</p>
<div class="con-list">
<van-cell-group
......@@ -23,12 +44,13 @@
{{ item.content }}
</div>
</van-cell-group>
</div>
</div> -->
</div>
</template>
<script>
import LHeader from "@/components/header.vue";
import { postWork } from "@/service/workbench";
export default {
name: "danger-patrol",
components: {
......@@ -36,7 +58,39 @@ export default {
},
data() {
return {
text: "危险作业申请",
text: "隐患巡查",
finalDangerList:[
{
key: "1",
imgUrl: require("@/assets/workbench/danger-report.png"),
text: "执行巡查",
path: "/danger-Patrol-Time",
},
{
key: "2",
imgUrl: require("@/assets/workbench/risk-confirm.png"),
text: "取消巡查",
path: "/cancel-patrol",
},
{
key: "3",
imgUrl: require("@/assets/workbench/danger-confirm.png"),
text: "巡查记录",
path: "/record-patrol",
},
{
key: "4",
imgUrl: require("@/assets/workbench/danger-rectification.png"),
text: "巡查审批",
path: "",
},
{
key: "4",
imgUrl: require("@/assets/workbench/danger-acceptance.png"),
text: "巡查统计",
path: "/statistics",
}
],//隐患巡查菜单卡
contentList: [
// {
// title: "A1",
......@@ -58,37 +112,92 @@ export default {
// imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
// content: "巡查统计"
// }
{
title: "A1",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "日查清单"
},
{
title: "A2",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "周查清单"
},
{
title: "A3",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "月查清单"
},
{
title: "A4",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "季查清单"
},
{
title: "A5",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "年查清单"
}
// {
// title: "A1",
// imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
// content: "日查清单"
// },
// {
// title: "A2",
// imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
// content: "周查清单"
// },
// {
// title: "A3",
// imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
// content: "月查清单"
// },
// {
// title: "A4",
// imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
// content: "季查清单"
// },
// {
// title: "A5",
// imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
// content: "年查清单"
// }
]
};
},
created() {
// 根据权限显示对应的图标
this.getWorkList();
},
mounted() {},
methods: {
onClick(val) {
onSearch(){
},
dangerJump(path) {
if (path) {
this.$router.push(path);
}
},
// 请求工作台列表
// getWorkList() {
// postWork("portal/cycle").then((res) => {
// if (res.code == 0) {
// this.powerObj = res.data;
// console.log(this.powerObj)
// // 隐患排查治理
// if (this.powerObj.隐患排查治理) {
// this.finalDangerList = [...this.dangerList].filter(
// (x) =>
// [...this.powerObj.隐患排查治理].some(
// (y) => y.menuName === x.text
// )
// );
// // 如果有隐患上报权限 则在添加一个 上报退回的权限
// this.powerObj.隐患排查治理.map((item) => {
// if (item.menuName == "隐患上报") {
// let obj = {
// key: "2",
// path: "/report-return",
// imgUrl: require("@/assets/workbench/rectification-notice.png"),
// text: "上报退回",
// };
// this.finalDangerList.splice(1, 0, obj);
// // 先加上个隐患巡查
// let obj2 = {
// key: "13",
// path: "/danger-patrol",
// imgUrl: require("@/assets/workbench/danger-account.png"),
// text: "隐患巡查",
// };
// this.finalDangerList.splice(1, 0, obj2);
// }
// });
// } else {
// this.finalDangerList = [];
// }
// } else {
// this.powerObj = [];
// }
// });
// },
// onClick(val) {
// if (val == "执行巡查") {
// this.$router.push({
// name: "implement"
......@@ -106,36 +215,19 @@ export default {
// name: "statistics"
// });
// }
if (val == "日查清单") {
this.$router.push({
name: "implement"
});
} else if (val == "周查清单") {
this.$router.push({
name: "cancel-patrol"
});
} else if (val == "月查清单") {
this.$router.push({
name: "record-patrol"
});
} else if (val == "季查清单") {
this.$router.push({
name: "statistics"
});
}
}
// }
}
};
</script>
<style lang="less" scoped>
/* @import url(); 引入css类 */
.van-cell-group--inset {
height: 2.266667rem;
// height: 2.266667rem;
line-height: 2.266667rem;
font-size: 0.4rem;
font-weight: bolder;
margin: 0.266667rem;
padding-left: 0.666667rem;
// padding-left: 0.666667rem;
color: #3499ff;
.icon-wrap {
display: flex;
......@@ -146,6 +238,12 @@ export default {
}
}
}
/deep/ .van-cell::after {
border: none;
}
/deep/ [class*="van-hairline"]::after {
border: none;
}
.title{
text-align: center;
font-weight: bolder;
......
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