|
@@ -382,22 +382,23 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
handleEdit(row){
|
|
|
+ console.log(row);
|
|
|
this.title = '编辑'
|
|
|
this.dialogFormVisible = true
|
|
|
// this.setQuery = JSON.parse(JSON.stringify(row))
|
|
|
this.setQuery = {
|
|
|
- cover: row.cover,
|
|
|
+ cover: row.cover||[],
|
|
|
productType: row.productType,
|
|
|
regionCode: row.regionCode,
|
|
|
- title: row.title,
|
|
|
- pid: row.pid,
|
|
|
- top: row.top,
|
|
|
+ title: row.title||'',
|
|
|
+ pid: row.pid||'',
|
|
|
+ top: row.top||0,
|
|
|
hidden: row.hidden,
|
|
|
- salesCount: row.salesCount,
|
|
|
- originalPrice: row.originalPrice,
|
|
|
- salePrice: row.salePrice,
|
|
|
- hotCount: row.hotCount,
|
|
|
- address: row.address,
|
|
|
+ salesCount: row.salesCount||0,
|
|
|
+ originalPrice: row.originalPrice||0,
|
|
|
+ salePrice: row.salePrice||0,
|
|
|
+ hotCount: row.hotCount||0,
|
|
|
+ address: row.address||'',
|
|
|
locationPoint:row.locationPoint ||{
|
|
|
longitude: 0,
|
|
|
latitude: 0
|