4 changed files with 76 additions and 12 deletions
@ -0,0 +1,13 @@ |
|||||||
|
import request from '@/router/axios'; |
||||||
|
//列表
|
||||||
|
export const getUserClick = (current, size, params) => { |
||||||
|
return request({ |
||||||
|
url: '/api/iot-sim/orders/getUserClick', |
||||||
|
method: 'get', |
||||||
|
params: { |
||||||
|
...params, |
||||||
|
current, |
||||||
|
size, |
||||||
|
} |
||||||
|
}) |
||||||
|
} |
@ -0,0 +1,42 @@ |
|||||||
|
<template> |
||||||
|
<basic-container> |
||||||
|
<avue-data-tabs :option="option"></avue-data-tabs> |
||||||
|
</basic-container> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { getUserClick } from "@/api/operator/statisticalsms"; |
||||||
|
export default { |
||||||
|
data() { |
||||||
|
return { |
||||||
|
option: { |
||||||
|
data: [ |
||||||
|
{ |
||||||
|
title: "信息点击数", |
||||||
|
count: 0, |
||||||
|
allcount: 0, |
||||||
|
text: "当前信息点击数", |
||||||
|
color: "rgb(27, 201, 142)", |
||||||
|
key: "数", |
||||||
|
}, |
||||||
|
], |
||||||
|
}, |
||||||
|
}; |
||||||
|
}, |
||||||
|
created() { |
||||||
|
this.getClickNum(); |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
getClickNum() { |
||||||
|
getUserClick().then((res) => { |
||||||
|
if (res.data.code == 200) { |
||||||
|
this.option.data[0].count = res.data.data; |
||||||
|
this.option.data[0].allcount = res.data.data; |
||||||
|
} |
||||||
|
}); |
||||||
|
}, |
||||||
|
}, |
||||||
|
}; |
||||||
|
</script> |
||||||
|
|
||||||
|
<style></style> |
Loading…
Reference in new issue