| | |
| | | computed: { |
| | | permitMenu() { |
| | | let permits = this.$store.state.user.permits; |
| | | |
| | | let menus = this.menus.map((item) => { |
| | | let tmp = { |
| | | label: item.label, |
| | |
| | | if (!tmp.noChild) { |
| | | tmp.childrens = item.childrens.filter((child) => { |
| | | if (child.permitName) { |
| | | return !0 || isHasPermit(child.permitName, permits); |
| | | // return !0 || isHasPermit(child.permitName, permits); |
| | | return isHasPermit(child.permitName, permits); |
| | | } else { |
| | | return true; |
| | | } |
| | |
| | | this.$message.success(msg); |
| | | this.$emit('success', true); |
| | | }else { |
| | | this.$alert("当前包机组与其他班组管理的机房存在冲突!", "系统提示", { |
| | | callback: action=>{ |
| | | this.tableData = rs.data2.map(item=>{ |
| | | item.stationName = item.stationName1+"-"+item.stationName2+"-"+item.stationName5+"-"+item.stationName3; |
| | | return item; |
| | | }); |
| | | this.clashStationDialog = true; |
| | | } |
| | | }); |
| | | if (rs.data2) { |
| | | this.$alert("当前包机组与其他班组管理的机房存在冲突!", "系统提示", { |
| | | callback: action=>{ |
| | | this.tableData = rs.data2.map(item=>{ |
| | | item.stationName = item.stationName1+"-"+item.stationName2+"-"+item.stationName5+"-"+item.stationName3; |
| | | return item; |
| | | }); |
| | | this.clashStationDialog = true; |
| | | } |
| | | }); |
| | | } else { |
| | | this.$message.error(rs.msg); |
| | | } |
| | | |
| | | } |
| | | }).catch(error=>{ |
| | | console.log(error); |