소스 검색

清空数据

LiFei 5 년 전
부모
커밋
72bb3079e0
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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(){