mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 17:05:54 +08:00
refactor(ui): 替换iView为TDesign组件库并优化相关代码
feat(coupon): 新增优惠券详情页面 feat(api): 添加会员评价状态更新和删除接口 perf(pagination): 统一分页大小选项为[20, 50, 100] style(theme): 移除旧主题文件并更新样式类名 fix(menu): 修复菜单组件兼容性问题 chore(deps): 更新package.json依赖项 docs(modal): 添加全局Modal组件兼容层
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
<Card class="card fixed-bottom">
|
||||
<t-card class="card fixed-bottom">
|
||||
<affixTime @selected="clickBreadcrumb" />
|
||||
</Card>
|
||||
<Card class="card">
|
||||
</t-card>
|
||||
<t-card class="card">
|
||||
<div>
|
||||
<h4>流量概况</h4>
|
||||
|
||||
@@ -29,21 +29,21 @@
|
||||
|
||||
</div>
|
||||
|
||||
</Card>
|
||||
</t-card>
|
||||
|
||||
<Card class="card">
|
||||
<t-card class="card">
|
||||
<div>
|
||||
<h4>流量趋势</h4>
|
||||
<div id="orderChart"></div>
|
||||
</div>
|
||||
</Card>
|
||||
</t-card>
|
||||
|
||||
<Card class="card">
|
||||
<t-card class="card">
|
||||
<div>
|
||||
<h4>客户增长报表</h4>
|
||||
<Table class="table" stripe :columns="columns" :data="data"></Table>
|
||||
<t-table class="table" :columns="tColumns" :data="data" rowKey="date"></t-table>
|
||||
</div>
|
||||
</Card>
|
||||
</t-card>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -110,6 +110,15 @@ export default {
|
||||
data: [], // 客户增长报表数据
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
tColumns() {
|
||||
return (this.columns || []).map(c => {
|
||||
const nc = Object.assign({}, c)
|
||||
if (nc.key && !nc.colKey) { nc.colKey = nc.key; delete nc.key }
|
||||
return nc
|
||||
})
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
params: {
|
||||
handler(val) {
|
||||
|
||||
Reference in New Issue
Block a user