Sfoglia il codice sorgente

病症推导跳转参数新增

zhouna 4 anni fa
parent
commit
322b8d71cb
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      src/js/tcmiss.js

+ 5 - 4
src/js/tcmiss.js

@@ -8,9 +8,6 @@ $(function () {
         const code = $(this).attr("code");
         openNewWin(targetUrl + '?page=' + code, true);
     })
-    $("#goPush").on("click", function () {
-        openNewWin(targetUrl + '?page=bztd', true);
-    });
 });
 
 function renderConfig(config) {
@@ -37,7 +34,11 @@ function getTcmMr(mrId, config) {
         let data = res.data.data || {}
         const {tcmdisease, tcmsyndrome} = data;
         if (res.data.code === '0') {
-            getTcmData({tcmDiag: (tcmdisease || {}).uniqueName, tcmSyndrome: (tcmsyndrome || {}).uniqueName}, config)
+            const diag = (tcmdisease || {}).uniqueName;
+            $("#goPush").on("click", function () {
+                openNewWin(targetUrl + '?page=bztd&jibing='+diag, true);
+            });
+            getTcmData({tcmDiag: diag, tcmSyndrome: (tcmsyndrome || {}).uniqueName}, config)
         } else {
 
         }