From 9ae0b4306ac43aed56ec577a2535e427109e046a Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Sat, 1 May 2021 16:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/institution/save.html | 5 ++++- .../src/main/resources/templates/institution/update.html | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/module-institution-management/src/main/resources/templates/institution/save.html b/module-institution-management/src/main/resources/templates/institution/save.html index 4a895ce..9262cc3 100644 --- a/module-institution-management/src/main/resources/templates/institution/save.html +++ b/module-institution-management/src/main/resources/templates/institution/save.html @@ -361,7 +361,10 @@ //c初始化数据字典 function initDataDict(dictId,tabId){ - top.restAjax.get(top.restAjax.path("api/area/listallbyparentid/{areaParentId}",[dictId]),{},null,function (code,data,args) { + if(!dictId){ + return; + } + top.restAjax.get(top.restAjax.path("api/area/listbyparentid/{areaParentId}",[dictId]),{},null,function (code,data,args) { $("#"+tabId).empty(); var html = ''; if ('institutionRegionProvince' === tabId){ diff --git a/module-institution-management/src/main/resources/templates/institution/update.html b/module-institution-management/src/main/resources/templates/institution/update.html index a1f98ca..2cdc2e6 100644 --- a/module-institution-management/src/main/resources/templates/institution/update.html +++ b/module-institution-management/src/main/resources/templates/institution/update.html @@ -389,10 +389,10 @@ //c初始化数据字典 function initDataDict(dictId,tabId,selectVelue){ - if(dictId == null || dictId == ''){ + if(!dictId){ return; } - top.restAjax.get(top.restAjax.path("api/area/listallbyparentid/{areaParentId}",[dictId]),{},null,function (code,data,args) { + top.restAjax.get(top.restAjax.path("api/area/listbyparentid/{areaParentId}",[dictId]),{},null,function (code,data,args) { $("#"+tabId).empty(); var html = ''; if ('institutionRegionProvince' === tabId){