cxmo 9 месяцев назад
Родитель
Сommit
7d57285c34

+ 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')