This commit is contained in:
liushiwei
2023-10-19 00:03:01 +08:00
parent 17986a574b
commit e52e62c1d5
7 changed files with 190 additions and 25 deletions

View File

@@ -80,6 +80,7 @@
</json-excel>
</template>
<ai-table
ref="table0"
:isShowPagination="false"
:tableData="list"
height="500"
@@ -104,6 +105,7 @@
</json-excel>
</template>
<ai-table
ref="table1"
:isShowPagination="false"
:tableData="last30DaySkuList"
height="500"
@@ -128,6 +130,7 @@
</json-excel>
</template>
<ai-table
ref="table2"
:isShowPagination="false"
:tableData="last30DaySkcList"
height="500"
@@ -176,6 +179,7 @@ import { Message } from 'element-ui'
"商品名称": "productName",
"店铺名称": "mallName",
"评分": "mark",
"是否热销": 'hotTag',
"SPU": "productId",
"SKC": "productSkcId",
"SKU ID": "productSkuId",
@@ -234,14 +238,16 @@ import { Message } from 'element-ui'
label: '商品名称',
"show-overflow-tooltip": true,
width: '280px',
align: 'left'
align: 'left',
fixed: 'left'
},
{
prop: 'mallName',
label: '店铺名称',
"show-overflow-tooltip": true,
width: '120px',
align: 'left'
align: 'left',
fixed: 'left'
},
{
prop: 'mark',
@@ -250,6 +256,13 @@ import { Message } from 'element-ui'
width: '80px',
align: 'left'
},
{
prop: 'hotTag',
label: '是否热销',
"show-overflow-tooltip": true,
width: '80px',
align: 'left'
},
{
prop: 'productId',
label: 'SPU',
@@ -535,7 +548,9 @@ import { Message } from 'element-ui'
methods: {
changeDataType() {
this.$nextTick(() => { //在数据加载完,重新渲染表格
this.$refs['table'+this.type].doLayout();
})
},
beforeGetList() {
this.list = []
@@ -606,6 +621,7 @@ import { Message } from 'element-ui'
data.purchaseConfig = item.purchaseConfig;
data.productSkcPicture = item.productSkcPicture;
data.mark = item.mark.toFixed(1)
data.hotTag = item.hotTag ? '是': '否'
data.mallName = this.mallName;
this.last30DaySkcList.push({