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
c19f6e29
Commit
c19f6e29
authored
Apr 28, 2022
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解润东
隐患巡查 20220428
parent
8bd6a889
Pipeline
#8218
passed with stage
in 5 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
173 additions
and
65 deletions
+173
-65
src/router/index.js
src/router/index.js
+10
-0
src/views/danger/dangerPatrol/index.vue
src/views/danger/dangerPatrol/index.vue
+163
-65
No files found.
src/router/index.js
View file @
c19f6e29
...
@@ -561,6 +561,16 @@ const routes = [{
...
@@ -561,6 +561,16 @@ const routes = [{
},
},
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/dangerPatrol
'
),
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
'
,
path
:
'
/implement
'
,
...
...
src/views/danger/dangerPatrol/index.vue
View file @
c19f6e29
<
template
>
<
template
>
<div>
<div>
<LHeader
:text=
"text"
></LHeader>
<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>
<p class="title-text">系统提示:请依据当日任务完成当日巡查工作。</p>
<div class="con-list">
<div class="con-list">
<van-cell-group
<van-cell-group
...
@@ -23,12 +44,13 @@
...
@@ -23,12 +44,13 @@
{{ item.content }}
{{ item.content }}
</div>
</div>
</van-cell-group>
</van-cell-group>
</div>
</div>
-->
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
LHeader
from
"
@/components/header.vue
"
;
import
{
postWork
}
from
"
@/service/workbench
"
;
export
default
{
export
default
{
name
:
"
danger-patrol
"
,
name
:
"
danger-patrol
"
,
components
:
{
components
:
{
...
@@ -36,7 +58,39 @@ export default {
...
@@ -36,7 +58,39 @@ export default {
},
},
data
()
{
data
()
{
return
{
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
:
[
contentList
:
[
// {
// {
// title: "A1",
// title: "A1",
...
@@ -58,84 +112,122 @@ export default {
...
@@ -58,84 +112,122 @@ export default {
// imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
// imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
// content: "巡查统计"
// content: "巡查统计"
// }
// }
{
//
{
title
:
"
A1
"
,
//
title: "A1",
imgUrl
:
require
(
"
@/assets/dangerPatrol/patrol-icon.png
"
),
//
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content
:
"
日查清单
"
//
content: "日查清单"
},
//
},
{
//
{
title
:
"
A2
"
,
//
title: "A2",
imgUrl
:
require
(
"
@/assets/dangerPatrol/patrol-icon.png
"
),
//
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content
:
"
周查清单
"
//
content: "周查清单"
},
//
},
{
//
{
title
:
"
A3
"
,
//
title: "A3",
imgUrl
:
require
(
"
@/assets/dangerPatrol/patrol-icon.png
"
),
//
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content
:
"
月查清单
"
//
content: "月查清单"
},
//
},
{
//
{
title
:
"
A4
"
,
//
title: "A4",
imgUrl
:
require
(
"
@/assets/dangerPatrol/patrol-icon.png
"
),
//
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content
:
"
季查清单
"
//
content: "季查清单"
},
//
},
{
//
{
title
:
"
A5
"
,
//
title: "A5",
imgUrl
:
require
(
"
@/assets/dangerPatrol/patrol-icon.png
"
),
//
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content
:
"
年查清单
"
//
content: "年查清单"
}
//
}
]
]
};
};
},
},
created
()
{
// 根据权限显示对应的图标
this
.
getWorkList
();
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
onClick
(
val
)
{
onSearch
(){
// if (val == "执行巡查") {
// this.$router.push({
},
// name: "implement"
dangerJump
(
path
)
{
// });
if
(
path
)
{
// } else if (val == "取消巡查") {
this
.
$router
.
push
(
path
);
// this.$router.push({
// name: "cancel-patrol"
// });
// } else if (val == "巡查记录") {
// this.$router.push({
// name: "record-patrol"
// });
// } else if (val == "巡查统计") {
// this.$router.push({
// 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
"
});
}
}
}
},
// 请求工作台列表
// 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"
// });
// } 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
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
/* @import url(); 引入css类 */
/* @import url(); 引入css类 */
.van-cell-group--inset {
.van-cell-group--inset {
height: 2.266667rem;
//
height: 2.266667rem;
line-height: 2.266667rem;
line-height: 2.266667rem;
font-size: 0.4rem;
font-size: 0.4rem;
font-weight: bolder;
font-weight: bolder;
margin: 0.266667rem;
margin: 0.266667rem;
padding-left: 0.666667rem;
//
padding-left: 0.666667rem;
color: #3499ff;
color: #3499ff;
.icon-wrap {
.icon-wrap {
display: flex;
display: flex;
...
@@ -146,6 +238,12 @@ export default {
...
@@ -146,6 +238,12 @@ export default {
}
}
}
}
}
}
/deep/ .van-cell::after {
border: none;
}
/deep/ [class*="van-hairline"]::after {
border: none;
}
.title{
.title{
text-align: center;
text-align: center;
font-weight: bolder;
font-weight: bolder;
...
...
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