Browse Source

序列选区超过1000时,不允许保存

cxmo 10 months ago
parent
commit
376a15933e

+ 4 - 1
src/views/datasheet_manage/customAnalysis/components/createTargetForm.vue

@@ -239,7 +239,10 @@ export default {
     handleSaveTarget: _.debounce(async function() {
       if(!this.formData.dateSeries) return this.$message.warning('日期序列不能为空')
       if(!this.formData.valueSeries) return this.$message.warning('数值序列不能为空')
-
+      //如果选区超过10000,提示
+      if(this.formData.dateArr.length>10000||this.formData.valueArr.length>10000){
+        return this.$message.warning("选区过多,请调整选区")
+      }
       await this.$refs.formRef.validate();
       this.initSelect();
       this.$emit('save')