|
@@ -30,11 +30,11 @@
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
|
|
+
|
|
<el-col :span="24" class="card-box">
|
|
<el-col :span="24" class="card-box">
|
|
<el-card>
|
|
<el-card>
|
|
<div slot="header">
|
|
<div slot="header">
|
|
- <span>积分类兑换放统计</span>
|
|
|
|
|
|
+ <span>代金券兑换数统计</span>
|
|
</div>
|
|
</div>
|
|
<div ref="usedmemory" style="height: 550px" />
|
|
<div ref="usedmemory" style="height: 550px" />
|
|
</el-card>
|
|
</el-card>
|
|
@@ -42,11 +42,11 @@
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+
|
|
<script>
|
|
<script>
|
|
import { redeemCountTyType } from "@/api/stat/index";
|
|
import { redeemCountTyType } from "@/api/stat/index";
|
|
import echarts from "echarts";
|
|
import echarts from "echarts";
|
|
-
|
|
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: "Cache",
|
|
name: "Cache",
|
|
dicts: ['user_tags'],
|
|
dicts: ['user_tags'],
|
|
@@ -78,6 +78,7 @@
|
|
async getUser() {
|
|
async getUser() {
|
|
const res = await redeemCountTyType(this.queryParams);
|
|
const res = await redeemCountTyType(this.queryParams);
|
|
const data = res?.data;
|
|
const data = res?.data;
|
|
|
|
+ console.log("redeem data:" + data);
|
|
const myChart = echarts.init(this.$refs.usedmemory);
|
|
const myChart = echarts.init(this.$refs.usedmemory);
|
|
const option = {
|
|
const option = {
|
|
xAxis: {
|
|
xAxis: {
|
|
@@ -85,6 +86,7 @@
|
|
data: (() => {
|
|
data: (() => {
|
|
let list = [];
|
|
let list = [];
|
|
data.map((item) => {
|
|
data.map((item) => {
|
|
|
|
+ console.log("redeem item:" + JSON.stringify(item));
|
|
list.push(item.name);
|
|
list.push(item.name);
|
|
});
|
|
});
|
|
return list;
|
|
return list;
|
|
@@ -112,9 +114,9 @@
|
|
]
|
|
]
|
|
};
|
|
};
|
|
myChart.setOption(option);
|
|
myChart.setOption(option);
|
|
-
|
|
|
|
|
|
+
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
- </script>
|
|
|
|
|
|
+ </script>
|