From 3e541da52c6c7fada971b8b18ba2eb9088da6bf3 Mon Sep 17 00:00:00 2001 From: DongZeLiang <2746733890@qq.com> Date: Thu, 29 Feb 2024 16:16:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=9E=E6=80=A7=EF=BC=8C=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E7=BB=84=EF=BC=8C=E5=93=81=E7=89=8C=E9=80=89=E6=8B=A9=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CheckAttribute/index.vue | 132 +++++++++++++++++++ src/components/CheckAttributeGroup/index.vue | 128 ++++++++++++++++++ src/components/CheckBrand/index.vue | 128 ++++++++++++++++++ src/main.js | 9 ++ src/views/product/attributeGroup/index.vue | 112 +--------------- src/views/product/category/index.vue | 73 +++++++--- 6 files changed, 454 insertions(+), 128 deletions(-) create mode 100644 src/components/CheckAttribute/index.vue create mode 100644 src/components/CheckAttributeGroup/index.vue create mode 100644 src/components/CheckBrand/index.vue diff --git a/src/components/CheckAttribute/index.vue b/src/components/CheckAttribute/index.vue new file mode 100644 index 0000000..cb5814a --- /dev/null +++ b/src/components/CheckAttribute/index.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/src/components/CheckAttributeGroup/index.vue b/src/components/CheckAttributeGroup/index.vue new file mode 100644 index 0000000..f6a3c2b --- /dev/null +++ b/src/components/CheckAttributeGroup/index.vue @@ -0,0 +1,128 @@ + + + + + diff --git a/src/components/CheckBrand/index.vue b/src/components/CheckBrand/index.vue new file mode 100644 index 0000000..4e15946 --- /dev/null +++ b/src/components/CheckBrand/index.vue @@ -0,0 +1,128 @@ + + + + + diff --git a/src/main.js b/src/main.js index 546f125..ec9f715 100644 --- a/src/main.js +++ b/src/main.js @@ -37,6 +37,12 @@ import DictTag from '@/components/DictTag' import VueMeta from 'vue-meta' // 字典数据组件 import DictData from '@/components/DictData' +// 属性选择 +import CheckAttribute from "@/components/CheckAttribute/index.vue"; +// 属性组选择 +import CheckAttributeGroup from "@/components/CheckAttributeGroup/index.vue"; +// 品牌选择 +import CheckBrand from "@/components/CheckBrand/index.vue"; // 全局方法挂载 Vue.prototype.getDicts = getDicts @@ -57,6 +63,9 @@ Vue.component('Editor', Editor) Vue.component('FileUpload', FileUpload) Vue.component('ImageUpload', ImageUpload) Vue.component('ImagePreview', ImagePreview) +Vue.component('CheckAttribute', CheckAttribute) +Vue.component('CheckAttributeGroup', CheckAttributeGroup) +Vue.component('CheckBrand', CheckBrand) Vue.use(directive) Vue.use(plugins) diff --git a/src/views/product/attributeGroup/index.vue b/src/views/product/attributeGroup/index.vue index b9d3caf..4a3b7df 100644 --- a/src/views/product/attributeGroup/index.vue +++ b/src/views/product/attributeGroup/index.vue @@ -141,66 +141,7 @@ - - - -
- 选择属性关联关系 -
- -
- 已选择属性 -
- - - - {{attribute.name}} - - - -
- - -
- 未选属性 -
- - - - - - - - - - 查询 - - - - - - {{attribute.name}} - - - -
-
-
+