|
@@ -10,7 +10,7 @@
|
|
|
<quickDate @selectQuick="selectQuickAdd"></quickDate>
|
|
<quickDate @selectQuick="selectQuickAdd"></quickDate>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <tableLayout style="margin-top: 10px" :layout="tablecolsAdd" :data="listAdd" :opwidth="200" :custom="true" :height="tableHeight">
|
|
|
|
|
|
|
+ <tableLayout style="margin-top: 10px" :layout="tablecolsAdd" :data="listAdd" :opwidth="200" :width="true" :custom="true" :height="tableHeight">
|
|
|
<template v-slot:customcol="scope">
|
|
<template v-slot:customcol="scope">
|
|
|
<p>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
<p>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
|
|
|
</template>
|
|
</template>
|
|
@@ -98,7 +98,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import quickDate from "@/HDrpManagement/dataanalysis/components/quickDate";
|
|
import quickDate from "@/HDrpManagement/dataanalysis/components/quickDate";
|
|
|
-import tableLayout from '@/components/table/index6'
|
|
|
|
|
|
|
+import tableLayout from '@/components/table/index9'
|
|
|
export default {
|
|
export default {
|
|
|
name: "customer",
|
|
name: "customer",
|
|
|
props:['param','isDep','dataid','isPerson'],
|
|
props:['param','isDep','dataid','isPerson'],
|
|
@@ -119,7 +119,8 @@ export default {
|
|
|
currentPageFollow:0,
|
|
currentPageFollow:0,
|
|
|
totalFollow:0,
|
|
totalFollow:0,
|
|
|
begindate:'',
|
|
begindate:'',
|
|
|
- enddate:''
|
|
|
|
|
|
|
+ enddate:'',
|
|
|
|
|
+ select:'周'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
@@ -127,8 +128,9 @@ export default {
|
|
|
/*this.isDep ? this.param.content.type = 1: this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
/*this.isDep ? this.param.content.type = 1: this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
|
this.param.content.dataType = 4
|
|
this.param.content.dataType = 4
|
|
|
/* this.param.content.dataid = this.dataid*/
|
|
/* this.param.content.dataid = this.dataid*/
|
|
|
- this.param.content.where.begindate = this.begindate
|
|
|
|
|
- this.param.content.where.enddate = this.enddate
|
|
|
|
|
|
|
+ this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
|
|
+ this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
|
|
+ this.param.content.dateType = this.select
|
|
|
const res = await this.$api.requested(this.param)
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listAdd = res.data
|
|
this.listAdd = res.data
|
|
|
this.currentPageAdd = res.pageNumber
|
|
this.currentPageAdd = res.pageNumber
|
|
@@ -148,8 +150,9 @@ export default {
|
|
|
/* this.isDep ? this.param.content.type = 1: this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
/* this.isDep ? this.param.content.type = 1: this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
|
this.param.content.dataType = 5
|
|
this.param.content.dataType = 5
|
|
|
/*this.param.content.dataid = this.dataid*/
|
|
/*this.param.content.dataid = this.dataid*/
|
|
|
- this.param.content.where.begindate = this.begindate
|
|
|
|
|
- this.param.content.where.enddate = this.enddate
|
|
|
|
|
|
|
+ this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
|
|
+ this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
|
|
+ this.param.content.dateType = this.select
|
|
|
const res = await this.$api.requested(this.param)
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listUpdate = res.data
|
|
this.listUpdate = res.data
|
|
|
this.currentPageUpdate = res.pageNumber
|
|
this.currentPageUpdate = res.pageNumber
|
|
@@ -169,8 +172,9 @@ export default {
|
|
|
/* this.isDep ? this.param.content.type = 1: this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
/* this.isDep ? this.param.content.type = 1: this.isPerson ? this.param.content.type = 0 : this.param.content.type = ''*/
|
|
|
this.param.content.dataType = 6
|
|
this.param.content.dataType = 6
|
|
|
/* this.param.content.dataid = this.dataid*/
|
|
/* this.param.content.dataid = this.dataid*/
|
|
|
- this.param.content.where.begindate = this.begindate
|
|
|
|
|
- this.param.content.where.enddate = this.enddate
|
|
|
|
|
|
|
+ this.param.content.where.begindate = this.select ? '' :this.begindate
|
|
|
|
|
+ this.param.content.where.enddate = this.select ? '' : this.enddate
|
|
|
|
|
+ this.param.content.dateType = this.select
|
|
|
const res = await this.$api.requested(this.param)
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.listFollow = res.data
|
|
this.listFollow = res.data
|
|
|
this.currentPageFollow = res.pageNumber
|
|
this.currentPageFollow = res.pageNumber
|
|
@@ -187,19 +191,22 @@ export default {
|
|
|
this.queryFollow()
|
|
this.queryFollow()
|
|
|
},
|
|
},
|
|
|
/*日期筛选*/
|
|
/*日期筛选*/
|
|
|
- selectQuickAdd(begindate,enddate){
|
|
|
|
|
|
|
+ selectQuickAdd(begindate,enddate,select){
|
|
|
this.begindate = begindate
|
|
this.begindate = begindate
|
|
|
this.enddate = enddate
|
|
this.enddate = enddate
|
|
|
|
|
+ this.select = select
|
|
|
this.queryAdd(this.param.content.pageNumber = 1)
|
|
this.queryAdd(this.param.content.pageNumber = 1)
|
|
|
},
|
|
},
|
|
|
- selectQuickUpd(begindate,enddate){
|
|
|
|
|
|
|
+ selectQuickUpd(begindate,enddate,select){
|
|
|
this.begindate = begindate
|
|
this.begindate = begindate
|
|
|
this.enddate = enddate
|
|
this.enddate = enddate
|
|
|
|
|
+ this.select = select
|
|
|
this.queryUpdate(this.param.content.pageNumber = 1)
|
|
this.queryUpdate(this.param.content.pageNumber = 1)
|
|
|
},
|
|
},
|
|
|
- selectQuickFow(begindate,enddate){
|
|
|
|
|
|
|
+ selectQuickFow(begindate,enddate,select){
|
|
|
this.begindate = begindate
|
|
this.begindate = begindate
|
|
|
this.enddate = enddate
|
|
this.enddate = enddate
|
|
|
|
|
+ this.select = select
|
|
|
this.queryFollow(this.param.content.pageNumber = 1)
|
|
this.queryFollow(this.param.content.pageNumber = 1)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|