ソースを参照

增加月报表查询参数校验

cfort 2 年 前
親
コミット
0c88842198
1 ファイル変更、4 行追加、0 行削除
  1. 4 0
      src/views/component/env/monthlyStat.vue

+ 4 - 0
src/views/component/env/monthlyStat.vue

@@ -143,6 +143,10 @@ export default {
             }
             }
         },
         },
         handleSave () {
         handleSave () {
+            const paramValues = Object.values(this.paramForm)
+            if (paramValues.length !== this.fields.length || paramValues.some(i => !i)) {
+                return this.$message.warning('请完整填写查询参数!')
+            }
             this.$emit('confirm', this.paramForm)
             this.$emit('confirm', this.paramForm)
         },
         },
         closeDialog () {
         closeDialog () {