|
@@ -12,7 +12,7 @@ $(function(){
|
|
|
let global_flawData = {}; //缺陷数据
|
|
|
const global_id=getUrlArgObject("id");
|
|
|
const global_age = getUrlArgObject("age");
|
|
|
- let global_check = getUrlArgObject("checkStatus");
|
|
|
+ let global_check;
|
|
|
const global_code = getUrlArgObject("code");
|
|
|
let global_activeTab=$(".sub-menu .page.active").attr("code"); //当前激活菜单项
|
|
|
let global_modules ={}; //模板数据缓存
|
|
@@ -104,7 +104,8 @@ function getRecordDetail(){
|
|
|
if(res.data.code==='0'){
|
|
|
const data = res.data.data;
|
|
|
|
|
|
- const {beHospital,result,msg} = data;
|
|
|
+ const {beHospital,result,msg,checkStatus} = data;
|
|
|
+ global_check = checkStatus
|
|
|
const info=Object.assign(beHospital,result);
|
|
|
initMenu(JSON.parse(result.menuData));
|
|
|
// $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
|
|
@@ -122,6 +123,7 @@ function getRecordDetail(){
|
|
|
|
|
|
//填充患者信息
|
|
|
function initPatientInfo(data){
|
|
|
+ console.log('global_check',global_check)
|
|
|
const obj=Object.assign({},data,{age:!global_age||global_age=="null"?"-":global_age,checkState:global_check});
|
|
|
$("#infoTmpl").tmpl(obj).appendTo("#patientInfo");
|
|
|
$(".check").on("click", function(){
|