From e525cb67effd521ed38cb373ce80369ca0c1bad2 Mon Sep 17 00:00:00 2001 From: Saisai Liu <1374434128@qq.com> Date: Tue, 5 Mar 2024 11:40:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=BB=84=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CheckedAttribute/index.vue | 151 ++++++++++++++++++++++ src/main.js | 3 + src/views/product/group/index.vue | 98 +++++++------- 3 files changed, 201 insertions(+), 51 deletions(-) create mode 100644 src/components/CheckedAttribute/index.vue diff --git a/src/components/CheckedAttribute/index.vue b/src/components/CheckedAttribute/index.vue new file mode 100644 index 0000000..bbe18d3 --- /dev/null +++ b/src/components/CheckedAttribute/index.vue @@ -0,0 +1,151 @@ + + + + diff --git a/src/main.js b/src/main.js index 546f125..e5ed6bd 100644 --- a/src/main.js +++ b/src/main.js @@ -37,6 +37,8 @@ import DictTag from '@/components/DictTag' import VueMeta from 'vue-meta' // 字典数据组件 import DictData from '@/components/DictData' +//属性组组件 +import AttributeGroupElement from '@/components/CheckedAttribute' // 全局方法挂载 Vue.prototype.getDicts = getDicts @@ -57,6 +59,7 @@ Vue.component('Editor', Editor) Vue.component('FileUpload', FileUpload) Vue.component('ImageUpload', ImageUpload) Vue.component('ImagePreview', ImagePreview) +Vue.component('AttributeGroupElement', AttributeGroupElement) Vue.use(directive) Vue.use(plugins) diff --git a/src/views/product/group/index.vue b/src/views/product/group/index.vue index 88fabd4..731694e 100644 --- a/src/views/product/group/index.vue +++ b/src/views/product/group/index.vue @@ -137,52 +137,53 @@ - - -
- 属性关联关系 -
- -
- 已选属性 - {{this.form.checkedAttributeIds}} - {{this.form.attributeList}} - {{this.checkedAttribute}} -
- - - - {{attribute.name}} - - - -
- - -
- 可选属性 -
- - - - {{attribute.name}} - - - -
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +