Forráskód Böngészése

合同修改后列表页面不刷新

lizhenhao 2 éve
szülő
commit
64f1be487b

+ 1 - 0
src/views/modules/cw/workContract/ContractNameForm.vue

@@ -915,6 +915,7 @@
                 this.inputForm.contractInfoList = this.$refs.archiveFile.getDataList()
                 this.inputForm.fees = this.inputForm.contractFees.join(',')
                 this.contractInfoService.save(this.inputForm).then(() => {
+                  this.$emit('refreshDataList')
                   this.loading = false
                   this.close()
                 }).catch(() => {

+ 1 - 1
src/views/modules/cw/workContract/ContractRegistration.vue

@@ -202,7 +202,7 @@
       </div>
     </div>
     <!-- 弹窗, 新增 / 修改 -->
-    <ContractNameForm ref="contractNameForm"></ContractNameForm>
+    <ContractNameForm ref="contractNameForm" @refreshDataList="refreshList"></ContractNameForm>
     <ContractAddForm ref="contractAddForm" @refreshDataList="refreshList"></ContractAddForm>
     <WorkClientForm ref="workClientForm" @refreshDataList="refreshList"></WorkClientForm>
     <WorkContractBorrowMessageForm ref="workContractBorrowMessageForm" @refreshDataList="refreshList"></WorkContractBorrowMessageForm>