diff --git a/src/view/CopyProduct.vue b/src/view/CopyProduct.vue index de06dae..e8a0cbf 100644 --- a/src/view/CopyProduct.vue +++ b/src/view/CopyProduct.vue @@ -95,11 +95,11 @@ title="请选择店铺" :visible.sync="mallDlgShow" :close-on-click-modal="false" - width="500px" + width="790px" :before-close="handleClose"> - + + + + 取 消 @@ -136,6 +139,29 @@ import { Message } from 'element-ui' startDate: '', endDate: '' }, + props: { + value: 'catId', + label: 'catName', + lazy: true, + lazyLoad (node, resolve) { + sendChromeAPIMessage({ + url: 'bg-anniston-mms/category/children/list', + needMallId: true, + data: { + parentCatId: node.value || '' + } + }).then(res => { + if (res.errorCode === 1000000) { + resolve(res.result.categoryNodeVOS.map(v => { + return { + ...v, + leaf: v.isLeaf + } + })) + } + }) + } + }, colConfigs: [ { type: "selection", width: '70px', align: 'left', fixed: 'left'}, { prop: 'productSpu', label: 'SPU', align: 'left' }, @@ -171,21 +197,13 @@ import { Message } from 'element-ui' if (this.$store.state.mallList.length > 0) { this.productPage.mallId = this.$store.state.mallList[0].mallId - this.getCateList() + this.getCateList('') } }, methods: { - getCateList () { - console.log(222) - sendChromeAPIMessage({ - url: 'bg-anniston-mms/category/children/list', - needMallId: true, - data: { - } - }).then(res => { - console.log(res) - }) + getCateList (id) { + // console.log(222) }, getList () {