diff --git a/fe/PDA/api/index.js b/fe/PDA/api/index.js index 781a78663..88b1a63c3 100644 --- a/fe/PDA/api/index.js +++ b/fe/PDA/api/index.js @@ -76,9 +76,9 @@ export function getJobCount() { } //获取任务数量 -export function getJobCountAsync(isToday) { +export function getJobCountAsync(isToday,userId) { return promise( - devUrl + "/api/pda/job/count?isToday=" + isToday, { + devUrl + "/api/pda/job/count/get-job-count/" + isToday+"?userId="+userId, { method: 'get', data: {} }) diff --git a/fe/PDA/pages/index/index.vue b/fe/PDA/pages/index/index.vue index c72627a52..4a5ddd3bb 100644 --- a/fe/PDA/pages/index/index.vue +++ b/fe/PDA/pages/index/index.vue @@ -211,7 +211,7 @@ // menus[1].list[2].JobCount = this.rand; let that = this; let isToday = this.$isReceiptToday; - let jobItems = await getJobCountAsync(isToday); + let jobItems = await getJobCountAsync(isToday,localStorage.getItem('userId')); let jobTypes = jobItems.items; //类型 if (menus != null && jobTypes != null) { for (var g = 0; g < menus.length; g++) { @@ -299,7 +299,7 @@ that.timer = setInterval(async function() { await that.refreshJobMenu(that.userMenus); console.log('刷新菜单'); - }, 60000) + }, 3000) }, // test() {