From b09cb3270ec27e817327ff50f7172c7c6fe9e8e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98=E6=B2=B3=E5=B9=B3?=
<14767849+liuehping@user.noreply.gitee.com>
Date: Fri, 15 Nov 2024 16:32:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=BB=84=E5=92=8C=E5=95=86?=
=?UTF-8?q?=E5=93=81=E8=A7=84=E6=A0=BC=E7=9A=84=E7=8A=B6=E6=80=81=E7=9A=84?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/product/attributeGroup.js | 10 +++
src/api/product/rule.js | 8 ++
src/views/product/attributeGroup/index.vue | 98 +++++++++++++++++-----
src/views/product/rule/index.vue | 28 ++++++-
4 files changed, 117 insertions(+), 27 deletions(-)
diff --git a/src/api/product/attributeGroup.js b/src/api/product/attributeGroup.js
index 7142930..0ca9dd6 100644
--- a/src/api/product/attributeGroup.js
+++ b/src/api/product/attributeGroup.js
@@ -43,3 +43,13 @@ export function delAttributeGroup(id) {
})
}
+//修改状态
+
+export function changeStatus(data) {
+ return request({
+ url: '/product/attributeGroup/'+data.id,
+ method: 'post',
+ data: data
+ })
+}
+
diff --git a/src/api/product/rule.js b/src/api/product/rule.js
index f2de650..b38aed1 100644
--- a/src/api/product/rule.js
+++ b/src/api/product/rule.js
@@ -42,3 +42,11 @@ export function delRule(id) {
method: 'delete'
})
}
+
+export function changeStatus(data) {
+ return request({
+ url: '/product/rule/'+data.id,
+ method: 'post',
+ data: data
+ })
+}
diff --git a/src/views/product/attributeGroup/index.vue b/src/views/product/attributeGroup/index.vue
index 6793859..09a2fb3 100644
--- a/src/views/product/attributeGroup/index.vue
+++ b/src/views/product/attributeGroup/index.vue
@@ -34,7 +34,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['product:attributeGroup:add']"
- >新增
+ >新增
+