This commit is contained in:
xieshen 2019-05-27 11:54:37 +08:00
parent c36b43551a
commit 3ca762a6ee
2 changed files with 2 additions and 3 deletions

View File

@ -85,7 +85,7 @@ function initForm() {
id = JSON.parse(response).id; id = JSON.parse(response).id;
} }
// 定时 // 定时
var time = setInterval(function () { // var time = setInterval(function () {
var new_path = ''; var new_path = '';
if (path == 'calc_prevent_impact/') { if (path == 'calc_prevent_impact/') {
new_path = 'get_prevent_impact_value/' new_path = 'get_prevent_impact_value/'
@ -129,7 +129,7 @@ function initForm() {
}); });
}, 20000); // }, 20000);
} }

View File

@ -257,7 +257,6 @@ def get_calc_type(type):
@csrf_exempt @csrf_exempt
def calc_spi_diaster(request): def calc_spi_diaster(request):
spi_type = request.POST['spi_type'] # spi.spei spi_type = request.POST['spi_type'] # spi.spei
print(str(spi_type)+"6666666666666666666666666666")
# county = request.POST['county'] # 是否划分县域 1 or 0 # county = request.POST['county'] # 是否划分县域 1 or 0
type = request.POST['type'] # 栅格种类 type = request.POST['type'] # 栅格种类
month = request.POST['month'] # 几月 month = request.POST['month'] # 几月