diff --git a/ecs/jskult-webapp/src/static/function/businessLogicScript.js b/ecs/jskult-webapp/src/static/function/businessLogicScript.js index 6f67cba6..c3aa12dc 100644 --- a/ecs/jskult-webapp/src/static/function/businessLogicScript.js +++ b/ecs/jskult-webapp/src/static/function/businessLogicScript.js @@ -44,11 +44,32 @@ class Loading { } } + +/** + * ローダーを表示する + * @param {string} loadingElemId ローディング要素のID + */ +function showLoading(loadingElemId = '_loading') { + const loading = new Loading(loadingElemId); + loading.start(); +} + +// 汎用画面遷移 + +function transitionTo(link){ + // ローディング表示 + showLoading(); + location.href = link; + return false; +} + // 検索フォーム // 戻るボタンの関数 // 機能概要:メニュー画面に遷移する function backToMenu(){ + // ローディング表示 + showLoading(); location.href = "/menu/"; } diff --git a/ecs/jskult-webapp/src/templates/maintlogin.html b/ecs/jskult-webapp/src/templates/maintlogin.html index 06f28098..6a3a7d71 100644 --- a/ecs/jskult-webapp/src/templates/maintlogin.html +++ b/ecs/jskult-webapp/src/templates/maintlogin.html @@ -13,7 +13,7 @@ Mainte Login

-
+
@@ -21,5 +21,9 @@
+ + {% with progress_message = ''%} + {% include '_loading.html' %} + {% endwith %} \ No newline at end of file diff --git a/ecs/jskult-webapp/src/templates/menu.html b/ecs/jskult-webapp/src/templates/menu.html index 59eb8a74..8b920198 100644 --- a/ecs/jskult-webapp/src/templates/menu.html +++ b/ecs/jskult-webapp/src/templates/menu.html @@ -11,14 +11,14 @@

MeDaCA
機能メニュー



{% if menu.is_available_ult_doctor_menu() %} - Ultmarc照会(医師)

+ Ultmarc照会(医師)

{% endif %} {% if menu.is_available_ult_inst_menu() %} - Ultmarc照会(施設)

+ Ultmarc照会(施設)

{% endif %} {% if menu.is_available_bio_menu() %} {% if not menu.is_batch_processing() %} - 生物由来データ参照

+ 生物由来データ参照

{% else %}
生物由来データ参照は
日次バッチ処理中のため利用出来ません
{% endif %} @@ -29,10 +29,14 @@ {% elif menu.is_backup_processing() %}
バックアップ取得を開始しました。
日次バッチ更新が終了するまでマスターメンテメニューは利用できません
{% else %} - マスターメンテメニュー

+ マスターメンテメニュー

{% endif %} {% endif %} -

Logout +

Logout + + {% with progress_message = ''%} + {% include '_loading.html' %} + {% endwith %}