wyq 3 роки тому
батько
коміт
cf6245abec
3 змінених файлів з 19 додано та 19 видалено
  1. 15 15
      src/html/checkTaskList.html
  2. 2 2
      src/js/checkTaskList.js
  3. 2 2
      src/js/creatCheckTask.js

+ 15 - 15
src/html/checkTaskList.html

@@ -82,21 +82,21 @@
              <table class="qctable">
                  <thead>
                  <tr class="tabTitle">
-                     <th class="textCenter" valCode="behospitalCode">病人住院序号</th>
-                     <th class="scoreTime textCenter" valCode="jobTypeName">任务来源</th>
-                     <th class="scoreTime textCenter" valCode="month">任务月份</th>
-                     <th class="doctorName textCenter" valCode="status" >病历核查状态</th>
-                     <th class="deptName textCenter" valCode="behDeptName">科室</th>
-                     <th class="patientName textCenter" valCode="name"  style="width: 100px;">病人姓名</th>
-                     <th class="patientNo textCenter" valCode="fileCode" >病案号</th>
-                     <th class="doctorName textCenter" valCode="doctorName">主管医生</th>
-                     <th class="outHospitalDate textCenter" valCode="leaveHospitalDate" >出院日期</th>
-                     <th class="inHospitalDate textCenter desc" valCode="jobDistributionTime"  code="jobDistributionTime">分配日期</th>
-                     <th class="patientSex textCenter" valCode="checkTime" code="checkTime">核查日期</th>
-                     <th class="patientage textCenter" valCode="checkName">核查员</th>
-                     <th class="bedNum textCenter" valCode="casesEntryNum" code="casesEntryNum">缺陷数</th>
-                     <th class="recordLevel textCenter" valCode="level" >病历等级</th>
-                     <th class="recordScore textCenter" valCode="scoreRes" >病历得分</th>
+                     <th class="textCenter" code="behospitalCode">病人住院序号</th>
+                     <th class="scoreTime textCenter" code="jobTypeName">任务来源</th>
+                     <th class="scoreTime textCenter" code="month">任务月份</th>
+                     <th class="doctorName textCenter" code="status" >病历核查状态</th>
+                     <th class="deptName textCenter" code="behDeptName">科室</th>
+                     <th class="patientName textCenter" code="name"  style="width: 100px;">病人姓名</th>
+                     <th class="patientNo textCenter" code="fileCode" >病案号</th>
+                     <th class="doctorName textCenter" code="doctorName">主管医生</th>
+                     <th class="outHospitalDate textCenter" code="leaveHospitalDate" >出院日期</th>
+                     <th class="inHospitalDate textCenter desc" code="jobDistributionTime"  code="jobDistributionTime">分配日期</th>
+                     <th class="patientSex textCenter" code="checkTime" >核查日期</th>
+                     <th class="patientage textCenter" code="checkName">核查员</th>
+                     <th class="bedNum textCenter" code="casesEntryNum" >缺陷数</th>
+                     <th class="recordLevel textCenter" code="level" >病历等级</th>
+                     <th class="recordScore textCenter" code="scoreRes" >病历得分</th>
                      <!-- <th class="recordScoreOpera textCenter" style="width: 65px;">操作</th> -->
                  </tr>
                  </thead>

+ 2 - 2
src/js/checkTaskList.js

@@ -335,14 +335,14 @@ function renderTab(data) {
         $('.tbody').html(emptyBox(null, 15))
         return;
     }
-    const titles = $(".tabTitle th[valCode]");
+    const titles = $(".tabTitle th[code]");
     for(let i = 0; i < data.length; i++){
         const item = data[i]
 
         str += `
             <tr  data-index=${i}>`;
         for(let i=0;i<titles.length;i++){
-            code=$(titles[i]).attr('valCode');
+            code = $(titles[i]).attr('code');
             str +=  `<td class="${code=='name'?'beHospitalId':''} textCenter"><span data-index=${i}>${ item[code] || "-"}<span></td>`
         }
         str += "</tr>"

+ 2 - 2
src/js/creatCheckTask.js

@@ -69,6 +69,7 @@ $(function() {
         const isCreated = (global_status=="1");
         const text = isCreated?'取消':'生成';
         $(".modal-body p").text("确定要"+text+"这些任务吗?");
+        $("th[code]").removeClass("asc desc");
         if(isCreated){
             $(".creatTask").addClass("disabled");
             $(".cancelTask").removeClass("disabled");
@@ -76,8 +77,7 @@ $(function() {
             $(".creatTask").removeClass("disabled");
             $(".cancelTask").addClass("disabled");
         }
-        console.log(isCreated);
-        
+
         //已生成筛选时按生成日期倒序筛选
         if(isCreated){
             global_delOrAdd=0;