504be555 by lihua

fix

1 parent 59fe4107
...@@ -90,13 +90,13 @@ const getLabelPageData = async () => { ...@@ -90,13 +90,13 @@ const getLabelPageData = async () => {
90 } 90 }
91 91
92 const res: any = await getLabelPageList(params); 92 const res: any = await getLabelPageList(params);
93 if (res.code == proxy.$passCode) { 93 tableInfo.value.loading = false;
94 if (res?.code == proxy.$passCode) {
94 labelPageList.value = res.data.records; 95 labelPageList.value = res.data.records;
95 tableInfo.value.page.rows = res.data.totalRows; 96 tableInfo.value.page.rows = res.data.totalRows;
96 tableInfo.value.page.limit = res.data.pageSize 97 tableInfo.value.page.limit = res.data.pageSize
97 tableInfo.value.page.curr = res.data.pageIndex 98 tableInfo.value.page.curr = res.data.pageIndex
98 tableInfo.value.data = labelPageList.value; 99 tableInfo.value.data = labelPageList.value;
99 tableInfo.value.loading = false;
100 } else { 100 } else {
101 proxy.$ElMessage.error(res.msg); 101 proxy.$ElMessage.error(res.msg);
102 } 102 }
...@@ -752,13 +752,13 @@ const searchClass = async (val: any, clear: boolean = false) => { ...@@ -752,13 +752,13 @@ const searchClass = async (val: any, clear: boolean = false) => {
752 guids: guids.value, 752 guids: guids.value,
753 } 753 }
754 const res: any = await getLabelPageList(params); 754 const res: any = await getLabelPageList(params);
755 if (res.code == proxy.$passCode) { 755 tableInfo.value.loading = false;
756 if (res?.code == proxy.$passCode) {
756 labelPageList.value = res.data.records; 757 labelPageList.value = res.data.records;
757 tableInfo.value.page.rows = res.data.totalRows; 758 tableInfo.value.page.rows = res.data.totalRows;
758 tableInfo.value.page.limit = res.data.pageSize 759 tableInfo.value.page.limit = res.data.pageSize
759 tableInfo.value.page.curr = res.data.pageIndex 760 tableInfo.value.page.curr = res.data.pageIndex
760 tableInfo.value.data = labelPageList.value; 761 tableInfo.value.data = labelPageList.value;
761 tableInfo.value.loading = false;
762 } else { 762 } else {
763 proxy.$ElMessage.error(res.msg); 763 proxy.$ElMessage.error(res.msg);
764 } 764 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!