diff --git a/src/components/CheckAttributes/index.vue b/src/components/CheckAttributes/index.vue index 6506cf8..2822e55 100644 --- a/src/components/CheckAttributes/index.vue +++ b/src/components/CheckAttributes/index.vue @@ -8,7 +8,6 @@
已选属性组 已选属性组ids ::{{this.checkedAttributeGroupIds}} - 属性组::{{this.checkedAttributeGroupList}}
@@ -29,15 +28,15 @@ + v-for="group in groupList"> - {{attribute.name}} + {{group.name}} @@ -57,7 +56,7 @@ export default { type: Array, default: [] }, - checkedAttribute:{ + checkedAttributeGroup:{ type: Array, default: null } diff --git a/src/components/CheckBrank/index.vue b/src/components/CheckBrank/index.vue new file mode 100644 index 0000000..5e5c596 --- /dev/null +++ b/src/components/CheckBrank/index.vue @@ -0,0 +1,149 @@ + + + + + diff --git a/src/main.js b/src/main.js index bd657ff..95d90ba 100644 --- a/src/main.js +++ b/src/main.js @@ -41,6 +41,8 @@ import DictData from '@/components/DictData' import AttributeGroupElement from '@/components/CheckedAttribute' //属性组件 import AttributeElement from '@/components/CheckAttributes' +//品牌组件 +import BrandElement from '@/components/CheckBrank' // 全局方法挂载 Vue.prototype.getDicts = getDicts @@ -64,6 +66,7 @@ Vue.component('ImagePreview', ImagePreview) //自定义组件全局挂载 Vue.component('AttributeGroupElement', AttributeGroupElement) Vue.component('AttributeElement', AttributeElement) +Vue.component('BrandElement', BrandElement) Vue.use(directive) Vue.use(plugins) diff --git a/src/views/product/categoryInfo/index.vue b/src/views/product/categoryInfo/index.vue index 597255d..cb18b0b 100644 --- a/src/views/product/categoryInfo/index.vue +++ b/src/views/product/categoryInfo/index.vue @@ -135,12 +135,14 @@ - + - + + + + - 角色管理 @@ -156,17 +158,24 @@ import { listCategory_info, getCategory_info, delCategory_info, addCategory_info, updateCategory_info } from "@/api/product/category_info"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; +import Brand from "@/views/product/brand/index.vue"; export default { name: "Category_info", dicts: ['sys_yes_no'], components: { + Brand, Treeselect }, data() { return { activeName: 'first', - + // 组件绑定的品牌 + checkedBrand: [], + // 组件绑定的属性组 + checkedAttributeGroup: [], + // 组件绑定的属性 + checkedAttribute: [], // 遮罩层 loading: true, // 显示搜索条件 @@ -271,8 +280,11 @@ export default { createTime: null, updateBy: null, updateTime: null, + checkedAttributeList: [], checkedAttributeIds: [], checkedAttributeGroupList: [], + checkedAttributeGroupIds: [], + checkedBrandIds: [], checkedBrandList: [] }; this.resetForm("form");