|
|
|
|
@ -1217,7 +1217,15 @@ function initTable5(data,sidePagination) {
|
|
|
|
|
checkbox: true,
|
|
|
|
|
width: 25,
|
|
|
|
|
align: 'center',
|
|
|
|
|
hidden: true
|
|
|
|
|
hidden: true,
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
console.log(row.timeStatus)
|
|
|
|
|
if (row.timeStatus ==1) {
|
|
|
|
|
return { disabled : true,}
|
|
|
|
|
}else if(row.timeStatus ==2){
|
|
|
|
|
return { disabled : false,}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
@ -1225,8 +1233,14 @@ function initTable5(data,sidePagination) {
|
|
|
|
|
valign: 'middle',
|
|
|
|
|
width: 120, // 定义列的宽度,单位为像素px
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var html = '<button type="button" class="btn btn-primary btn-sm editInfo" >同步更新</button>';
|
|
|
|
|
return html;
|
|
|
|
|
if (row.timeStatus !=1) {
|
|
|
|
|
var html = '<button type="button" class="btn btn-primary btn-sm editInfo" >同步更新</button>';
|
|
|
|
|
|
|
|
|
|
return html;
|
|
|
|
|
}else {
|
|
|
|
|
var html = '<button type="button" class="btn btn-primary btn-sm " >正在更新</button>';
|
|
|
|
|
return html;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
events: {
|
|
|
|
|
'click .editInfo': function (e, value, row, index) {
|
|
|
|
|
@ -1348,6 +1362,7 @@ function initTable5(data,sidePagination) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
//监听分页点击事件
|
|
|
|
|
onPageChange: function(num, type) {
|
|
|
|
|
pageNumber = num;
|
|
|
|
|
@ -1358,7 +1373,10 @@ function initTable5(data,sidePagination) {
|
|
|
|
|
}else{
|
|
|
|
|
option.data = data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#table5").bootstrapTable(option);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//对比结束时间方法
|
|
|
|
|
/**
|
|
|
|
|
@ -1437,6 +1455,7 @@ function submitUpdate(ids,notNursingIds,detailIds,sysFlag) {
|
|
|
|
|
data:{ids:ids,notNursingIds:notNursingIds,detailIds:detailIds,jzh:jzh,masterId:$("#idLab").text(),sysFlag:sysFlag},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function (data) {
|
|
|
|
|
|
|
|
|
|
if(data.code == 100){
|
|
|
|
|
toastr.success("同步更新已发送,请耐心等待!");
|
|
|
|
|
//刷新列表
|
|
|
|
|
|