|
|
@@ -13,6 +13,7 @@
|
|
|
:key="index"
|
|
|
:label="`${item.text}(${item.val})`"
|
|
|
:name="item.key"
|
|
|
+ @click="tabClick(item.key)"
|
|
|
>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
@@ -40,7 +41,7 @@
|
|
|
|
|
|
<!-- 状态 -->
|
|
|
<template #table-column-status="{scope}">
|
|
|
- <span>{{ scope.row.status == 1 ? '上架' : '下架' }}</span>
|
|
|
+ <span>{{ scope.row.status == 1 ? '上架' : scope.row.status == 0 ? '下架' : '-'}}</span>
|
|
|
</template>
|
|
|
</x-crud>
|
|
|
<!-- 添加商品 -->
|
|
|
@@ -87,6 +88,10 @@ export default {
|
|
|
handleClick(tab, e) {
|
|
|
this.app.refresh({ type: this.tabIndex });
|
|
|
},
|
|
|
+ // 切换tab
|
|
|
+ tabClick(key) {
|
|
|
+ this.tabIndex = key
|
|
|
+ },
|
|
|
// 打开链接
|
|
|
openLinkFn(link) {
|
|
|
this.sortLink = link || '';
|