From 3ca762a6ee1b3832eb5176ab26b11b8146b6f035 Mon Sep 17 00:00:00 2001 From: xieshen <1397910458@qq.com> Date: Mon, 27 May 2019 11:54:37 +0800 Subject: [PATCH] #20190322 --- disaster/static/disaster/js/hail.js | 4 ++-- disaster/views.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/disaster/static/disaster/js/hail.js b/disaster/static/disaster/js/hail.js index d292fbb..a900302 100644 --- a/disaster/static/disaster/js/hail.js +++ b/disaster/static/disaster/js/hail.js @@ -85,7 +85,7 @@ function initForm() { id = JSON.parse(response).id; } // 定时 - var time = setInterval(function () { + // var time = setInterval(function () { var new_path = ''; if (path == 'calc_prevent_impact/') { new_path = 'get_prevent_impact_value/' @@ -129,7 +129,7 @@ function initForm() { }); - }, 20000); + // }, 20000); } diff --git a/disaster/views.py b/disaster/views.py index 1e61106..d836531 100644 --- a/disaster/views.py +++ b/disaster/views.py @@ -257,7 +257,6 @@ def get_calc_type(type): @csrf_exempt def calc_spi_diaster(request): spi_type = request.POST['spi_type'] # spi.spei - print(str(spi_type)+"6666666666666666666666666666") # county = request.POST['county'] # 是否划分县域 1 or 0 type = request.POST['type'] # 栅格种类 month = request.POST['month'] # 几月