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

页面修改

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