168 lines
3.3 KiB
Vue
168 lines
3.3 KiB
Vue
<template>
|
|
<div class="dashboard-editor-container bsnes-index-cont">
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
// import { info } from '@/api/dashboard'
|
|
import CountTo from 'vue-count-to'
|
|
// import baseInfo from './dashboard/components/baseInfo';
|
|
// import gridMenu from './dashboard/components/gridMenu';
|
|
// import visitChart from './dashboard/components/visitChart';
|
|
// import userChart from './dashboard/components/userChart';
|
|
|
|
export default {
|
|
components: {
|
|
// CountTo, baseInfo, gridMenu, visitChart, userChart
|
|
},
|
|
data() {
|
|
return {
|
|
userTotal: 0,
|
|
goodsTotal: 0,
|
|
productTotal: 0,
|
|
orderTotal: 0
|
|
}
|
|
},
|
|
created() {
|
|
// info().then(response => {
|
|
// this.userTotal = response.data.data.userTotal
|
|
// this.goodsTotal = response.data.data.goodsTotal
|
|
// this.productTotal = response.data.data.productTotal
|
|
// this.orderTotal = response.data.data.orderTotal
|
|
// })
|
|
},
|
|
methods: {
|
|
handleSetLineChartData(type) {
|
|
this.$emit('handleSetLineChartData', type)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
.dashboard-editor-container {
|
|
padding: 32px;
|
|
background-color: rgb(240, 242, 245);
|
|
.chart-wrapper {
|
|
background: #fff;
|
|
padding: 16px 16px 0;
|
|
margin-bottom: 32px;
|
|
}
|
|
}
|
|
|
|
.bsnes-index-cont .tjpnl {
|
|
padding: 20px 0 10px 0;
|
|
}
|
|
.bsnes-index-cont .tjpnl .dz {
|
|
width: 10%;
|
|
text-align: right;
|
|
}
|
|
.bsnes-index-cont .tjpnl .titem {
|
|
display: block;
|
|
width: 20%;
|
|
text-align: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
.bsnes-index-cont .tjpnl .titem .num {
|
|
color: #1C96EC;
|
|
font-size: 24px;
|
|
}
|
|
.bsnes-index-cont .tjpnl .titem .err {
|
|
color: #FF3E3E;
|
|
}
|
|
.bsnes-index-cont .tjpnl .titem .sta {
|
|
margin-top: 10px;
|
|
font-size: 15px;
|
|
color: #777;
|
|
}
|
|
|
|
.col-left {
|
|
margin-right: 25px;
|
|
font-size: 24px;
|
|
color: #4799ff;
|
|
|
|
.icon-body {
|
|
width: 58px;
|
|
height: 58px;
|
|
border-radius: 50%;
|
|
background-color: #eff6ff;
|
|
}
|
|
}
|
|
|
|
.panel-group {
|
|
margin-top: 18px;
|
|
|
|
.card-panel-col{
|
|
margin-bottom: 32px;
|
|
}
|
|
.card-panel {
|
|
height: 108px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
color: #666;
|
|
background: #fff;
|
|
box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
|
|
border-color: rgba(0, 0, 0, .05);
|
|
&:hover {
|
|
.card-panel-icon-wrapper {
|
|
color: #fff;
|
|
}
|
|
.icon-people {
|
|
background: #40c9c6;
|
|
}
|
|
.icon-message {
|
|
background: #36a3f7;
|
|
}
|
|
.icon-money {
|
|
background: #f4516c;
|
|
}
|
|
.icon-shoppingCard {
|
|
background: #34bfa3
|
|
}
|
|
}
|
|
.icon-people {
|
|
color: #40c9c6;
|
|
}
|
|
.icon-message {
|
|
color: #36a3f7;
|
|
}
|
|
.icon-money {
|
|
color: #f4516c;
|
|
}
|
|
.icon-shoppingCard {
|
|
color: #34bfa3
|
|
}
|
|
.card-panel-icon-wrapper {
|
|
float: left;
|
|
margin: 14px 0 0 14px;
|
|
padding: 16px;
|
|
transition: all 0.38s ease-out;
|
|
border-radius: 6px;
|
|
}
|
|
.card-panel-icon {
|
|
float: left;
|
|
font-size: 48px;
|
|
}
|
|
.card-panel-description {
|
|
float: right;
|
|
font-weight: bold;
|
|
margin: 26px;
|
|
margin-left: 0px;
|
|
.card-panel-text {
|
|
line-height: 18px;
|
|
color: rgba(0, 0, 0, 0.45);
|
|
font-size: 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.card-panel-num {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
</style>
|