| | |
| | | <template slot-scope="{row}"> |
| | | <el-switch |
| | | v-model="row.status" |
| | | :active-value="1" |
| | | :inactive-value="0" |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949" |
| | | @change="statusChange(row)" |
| | |
| | | <el-table-column prop="labels" label="商品标签集合,多个用英文逗号隔开" min-width="100px"></el-table-column> --> |
| | | <!-- v-if="containPermissions(['business:goods:update', 'business:goods:delete'])" --> |
| | | <el-table-column |
| | | |
| | | label="操作" |
| | | min-width="120" |
| | | fixed="right" |
| | |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | |
| | | |
| | | labelList({ |
| | | capacity: 999, |
| | | model: { |
| | |
| | | |
| | | }, |
| | | /** |
| | | * |
| | | * |
| | | * @param {上下状态} status 0上架 1下架 |
| | | */ |
| | | issued(status) { |
| | |
| | | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | statusChange(row) { |
| | | updateById(row) |
| | | .then(() => { |