|
@@ -18,7 +18,7 @@ listenScroll()
|
|
let isPlacefile = getCookie('isPlacefile')||1
|
|
let isPlacefile = getCookie('isPlacefile')||1
|
|
|
|
|
|
let deptName="",deptNameTemp="", behospitalCode="", level="", behospitalCodeTemp="",deptId="",deptIdTemp="",
|
|
let deptName="",deptNameTemp="", behospitalCode="", level="", behospitalCodeTemp="",deptId="",deptIdTemp="",
|
|
- data_desc=["improveleNum"],data_asc=[];
|
|
|
|
|
|
+ data_desc=["improvele_num"],data_asc=[];
|
|
let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
from = getUrlArgObjectNew("from",srcUrl)||""
|
|
from = getUrlArgObjectNew("from",srcUrl)||""
|
|
lineType = getUrlArgObjectNew("lineType",srcUrl)||""
|
|
lineType = getUrlArgObjectNew("lineType",srcUrl)||""
|
|
@@ -33,8 +33,6 @@ $(function() {
|
|
const iconCalenGrey= require("../../images/icon_calen_grey.png")
|
|
const iconCalenGrey= require("../../images/icon_calen_grey.png")
|
|
//获取科室列表
|
|
//获取科室列表
|
|
getDeptList()
|
|
getDeptList()
|
|
- //初始列表数据获取
|
|
|
|
- getTabData(1);
|
|
|
|
//日期控件事件绑定
|
|
//日期控件事件绑定
|
|
$('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
|
|
$('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
|
|
$('.iconCalen').on("mouseenter", function(e){
|
|
$('.iconCalen').on("mouseenter", function(e){
|
|
@@ -46,6 +44,10 @@ $(function() {
|
|
$('.iconCalen').on("click", function(e){
|
|
$('.iconCalen').on("click", function(e){
|
|
$(this).parent().find("input").focus()
|
|
$(this).parent().find("input").focus()
|
|
})
|
|
})
|
|
|
|
+ //日期默认当年
|
|
|
|
+ setDatePicker($("#datepicker"), $("#datepicker2"), 1);
|
|
|
|
+ //初始列表数据获取
|
|
|
|
+ getTabData(1);
|
|
//导出事件绑定
|
|
//导出事件绑定
|
|
$('.export').click(function(){
|
|
$('.export').click(function(){
|
|
const param = getFilterParam();
|
|
const param = getFilterParam();
|
|
@@ -59,6 +61,22 @@ $(function() {
|
|
downloadExportedData(res.data,"条目缺陷改善统计"+startDateParam+"-"+endDateParam+".xls");
|
|
downloadExportedData(res.data,"条目缺陷改善统计"+startDateParam+"-"+endDateParam+".xls");
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ //给每一个标题绑定一个排序事件
|
|
|
|
+ $("th[code]").on("click",function(e){
|
|
|
|
+ const code=$(this).attr("code");
|
|
|
|
+ if(data_asc==code){
|
|
|
|
+ data_desc=code;
|
|
|
|
+ data_asc="";
|
|
|
|
+ $("th[code]").removeClass("asc desc");
|
|
|
|
+ $(this).addClass("desc");
|
|
|
|
+ }else{
|
|
|
|
+ data_desc="";
|
|
|
|
+ data_asc=code;
|
|
|
|
+ $("th[code]").removeClass("asc desc");
|
|
|
|
+ $(this).addClass("asc");
|
|
|
|
+ }
|
|
|
|
+ getTabData(1);
|
|
|
|
+ });
|
|
//重置
|
|
//重置
|
|
$(".abnormalClear").click(function(){
|
|
$(".abnormalClear").click(function(){
|
|
data_desc=""
|
|
data_desc=""
|
|
@@ -104,6 +122,7 @@ function getFilterParam(){
|
|
"startDate":startDateParam,
|
|
"startDate":startDateParam,
|
|
"endDate":endDateParam
|
|
"endDate":endDateParam
|
|
}
|
|
}
|
|
|
|
+ return param;
|
|
}
|
|
}
|
|
/*$(".partTitle a").click(function(){
|
|
/*$(".partTitle a").click(function(){
|
|
//初始菜单选中
|
|
//初始菜单选中
|
|
@@ -177,8 +196,12 @@ function renderTab(data,hisId,activePage){
|
|
<tr data-index=${i}>
|
|
<tr data-index=${i}>
|
|
<td class="textCenter">${(activePage-1)*15 + i+1}</td>
|
|
<td class="textCenter">${(activePage-1)*15 + i+1}</td>
|
|
<td >${item.deptName || "-"}</td>
|
|
<td >${item.deptName || "-"}</td>
|
|
-
|
|
|
|
- <td >${item.totality+'' || "-"}</td>
|
|
|
|
|
|
+ <td >${item.casesName || "-"}</td>
|
|
|
|
+ <td >${item.entryName || "-"}</td>
|
|
|
|
+ <td class="goHomeDetail">${item.totalNum || "-"}</td>
|
|
|
|
+ <td class="goHomeDetail">${item.handleNum|| "-"}</td>
|
|
|
|
+ <td class="goHomeDetail">${item.improveleNum|| "-"}</td>
|
|
|
|
+ <td >${item.handleStr|| "-"}</td>
|
|
</tr>
|
|
</tr>
|
|
`
|
|
`
|
|
}
|
|
}
|
|
@@ -188,7 +211,7 @@ function renderTab(data,hisId,activePage){
|
|
let deptName = $(this).attr("data-dept")
|
|
let deptName = $(this).attr("data-dept")
|
|
let ruleType = $(this).attr("data-ruleType")
|
|
let ruleType = $(this).attr("data-ruleType")
|
|
let deptId = data[index].deptId ? data[index].deptId : ''
|
|
let deptId = data[index].deptId ? data[index].deptId : ''
|
|
- $(parent.document).find("#contentIframe").attr("src", "quexianDetailControlHome.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDateParam=" + startDateParam + "&endDateParam=" + endDateParam)
|
|
|
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", "statisticsDetail.html?deptName=" + deptName + "&deptId=" + deptId + "&casesId=243" + ruleType + "&startDateParam=" + startDateParam + "&endDateParam=" + endDateParam)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
function getDeptList(val){
|
|
function getDeptList(val){
|
|
@@ -227,6 +250,20 @@ function bindDeptSelect(){
|
|
$('.selectDept ').attr('title',deptItemName)
|
|
$('.selectDept ').attr('title',deptItemName)
|
|
$(".deptList").css("display", "none")
|
|
$(".deptList").css("display", "none")
|
|
})
|
|
})
|
|
|
|
+ //科室下拉显示、选中事件
|
|
|
|
+ $('.selectDept').on("focus", function(e){
|
|
|
|
+ e.stopPropagation()
|
|
|
|
+ $(".deptList ").css("display","block")
|
|
|
|
+ })
|
|
|
|
+ $('.selectDept').on("blur", function(e){
|
|
|
|
+ $(".deptList ").css("display", "none")
|
|
|
|
+ $(".selectDept .arrow").attr("src",iconDown)
|
|
|
|
+ })
|
|
|
|
+ $('.selectDept').on("input", function(e){
|
|
|
|
+ let val = $(this).val().trim()
|
|
|
|
+ deptName = deptNameTemp = val
|
|
|
|
+ getDeptList(deptName)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
/*function loading(){
|
|
/*function loading(){
|
|
const str = `
|
|
const str = `
|
|
@@ -240,22 +277,6 @@ function bindDeptSelect(){
|
|
function hideLoading(){
|
|
function hideLoading(){
|
|
$("#mainBox .loadingBox", parent.document).remove()
|
|
$("#mainBox .loadingBox", parent.document).remove()
|
|
}*/
|
|
}*/
|
|
-//给每一个标题绑定一个排序时间
|
|
|
|
-$("th[code]").on("click",function(e){
|
|
|
|
- const code=$(this).attr("code");
|
|
|
|
- if(data_asc==code){
|
|
|
|
- data_desc=code;
|
|
|
|
- data_asc="";
|
|
|
|
- $("th[code]").removeClass("asc desc");
|
|
|
|
- $(this).addClass("desc");
|
|
|
|
- }else{
|
|
|
|
- data_desc="";
|
|
|
|
- data_asc=code;
|
|
|
|
- $("th[code]").removeClass("asc desc");
|
|
|
|
- $(this).addClass("asc");
|
|
|
|
- }
|
|
|
|
- getTabData(1);
|
|
|
|
-});
|
|
|
|
|
|
|
|
//分页渲染
|
|
//分页渲染
|
|
function renderPagination(totalPage,activePage,totalNum){
|
|
function renderPagination(totalPage,activePage,totalNum){
|