clientMixin.js
496 Bytes
export default {
data() {
return {
now: new Date().format('yyyy-MM-dd')
}
},
created() {
this.getClientData()
},
methods: {
getClientData() {
const params = {
req: {
corporateGroupName: '广汇',
queryItem: 'age',
queryTime: this.now,
queryType: 0
}
}
this.api.customer.overalldistribution(params).then(res => {
console.log(res)
})
}
}
}