wenjie 10 сар өмнө
parent
commit
d7ac516685

+ 1 - 1
src/utils/config.js

@@ -2,7 +2,7 @@
  * @Author: wj 1454560336@qq.com
  * @Date: 2024-01-05 16:08:18
  * @LastEditors: wenjie 1454560336@qq.com
- * @LastEditTime: 2024-08-26 16:01:28
+ * @LastEditTime: 2024-09-04 16:57:55
  * @FilePath: \admin-manage\src\utils\config.js
  * @Description: 124234
  * 

+ 10 - 9
src/views/operationManage/goodsManage/productLibrary.vue

@@ -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