Browse Source

作业看板调整

qymljy 1 year ago
parent
commit
19ec0f7531

+ 20 - 12
src/HDrpManagement/dataanalysis/index.vue

@@ -208,32 +208,40 @@ export default {
     },
     selectDep(val) {
       this.person = ''
+      this.isDep = true
       this.dataid = val[val.length -1]
       this.dataParam.content.type = 1
       this.dataParam.content.dataid = this.dataid
       this.tableParam.content.type = 1
       this.tableParam.content.dataid = this.dataid
-      this.$refs.assignment.queryList()
-      this.$refs.sales.queryList()
-      this.$refs.performance.queryList()
-      this.$refs.clue.queryAdd()
-      this.$refs.clue.queryUpdate()
-      this.$refs.clue.queryFollow()
+      this.$nextTick(()=>{
+        this.$refs.assignment.queryList()
+        this.$refs.sales.queryList()
+        this.$refs.performance.queryList()
+        this.$refs.clue.queryAdd()
+        this.$refs.clue.queryUpdate()
+        this.$refs.clue.queryFollow()
+      })
+
       /*this.$refs.selectPerson.clearCheckedNodes()*/
     },
     selectPerson(val){
       this.depment = ''
       this.dataid = val
+      this.isDep = false
       this.dataParam.content.type = 0
       this.dataParam.content.dataid = this.dataid
       this.tableParam.content.type = 0
       this.tableParam.content.dataid = this.dataid
-      this.$refs.assignment.queryList()
-      this.$refs.sales.queryList()
-      this.$refs.performance.queryList()
-      this.$refs.clue.queryAdd()
-      this.$refs.clue.queryUpdate()
-      this.$refs.clue.queryFollow()
+      this.$nextTick(()=>{
+        this.$refs.assignment.queryList()
+        this.$refs.sales.queryList()
+        this.$refs.performance.queryList()
+        this.$refs.clue.queryAdd()
+        this.$refs.clue.queryUpdate()
+        this.$refs.clue.queryFollow()
+      })
+
       /*this.$refs.selectdep.clearCheckedNodes()*/
     },
     async personData(){

+ 6 - 0
src/HDrpManagement/dataanalysis/modules/clue.vue

@@ -193,6 +193,8 @@ export default {
       this.clueAddParam.content.where.begindate = this.selectAdd ? '' :this.begindate
       this.clueAddParam.content.where.enddate = this.selectAdd ? '' : this.enddate
       this.clueAddParam.content.dateType = this.selectAdd
+      this.clueAddParam.content.dataid = this.dataid
+      this.clueAddParam.content.type = this.isDep?1:0
       this.clueAddParam.content.sort = [this.sort[0]]
       const res = await this.$api.requested(this.clueAddParam)
       this.listAdd = res.data
@@ -214,6 +216,8 @@ export default {
       this.clueUpdParam.content.where.begindate = this.selectUpd ? '' :this.begindate
       this.clueUpdParam.content.where.enddate = this.selectUpd ? '' : this.enddate
       this.clueUpdParam.content.dateType = this.selectUpd
+      this.clueUpdParam.content.dataid = this.dataid
+      this.clueUpdParam.content.type = this.isDep?1:0
       this.clueUpdParam.content.sort = [this.sort[0]]
       const res = await this.$api.requested(this.clueUpdParam)
       this.listUpdate = res.data
@@ -235,6 +239,8 @@ export default {
       this.clueFowParam.content.where.begindate = this.selectFow ? '' :this.begindate
       this.clueFowParam.content.where.enddate = this.selectFow ? '' : this.enddate
       this.clueFowParam.content.dateType = this.selectFow
+      this.clueFowParam.content.dataid = this.dataid
+      this.clueFowParam.content.type = this.isDep?1:0
       this.clueFowParam.content.sort = [this.sort[1]]
       const res = await this.$api.requested(this.clueFowParam)
       this.listFollow = res.data

+ 6 - 0
src/HDrpManagement/dataanalysis/modules/customer.vue

@@ -156,6 +156,8 @@ export default {
       this.param.content.where.begindate = this.selectAdd ? '' :this.begindate
       this.param.content.where.enddate = this.selectAdd ? '' : this.enddate
       this.param.content.dateType = this.selectAdd
+      this.param.content.dataid = this.dataid
+      this.param.content.type = this.isDep?1:0
       this.param.content.sort = [this.sort[0]]
       const res = await this.$api.requested(this.param)
       this.listAdd = res.data
@@ -177,6 +179,8 @@ export default {
       this.param.content.where.begindate = this.selectUpd ? '' :this.begindate
       this.param.content.where.enddate = this.selectUpd ? '' : this.enddate
       this.param.content.dateType = this.selectUpd
+      this.param.content.dataid = this.dataid
+      this.param.content.type = this.isDep?1:0
       this.param.content.sort = [this.sort[0]]
       const res = await this.$api.requested(this.param)
       this.listUpdate = res.data
@@ -198,6 +202,8 @@ export default {
       this.param.content.where.begindate = this.selectFow ? '' :this.begindate
       this.param.content.where.enddate = this.selectFow ? '' : this.enddate
       this.param.content.dateType = this.selectFow
+      this.param.content.dataid = this.dataid
+      this.param.content.type = this.isDep?1:0
       this.param.content.sort = [this.sort[1]]
       const res = await this.$api.requested(this.param)
       this.listFollow = res.data

+ 4 - 0
src/HDrpManagement/dataanalysis/modules/documents.vue

@@ -124,6 +124,8 @@ export default {
       this.param.content.where.begindate = this.quotationSelect ? '' :this.begindate
       this.param.content.where.enddate = this.quotationSelect ? '' : this.enddate
       this.param.content.dateType = this.quotationSelect
+      this.param.content.dataid = this.dataid
+      this.param.content.type = this.isDep?1:0
       this.param.content.sort = [this.sort[1]]
       const res = await this.$api.requested(this.param)
       this.quotationList = res.data
@@ -147,6 +149,8 @@ export default {
       this.param.content.where.begindate = this.contractSelect ? '' :this.begindate
       this.param.content.where.enddate = this.contractSelect ? '' : this.enddate
       this.param.content.dateType = this.contractSelect
+      this.param.content.dataid = this.dataid
+      this.param.content.type = this.isDep?1:0
       this.param.content.sort = [this.sort[1]]
       const res = await this.$api.requested(this.param)
       this.contractList = res.data

+ 6 - 0
src/HDrpManagement/dataanalysis/modules/project.vue

@@ -157,6 +157,8 @@ export default {
       this.param.content.where.begindate = this.selectAdd ? '' :this.begindate
       this.param.content.where.enddate = this.selectAdd ? '' : this.enddate
       this.param.content.dateType = this.selectAdd
+      this.param.content.dataid = this.dataid
+      this.param.content.type = this.isDep?1:0
       this.param.content.sort = [this.sort[0]]
       const res = await this.$api.requested(this.param)
       this.listAdd = res.data
@@ -178,6 +180,8 @@ export default {
       this.param.content.where.begindate = this.selectUpd ? '' :this.begindate
       this.param.content.where.enddate = this.selectUpd ? '' : this.enddate
       this.param.content.dateType = this.selectUpd
+      this.param.content.dataid = this.dataid
+      this.param.content.type = this.isDep?1:0
       this.param.content.sort = [this.sort[0]]
       const res = await this.$api.requested(this.param)
       this.listUpdate = res.data
@@ -199,6 +203,8 @@ export default {
       this.param.content.where.begindate = this.selectFow ? '' :this.begindate
       this.param.content.where.enddate = this.selectFow ? '' : this.enddate
       this.param.content.dateType = this.selectFow
+      this.param.content.dataid = this.dataid
+      this.param.content.type = this.isDep?1:0
       this.param.content.sort = [this.sort[1]]
       const res = await this.$api.requested(this.param)
       this.listFollow = res.data