优化refreshTableData函数resultData写法
This commit is contained in:
1 parent
0c3ef09152
commit
e1812351ed
5 files changed
+8
-9
No files matched your search
@@ -196,7 +196,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.tableDataFromBackend = rows;
|
this.tableDataFromBackend = rows;
|
||||||
console.log(this.tableDataFromBackend);
|
|
||||||
this.isTableLoading = false;
|
this.isTableLoading = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ new Vue({
|
|||||||
*/
|
*/
|
||||||
async refreshTableData() {
|
async refreshTableData() {
|
||||||
this.isTableLoading = true;
|
this.isTableLoading = true;
|
||||||
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
|
const result = await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'taskICreateManagement',
|
pageId: 'taskICreateManagement',
|
||||||
@@ -113,7 +113,7 @@ new Vue({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.tableDataFromBackend = rows;
|
this.tableDataFromBackend = result.data.appData.resultData.rows;
|
||||||
this.isTableLoading = false;
|
this.isTableLoading = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ new Vue({
|
|||||||
*/
|
*/
|
||||||
async refreshTableData() {
|
async refreshTableData() {
|
||||||
this.isTableLoading = true;
|
this.isTableLoading = true;
|
||||||
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
|
const result = await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'taskManagement',
|
pageId: 'taskManagement',
|
||||||
@@ -134,7 +134,7 @@ new Vue({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.tableDataFromBackend = rows;
|
this.tableDataFromBackend = result.data.appData.resultData.rows;
|
||||||
this.isTableLoading = false;
|
this.isTableLoading = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ new Vue({
|
|||||||
*/
|
*/
|
||||||
async refreshTableData() {
|
async refreshTableData() {
|
||||||
this.isTableLoading = true;
|
this.isTableLoading = true;
|
||||||
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
|
const result = await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'taskICreateManagement',
|
pageId: 'taskICreateManagement',
|
||||||
@@ -113,7 +113,7 @@ new Vue({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.tableDataFromBackend = rows;
|
this.tableDataFromBackend = result.data.appData.resultData.rows;
|
||||||
this.isTableLoading = false;
|
this.isTableLoading = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ new Vue({
|
|||||||
*/
|
*/
|
||||||
async refreshTableData() {
|
async refreshTableData() {
|
||||||
this.isTableLoading = true;
|
this.isTableLoading = true;
|
||||||
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
|
const result = await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'taskUpcomingManagement',
|
pageId: 'taskUpcomingManagement',
|
||||||
@@ -115,7 +115,7 @@ new Vue({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.tableDataFromBackend = rows;
|
this.tableDataFromBackend = result.data.appData.resultData.rows;
|
||||||
this.isTableLoading = false;
|
this.isTableLoading = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user