|
|
@@ -48,6 +48,8 @@
|
|
|
data() {
|
|
|
return {
|
|
|
visible: false,
|
|
|
+ current: null,
|
|
|
+ pageList: new Map(),
|
|
|
currentIndex: null,
|
|
|
columns: [
|
|
|
{
|
|
|
@@ -166,6 +168,8 @@
|
|
|
this.currentIndex = currentIndex;
|
|
|
if (item && item.id) {
|
|
|
this.radio = item.id;
|
|
|
+ const list = [...this.pageList.values()].flat();
|
|
|
+ this.current = list?.find(row => row.id === item.id) || null;
|
|
|
}
|
|
|
|
|
|
this.visible = true;
|
|
|
@@ -178,7 +182,13 @@
|
|
|
size: limit,
|
|
|
...where,
|
|
|
orderStatus:2
|
|
|
- });
|
|
|
+ }).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ if(!this.pageList.has(page)) {
|
|
|
+ this.pageList.set(page, res?.list || []);
|
|
|
+ }
|
|
|
+ return res;
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
/* 刷新表格 */
|