资源管理无法添加资源 #I7EPYO

This commit is contained in:
MaxKey
2023-07-11 09:33:00 +08:00
parent d459a8bd8c
commit 5b80acae2d
2 changed files with 7 additions and 1 deletions

View File

@@ -41,6 +41,8 @@ import { ResourcesService } from '../../../../service/resources.service';
})
export class ResourceEditerComponent implements OnInit {
@Input() id?: String;
@Input() appId?: String;
@Input() appName?: String;
@Input() parentNode?: NzTreeNode;
@Input() isEdit?: boolean;
@@ -71,6 +73,8 @@ export class ResourceEditerComponent implements OnInit {
});
} else {
if (this.parentNode) {
this.form.model.appId = this.appId || '';
this.form.model.appName = this.appName || '';
this.form.model.parentId = this.parentNode?.key;
this.form.model.parentName = this.parentNode?.title;
}

View File

@@ -149,7 +149,9 @@ export class ResourcesComponent implements OnInit {
nzComponentParams: {
isEdit: false,
parentNode: this.treeNodes.activated,
id: ''
id: '',
appId: this.query.params.appId,
appName: this.query.params.appName
},
nzOnOk: () => new Promise(resolve => setTimeout(resolve, 1000))
});