修改直播间商品展示

This commit is contained in:
evoxwht 2023-03-28 09:06:14 +08:00
parent 90c820df36
commit c9295aa4ec
2 changed files with 20 additions and 19 deletions

View File

@ -106,23 +106,24 @@ export default {
columns1: [
{ key: 'id', title: '商品ID' },
{ slot: 'img', title: '商品信息' },
{
key: 'price',
title: '直播售价',
render: (h, params) => {
return h('Input', {
props: {
type: 'number',
value: params.row.price,
},
on: {
input: (val) => {
this.tabList[params.index].price = val;
},
},
});
},
},
{ slot: 'price', title: '直播售价' },
// {
// key: 'price',
// title: '直播售价',
// render: (h, params) => {
// return h('Input', {
// props: {
// type: 'number',
// value: params.row.price,
// },
// on: {
// input: (val) => {
// this.tabList[params.index].price = val;
// },
// },
// });
// },
// },
// {
// key: 'cost_price',
// title: '直播原价',

View File

@ -38,14 +38,14 @@
<Button v-auth="['setting-system_menus-add']" type="primary" @click="menusAdd('添加直播间')" icon="md-add"
>添加商品
</Button>
<Button
<!-- <Button
v-auth="['setting-system_menus-add']"
icon="md-list"
type="success"
@click="syncGoods"
style="margin-left: 20px"
>同步商品
</Button>
</Button> -->
</Col>
</Row>
</Form>