|
|
@@ -33,13 +33,10 @@
|
|
|
|
|
|
<template #table-column-goodsName="{scope}">
|
|
|
<span>{{ scope.row.goodsName }}</span>
|
|
|
- <!-- <span>二维码</span> -->
|
|
|
- <!--<span class="short-link" @click="openLinkFn(scope.row)">链接</span> -->
|
|
|
</template>
|
|
|
|
|
|
<template #table-column-inTurn="{scope}">
|
|
|
<span v-if="!sort.status">{{ scope.row.inTurn }}</span>
|
|
|
-
|
|
|
<el-input-number
|
|
|
ref="sort-input"
|
|
|
focus
|
|
|
@@ -70,7 +67,7 @@
|
|
|
</template>
|
|
|
|
|
|
<!-- 添加商品 -->
|
|
|
- <template #slot-add-goods-btn="{scope}">
|
|
|
+ <template #slot-add-goods-btn>
|
|
|
<el-button type="primary" size="mini" @click="addFn">添加</el-button>
|
|
|
</template>
|
|
|
|
|
|
@@ -162,7 +159,6 @@ export default {
|
|
|
handleClick(tab, e) {
|
|
|
this.app.refresh({ status: this.tabIndex });
|
|
|
},
|
|
|
- // 打开链接
|
|
|
openLinkFn(item) {
|
|
|
this.operateData = item;
|
|
|
this.sortLink = item.shortUrl || '';
|
|
|
@@ -174,7 +170,6 @@ export default {
|
|
|
this.dialogFormVisible = false;
|
|
|
});
|
|
|
},
|
|
|
- // 添加商品
|
|
|
addFn(type, data) {
|
|
|
let query = {};
|
|
|
if (type === 2) {
|
|
|
@@ -206,7 +201,7 @@ export default {
|
|
|
.catch(() => {
|
|
|
this.$message({
|
|
|
type: 'info',
|
|
|
- message: '已取消删除'
|
|
|
+ message: '已取消'
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
@@ -230,40 +225,50 @@ export default {
|
|
|
prop: 'goodsName',
|
|
|
label: '标题',
|
|
|
align: 'center',
|
|
|
- 'min-width': 180
|
|
|
+ 'min-width': 230
|
|
|
},
|
|
|
{
|
|
|
prop: 'price',
|
|
|
label: '价格',
|
|
|
align: 'center',
|
|
|
emptyText: '无',
|
|
|
- 'min-width': 100
|
|
|
+ 'min-width': 80
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
prop: 'belongCategory',
|
|
|
label: '所属分类',
|
|
|
align: 'center',
|
|
|
- 'min-width': 150
|
|
|
+ 'min-width': 130
|
|
|
},
|
|
|
{
|
|
|
- prop: 'actualSold',
|
|
|
- label: '销量',
|
|
|
- align: 'center'
|
|
|
- },{
|
|
|
prop: 'stock',
|
|
|
label: '库存',
|
|
|
- align: 'center'
|
|
|
+ align: 'center',
|
|
|
+ 'min-width':60
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'actualSold',
|
|
|
+ label: '已销售',
|
|
|
+ align: 'center',
|
|
|
+ 'min-width':60
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'sold',
|
|
|
+ label: '历史销量',
|
|
|
+ align: 'center',
|
|
|
+ 'min-width':60
|
|
|
},
|
|
|
{
|
|
|
prop: 'viewNum',
|
|
|
label: '浏览量',
|
|
|
- align: 'center'
|
|
|
+ align: 'center',
|
|
|
+ 'min-width':80
|
|
|
},
|
|
|
{
|
|
|
prop: 'inTurn',
|
|
|
label: '排序',
|
|
|
align: 'center',
|
|
|
- minWidth: 100
|
|
|
+ minWidth: 110
|
|
|
},
|
|
|
{
|
|
|
prop: 'status',
|
|
|
@@ -274,25 +279,16 @@ export default {
|
|
|
prop: 'createDate',
|
|
|
label: '创建时间',
|
|
|
align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'updateTime',
|
|
|
- label: '修改时间',
|
|
|
- align: 'center',
|
|
|
- 'min-width': 100
|
|
|
}
|
|
|
],
|
|
|
- // 操作列
|
|
|
op: {
|
|
|
visible: true, // 是否显示
|
|
|
- // 同 element-ui Table-column Attributes
|
|
|
props: {
|
|
|
width: 150,
|
|
|
align: 'center',
|
|
|
fixed: 'right',
|
|
|
label: '操作'
|
|
|
},
|
|
|
- // 布局,请移步 `layout`
|
|
|
layout: ['slot-modify', 'slot-takeOff', 'delete']
|
|
|
},
|
|
|
})
|