|
@ -211,7 +211,7 @@ |
|
|
// menus[1].list[2].JobCount = this.rand; |
|
|
// menus[1].list[2].JobCount = this.rand; |
|
|
let that = this; |
|
|
let that = this; |
|
|
let isToday = this.$isReceiptToday; |
|
|
let isToday = this.$isReceiptToday; |
|
|
let jobItems = await getJobCountAsync(isToday); |
|
|
let jobItems = await getJobCountAsync(isToday,localStorage.getItem('userId')); |
|
|
let jobTypes = jobItems.items; //类型 |
|
|
let jobTypes = jobItems.items; //类型 |
|
|
if (menus != null && jobTypes != null) { |
|
|
if (menus != null && jobTypes != null) { |
|
|
for (var g = 0; g < menus.length; g++) { |
|
|
for (var g = 0; g < menus.length; g++) { |
|
@ -299,7 +299,7 @@ |
|
|
that.timer = setInterval(async function() { |
|
|
that.timer = setInterval(async function() { |
|
|
await that.refreshJobMenu(that.userMenus); |
|
|
await that.refreshJobMenu(that.userMenus); |
|
|
console.log('刷新菜单'); |
|
|
console.log('刷新菜单'); |
|
|
}, 60000) |
|
|
}, 3000) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// test() { |
|
|
// test() { |
|
|