Commit 49c0fea8 authored by 黄奎's avatar 黄奎

页面修改

parent 1cc0250f
......@@ -869,21 +869,23 @@
this.parentName = tempparentName;
this.currentName = tempcurrentName;
}
return tempcurrentName
},
getTitleByRouter(name) {
let obj = {}
routerConfig.routes[11].children[0].children.forEach(x => {
if (x.name == name) {
obj.comp = x.component
if (x.meta && x.meta.title)
obj.title = x.meta.title
else
obj.title = ''
return false
}
})
let obj = {title:""};
// console.log("routerConfig.routes[11]",routerConfig.routes[12]);
if (routerConfig.routes[12] && routerConfig.routes[12].children && routerConfig.routes[12].children.length>0) {
routerConfig.routes[12].children[0].children.forEach(x => {
if (x.name == name) {
obj.comp = x.component
if (x.meta && x.meta.title)
obj.title = x.meta.title
else
obj.title = ''
return false
}
})
}
return obj
},
filterRouter() {
......@@ -966,13 +968,13 @@
// dom.href = `http://${window.location.host}/#${to.fullPath}`
// dom.click()
var el = document.createElement("a");
document.body.appendChild(el);
el.href = `http://${window.location.host}/#${to.fullPath}`;
el.target = '_blank';
el.click();
} else {
next()
}
document.body.appendChild(el);
el.href = `http://${window.location.host}/#${to.fullPath}`;
el.target = '_blank';
el.click();
} else {
next()
}
});
this.$nextTick(function () {
document.title = this.$route.meta.title ? this.$route.meta.title : ''
......
......@@ -87,6 +87,7 @@ export default {
title: '出团通知书下载新'
},
},
{
path: '/SalesconfirmationOrder', //销售出团通知
name: 'SalesconfirmationOrder',
......
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