Procházet zdrojové kódy

随访计划按钮bug

zhouna před 3 roky
rodič
revize
fac0c3fac2
3 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. 1 1
      src/css/cdss.less
  2. 1 1
      src/css/staticSearch.less
  3. 4 4
      src/js/followUp.js

+ 1 - 1
src/css/cdss.less

@@ -120,7 +120,7 @@ body{
     margin-left: -45px;
 }
 .emptyImgSearch{
-    width: 100px;
+    width: 145px;
 }
 .emptyTxt{
     text-align: center;

+ 1 - 1
src/css/staticSearch.less

@@ -72,7 +72,7 @@ html{
 .staticSearchB .empty, .staticSearchB .searching,.staticSearchB .inputWarning{
     color: #979797;
     text-align: center;
-    line-height: 40px;
+    /*line-height: 40px;*/      /**bug8689*/
     margin-top: 10px;
     top: 70px;
     position: relative;

+ 4 - 4
src/js/followUp.js

@@ -1,7 +1,7 @@
 var $ = require("jquery");
 var { post,config,getUrlArgObject,openNewWin,isIe8 ,openNewWin} = require('./promise.js');
 let showImg = require('./../images/show.png').replace(/^undefined/g, '')
-let collapseImg = require('./../images/collapse2.png').replace(/^undefined/g, '')
+let collapseImg = require('./../images/collapse.png').replace(/^undefined/g, '')
 let emptyImg = require('./../images/empty3.png').replace(/^undefined/g, '')
 let lisStrFrontIcon = require('./../images/lisStrFront-icon.png').replace(/^undefined/g, '')
 let pacsStrFrontIcon = require('./../images/pacsStrFront-icon.png').replace(/^undefined/g, '')
@@ -135,9 +135,9 @@ function renderDetail(data) {
 }
 function renderBtn(data){
     const hasBtn = data[0]&&data[0].history&&data[0].history === 1
-    /*if(!hasBtn){
+    if(!hasBtn){
         return
-    }*/
+    }
     const str = `<div class="btnBox" id="btnBox"><span class="btnName">显示历史计划</span></div>`
     $(".followUpWrap").append(str)
     bindToggleHistory()
@@ -183,7 +183,7 @@ function checkDom() {
     }
 }
 function bindToggleHistory() {
-    $(document).on("click", ".btnName", function () {
+    $(".followUpWrap .btnName").off("click").on("click",function () {
         const btnText = $(".btnName").text()
         if (btnText === "显示历史计划") {
             $(".btnName").text("隐藏历史计划")