zhouna %!s(int64=4) %!d(string=hai) anos
pai
achega
3662d6ce8f
Modificáronse 2 ficheiros con 10 adicións e 2 borrados
  1. 4 0
      src/css/cdssHorizontal.less
  2. 6 2
      src/js/tcmiss.js

+ 4 - 0
src/css/cdssHorizontal.less

@@ -537,6 +537,10 @@
                 }
                 .desc {
                     color: #666;
+                  /*width: 494px;
+                  overflow: hidden;
+                  text-overflow: ellipsis;
+                  white-space: nowrap;*/
                 }
 
             }

+ 6 - 2
src/js/tcmiss.js

@@ -28,7 +28,7 @@ function renderConfig(config) {
 
 function getTcmMr(mrId, config) {
     renderConfig(config.planDetails || []);
-    if (!mrId) {
+    if (!mrId) {    //没有mrId时不显示推送模块
         $(".recipe").hide();
         return;
     }
@@ -49,7 +49,7 @@ function getTcmData(param, config) {
     const item = config.planDetails.find((it) => it.code === "treatment");
     const num = (item || {}).number || 3;
     const {tcmDiag, tcmSyndrome} = param;
-    if (!tcmDiag) {
+    if (!tcmDiag) {     //没有推送入参时不显示推送模块
         $(".recipe").hide();
         return;
     }
@@ -61,6 +61,10 @@ function getTcmData(param, config) {
     get('/lantone/private/zycftj?jibing=' + tcmDiag + "&zhengxing=" + tcmSyndrome).then((res) => {
         //console.log(res)
         let data = res.data.data || []
+        if (!data.length) {   //没有处方时不显示推送模块
+            $(".recipe").hide();
+            return;
+        }
         if (res.data.status) {
             renderTcm(data, num)
         } else {