improve: 直播商品操作联动

This commit is contained in:
From-wh 2023-03-22 17:44:09 +08:00
parent 9dfa98d710
commit 8cbffc707f

View File

@ -5,7 +5,7 @@
<span>
<Button icon="ios-arrow-back" size="small" type="text" @click="$router.go(-1)">返回</Button>
</span>
<Divider type="vertical"/>
<Divider type="vertical" />
<span class="ivu-page-header-title">{{ $route.meta.title }}</span>
</div>
</div>
@ -170,9 +170,15 @@ export default {
},
bindDelete(index) {
this.goodsList.splice(index, 1);
if (this.tabList.length) {
let i = this.tabList.findIndex((e) => e.id == row.id);
this.tabList.splice(i, 1);
}
},
del(row, index) {
this.tabList.splice(index, 1);
let i = this.goodsList.findIndex((e) => e.product_id == row.id);
this.goodsList.splice(i, 1);
},
// 提交
bindSub() {