Browse Source

fix: 渲染完毕调用

zhengnaiwen_citu 4 months ago
parent
commit
2e37db629e

+ 4 - 1
src/views/salary/claim/sharingClaim/sharingClaimDetailsClaimByDept.vue

@@ -135,8 +135,11 @@ export default {
         maxRatio: item.maxRatio - item.alreadyDistributedRatio * 100
       }
       this.formQuery.items = [{ ...defaultItem }]
-      this.$refs.form.clearValidate()
+
       this.$refs.dialog.open()
+      this.$nextTick(() => {
+        this.$refs.form.clearValidate()
+      })
       this.getEmployeeItems()
     },
     async getEmployeeItems () {