去除商品列表多规格操作编辑

This commit is contained in:
gyq
2024-11-22 14:31:32 +08:00
parent c94acd899a
commit f266501a7b

View File

@@ -189,11 +189,13 @@
style="margin-left: 20px !important;"> style="margin-left: 20px !important;">
<el-button type="text" icon="el-icon-edit">编辑</el-button> <el-button type="text" icon="el-icon-edit">编辑</el-button>
</router-link> --> </router-link> -->
<el-button type="text" icon="el-icon-edit" @click="toPath('/product/add_shop', scope.row)">编辑</el-button> <div style="display: flex;gap: 10px;">
<el-popconfirm title="确定删除吗?" @confirm="delTableHandle([scope.row.id])"> <el-button type="text" icon="el-icon-edit" @click="toPath('/product/add_shop', scope.row)"
<el-button type="text" icon="el-icon-delete" style="margin-left: 20px !important;" v-if="scope.row.typeEnum">编辑</el-button>
slot="reference">删除</el-button> <el-popconfirm title="确定删除吗?" @confirm="delTableHandle([scope.row.id])">
</el-popconfirm> <el-button type="text" icon="el-icon-delete" slot="reference">删除</el-button>
</el-popconfirm>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -244,7 +246,7 @@ import { tbProductListV2, tbShopCategoryGet, tbProductDelete, tbProductIsHot, up
import { hasPermission } from '@/utils/limits.js' import { hasPermission } from '@/utils/limits.js'
export default { export default {
name:'product', name: 'product',
components: { components: {
BindCons, BindCons,
StockHistory StockHistory