|
|
@ -270,13 +270,16 @@ export default { |
|
|
}, |
|
|
}, |
|
|
refreshTodoPendingCount () { |
|
|
refreshTodoPendingCount () { |
|
|
const site = this.$store.state.user.site |
|
|
const site = this.$store.state.user.site |
|
|
|
|
|
const userId = this.$store.state.user.id |
|
|
if (!site) { |
|
|
if (!site) { |
|
|
this.todoPendingCount = 0 |
|
|
this.todoPendingCount = 0 |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
const query = { |
|
|
const query = { |
|
|
site: site, |
|
|
site: site, |
|
|
buNo: '' |
|
|
|
|
|
|
|
|
buNo: '', |
|
|
|
|
|
userId: userId, |
|
|
|
|
|
matchRoleOnly: 'Y' |
|
|
} |
|
|
} |
|
|
getTodoCenterStats(query).then(({ data }) => { |
|
|
getTodoCenterStats(query).then(({ data }) => { |
|
|
if (data && data.code === 200 && data.resultMap) { |
|
|
if (data && data.code === 200 && data.resultMap) { |
|
|
|