heyang пре 11 месеци
родитељ
комит
05a0b5e1d0
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      src/views/chemicalManage/inventoryManagement/savePending/index.vue

+ 4 - 3
src/views/chemicalManage/inventoryManagement/savePending/index.vue

@@ -406,14 +406,15 @@
         需要在selection 添加 :reserve-selection="true"
       */
       getRowKeys(row) {
-        return row.id
+        return row.waitId
       },
       //多选框选中数据
       handleSelectionChange(selection) {
         this.selectedNum = selection.length;
-        this.ids = selection.map(item => item.id)
+        this.ids = selection.map(item => item.waitId)
+        this.exportConfig.ids=this.ids;
         this.multiple = !selection.length
-        this.exportConfig.ids=this.ids
+
       },
     },
   }