Browse Source

对账管理-时间提示

dujingxian 4 years ago
parent
commit
18d970021a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/pages/subPages/reconciliation.vue

+ 6 - 1
src/pages/subPages/reconciliation.vue

@@ -169,7 +169,12 @@ export default {
     // 时间获取焦点
     hFocusDate() {
       if (!this.value) {
-        this.$message.warning('请先选择日期类型')
+        if (this.timer) {
+            window.clearTimeout(this.timer)
+          }
+          this.timer = setTimeout(() => {
+            this.$message.warning('请选择日期类型')
+          }, 1000)
       }
     }
   }