Commit 460864b4 authored by 英思-陈欢's avatar 英思-陈欢

优化无数据提示

parent e1c9bf0e
......@@ -106,7 +106,7 @@
Api.foo.queryYearsBill(this.form).then((res: any) => {
if (type == 'loadmore') {
this.list = [...this.list, ...res.list] as any;
} else if (res.list.length == 0) {
} else if (!res || res.list.length == 0) {
xma.showModal({
title: '暂无数据',
showCancel: false,
......
......@@ -70,7 +70,7 @@
Api.foo.chronicDiseaseIdentificationHospital(this.form).then((res: any) => {
if (type == 'loadmore') {
this.list = [...this.list, ...res.list] as any;
} else if (res.list.length == 0) {
} else if (!res || res.list.length == 0) {
xma.showModal({
title: '暂无数据',
showCancel: false,
......
......@@ -116,7 +116,7 @@
// })
if (type == 'loadmore') {
this.list = [...this.list, ...res.list] as any;
} else if (res.list.length == 0) {
} else if (!res || res.list.length == 0) {
xma.showModal({
title: '暂无数据',
showCancel: false,
......
......@@ -149,7 +149,7 @@
Api.foo.paymentProgress(this.form).then((res: any) => {
if (type == 'loadmore') {
this.list = [...this.list, ...res.list] as any;
} else if (res.list.length == 0) {
} else if (!res || res.list.length == 0) {
xma.showModal({
title: '暂无数据',
showCancel: false,
......
......@@ -43,7 +43,7 @@
Api.foo.handingAgencyQuery(this.form).then((res: any) => {
if (type == 'loadmore') {
this.list = [...this.list, ...res.list] as any;
} else if (res.list.length == 0) {
} else if (!res || res.list.length == 0) {
xma.showModal({
title: '暂无数据',
showCancel: false,
......
......@@ -107,7 +107,7 @@
})
if (type == 'loadmore') {
this.list = [...this.list, ...res.list] as any;
} else if (res.list.length == 0) {
} else if (!res || res.list.length == 0) {
xma.showModal({
title: '暂无数据',
showCancel: false,
......
......@@ -66,7 +66,7 @@
Api.foo.overallPlanningPharmacyQuery(this.form).then((res: any) => {
if (type == 'loadmore') {
this.list = [...this.list, ...res.list] as any;
} else if (res.list.length == 0) {
} else if (!res || res.list.length == 0) {
xma.showModal({
title: '暂无数据',
showCancel: false,
......
......@@ -81,7 +81,7 @@
})
if (type == 'loadmore') {
this.list = [...this.list, ...res.list] as any;
} else if (res.list.length == 0) {
} else if (!res || res.list.length == 0) {
xma.showModal({
title: '暂无数据',
showCancel: false,
......
......@@ -69,7 +69,7 @@
})
if (type == 'loadmore') {
this.list = [...this.list, ...res.list] as any;
} else if (res.list.length == 0) {
} else if (!res || res.list.length == 0) {
xma.showModal({
title: '暂无数据',
showCancel: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment