zhouna 4 years ago
parent
commit
3d1f1c72bb
2 changed files with 5 additions and 3 deletions
  1. 3 3
      src/js/allotCheckTask.js
  2. 2 0
      src/js/checkTaskList.js

+ 3 - 3
src/js/allotCheckTask.js

@@ -258,7 +258,7 @@ function getTabData(activePage){
     $('.patientTable .tbody').html(emptyBox('努力加载中...','',8))
     $('.patientTable .tbody').html(emptyBox('努力加载中...','',8))
     return post(ywCheckApi.getAllotCheckList,param).then(res =>{
     return post(ywCheckApi.getAllotCheckList,param).then(res =>{
         if(res.data.code == '0'){
         if(res.data.code == '0'){
-            const data = res.data.data;
+            const data = res.data.data||{};
             tabList = data.records;
             tabList = data.records;
             const totalPage = data.pages;
             const totalPage = data.pages;
             const totalNum = data.total;
             const totalNum = data.total;
@@ -430,8 +430,8 @@ function selectTaskTb(){
 //待分配任务列表渲染
 //待分配任务列表渲染
 function renderTab(data){
 function renderTab(data){
     let str = ``,code=""
     let str = ``,code=""
-    global_TaskCodes=[];
-    if(data.length===0){
+    global_TaskCodes=[];console.log(1,data)
+    if(!data||data.length===0){
       $('.patientTable .tbody').html(emptyBox(null,7))
       $('.patientTable .tbody').html(emptyBox(null,7))
     //   initScroll("qcList","YX",1)
     //   initScroll("qcList","YX",1)
       return;
       return;

+ 2 - 0
src/js/checkTaskList.js

@@ -232,6 +232,8 @@ function getTabData(activePage) {
         level: global_level,//病历等级
         level: global_level,//病历等级
         asc: data_asc,     //升序
         asc: data_asc,     //升序
         desc: data_desc,       //降序
         desc: data_desc,       //降序
+        size: 15,
+        current:activePage,
         ...filterData,
         ...filterData,
         behDeptId:global_deptId.trim(),
         behDeptId:global_deptId.trim(),
         status:global_checkStatus,
         status:global_checkStatus,