|
@@ -55,7 +55,7 @@
|
|
|
<el-table-column align="center" label="操作" width="240px" class-name="small-padding fixed-width">
|
|
<el-table-column align="center" label="操作" width="240px" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
|
|
<el-button type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
|
|
|
- <el-button type="danger" size="small" @click="handleDelete(scope.row.productCode)">删除</el-button>
|
|
|
|
|
|
|
+ <el-button type="danger" size="small" @click="handleDelete(scope.row.id)">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -570,13 +570,13 @@ export default {
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- handleDelete(productCode) {
|
|
|
|
|
|
|
+ handleDelete(id) {
|
|
|
this.$confirm('确认删除吗?', '提示', {
|
|
this.$confirm('确认删除吗?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- removeItem({ productCode: productCode }).then(response => {
|
|
|
|
|
|
|
+ removeItem({ id: id }).then(response => {
|
|
|
this.$notify({
|
|
this.$notify({
|
|
|
title: '成功',
|
|
title: '成功',
|
|
|
message: '删除成功',
|
|
message: '删除成功',
|