Commit 29488ba8 by 王志慧

客户

1 parent c9ab2b56
import Request from './request'
var request = new Request()
const client = {
// 获取品牌年龄/性别/购车年限
overalldistribution: params => {
return request.get('brand/overalldistribution', params)
}
}
export default client
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* @LastEditTime: 2021-06-17 18:23:27 * @LastEditTime: 2021-06-17 18:23:27
*/ */
import wwbenchApi from './wwbenchApi' import wwbenchApi from './wwbenchApi'
import customer from './customer'
export { export {
wwbenchApi, wwbenchApi,
customer
} }
\ No newline at end of file \ No newline at end of file
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)
})
}
}
}
import changeMixin from './changeMixin' import changeMixin from './changeMixin'
import clientMixin from './clientMixin'
export { export {
changeMixin changeMixin,
clientMixin
} }
\ No newline at end of file \ No newline at end of file
...@@ -19,8 +19,10 @@ ...@@ -19,8 +19,10 @@
</template> </template>
<script> <script>
import { clientMixin } from '../../mixins/index'
export default { export default {
name: 'Age', name: 'Age',
mixins: [clientMixin],
data() { data() {
return { return {
chart: { chart: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!