瀏覽代碼

fix: 渲染完毕调用

zhengnaiwen_citu 4 月之前
父節點
當前提交
2e37db629e
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/salary/claim/sharingClaim/sharingClaimDetailsClaimByDept.vue

+ 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 () {