Commit 98b5b664 authored by 13841799530's avatar 13841799530

解润东

排水权限页面接口联调
parent 497c92e1
Pipeline #8223 passed with stage
in 5 minutes and 3 seconds
......@@ -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"
......
......@@ -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({
......
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