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
98b5b664
Commit
98b5b664
authored
Apr 29, 2022
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解润东
排水权限页面接口联调
parent
497c92e1
Pipeline
#8223
passed with stage
in 5 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
64 deletions
+32
-64
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
+8
-20
src/views/danger/dangerPatrol/index.vue
src/views/danger/dangerPatrol/index.vue
+24
-44
No files found.
src/views/danger/dangerPatrol/dangerPatrolTime/index.vue
View file @
98b5b664
...
...
@@ -67,27 +67,15 @@ export default {
]
};
},
mounted
()
{},
mounted
()
{
this
.
loading
()
},
methods
:
{
// 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"
// });
// }
// }
loading
(){
// postWork("portal/cycle").then((res) => {
// console.log(res)
// })
},
onClick
(
val
)
{
this
.
$router
.
push
({
name
:
"
implement
"
...
...
src/views/danger/dangerPatrol/index.vue
View file @
98b5b664
...
...
@@ -59,7 +59,8 @@ export default {
data
()
{
return
{
text
:
"
隐患巡查
"
,
finalDangerList
:[
finalDangerList
:[],
dangerList
:[
{
key
:
"
1
"
,
imgUrl
:
require
(
"
@/assets/workbench/danger-report.png
"
),
...
...
@@ -90,7 +91,7 @@ export default {
text
:
"
巡查统计
"
,
path
:
"
/statistics
"
,
}
],
//隐患巡查菜单卡
],
contentList
:
[
// {
// title: "A1",
...
...
@@ -155,48 +156,27 @@ export default {
}
},
// 请求工作台列表
// 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 = [];
// }
// });
// },
getWorkList
()
{
postWork
(
"
mobile/menu2
"
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
this
.
powerObj
=
res
.
data
;
console
.
log
(
this
.
powerObj
,
'
sss
'
)
// 隐患排查治理
if
(
this
.
powerObj
.
隐患巡查
)
{
this
.
finalDangerList
=
[...
this
.
dangerList
].
filter
(
(
x
)
=>
[...
this
.
powerObj
.
隐患巡查
].
some
(
(
y
)
=>
y
.
menuName
===
x
.
text
)
);
}
else
{
this
.
finalDangerList
=
[];
}
}
else
{
this
.
powerObj
=
[];
}
});
},
// onClick(val) {
// if (val == "执行巡查") {
// this.$router.push({
...
...
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