chrislee 5 mesiacov pred
rodič
commit
5da7c0969a
1 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  1. 4 2
      src/views/modules/device/use-list.vue

+ 4 - 2
src/views/modules/device/use-list.vue

@@ -213,7 +213,9 @@ export default {
           url: this.$http.adornUrl('/biz-service/prodEquipmentUsageRecord/update'),
           method: 'post',
           data: this.$http.adornData({
-            ...row
+            usageRecordId: row.usageRecordId,
+            equipmentId: row.equipmentId,
+            state: row.state
           })
         }).then(({data}) => {
           if (data && data.code === '200') {
@@ -223,7 +225,7 @@ export default {
               duration: 1500,
               onClose: () => {
                 this.onChose()
-                this.$emit('refreshDataList')
+                this.getDataList()
               }
             })
           }