|
|
|
@ -45,23 +45,9 @@ |
|
|
|
|
<span class="card-title">商品总览</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="product-card flex js ac"> |
|
|
|
|
<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 class="product-card-item" v-for="(item, index) in productList" :key="index"> |
|
|
|
|
<div class="number">{{ item.currentNum }}</div> |
|
|
|
|
<div>{{ item.productStatus }}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
@ -230,7 +216,8 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
productList: [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
@ -244,6 +231,7 @@ export default { |
|
|
|
|
|
|
|
|
|
this.getMainDataOne() |
|
|
|
|
this.getMainDataTwo(sevenDaysAgo, DaysAgo) |
|
|
|
|
this.getProductOverview() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 表格搜索 |
|
|
|
@ -284,6 +272,13 @@ export default { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
async getProductOverview() { |
|
|
|
|
await orderInfoApi.getProductOverview().then(res => { |
|
|
|
|
if ((res.code = 20000)) { |
|
|
|
|
this.productList = res.data |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
timeBefore(date) { |
|
|
|
|
if (!date) { |
|
|
|
|
date = new Date() |
|
|
|
|