|
@@ -14,8 +14,8 @@
|
|
|
<!-- 产品分类 -->
|
|
|
<template slot="productType" slot-scope="text, record,index">
|
|
|
<div style="max-height:126px;width:100%;overflow-y:auto;" v-if="record.dataSourceOrigin=='0'">
|
|
|
- <a-row v-if="record.productTypeArr && record.productTypeArr.length>0">
|
|
|
- <a-col :span="17">
|
|
|
+ <div style="display: flex;align-items: center;" v-if="record.productTypeArr && record.productTypeArr.length>0">
|
|
|
+ <div style="max-height:126px;overflow-y:auto;flex-grow: 1;display: flex;flex-wrap: wrap;">
|
|
|
<div v-for="con in record.productTypeArr" :key="con.id">
|
|
|
<a-tooltip v-if="con.title&&con.title.length > 7" :title="con.title">
|
|
|
<a-tag style="margin-bottom:10px;" :id="'tableaaType-delType'+record.productScopeSn" closable @close.prevent="delLabel(record.productScopeSn,con,'typeList')">
|
|
@@ -26,28 +26,26 @@
|
|
|
{{ con.title }}
|
|
|
</a-tag>
|
|
|
</div>
|
|
|
- </a-col>
|
|
|
- <a-col :span="6" style="text-align:right;">
|
|
|
- <a-tag style="background: #fff; borderStyle: dashed;" :id="'tableaaType-addType'+record.productScopeSn" @click="addClassifyTag(index, record)" color="blue">
|
|
|
+ </div>
|
|
|
+ <div style="text-align:center;padding-left:10px;">
|
|
|
+ <a-tag style="background: #fff; borderStyle: dashed;cursor:pointer" title="添加分类" :id="'tableaaType-addType'+record.productScopeSn" @click="addClassifyTag(index, record)" color="blue">
|
|
|
<a-icon type="plus" />
|
|
|
</a-tag>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row v-else>
|
|
|
- <a-col :span="24">
|
|
|
- <a-tag style="background: #fff; borderStyle: dashed;" :id="'tableaaType-addType'+record.productScopeSn" @click="addClassifyTag(index, record)" color="blue">
|
|
|
- <a-icon type="plus" />
|
|
|
- </a-tag>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <a-tag style="background: #fff; borderStyle: dashed;cursor:pointer" title="添加分类" :id="'tableaaType-addType'+record.productScopeSn" @click="addClassifyTag(index, record)" color="blue">
|
|
|
+ <a-icon type="plus" />
|
|
|
+ </a-tag>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<span v-else v-for="con in record.productTypeArr" :key="con.id">{{ con.title }}</span>
|
|
|
</template>
|
|
|
<!-- 品牌 -->
|
|
|
<template slot="productBrand" slot-scope="text, record,index">
|
|
|
<div v-if="record.dataSourceOrigin=='0'">
|
|
|
- <a-row v-if="record.productBrandArr && record.productBrandArr.length>0">
|
|
|
- <a-col :span="18" style="max-height:126px;width:100%;overflow-y:auto;">
|
|
|
+ <div style="display: flex;align-items: center;" v-if="record.productBrandArr && record.productBrandArr.length>0">
|
|
|
+ <div :span="18" style="max-height:126px;width:100%;overflow-y:auto;">
|
|
|
<div v-for="item in record.productBrandArr" :key="item.brandSn">
|
|
|
<a-tooltip v-if="item.brandName&&item.brandName.length > 7" :title="item.brandName">
|
|
|
<a-tag style="margin-bottom:10px;" :id="'tableaaType-delBrand'+record.productScopeSn" closable @close.prevent="delLabel(record.productScopeSn,item,'brandList')">
|
|
@@ -58,20 +56,18 @@
|
|
|
{{ item.brandName }}
|
|
|
</a-tag>
|
|
|
</div>
|
|
|
- </a-col>
|
|
|
- <a-col :span="6" style="text-align:right;">
|
|
|
- <a-tag style="background: #fff; borderStyle: dashed;" :id="'tableaaType-addBrand'+record.productScopeSn" @click="addBrandTag(index, record)" color="blue">
|
|
|
+ </div>
|
|
|
+ <div style="text-align:center;padding-left:10px;">
|
|
|
+ <a-tag style="background: #fff; borderStyle: dashed;cursor:pointer" title="添加品牌" :id="'tableaaType-addBrand'+record.productScopeSn" @click="addBrandTag(index, record)" color="blue">
|
|
|
<a-icon type="plus" />
|
|
|
</a-tag>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row v-else>
|
|
|
- <a-col :span="24">
|
|
|
- <a-tag style="background: #fff; borderStyle: dashed;" :id="'tableaaType-addBrand'+record.productScopeSn" @click="addBrandTag(index, record)" color="blue">
|
|
|
- <a-icon type="plus" />
|
|
|
- </a-tag>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <a-tag style="background: #fff; borderStyle: dashed;cursor:pointer" title="添加品牌" :id="'tableaaType-addBrand'+record.productScopeSn" @click="addBrandTag(index, record)" color="blue">
|
|
|
+ <a-icon type="plus" />
|
|
|
+ </a-tag>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<span v-else v-for="item in record.productBrandArr" :key="item.brandSn">{{ item.brandName }}</span>
|
|
|
</template>
|