|
|
@ -111,11 +111,24 @@ export default { |
|
|
loadMyPerformanceScoreReminder () { |
|
|
loadMyPerformanceScoreReminder () { |
|
|
const site = this.$store.state.user.site |
|
|
const site = this.$store.state.user.site |
|
|
const username = this.$store.state.user.name |
|
|
const username = this.$store.state.user.name |
|
|
myPerformanceScoreReminder({ site, username }).then(({ data }) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const params = { |
|
|
|
|
|
site, |
|
|
|
|
|
username, |
|
|
|
|
|
selectType: 3, |
|
|
|
|
|
createBy: username, |
|
|
|
|
|
statusList: (this.searchData && this.searchData.statusList && this.searchData.statusList.length > 0) |
|
|
|
|
|
? this.searchData.statusList |
|
|
|
|
|
: ['未开始', '进行中', '已完成'] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
myPerformanceScoreReminder(params) |
|
|
|
|
|
.then(({ data }) => { |
|
|
if (data && data.code === 0 && data.data) { |
|
|
if (data && data.code === 0 && data.data) { |
|
|
this.myPerformanceScoreCount = data.data.count != null ? data.data.count : 0 |
|
|
|
|
|
|
|
|
this.myPerformanceScoreCount = data.data.count || 0 |
|
|
} |
|
|
} |
|
|
}).catch(() => {}) |
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => {}) |
|
|
}, |
|
|
}, |
|
|
goMyPerformanceScoreList () { |
|
|
goMyPerformanceScoreList () { |
|
|
if (!this.myPerformanceScoreCount) return |
|
|
if (!this.myPerformanceScoreCount) return |
|
|
|