Bladeren bron

销售漏斗

qymljy 2 jaren geleden
bovenliggende
commit
90d901c380
1 gewijzigde bestanden met toevoegingen van 9 en 3 verwijderingen
  1. 9 3
      src/views/mediaStatistics/modules/salesfunnel.vue

+ 9 - 3
src/views/mediaStatistics/modules/salesfunnel.vue

@@ -324,6 +324,8 @@ export default {
         if (dataList.length > 0){
           this.projectTile = dataList[0].data.stagename
           this.sa_projstagemagid = dataList[0].data.sa_projstagemagid
+          this.projectParam.content.pageNumber = 1
+          this.projectParam.content.pageSize = 10
           this.getProjectList()
         }
 
@@ -351,13 +353,17 @@ export default {
       dataList = res.data
       this.sa_projstagemagid = dataList[0].sa_projstagemagid
       this.projectTile = dataList[0].stagename
+      this.projectParam.content.pageNumber = 1
+      this.projectParam.content.pageSize = 10
       this.getProjectList()
       this.chartPie.changeData(res.data)
     },
     async getProjectList(){
-      this.projectParam.content.type = this.dataParam.type
-      this.projectParam.content.dataid = this.dataParam.dataid
-      this.projectParam.content.dateType = this.dataParam.dateType
+      console.log(this.dataParam)
+      console.log(this.projectParam)
+      this.projectParam.content.type = this.dataParam.content.type
+      this.projectParam.content.dataid = this.dataParam.content.dataid
+      this.projectParam.content.dateType = this.dataParam.content.dateType
       this.projectParam.content.sa_projstagemagid = this.sa_projstagemagid
       const res = await this.$api.requested(this.projectParam)
       this.projectList = res.data