Переглянути джерело

优化页面加载进度条的显示,和消息提醒的内容显示

raolu 7 роки тому
батько
коміт
5275a251e4

+ 1 - 0
consulting-list.html

@ -63,6 +63,7 @@
    <script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="js/plugins/toastr/toastr.min.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/es6-promise.js"></script>
    <script src="js/underscore.js"></script>
    <script src="js/api-service.js"></script>

+ 2 - 2
js/buz/body-record.js

@ -46,7 +46,7 @@
        	// 初始化执行
			getBodyRecord(tabIndex, dayIndex);
    	}else{
        	toastr && toastr.warning(res.msg);
        	showWarningMsg(res.msg)
    	}
	})
	// 绘制折线图初始定义
@ -137,7 +137,7 @@
	        	}
	        	myLineChart = new Chart(ctx).Line(dataCanvas, defaults);
	    	}else{
	        	toastr && toastr.warning(res.msg);
	        	showWarningMsg(res.msg)
	    	}
	    })
	}

+ 2 - 2
js/buz/index.js

@ -24,7 +24,7 @@ function getDoctorInfo(){
            //先获取团队信息显示
            getTeamInfo();
        }else{
            toastr && toastr.warning(res.msg)
            showWarningMsg(res.msg)
        }
    })
}
@ -71,7 +71,7 @@ function getTeamInfo(){
            }
            
        }else{
            toastr && toastr.warning(res.msg)
            showWarningMsg(res.msg)
        }
    });
}

+ 5 - 8
js/buz/prescription-consulting.js

@ -164,7 +164,7 @@ function getPrescriptionInfo(){
                width: '100%'
            });
        }else{
            toastr && toastr.warning(res.msg);
            showWarningMsg(res.msg)
        }
    });
}
@ -189,7 +189,7 @@ function getPatientServiceType(){
                $(".diseaseInfo").text("该居民为"+disease+"患者");
            }
        }else{
            toastr && toastr.warning(res.msg);
            showWarningMsg(res.msg)
        }
    });
}
@ -278,9 +278,9 @@ function finish(){
                    $('.info-panel').html("咨询求助已结束");
                    $(".send-btn").addClass("disabled");
                    $("#file_head").attr("disabled", true);
                    toastr.success("已结束咨询");
                    showSuccessMsg("已结束咨询");
                } else {
                    toastr.error(res.msg);
                    showErrorMsg(res.msg);
                }
            })
        },
@ -297,10 +297,7 @@ function bindEvents(){
        }else{
            var text = $.trim($("#input_content").text());
            if(text.length == 0){
                toastr.options = {
                    "positionClass": "toast-top-center",
                }
                toastr.warning('发送内容不能为空');
                showWarningMsg('发送内容不能为空');
                return false;
            }else{
                sendMessage(1, text);

+ 3 - 3
js/buz/prescription-list.js

@ -25,7 +25,7 @@ function getPatientInfo(){
            getFilter();
            getList();
        }else{
            toastr.warning(res.msg);
            showWarningMsg(res.msg);
        }
    })
}
@ -39,7 +39,7 @@ function getFilter(){
        if(res.status == 200){
            fillDropDown(res);
        }else{
            toastr.warning(res.msg);
            showWarningMsg(res.msg);
        }
    });
}
@ -95,7 +95,7 @@ function getList(isRefresh){
            })
            $("#prescriptTable").bootstrapTable(options);
        }else{
            toastr.warning(res.msg);
            showWarningMsg(res.msg);
        }
    });
}

+ 2 - 2
js/buz/prescription-tabs.js

@ -98,7 +98,7 @@ function getPrescriptionInfo(){
            }
            initPage();
        }else{
            toastr && toastr.warning(res.msg);
            showWarningMsg(res.msg);
        }
    });
}
@ -124,7 +124,7 @@ function getPrescriptionInfoByCode(){
            }
            initPage();
        }else{
            toastr && toastr.warning(res.msg);
            showWarningMsg(res.msg);
        }
    });
}

+ 1 - 0
jw-prescription-info.html

@ -89,6 +89,7 @@
    <script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="js/plugins/toastr/toastr.min.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/es6-promise.js"></script>
    <script src="js/underscore.js"></script>
    <script src="js/api-service.js"></script>

+ 1 - 0
order-list-jg.html

@ -95,6 +95,7 @@
    <script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="js/plugins/toastr/toastr.min.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/es6-promise.js"></script>
    <script src="js/underscore.js"></script>
    <script src="js/api-service.js"></script>

+ 1 - 0
order-list.html

@ -188,6 +188,7 @@
    <script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="js/plugins/toastr/toastr.min.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/es6-promise.js"></script>
    <script src="js/underscore.js"></script>
    <script src="js/api-service.js"></script>

+ 1 - 0
prescription-adjustment.html

@ -304,6 +304,7 @@
    <script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="js/plugins/toastr/toastr.min.js"></script>
    <script src="js/plugins/suggest/bootstrap-suggest.min.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/es6-promise.js"></script>
    <script src="js/underscore.js"></script>
    <script src="js/api-service.js"></script>

+ 1 - 0
prescription-detail.html

@ -260,6 +260,7 @@
    <script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="js/plugins/toastr/toastr.min.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/es6-promise.js"></script>
    <script src="js/underscore.js"></script>
    <script src="js/api-service.js"></script>

+ 1 - 0
prescription-management.html

@ -149,6 +149,7 @@
    <script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="js/plugins/toastr/toastr.min.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/es6-promise.js"></script>
    <script src="js/underscore.js"></script>
    <script src="js/api-service.js"></script>

+ 1 - 0
prescription-tabs.html

@ -47,6 +47,7 @@
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/toastr/toastr.min.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/template.js"></script>
    <script src="js/util.js"></script>
    <script src="js/api-service.js"></script>