From 7ef94beda138dfbd466e0729613da03e7cdf60de Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Sat, 20 Apr 2024 18:19:35 +0800 Subject: [PATCH] 1 --- .env.development | 4 +- src/api/product.js | 10 +- src/views/product/productList/index.vue | 1549 +++++++++++++++-------- 3 files changed, 1063 insertions(+), 500 deletions(-) diff --git a/.env.development b/.env.development index 316d24c..3d896ca 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ ENV = 'development' # base api # VUE_APP_BASE_API = 'http://192.168.31.106:8324' -VUE_APP_BASE_API = 'https://crmeb-test.shop.lihaink.cn/' +VUE_APP_BASE_API = 'https://crmeb-test.shop.lihaink.cn' # socket 连接地址 -VUE_APP_WS_URL = 'ws://crmeb-test.shop.lihaink.cn/' +VUE_APP_WS_URL = 'ws://crmeb-test.shop.lihaink.cn' # VUE_APP_WS_URL = 'ws://mer1.crmeb.net' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/src/api/product.js b/src/api/product.js index 7faf5e5..d837229 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -547,6 +547,14 @@ export function freeTrialApi(id, data) { export function batchesOnOffApi(data) { return request.post(`store/product/batch_status`, data) } +/** 商品列表 -- 批量回收/恢复 */ +export function batchesDelApi(data) { + return request.post(`store/product/batch_del`, data) +} +/** 商品列表 -- 批量删除 */ +export function batchesDestroyApi(data) { + return request.post(`store/product/batch_destroy`, data) +} /** 商品列表 -- 批量设置标签 */ export function batchesLabelsApi(data) { return request.post(`store/product/batch_labels`, data) @@ -645,4 +653,4 @@ export function unitDeleteApi(id) { */ export function unitOptionsApi() { return request.get(`product/unit/option`) -} \ No newline at end of file +} diff --git a/src/views/product/productList/index.vue b/src/views/product/productList/index.vue index a05893d..6e85fbf 100644 --- a/src/views/product/productList/index.vue +++ b/src/views/product/productList/index.vue @@ -1,133 +1,328 @@