mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-08 01:48:33 +08:00
应用选择显示问题
This commit is contained in:
parent
3892b05718
commit
da353a10fb
@ -120,7 +120,7 @@ export class AccountEditerComponent implements OnInit {
|
|||||||
modal.afterClose.subscribe(result => {
|
modal.afterClose.subscribe(result => {
|
||||||
if (result.refresh) {
|
if (result.refresh) {
|
||||||
this.form.model.appId = result.data.id;
|
this.form.model.appId = result.data.id;
|
||||||
this.form.model.appName = result.data.name;
|
this.form.model.appName = result.data.appName;
|
||||||
this.cdr.detectChanges();
|
this.cdr.detectChanges();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -42,6 +42,7 @@ export class AccountsComponent implements OnInit {
|
|||||||
username: String;
|
username: String;
|
||||||
displayName: String;
|
displayName: String;
|
||||||
employeeNumber: String;
|
employeeNumber: String;
|
||||||
|
appId: String;
|
||||||
appName: String;
|
appName: String;
|
||||||
startDate: String;
|
startDate: String;
|
||||||
endDate: String;
|
endDate: String;
|
||||||
@ -66,6 +67,7 @@ export class AccountsComponent implements OnInit {
|
|||||||
username: '',
|
username: '',
|
||||||
displayName: '',
|
displayName: '',
|
||||||
employeeNumber: '',
|
employeeNumber: '',
|
||||||
|
appId: '',
|
||||||
appName: '',
|
appName: '',
|
||||||
startDate: '',
|
startDate: '',
|
||||||
endDate: '',
|
endDate: '',
|
||||||
@ -119,7 +121,11 @@ export class AccountsComponent implements OnInit {
|
|||||||
this.fetch();
|
this.fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
onReset(): void { }
|
onReset(): void {
|
||||||
|
this.query.params.appId = '';
|
||||||
|
this.query.params.appName = '';
|
||||||
|
this.query.params.username = '';
|
||||||
|
}
|
||||||
|
|
||||||
onSelect(e: MouseEvent): void {
|
onSelect(e: MouseEvent): void {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -134,8 +140,8 @@ export class AccountsComponent implements OnInit {
|
|||||||
// Return a result when closed
|
// Return a result when closed
|
||||||
modal.afterClose.subscribe(result => {
|
modal.afterClose.subscribe(result => {
|
||||||
if (result.refresh) {
|
if (result.refresh) {
|
||||||
this.query.params.appName = result.data.name;
|
this.query.params.appName = result.data.appName;
|
||||||
//this.query.params.appId = result.data.id;
|
this.query.params.appId = result.data.id;
|
||||||
console.log(result);
|
console.log(result);
|
||||||
this.fetch();
|
this.fetch();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user