|
@@ -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;
|