|
|
@@ -194,7 +194,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="176" fixed="right" align="left">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-button type="text" size="small" @click="$router.push('/product-edit?id=' + row.id + '&page=' + this.pagination.page)">编辑</el-button>
|
|
|
+ <el-button type="text" size="small" @click="handleEdit(row)">编辑</el-button>
|
|
|
<el-button type="text" size="small" @click="showInventoryDialog(row)">库存</el-button>
|
|
|
<el-dropdown trigger="click" @command="(cmd) => handleActionCmd(row, cmd)">
|
|
|
<el-button type="text" size="small">
|
|
|
@@ -379,6 +379,9 @@ export default {
|
|
|
this.pagination.page = 1
|
|
|
this.loadList()
|
|
|
},
|
|
|
+ handleEdit(row) {
|
|
|
+ this.$router.push('/product-edit?id=' + row.id + '&page=' + this.pagination.page)
|
|
|
+ },
|
|
|
handlePageChange(page) {
|
|
|
this.pagination.page = page
|
|
|
this.loadList()
|