From 098d8766f9c20308606507443a984b575c6392c8 Mon Sep 17 00:00:00 2001
From: mrsun <1078706823@qq.com>
Date: Fri, 2 Feb 2024 14:23:42 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=95=86=E5=93=81=E4=B8=80=E9=94=AE?=
=?UTF-8?q?=E4=B8=8A=E4=B8=8B=E6=9E=B6=E3=80=81=E9=80=89=E6=8B=A9=E6=B2=B9?=
=?UTF-8?q?=E7=AB=99=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/product/productAttr.js | 7 +
.../components/OilStationSelection.vue | 270 +++++++++---------
src/views/product/productList/index.vue | 36 ++-
3 files changed, 168 insertions(+), 145 deletions(-)
diff --git a/src/api/product/productAttr.js b/src/api/product/productAttr.js
index b54d4ae..de06fe7 100644
--- a/src/api/product/productAttr.js
+++ b/src/api/product/productAttr.js
@@ -61,6 +61,13 @@ export default {
data
})
},
+ batchShelves(data) {
+ return request({
+ url: `/${service_name}/mallProductInfo/upOrDownShelves`,
+ method: 'post',
+ data
+ })
+ },
getAllSites(data) {
return request({
url: `/${service_name}/mallProductSiteRelation/getAllSites`,
diff --git a/src/views/product/productAdd/components/OilStationSelection.vue b/src/views/product/productAdd/components/OilStationSelection.vue
index 2b053d3..293a434 100644
--- a/src/views/product/productAdd/components/OilStationSelection.vue
+++ b/src/views/product/productAdd/components/OilStationSelection.vue
@@ -1,149 +1,151 @@
-
-
-
-
-
-
- 查询
- 确定选择
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ 查询
+ 确定选择
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/views/product/productList/index.vue b/src/views/product/productList/index.vue
index ed2e9f3..659813b 100644
--- a/src/views/product/productList/index.vue
+++ b/src/views/product/productList/index.vue
@@ -41,8 +41,8 @@
- 添加商品
- 商品采集
+
+
- 批量下架
- 批量上架
- 导出
+
+
+
+ 批量上架
+ 批量下架
0){
+ let selectedIds = selected.map(item=>item.id)
+ productApi.batchShelves({
+ list:selectedIds,
+ productStatus:productStatus
+ }).then(res=>{
+ if (res.code===20000){
+ this.$message.success(res.msg)
+ this.getDataList()
+ }
+ })
+ }else {
+ this.$message.error('请选择需要操作的数据')
+ }
+ },
getRowKey(row) {
return row.id
},
From d6445b02cf6d8c55e4e285eca31317965cbe3e5d Mon Sep 17 00:00:00 2001
From: dt_2916866708 <>
Date: Fri, 2 Feb 2024 16:01:00 +0800
Subject: [PATCH 2/2] shoye1
---
src/views/dashboard/admin/index.scss | 90 +++++++++++++++
src/views/dashboard/admin/index.vue | 166 ++++++++++++++++++++++++++-
2 files changed, 255 insertions(+), 1 deletion(-)
create mode 100644 src/views/dashboard/admin/index.scss
diff --git a/src/views/dashboard/admin/index.scss b/src/views/dashboard/admin/index.scss
new file mode 100644
index 0000000..65d02df
--- /dev/null
+++ b/src/views/dashboard/admin/index.scss
@@ -0,0 +1,90 @@
+.flex {
+ display: flex;
+}
+
+.column {
+ flex-direction: column;
+}
+
+.ac {
+ align-items: center;
+}
+
+.jc {
+ justify-content: center;
+}
+
+.oneflex {
+ flex: 1;
+}
+
+.jw {
+ justify-content: space-between;
+}
+
+.js {
+ justify-content: space-around;
+}
+
+.number {
+ color: red;
+ font-size: 25px;
+}
+
+.product-card {
+ .product-card-item {}
+}
+
+.orderData {
+ width: 100%;
+
+ .orderData-right {
+ margin-left: 50px;
+ flex-wrap: wrap;
+
+ .orderData-right-item {
+ width: calc(50% - 20px);
+ box-sizing: border-box;
+ text-align: center;
+ padding: 10px 20px;
+ border-bottom: #ececec solid 1px;
+
+ }
+ }
+
+ .orderData-left {
+ padding: 10px 20px;
+ box-sizing: border-box;
+ border: solid 1px #bbbbbb;
+ }
+}
+
+.orderStatistics-card {
+ .orderStatistics-card-right{
+ }
+ .orderStatistics-card-left {
+ flex-shrink: 0;
+ padding: 10px 50px;
+ border-right: solid 1px #ececec;
+ .orderStatistics-card-left-item{
+ .orderStatistics-card-left-item-title{
+ color: #bbbbbb;
+ }
+ .orderStatistics-card-left-item-number{
+ font-size: 25px;
+ }
+ }
+ }
+
+}
+.box-card{
+ margin-bottom: 30px;
+}
+.card-title{
+ font-size: 20px;
+ font-weight: 600;
+}
+.page{
+ height:calc(100vh - 144px);
+ box-sizing: border-box;
+}
\ No newline at end of file
diff --git a/src/views/dashboard/admin/index.vue b/src/views/dashboard/admin/index.vue
index 5466dc0..7ccc561 100644
--- a/src/views/dashboard/admin/index.vue
+++ b/src/views/dashboard/admin/index.vue
@@ -1,20 +1,184 @@
+
+
+
+
+ 订单数据
+
+
+
+
+
+
+ 待核销订单
+ (10)
+
+
+ 已核销订单
+ (10)
+
+
+ 已完成订单
+ (10)
+
+
+ 待退款订单
+ (10)
+
+
+
+
+
+
+
+
+
+
+
+ 商品总览
+
+
+
+
+
+
+
+
+ 商品总览
+
+
+
+
+
+
+
+
+
+ 订单统计
+
+
+
+
+
本月订单总数
+
10000
+
10% 同比上周
+
+
+
本月订单总数
+
10000
+
10% 同比上周
+
+
+
+
+
+
+
-
+