|
@@ -68,7 +68,7 @@ let treatDisName;
|
|
|
function getMRInfo() {
|
|
|
return post(config.getMr2,{mrId:mrId})
|
|
|
}
|
|
|
-
|
|
|
+let ifInputParam; //是否有入参,显示输入空状态用
|
|
|
if(mrId){
|
|
|
Promise.all([getConf(),getMRInfo()]).then(([res1,res2])=>{
|
|
|
const data = res1.data.data&&res1.data.data[0]
|
|
@@ -91,7 +91,25 @@ if(mrId){
|
|
|
followEmpty()
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+function hasInputParam(){
|
|
|
+ const checkKeys = ["chief","diag","diseaseName","drug","drugOrder","lis","lisOrder",'marital','menstrual',"operation","operationOrder","otherIndex","otherOrder","pacs","pacsOrder","pasts","personal","symptom","transfusion","transfusionOrder","vital"];
|
|
|
+ let res = false;
|
|
|
+ let val;
|
|
|
+ checkKeys.map((it)=>{
|
|
|
+ val = msg[it];
|
|
|
+ if(typeof val==='string'){
|
|
|
+ if(val!==''){
|
|
|
+ res=true;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ const str = JSON.stringify(val);
|
|
|
+ if(!(str==='{}'||str==='[]')){
|
|
|
+ res=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return res;
|
|
|
+}
|
|
|
|
|
|
function getConf() {
|
|
|
var msg = window.msg
|
|
@@ -398,6 +416,7 @@ function renderWriteStandard(){
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
function renderwriteStandardPage(list,casewritingNum){
|
|
|
let arr = Object.keys(list)
|
|
|
if(arr.length > 0 && $(".moduleItem.casewriting").length > 0){
|
|
@@ -765,6 +784,12 @@ function bindGeneralSlide(){
|
|
|
//显示空状态
|
|
|
function empty(){
|
|
|
setTimeout(function(){
|
|
|
+ ifInputParam = hasInputParam();
|
|
|
+ if(!ifInputParam){ //没有输入数据时
|
|
|
+ $(".recommendBox .empty-box").hide();
|
|
|
+ $(".recommendBox .empty").show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
const emptyShownBox = $('.recommendWrap .empty-box:visible').length;
|
|
|
const configShownBox = $('.recommendWrap .moduleItem:visible').length;
|
|
|
if(configShownBox===0&&emptyShownBox===0){ //有配置但没数据
|