|
@@ -50,12 +50,12 @@
|
|
|
type="link"
|
|
|
class="button-info"
|
|
|
@click="handleEdit(record,'addChild')"
|
|
|
- v-if="(record.type && record.type=='root')&&(record.shopCategoryCount==0)"
|
|
|
+ v-if="(record.type && record.type=='root')&&(record.shopCategoryCount>=0&&record.shopProductCount==0)"
|
|
|
:id="'shoppingManagementList-addChild-btn'+record.id">添加子类目</a-button>
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
|
- v-if="(!record.shopProductCount||record.shopProductCount==0)||record.type!='root'"
|
|
|
+ v-if="(record.shopProductCount>=0&&record.shopCategoryCount==0)||record.type!='root'"
|
|
|
class="button-success"
|
|
|
@click="handleAddProduct(record)"
|
|
|
:id="'shoppingManagementList-addProduct-btn'+record.id">添加产品</a-button>
|
|
@@ -146,6 +146,7 @@ export default {
|
|
|
this.pageType = typeVal
|
|
|
this.openCategoryModal = true
|
|
|
this.parentData = row
|
|
|
+ console.log('22222222222222:', row, typeVal)
|
|
|
if (typeVal === 'edit') {
|
|
|
this.$refs.categoryModal.getDetailData({ categorySn: row.categorySn })
|
|
|
}
|