优化refreshTableData函数resultData写法

This commit is contained in:
yasa committed 2022-10-12 21:44:23 +08:00
1 parent 0c3ef09152
commit e1812351ed
5 files changed
+8 -9

No files matched your search

-1
View File
@@ -196,7 +196,6 @@
}
})
this.tableDataFromBackend = rows;
console.log(this.tableDataFromBackend);
this.isTableLoading = false;
},
+2 -2
View File
@@ -101,7 +101,7 @@ new Vue({
*/
async refreshTableData() {
this.isTableLoading = true;
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
const result = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskICreateManagement',
@@ -113,7 +113,7 @@ new Vue({
}
});
this.tableDataFromBackend = rows;
this.tableDataFromBackend = result.data.appData.resultData.rows;
this.isTableLoading = false;
},
+2 -2
View File
@@ -122,7 +122,7 @@ new Vue({
*/
async refreshTableData() {
this.isTableLoading = true;
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
const result = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskManagement',
@@ -134,7 +134,7 @@ new Vue({
}
});
this.tableDataFromBackend = rows;
this.tableDataFromBackend = result.data.appData.resultData.rows;
this.isTableLoading = false;
},
+2 -2
View File
@@ -101,7 +101,7 @@ new Vue({
*/
async refreshTableData() {
this.isTableLoading = true;
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
const result = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskICreateManagement',
@@ -113,7 +113,7 @@ new Vue({
}
});
this.tableDataFromBackend = rows;
this.tableDataFromBackend = result.data.appData.resultData.rows;
this.isTableLoading = false;
},
+2 -2
View File
@@ -103,7 +103,7 @@ new Vue({
*/
async refreshTableData() {
this.isTableLoading = true;
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
const result = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskUpcomingManagement',
@@ -115,7 +115,7 @@ new Vue({
}
});
this.tableDataFromBackend = rows;
this.tableDataFromBackend = result.data.appData.resultData.rows;
this.isTableLoading = false;
},