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}} - - - -
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +