提交 5b80acae 编写于 作者: M MaxKey

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

上级 d459a8bd
......@@ -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;
}
......
......@@ -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))
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册