@@ -73,6 +73,8 @@
data() {
return {
visible: false,
+ current: null,
+ pageList: new Map(),
columns: [
{
action: 'action',
@@ -180,6 +182,8 @@
open(item) {
if (item) {
this.radio = item.id;
+ const list = [...this.pageList.values()].flat();
+ this.current = list?.find(row => row.id === item.id) || null;
}
this.visible = true;
},
@@ -192,6 +196,12 @@
type: this.classType,
...where,
status: '1'
+ }).then(res => {
+ console.log(res);
+ if(!this.pageList.has(page)) {
+ this.pageList.set(page, res?.list || []);
+ }
+ return res;
});