This commit is contained in:
shijingjing
2022-02-07 15:38:27 +08:00
parent 17ecb93897
commit 2d4fe614c8
3 changed files with 45 additions and 43 deletions

View File

@@ -39,7 +39,7 @@
<h3>{{ item.value }}</h3>
<p>{{ item.label }}</p>
</div>
<AiEmpty v-if="!statisticsListMon.length" />
<AiEmpty v-if="!statisticsListMon.length"/>
</div>
</div>
</div>
@@ -122,11 +122,12 @@ export default {
getStatistic() {
this.statisticsList = []
this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=0`).then((res) => {
console.log(res);
if (res.code == 0) {
for (let i in res.data) {
for (let i in res.data.map) {
var obj = {
label: i,
value: res.data[i],
value: res.data.map[i],
}
this.statisticsList.push(obj)
}
@@ -136,11 +137,12 @@ export default {
getStatisticMon() {
this.statisticsListMon = []
this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=1`).then((res) => {
console.log(res);
if (res.code == 0) {
for (let i in res.data) {
for (let i in res.data.monthMap) {
var obj = {
label: i,
value: res.data[i],
value: res.data.monthMap[i],
}
this.statisticsListMon.push(obj)
}