|
@@ -184,8 +184,8 @@
|
|
|
},
|
|
|
mounted() {
|
|
|
this.$nextTick(() => {
|
|
|
+ console.log('nexttick')
|
|
|
this.init();
|
|
|
- this.getProjectCount();
|
|
|
this.checkCreateProjectAuth();
|
|
|
this.checkAcceptTaskAuth()
|
|
|
})
|
|
@@ -207,6 +207,7 @@
|
|
|
this.showLoading()
|
|
|
Http.get(Apis.PAGE.MY_CROWD_TEST_PAGE.replace('{userId}', this.user.userVO.id)).then((res) => {
|
|
|
this.hideLoading()
|
|
|
+ this.statisticData = res;
|
|
|
this.processProjectNoticeCount = res.processProjectNoticeCount == null ? 0 : res.processProjectNoticeCount
|
|
|
this.myProjectNoticeCount = res.myProjectNoticeCount == null ? 0 : res.myProjectNoticeCount
|
|
|
this.acceptableProjectNoticeCount = res.acceptableProjectNoticeCount == null ? 0 : res.acceptableProjectNoticeCount
|
|
@@ -330,11 +331,6 @@
|
|
|
}
|
|
|
console.log(event)
|
|
|
},
|
|
|
- getProjectCount() {
|
|
|
- Http.get(`/api/common/mycrowd/${this.user.userVO.id}`).then((res) => {
|
|
|
- this.statisticData = res;
|
|
|
- })
|
|
|
- },
|
|
|
//检查是否有发包权限
|
|
|
checkCreateProjectAuth() {
|
|
|
if (this.isLogin) {
|