|
@@ -65,6 +65,7 @@
|
|
import router from '@/router'
|
|
import router from '@/router'
|
|
import backAnimation from "./components/backAnimation"
|
|
import backAnimation from "./components/backAnimation"
|
|
import homeNavbar from './components/homeNavbar.vue'
|
|
import homeNavbar from './components/homeNavbar.vue'
|
|
|
|
+ import { xmlRequestLink } from "@/utils/menuLink";
|
|
export default {
|
|
export default {
|
|
name: "home",
|
|
name: "home",
|
|
components: {
|
|
components: {
|
|
@@ -112,30 +113,19 @@
|
|
methods: {
|
|
methods: {
|
|
//跳转按钮
|
|
//跳转按钮
|
|
goPage(item){
|
|
goPage(item){
|
|
- let self = this;
|
|
|
|
if(item.buttonType){
|
|
if(item.buttonType){
|
|
- if(item.isFrame){
|
|
|
|
- //外部链接-暂定为获取当前大屏地址跳转
|
|
|
|
- for(let i=0;i<self.routeData.length;i++){
|
|
|
|
- if(item.path == self.routeData[i].name){
|
|
|
|
- window.open(localStorage.getItem('screenUrl') + '?identity=' + localStorage.getItem('identity'));
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ let path = this.circularCallNameSkip(item.path,this.routeData,false);
|
|
|
|
+ if(path){
|
|
|
|
+ if(item.isFrame){
|
|
|
|
+ xmlRequestLink(path);
|
|
|
|
+ }else{
|
|
|
|
+ this.$router.push({ path: path });
|
|
}
|
|
}
|
|
|
|
+ }else{
|
|
this.$alert('没有"'+item.menuName+'"系统权限,如有疑问,请联系管理员', {
|
|
this.$alert('没有"'+item.menuName+'"系统权限,如有疑问,请联系管理员', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
callback: action => {}
|
|
callback: action => {}
|
|
});
|
|
});
|
|
- }else{
|
|
|
|
- let path = this.circularCallNameSkip(item.path,this.routeData,false);
|
|
|
|
- if(path){
|
|
|
|
- this.$router.push({ path: path });
|
|
|
|
- }else{
|
|
|
|
- this.$alert('没有"'+item.menuName+'"系统权限,如有疑问,请联系管理员', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- callback: action => {}
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
this.$alert(item.buttonName+'暂未开放', {
|
|
this.$alert(item.buttonName+'暂未开放', {
|
|
@@ -212,11 +202,17 @@
|
|
return list[i].path + '/' + text
|
|
return list[i].path + '/' + text
|
|
}
|
|
}
|
|
}else if(!list[i].alwaysShow && !list[i].hidden){
|
|
}else if(!list[i].alwaysShow && !list[i].hidden){
|
|
- return list[i].path
|
|
|
|
|
|
+ if(list[i].isFrame){
|
|
|
|
+ return list[i]
|
|
|
|
+ }else{
|
|
|
|
+ return list[i].path
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
if(skipName == list[i].name){
|
|
if(skipName == list[i].name){
|
|
- if(list[i].children){
|
|
|
|
|
|
+ if(list[i].isFrame){
|
|
|
|
+ return list[i]
|
|
|
|
+ }else if(list[i].children){
|
|
let text = self.circularCallNameSkip(skipName,list[i].children,true)
|
|
let text = self.circularCallNameSkip(skipName,list[i].children,true)
|
|
if(text){
|
|
if(text){
|
|
return list[i].path + '/' + text
|
|
return list[i].path + '/' + text
|