Browse Source

分配bug修改

zhouna 4 years ago
parent
commit
c24565eb7b
2 changed files with 15 additions and 4 deletions
  1. 10 0
      src/css/allotCheckTask.less
  2. 5 4
      src/js/allotCheckTask.js

+ 10 - 0
src/css/allotCheckTask.less

@@ -91,6 +91,13 @@ h2{
 .table-cont,.patient-table-cont{
     overflow-y: auto;
 }
+.checkerTable .dot-over{
+    display: inline-block;
+    max-width: 90px;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+}
 .taskTable {
     .dot-hide,.dot-long-hide{
         display: inline-block;
@@ -251,6 +258,9 @@ display: inline-block;
 position: relative;
 width:120px;
 padding: 0 10px;
+overflow: hidden;
+text-overflow: ellipsis;
+white-space: nowrap;
 height:32px;
 border-radius:4px;
 border: 1px solid #E2E5EF;

+ 5 - 4
src/js/allotCheckTask.js

@@ -189,16 +189,16 @@ $(function() {
 //关闭弹窗事件
     $(".modal-container .close").click(function(){
         $(".modal-container").hide();
-        global_DeptNumId=''
+        global_DeptNumId='';
         if(global_deleted){
             //移除后关闭弹窗时清空质控员选中状态:质控员id/name/科室id及右侧选中任务code
             //并刷新左侧和右侧列表
             global_CheckerId='';
             global_CheckerName='';
+            global_DeptMId='';
             global_TaskCodes=[];
             getCheckerList();
             getTabData(1);
-        }else{
         }
     });
 
@@ -470,9 +470,9 @@ function renderCheckerTable(){
             for(let i=0;i<titles.length;i++){
                 code=$(titles[i]).attr('valCode');
                 if(code==="jobNum"){
-                    str +=  `<td class="textCenter"><a class="job-num" data-index=${i} data-dept=${item.deptId} data-id="${item.doctorId}" data-name="${item.doctorName}">${ item[code]}<a></td>`
+                    str +=  `<td class="textCenter"><a class="job-num" data-index=${i} data-dept=${item.deptId} data-id="${item.doctorId}" data-name="${item.doctorName}">${ item[code]}</a></td>`
                 }else{
-                    str +=  `<td class="textCenter"><span data-index=${i}>${ item[code]}<span></td>`
+                    str +=  `<td class="textCenter"><span data-index=${i} class="dot-over"  title="${ item[code]}">${ item[code]}</span></td>`
                 }
             }
         str += "</tr>"
@@ -576,6 +576,7 @@ function bindTaskNumEvent(){
         global_CheckerName=$(this).attr("data-name");
         global_DeptNumId=$(this).attr("data-dept");
         $(".modal-container").show();
+        global_deleted=false;
         getTasksList();
     })
 }