提交 d62380e2 编写于 作者: xiaoping.di's avatar xiaoping.di

Merge branch 'feature/dxp' into 'develop'

瑞排班

See merge request !189
...@@ -413,8 +413,14 @@ ...@@ -413,8 +413,14 @@
const oneHour = 1 * 60 * 60 * 1000 * 24; // 一天的时间戳 const oneHour = 1 * 60 * 60 * 1000 * 24; // 一天的时间戳
const timeDifference = (cz / oneHour) | 0; // 每周一时间距离今天时间数量 const timeDifference = (cz / oneHour) | 0; // 每周一时间距离今天时间数量
const headObj = this.calendarOptions.customButtons.myCustomButton; const headObj = this.calendarOptions.customButtons.myCustomButton;
console.log(timeDifference, 'timeDifference'); console.log(timeDifference, 'timeDifference', cz / oneHour);
// debugger; // debugger;
const czCorrert = cz / oneHour;
if (timeDifference == 0 && czCorrert > 0) {
this.week = 1;
headObj.text = '本周';
return;
}
if (timeDifference > 0 && timeDifference <= 6) { if (timeDifference > 0 && timeDifference <= 6) {
// 过去 // 过去
this.week = 1; this.week = 1;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册