fix
Showing
1 changed file
with
4 additions
and
4 deletions
| ... | @@ -94,13 +94,13 @@ const getLabelPageData = async () => { | ... | @@ -94,13 +94,13 @@ const getLabelPageData = async () => { |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | const res: any = await getLabelPageList(params); | 96 | const res: any = await getLabelPageList(params); |
| 97 | if (res.code == proxy.$passCode) { | 97 | tableInfo.value.loading = false; |
| 98 | if (res?.code == proxy.$passCode) { | ||
| 98 | labelPageList.value = res.data.records; | 99 | labelPageList.value = res.data.records; |
| 99 | tableInfo.value.page.rows = res.data.totalRows; | 100 | tableInfo.value.page.rows = res.data.totalRows; |
| 100 | tableInfo.value.page.limit = res.data.pageSize | 101 | tableInfo.value.page.limit = res.data.pageSize |
| 101 | tableInfo.value.page.curr = res.data.pageIndex | 102 | tableInfo.value.page.curr = res.data.pageIndex |
| 102 | tableInfo.value.data = labelPageList.value; | 103 | tableInfo.value.data = labelPageList.value; |
| 103 | tableInfo.value.loading = false; | ||
| 104 | } else { | 104 | } else { |
| 105 | proxy.$ElMessage.error(res.msg); | 105 | proxy.$ElMessage.error(res.msg); |
| 106 | } | 106 | } |
| ... | @@ -759,13 +759,13 @@ const searchClass = async (val: any, clear: boolean = false) => { | ... | @@ -759,13 +759,13 @@ const searchClass = async (val: any, clear: boolean = false) => { |
| 759 | guids: guids.value, | 759 | guids: guids.value, |
| 760 | } | 760 | } |
| 761 | const res: any = await getLabelPageList(params); | 761 | const res: any = await getLabelPageList(params); |
| 762 | if (res.code == proxy.$passCode) { | 762 | tableInfo.value.loading = false; |
| 763 | if (res?.code == proxy.$passCode) { | ||
| 763 | labelPageList.value = res.data.records; | 764 | labelPageList.value = res.data.records; |
| 764 | tableInfo.value.page.rows = res.data.totalRows; | 765 | tableInfo.value.page.rows = res.data.totalRows; |
| 765 | tableInfo.value.page.limit = res.data.pageSize | 766 | tableInfo.value.page.limit = res.data.pageSize |
| 766 | tableInfo.value.page.curr = res.data.pageIndex | 767 | tableInfo.value.page.curr = res.data.pageIndex |
| 767 | tableInfo.value.data = labelPageList.value; | 768 | tableInfo.value.data = labelPageList.value; |
| 768 | tableInfo.value.loading = false; | ||
| 769 | } else { | 769 | } else { |
| 770 | proxy.$ElMessage.error(res.msg); | 770 | proxy.$ElMessage.error(res.msg); |
| 771 | } | 771 | } | ... | ... |
-
Please register or sign in to post a comment