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){