|
@@ -2,7 +2,7 @@
|
|
<div>
|
|
<div>
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
- <chart-card title="总销售额" total="¥126,560">
|
|
|
|
|
|
+ <chart-card :loading="loading" title="总销售额" total="¥126,560">
|
|
<a-tooltip title="指标说明" slot="action">
|
|
<a-tooltip title="指标说明" slot="action">
|
|
<a-icon type="info-circle-o" />
|
|
<a-icon type="info-circle-o" />
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
@@ -18,11 +18,11 @@
|
|
<span style="color: #52c41a; font-size: 12px"><a-icon type="caret-down" /></span>
|
|
<span style="color: #52c41a; font-size: 12px"><a-icon type="caret-down" /></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div slot="footer">日均销售额 <span>¥ 234.56</span></div>
|
|
|
|
|
|
+ <div slot="footer">日均销售额<span>¥ 234.56</span></div>
|
|
</chart-card>
|
|
</chart-card>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
- <chart-card title="总销售额" total="¥126,560">
|
|
|
|
|
|
+ <chart-card :loading="loading" title="总销售额" total="¥126,560">
|
|
<a-tooltip title="指标说明" slot="action">
|
|
<a-tooltip title="指标说明" slot="action">
|
|
<a-icon type="info-circle-o" />
|
|
<a-icon type="info-circle-o" />
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
@@ -33,7 +33,7 @@
|
|
</chart-card>
|
|
</chart-card>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
- <chart-card title="总销售额" total="¥126,560">
|
|
|
|
|
|
+ <chart-card :loading="loading" title="总销售额" total="¥126,560">
|
|
<a-tooltip title="指标说明" slot="action">
|
|
<a-tooltip title="指标说明" slot="action">
|
|
<a-icon type="info-circle-o" />
|
|
<a-icon type="info-circle-o" />
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
@@ -49,11 +49,11 @@
|
|
<span style="color: #52c41a; font-size: 12px"><a-icon type="caret-down" /></span>
|
|
<span style="color: #52c41a; font-size: 12px"><a-icon type="caret-down" /></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div slot="footer">日均销售额 <span>¥ 234.56</span></div>
|
|
|
|
|
|
+ <div slot="footer">日均销售额<span>¥ 234.56</span></div>
|
|
</chart-card>
|
|
</chart-card>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
- <chart-card title="总销售额" total="¥126,560">
|
|
|
|
|
|
+ <chart-card :loading="loading" title="总销售额" total="¥126,560">
|
|
<a-tooltip title="指标说明" slot="action">
|
|
<a-tooltip title="指标说明" slot="action">
|
|
<a-icon type="info-circle-o" />
|
|
<a-icon type="info-circle-o" />
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
@@ -69,12 +69,12 @@
|
|
<span style="color: #52c41a; font-size: 12px"><a-icon type="caret-down" /></span>
|
|
<span style="color: #52c41a; font-size: 12px"><a-icon type="caret-down" /></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div slot="footer">日均销售额 <span>¥ 234.56</span></div>
|
|
|
|
|
|
+ <div slot="footer">日均销售额<span>¥ 234.56</span></div>
|
|
</chart-card>
|
|
</chart-card>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
- <a-card :bordered="false" :body-style="{padding: '0'}">
|
|
|
|
|
|
+ <a-card :loading="loading" :bordered="false" :body-style="{padding: '0'}">
|
|
<div class="salesCard">
|
|
<div class="salesCard">
|
|
<a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}">
|
|
<a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}">
|
|
<div class="extra-wrapper" slot="tabBarExtraContent">
|
|
<div class="extra-wrapper" slot="tabBarExtraContent">
|
|
@@ -84,7 +84,7 @@
|
|
<a>本月</a>
|
|
<a>本月</a>
|
|
<a>本年</a>
|
|
<a>本年</a>
|
|
</div>
|
|
</div>
|
|
- <a-range-picker :style="{width: '256px'}"></a-range-picker>
|
|
|
|
|
|
+ <a-range-picker :style="{width: '256px'}" />
|
|
</div>
|
|
</div>
|
|
<a-tab-pane loading="true" tab="销售额" key="1">
|
|
<a-tab-pane loading="true" tab="销售额" key="1">
|
|
<a-row>
|
|
<a-row>
|
|
@@ -110,16 +110,40 @@
|
|
|
|
|
|
<a-row :gutter="12">
|
|
<a-row :gutter="12">
|
|
<a-col :xl="12" :lg="24" :md="24" :sm="24" :xs="24">
|
|
<a-col :xl="12" :lg="24" :md="24" :sm="24" :xs="24">
|
|
- <a-card :bordered="false" title="Card Title" :style="{ marginTop: '24px' }">
|
|
|
|
- <a href="#" slot="extra">more</a>
|
|
|
|
|
|
+ <a-card :loading="loading" :bordered="false" title="线上热门搜索" :style="{ marginTop: '24px' }">
|
|
|
|
+ <a-dropdown :trigger="['click']" placement="bottomLeft" slot="extra">
|
|
|
|
+ <a class="ant-dropdown-link" href="#">
|
|
|
|
+ <a-icon type="ellipsis" />
|
|
|
|
+ </a>
|
|
|
|
+ <a-menu slot="overlay">
|
|
|
|
+ <a-menu-item>
|
|
|
|
+ <a href="javascript:;">操作一</a>
|
|
|
|
+ </a-menu-item>
|
|
|
|
+ <a-menu-item>
|
|
|
|
+ <a href="javascript:;">操作二</a>
|
|
|
|
+ </a-menu-item>
|
|
|
|
+ </a-menu>
|
|
|
|
+ </a-dropdown>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
</a-card>
|
|
</a-card>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xl="12" :lg="24" :md="24" :sm="24" :xs="24">
|
|
<a-col :xl="12" :lg="24" :md="24" :sm="24" :xs="24">
|
|
- <a-card :bordered="false" title="Card Title" :style="{ marginTop: '24px' }">
|
|
|
|
- <a href="#" slot="extra">more</a>
|
|
|
|
|
|
+ <a-card :loading="loading" :bordered="false" title="销售额类别占比" :style="{ marginTop: '24px' }">
|
|
|
|
+ <a-dropdown :trigger="['click']" placement="bottomLeft" slot="extra">
|
|
|
|
+ <a class="ant-dropdown-link" href="#">
|
|
|
|
+ <a-icon type="ellipsis" />
|
|
|
|
+ </a>
|
|
|
|
+ <a-menu slot="overlay">
|
|
|
|
+ <a-menu-item>
|
|
|
|
+ <a href="javascript:;">操作一</a>
|
|
|
|
+ </a-menu-item>
|
|
|
|
+ <a-menu-item>
|
|
|
|
+ <a href="javascript:;">操作二</a>
|
|
|
|
+ </a-menu-item>
|
|
|
|
+ </a-menu>
|
|
|
|
+ </a-dropdown>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
<p>card content</p>
|
|
@@ -130,30 +154,27 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import moment from "moment"
|
|
import ChartCard from '@/components/ChartCard'
|
|
import ChartCard from '@/components/ChartCard'
|
|
import ACol from "ant-design-vue/es/grid/Col"
|
|
import ACol from "ant-design-vue/es/grid/Col"
|
|
import ATooltip from "ant-design-vue/es/tooltip/Tooltip"
|
|
import ATooltip from "ant-design-vue/es/tooltip/Tooltip"
|
|
- import ADatePicker from 'ant-design-vue/es/date-picker'
|
|
|
|
import MiniArea from '@/components/chart/MiniArea'
|
|
import MiniArea from '@/components/chart/MiniArea'
|
|
import RankList from '@/components/chart/RankList'
|
|
import RankList from '@/components/chart/RankList'
|
|
import Bar from '@/components/chart/Bar'
|
|
import Bar from '@/components/chart/Bar'
|
|
|
|
|
|
- const ARangePicker = ADatePicker.RangePicker
|
|
|
|
const rankList = []
|
|
const rankList = []
|
|
for (let i = 0; i < 7; i++) {
|
|
for (let i = 0; i < 7; i++) {
|
|
rankList.push({
|
|
rankList.push({
|
|
- name: '桃源村' + (i+1) + '号店',
|
|
|
|
|
|
+ name: '白鹭岛 ' + (i+1) + ' 号店',
|
|
total: 1234.56 - i * 100
|
|
total: 1234.56 - i * 100
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
export default {
|
|
export default {
|
|
name: "Analysis",
|
|
name: "Analysis",
|
|
components: {
|
|
components: {
|
|
ATooltip,
|
|
ATooltip,
|
|
ACol,
|
|
ACol,
|
|
- ARangePicker,
|
|
|
|
ChartCard,
|
|
ChartCard,
|
|
MiniArea,
|
|
MiniArea,
|
|
RankList,
|
|
RankList,
|
|
@@ -161,8 +182,15 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ moment,
|
|
|
|
+ loading: true,
|
|
rankList
|
|
rankList
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.loading = !this.loading
|
|
|
|
+ }, 1000)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -170,10 +198,13 @@
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.extra-wrapper {
|
|
.extra-wrapper {
|
|
line-height: 55px;
|
|
line-height: 55px;
|
|
|
|
+ padding-right: 24px;
|
|
|
|
+
|
|
.extra-item{
|
|
.extra-item{
|
|
display: inline-block;
|
|
display: inline-block;
|
|
margin-right: 24px;
|
|
margin-right: 24px;
|
|
- a{
|
|
|
|
|
|
+
|
|
|
|
+ a {
|
|
margin-left: 24px;
|
|
margin-left: 24px;
|
|
}
|
|
}
|
|
}
|
|
}
|