|
|
@@ -260,7 +260,7 @@
|
|
|
|
|
|
<el-dialog title="编辑商品" :visible.sync="productDialogVisible">
|
|
|
<HomeProduct :homeProductInfo='homeProductInfo'
|
|
|
- @close='productClose'></HomeProduct>
|
|
|
+ @close='productClose' ref='homeProduct'></HomeProduct>
|
|
|
</el-dialog>
|
|
|
|
|
|
</div>
|
|
|
@@ -393,8 +393,13 @@ export default {
|
|
|
this.getData();
|
|
|
},
|
|
|
editRowProduct(row) {
|
|
|
- this.homeProductInfo = row;
|
|
|
+ console.log(row)
|
|
|
+
|
|
|
this.productDialogVisible = true;
|
|
|
+ this.homeProductInfo = row;
|
|
|
+ // if (this.$refs.homeProduct) {
|
|
|
+ // this.$refs.homeProduct.getInfo();
|
|
|
+ // }
|
|
|
},
|
|
|
deleteRowProduct(row) {
|
|
|
this.$alert("删除将无法恢复,确认要删除么?", "警告", {
|