clientMixin.js
486 Bytes
import { customer } from '@/api'
export default {
data() {
return {
now: new Date().format('yyyy-MM-dd hh:mm:ss')
}
},
created() {
console.log('测试')
this.getClientData()
},
methods: {
getClientData() {
let params = {
'req.corporateGroupName': '广汇',
'req.queryItem': 'age',
'req.queryTime': this.now
}
customer.overalldistribution(params).then(res => {
console.log(res)
})
}
}
}