Commit c29972ed authored by Mac's avatar Mac

1

parent d89b986d
...@@ -147,6 +147,8 @@ export default { ...@@ -147,6 +147,8 @@ export default {
}, },
created() { created() {
this.msg.StuId = this.saveObj.StuId; this.msg.StuId = this.saveObj.StuId;
this.msg.STime = this.saveObj.STime?this.saveObj.STime:'';
this.msg.ETime = this.saveObj.ETime?this.saveObj.ETime:'';
this.getList() this.getList()
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
}, },
......
...@@ -560,10 +560,18 @@ export default { ...@@ -560,10 +560,18 @@ export default {
lookgengduo(obj,time){//跟进备注 lookgengduo(obj,time){//跟进备注
let Month = time.split('-')[0]+'-'+time.split('-')[1] let Month = time.split('-')[0]+'-'+time.split('-')[1]+'-01'
console.log(Month,time) let date=new Date(Month);
if (obj) { let currentMonth=date.getMonth();
let nextMonth=++currentMonth;
let nextMonthFirstDay=new Date(date.getFullYear(),nextMonth,1);
let oneDay=1000*60*60*24;
let endDate =new Date(nextMonthFirstDay-oneDay)
let endMonth = time.split('-')[0]+'-'+time.split('-')[1]+'-'+endDate.getDate()
if (obj) {
this.stuOption = obj; this.stuOption = obj;
this.stuOption.STime = Month;
this.stuOption.ETime = endMonth;
this.BelongType = obj.BelongType; this.BelongType = obj.BelongType;
} }
this.isShowStuFU = true; this.isShowStuFU = true;
......
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