mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 11:47:57 +08:00
fix:show tab
This commit is contained in:
parent
7ef31d99e2
commit
eb10da596b
@ -111,10 +111,11 @@ export class ApiGroupEditComponent implements OnInit {
|
||||
this.modalRef.destroy();
|
||||
this.storage.run('groupBulkRemove', [data.group], (result: StorageRes) => {
|
||||
if (result.status === StorageResStatus.success) {
|
||||
this.messageService.send({ type: 'updateGroupSuccess', data: {} });
|
||||
//delete group api
|
||||
if (data.api.length > 0) {
|
||||
this.messageService.send({ type: 'gotoBulkDeleteApi', data: { uuids: data.api } });
|
||||
}else{
|
||||
this.messageService.send({ type: 'updateGroupSuccess', data: {} });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -93,6 +93,7 @@ export class ApiGroupTreeComponent implements OnInit, OnDestroy {
|
||||
* Load all group and apiData items.
|
||||
*/
|
||||
buildGroupTreeData(): void {
|
||||
console.log('buildGroupTreeData')
|
||||
this.groupByID = {};
|
||||
this.treeItems = [];
|
||||
this.getGroups();
|
||||
@ -377,7 +378,6 @@ export class ApiGroupTreeComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
private setSelectedKeys() {
|
||||
console.log('setSelectedKeys', this.route.snapshot.queryParams.uuid, this.nzSelectedKeys);
|
||||
if (this.route.snapshot.queryParams.uuid) {
|
||||
this.nzSelectedKeys = [this.route.snapshot.queryParams.uuid];
|
||||
} else {
|
||||
|
@ -258,7 +258,7 @@ export class ApiTabComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
break;
|
||||
case 'gotoAddApi':
|
||||
this.appendOrSwitchTab('edit', inArg.data ?? {});
|
||||
this.appendOrSwitchTab('edit', inArg.data ? { groupID: inArg.data.key.replace('group-', '') } : {});
|
||||
break;
|
||||
case 'addApiSuccess':
|
||||
case 'editApiSuccess':
|
||||
|
@ -16,7 +16,6 @@ export class ApiTabService {
|
||||
tabChange$: ReplaySubject<TabItem> = new ReplaySubject(1);
|
||||
saveTabData$: Subject<{ tab: TabItem; data: any }> = new Subject();
|
||||
get tabID(): number {
|
||||
console.log('tab change', this);
|
||||
return this.currentTab.uuid;
|
||||
}
|
||||
constructor() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
.about ::ng-deep .ant-descriptions-item-label {
|
||||
width: 84px;
|
||||
justify-content: flex-end;
|
||||
// justify-content: flex-end;
|
||||
}
|
||||
|
@ -37,7 +37,6 @@ export class StorageService {
|
||||
(res: any) => {
|
||||
handleResult.status = res.status;
|
||||
handleResult.data = res.data;
|
||||
console.log(handleResult);
|
||||
callback(handleResult);
|
||||
},
|
||||
(error: any) => {
|
||||
@ -66,7 +65,5 @@ export class StorageService {
|
||||
this.dataSourceType = dataSourceType ?? (this.dataSourceType === 'http' ? 'local' : 'http');
|
||||
this.setStorage(this.dataSourceType, options);
|
||||
localStorage.setItem('IS_SHOW_REMOTE_SERVER_NOTIFICATION', this.dataSourceType === 'local' ? 'true' : 'false');
|
||||
console.log('this.dataSourceType', this.dataSourceType);
|
||||
console.log('this.instance', this.instance);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user