|
@@ -64,6 +64,8 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
visible: false,
|
|
visible: false,
|
|
|
currentIndex: null,
|
|
currentIndex: null,
|
|
|
|
|
+ current: null,
|
|
|
|
|
+ pageList: new Map(),
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
|
columnKey: 'index',
|
|
columnKey: 'index',
|
|
@@ -201,6 +203,8 @@ export default {
|
|
|
this.currentIndex = currentIndex;
|
|
this.currentIndex = currentIndex;
|
|
|
if (item && item.id) {
|
|
if (item && item.id) {
|
|
|
this.radio = 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;
|
|
this.visible = true;
|
|
@@ -218,6 +222,12 @@ export default {
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit,
|
|
size: limit,
|
|
|
...where
|
|
...where
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ if(!this.pageList.has(page)) {
|
|
|
|
|
+ this.pageList.set(page, res?.list || []);
|
|
|
|
|
+ }
|
|
|
|
|
+ return res;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|