Commit b692d6ef authored by 罗超's avatar 罗超

no message

parent aec43193
...@@ -245,6 +245,18 @@ ...@@ -245,6 +245,18 @@
} }
}, },
mounted() { mounted() {
var date = new Date();
  var today = date.getDate();
  if(parseInt(today) < 10){
    today = '0' + today;
  }
  var dataMonth = date.getMonth() + 1;
  if(parseInt(dataMonth) < 10){
    dataMonth = '0' + dataMonth;
  }
var newdate = date.getFullYear() + '-' + dataMonth + '-' + today +' ' + '00:00:00';
  var lastDate = date.getFullYear() + '-' + dataMonth + '-' + today +' ' + '23:59:59';
this.timeList = [newdate,lastDate]
// erp自动登陆传过来的参数 // erp自动登陆传过来的参数
if(this.$route.query.erpOrderObj){ if(this.$route.query.erpOrderObj){
let data = JSON.parse(this.$route.query.erpOrderObj) let data = JSON.parse(this.$route.query.erpOrderObj)
......
...@@ -43,6 +43,16 @@ export default new Router({ ...@@ -43,6 +43,16 @@ export default new Router({
content: "IE=Edge,chrome=1" content: "IE=Edge,chrome=1"
} }
}, },
{
path: "/",
name: "automaticLogin",
component: automaticLogin,
meta: {
title: "欢迎使用CRM系统-请登录使用",
"http-equiv": "X-UA-Compatible",
content: "IE=Edge,chrome=1"
}
},
{ {
path: "/index", path: "/index",
name: "index", name: "index",
...@@ -439,16 +449,6 @@ export default new Router({ ...@@ -439,16 +449,6 @@ export default new Router({
} }
] ]
}, },
{
path: "/",
name: "automaticLogin",
component: automaticLogin,
meta: {
title: "欢迎使用CRM系统-请登录使用",
"http-equiv": "X-UA-Compatible",
content: "IE=Edge,chrome=1"
}
},
{ {
path: '/table', path: '/table',
name: 'table', name: 'table',
......
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