From 7992cd951e0913f1ad30b5a8f489e7a1bd292ddb Mon Sep 17 00:00:00 2001
From: Aix <949148000@qq.com>
Date: Sat, 8 Apr 2023 20:31:52 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90feature=E3=80=91=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E5=95=86=E5=93=81=E5=93=81=E7=89=8C=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
(cherry picked from commit ef4f6bda5c7d64c77ba21a0b8362db47a5bb178a)
---
src/api/mall/product/brand.ts | 56 +++++++
src/views/mall/product/brand/BrandForm.vue | 109 +++++++++++++
src/views/mall/product/brand/index.vue | 177 +++++++++++++++++++++
3 files changed, 342 insertions(+)
create mode 100644 src/api/mall/product/brand.ts
create mode 100644 src/views/mall/product/brand/BrandForm.vue
create mode 100644 src/views/mall/product/brand/index.vue
diff --git a/src/api/mall/product/brand.ts b/src/api/mall/product/brand.ts
new file mode 100644
index 00000000..f5f6e218
--- /dev/null
+++ b/src/api/mall/product/brand.ts
@@ -0,0 +1,56 @@
+import request from '@/config/axios'
+
+/**
+ * 商品品牌
+ */
+export interface BrandVO {
+ /**
+ * 品牌编号
+ */
+ id?: number
+ /**
+ * 品牌名称
+ */
+ name: string
+ /**
+ * 品牌图片
+ */
+ picUrl: string
+ /**
+ * 品牌排序
+ */
+ sort?: number
+ /**
+ * 品牌描述
+ */
+ description?: string
+ /**
+ * 开启状态
+ */
+ status: number
+}
+
+// 创建商品品牌
+export const createBrand = (data: BrandVO) => {
+ return request.post({ url: '/product/brand/create', data })
+}
+
+// 更新商品品牌
+export const updateBrand = (data: BrandVO) => {
+ return request.put({ url: '/product/brand/update', data })
+}
+
+// 删除商品品牌
+export const deleteBrand = (id: number) => {
+ return request.delete({ url: `/product/brand/delete?id=${id}` })
+}
+
+// 获得商品品牌
+export const getBrand = (id: number) => {
+ return request.get({ url: `/product/brand/get?id=${id}` })
+}
+
+// 获得商品品牌列表
+export const getBrandList = (params: any) => {
+ return request.get({ url: '/product/brand/page', params })
+}
diff --git a/src/views/mall/product/brand/BrandForm.vue b/src/views/mall/product/brand/BrandForm.vue
new file mode 100644
index 00000000..38e9de52
--- /dev/null
+++ b/src/views/mall/product/brand/BrandForm.vue
@@ -0,0 +1,109 @@
+
+
+
+
diff --git a/src/views/mall/product/brand/index.vue b/src/views/mall/product/brand/index.vue
new file mode 100644
index 00000000..5d13b517
--- /dev/null
+++ b/src/views/mall/product/brand/index.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+