积分商城后台管理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

227 lines
6.8 KiB

<template>
<div class="page">
1 year ago
<el-row>
<el-col :span="24">
<el-card class="box-card">
<div slot="header">
<span class="card-title">订单数据</span>
</div>
<div class="flex">
<div class="orderData flex ac">
1 year ago
<div class="orderData-left flex ac fs">
<i style="font-size: 40px; color:#1ABC9C" class="el-icon-tickets"></i>
1 year ago
<div>
<div>今日订单总数</div>
<div>200</div>
</div>
</div>
1 year ago
<div class="orderData-right oneflex flex jw ae">
1 year ago
<div class="orderData-right-item">
<span>待核销订单</span>
<span>(10)</span>
</div>
<div class="orderData-right-item">
<span>已核销订单</span>
<span>(10)</span>
</div>
1 year ago
<div class="orderData-right-item mt">
1 year ago
<span>已完成订单</span>
<span>(10)</span>
</div>
1 year ago
<div class="orderData-right-item mt">
1 year ago
<span>待退款订单</span>
<span>(10)</span>
</div>
</div>
</div>
</div>
1 year ago
</el-card></el-col
>
1 year ago
</el-row>
1 year ago
<el-row :gutter="20">
<el-col :span="12">
1 year ago
<el-card class="box-card">
<div slot="header">
<span class="card-title">商品总览</span>
</div>
1 year ago
<div class="product-card flex js ac">
1 year ago
<div class="product-card-item">
<div class="number">100</div>
<div>已下架</div>
</div>
<div class="product-card-item">
<div class="number">100</div>
<div>已下架</div>
</div>
<div class="product-card-item">
<div class="number">100</div>
<div>已下架</div>
</div>
<div class="product-card-item">
<div class="number">100</div>
<div>已下架</div>
</div>
</div>
</el-card>
</el-col>
1 year ago
<el-col :span="12">
1 year ago
<el-card class="box-card">
<div slot="header">
1 year ago
<span class="card-title">用户总览</span>
1 year ago
</div>
1 year ago
<div class="product-card flex js ac">
1 year ago
<div class="product-card-item">
<div class="number">100</div>
1 year ago
<div>今日新增</div>
1 year ago
</div>
<div class="product-card-item">
<div class="number">100</div>
1 year ago
<div>昨日新增</div>
1 year ago
</div>
<div class="product-card-item">
<div class="number">100</div>
1 year ago
<div>本月新增</div>
1 year ago
</div>
<div class="product-card-item">
<div class="number">100</div>
1 year ago
<div>会员总数</div>
1 year ago
</div>
</div>
</el-card>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-card class="box-card">
<div slot="header">
<span class="card-title">订单统计</span>
</div>
<div class="orderStatistics-card flex">
1 year ago
<div class="orderStatistics-card-left flex column jc">
1 year ago
<div class="orderStatistics-card-left-item">
<div class="orderStatistics-card-left-item-title">本月订单总数</div>
<div class="orderStatistics-card-left-item-number">10000</div>
<div class="orderStatistics-card-left-item-title">10% 同比上周</div>
</div>
1 year ago
<div class="orderStatistics-card-left-item mt">
<div class="orderStatistics-card-left-item-title">本周订单数量</div>
1 year ago
<div class="orderStatistics-card-left-item-number">10000</div>
<div class="orderStatistics-card-left-item-title">10% 同比上周</div>
</div>
</div>
<div class="orderStatistics-card-right oneflex">
1 year ago
<div class="flex ac">
<div style="width: 100%;">近一周订单统计</div>
<el-date-picker
v-model="createTime"
type="daterange"
align="right"
unlink-panels
value-format="yyyy-MM-dd"
range-separator="~"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions"
>
</el-date-picker>
<el-button type="primary" @click="userSearchs" style="margin-left:10px">查询</el-button>
</div>
1 year ago
<div style="width: 100%; height:500px;margin-top:20px" id="chart"></div>
</div>
</div>
</el-card>
</el-col>
</el-row>
</div>
</template>
<script>
1 year ago
import echarts from 'echarts'
export default {
filters: {},
data() {
return {
1 year ago
myChart: null,
createTime: '',
pickerOptions: {
shortcuts: [
{
text: '今天',
onClick(picker) {
const end = new Date()
const start = new Date()
picker.$emit('pick', [start, end])
}
},
{
text: '最近一周',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
picker.$emit('pick', [start, end])
}
},
{
text: '最近一个月',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
picker.$emit('pick', [start, end])
}
}
]
}
}
},
created() {
1 year ago
this.init()
},
mounted() {
this.initChart('chart')
},
methods: {
1 year ago
initChart(id = 'chart') {
this.myChart = echarts.init(document.getElementById(id))
1 year ago
this.myChart.setOption({
color: ['#4370da'],
grid: {
x: 50,
y: 25,
x2: 30,
y2: 35
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['07-01周六', '07-02周日', '07-03周一', '07-04周二', '07-05周三', '07-06周四', '07-07周五']
},
yAxis: {
type: 'value'
},
series: [
{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
smooth: true,
areaStyle: {}
}
]
1 year ago
})
1 year ago
},
1 year ago
init() {}
}
}
</script>
1 year ago
<style scoped lang="scss">
@import './index.scss';
</style>