在表格中实现修改数据,并能批量修改
实现效果
html
<el-dialog title="商品批量改价" :visible.sync="dialogTableVisible" :append-to-body=true>
<el-table :data="gridData"
ref="multipleTable"
@selection-change="handleSelectionChange">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column prop="code" label="条码" width="180">
<template slot-scope="scope">
<el-autocomplete
@click.native="chooseGoodClick"
v-model="scope.row.goodsName"
:fetch-suggestions="querySearchAsync"
placeholder="名称/条码/自编码"
@select="changePriceRow"
@change="changePriceRow"