Compare commits
1 Commits
8e3d07d747
...
chenlianji
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b2e320e6d |
@@ -92,6 +92,13 @@ export default {
|
||||
data: time
|
||||
})
|
||||
},
|
||||
getProductOverview() {
|
||||
// 获取商品统计信息
|
||||
return request({
|
||||
url: `/${service_name}/mallProductInfo/getProductOverview`,
|
||||
method: 'get'
|
||||
})
|
||||
},
|
||||
exportExcel(page) {
|
||||
// 导出
|
||||
return request({
|
||||
|
||||
@@ -89,10 +89,10 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeAvatarUpload(file) {
|
||||
const isLt2M = file.size / 1024 < 50
|
||||
const isLt2M = file.size / 1024 < 500
|
||||
|
||||
if (!isLt2M) {
|
||||
this.$message.error('图片大小不能超过50KB! 请重新上传!')
|
||||
this.$message.error('图片大小不能超过500KB! 请重新上传!')
|
||||
}
|
||||
return isLt2M
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<el-col>
|
||||
<el-form-item label="广告图片" prop="positionImage">
|
||||
<div class="upLoadPicBox">
|
||||
<upload :photo="advertisement.positionImage" @success="uploadSuccess" tip="只能上传jpg/png格式文件,文件不能超过50kb"></upload>
|
||||
<upload :photo="advertisement.positionImage" @success="uploadSuccess" tip="只能上传jpg/png格式文件"></upload>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
@@ -25,8 +25,8 @@ module.exports = {
|
||||
proxy: {
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
// target: `cls`,
|
||||
// target: `http://192.168.0.6:38080`,
|
||||
target: `http://192.168.0.24:38080`,
|
||||
target: `http://192.168.0.254:38080`,
|
||||
// target: `http://192.168.0.24:38080`,
|
||||
// target: `http://192.168.1.83:38080`,
|
||||
// target: 'http://222.132.26.119:8081',
|
||||
// target: `https://www.xingoil.com/adminapi`,
|
||||
|
||||
Reference in New Issue
Block a user