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/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 @@ - + 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 3d4f18f..fd7beed 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 },