瀏覽代碼

对账管理-时间提示

dujingxian 4 年之前
父節點
當前提交
18d970021a
共有 1 個文件被更改,包括 6 次插入1 次删除
  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)
       }
     }
   }