Browse Source

清空数据

LiFei 5 năm trước cách đây
mục cha
commit
72bb3079e0
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      src/views/hlgcompany/modules/HlgCompanySubcontractor.vue

+ 6 - 1
src/views/hlgcompany/modules/HlgCompanySubcontractor.vue

@@ -194,6 +194,9 @@
         return filterObj(param)
       },
       edit (record) {
+        this.dataSource=[]
+        this.ipagination.total=0
+        this.paymentTypeMsg=""
         this.model = Object.assign({}, record)
         this.companyId = record.id
         this.platformId = record.platformId;
@@ -233,13 +236,15 @@
         })
       },
       close () {
-        this.$emit('close');
+        this.$emit('ok');
         this.visible = false;
       },
       handleOk () {
+        this.$emit('ok');
         this.close()
       },
       handleCancel () {
+        this.$emit('ok');
         this.close()
       },
       modalFormOk(){