Compare commits
2 Commits
8e3d07d747
...
338cbe6990
| Author | SHA1 | Date | |
|---|---|---|---|
| 338cbe6990 | |||
|
|
2b2e320e6d |
@@ -92,6 +92,13 @@ export default {
|
|||||||
data: time
|
data: time
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getProductOverview() {
|
||||||
|
// 获取商品统计信息
|
||||||
|
return request({
|
||||||
|
url: `/${service_name}/mallProductInfo/getProductOverview`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
},
|
||||||
exportExcel(page) {
|
exportExcel(page) {
|
||||||
// 导出
|
// 导出
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -89,10 +89,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeAvatarUpload(file) {
|
beforeAvatarUpload(file) {
|
||||||
const isLt2M = file.size / 1024 < 50
|
const isLt2M = file.size / 1024 < 500
|
||||||
|
|
||||||
if (!isLt2M) {
|
if (!isLt2M) {
|
||||||
this.$message.error('图片大小不能超过50KB! 请重新上传!')
|
this.$message.error('图片大小不能超过500KB! 请重新上传!')
|
||||||
}
|
}
|
||||||
return isLt2M
|
return isLt2M
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,23 +45,9 @@
|
|||||||
<span class="card-title">商品总览</span>
|
<span class="card-title">商品总览</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="product-card flex js ac">
|
<div class="product-card flex js ac">
|
||||||
<div class="product-card-item">
|
<div class="product-card-item" v-for="(item, index) in productList" :key="index">
|
||||||
<div class="number">100</div>
|
<div class="number">{{ item.currentNum }}</div>
|
||||||
<div>已下架</div>
|
<div>{{ item.productStatus }}</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -230,7 +216,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
productList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -244,6 +231,7 @@ export default {
|
|||||||
|
|
||||||
this.getMainDataOne()
|
this.getMainDataOne()
|
||||||
this.getMainDataTwo(sevenDaysAgo, DaysAgo)
|
this.getMainDataTwo(sevenDaysAgo, DaysAgo)
|
||||||
|
this.getProductOverview()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 表格搜索
|
// 表格搜索
|
||||||
@@ -284,6 +272,13 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
async getProductOverview() {
|
||||||
|
await orderInfoApi.getProductOverview().then(res => {
|
||||||
|
if ((res.code = 20000)) {
|
||||||
|
this.productList = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
timeBefore(date) {
|
timeBefore(date) {
|
||||||
if (!date) {
|
if (!date) {
|
||||||
date = new Date()
|
date = new Date()
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<el-col>
|
<el-col>
|
||||||
<el-form-item label="广告图片" prop="positionImage">
|
<el-form-item label="广告图片" prop="positionImage">
|
||||||
<div class="upLoadPicBox">
|
<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>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
[process.env.VUE_APP_BASE_API]: {
|
[process.env.VUE_APP_BASE_API]: {
|
||||||
// target: `cls`,
|
// target: `cls`,
|
||||||
// target: `http://192.168.0.6:38080`,
|
target: `http://192.168.0.254:38080`,
|
||||||
target: `http://192.168.0.24:38080`,
|
// target: `http://192.168.0.24:38080`,
|
||||||
// target: `http://192.168.1.83:38080`,
|
// target: `http://192.168.1.83:38080`,
|
||||||
// target: 'http://222.132.26.119:8081',
|
// target: 'http://222.132.26.119:8081',
|
||||||
// target: `https://www.xingoil.com/adminapi`,
|
// target: `https://www.xingoil.com/adminapi`,
|
||||||
|
|||||||
Reference in New Issue
Block a user