Browse Source

修改获取任务数量接口

dev_pda
李俊城 2 years ago
parent
commit
9416024f7e
  1. 4
      fe/PDA/api/index.js
  2. 4
      fe/PDA/pages/index/index.vue

4
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: {}
})

4
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() {

Loading…
Cancel
Save