From 2b2e320e6d943966c422a9c5b2311e38fb5eacda Mon Sep 17 00:00:00 2001 From: xk_chenlianjie <15255791639@163.com> Date: Wed, 28 Feb 2024 15:50:52 +0800 Subject: [PATCH] 1111 --- src/api/order/orderInfo.js | 7 +++++ src/components/Upload/index.vue | 4 +-- src/views/dashboard/admin/index.vue | 31 ++++++++----------- .../advertisement/advertisementAdd.vue | 2 +- vue.config.js | 4 +-- 5 files changed, 25 insertions(+), 23 deletions(-) diff --git a/src/api/order/orderInfo.js b/src/api/order/orderInfo.js index fe07c14..40e1784 100644 --- a/src/api/order/orderInfo.js +++ b/src/api/order/orderInfo.js @@ -92,6 +92,13 @@ export default { data: time }) }, + getProductOverview() { + // 获取商品统计信息 + return request({ + url: `/${service_name}/mallProductInfo/getProductOverview`, + method: 'get' + }) + }, exportExcel(page) { // 导出 return request({ diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue index 8fe7248..bf928d4 100644 --- a/src/components/Upload/index.vue +++ b/src/components/Upload/index.vue @@ -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 } diff --git a/src/views/dashboard/admin/index.vue b/src/views/dashboard/admin/index.vue index 7ac3f3f..f35bd4e 100644 --- a/src/views/dashboard/admin/index.vue +++ b/src/views/dashboard/admin/index.vue @@ -45,23 +45,9 @@ 商品总览