Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -64,8 +64,12 @@ const routes: Routes = [
|
|||||||
{ path: 'voucher-summary/detail/:id', component: SummaryDetailComponent },
|
{ path: 'voucher-summary/detail/:id', component: SummaryDetailComponent },
|
||||||
{ path: 'voucher-summary/list/:id', component: VoucherListComponent },
|
{ path: 'voucher-summary/list/:id', component: VoucherListComponent },
|
||||||
{ path: 'voucher-summary/list/detail/:id', component: VoucherDetailComponent },
|
{ path: 'voucher-summary/list/detail/:id', component: VoucherDetailComponent },
|
||||||
{ path: 'cost-management', component: CostManagementComponent },
|
{ path: 'cost-management', component: CostManagementComponent, data: { guard: { ability: ['FINANCIAL-COST-list'] } } },
|
||||||
{ path: 'cost-management/detail/:id', component: CostManagementDetailComponent },
|
{
|
||||||
|
path: 'cost-management/detail/:id',
|
||||||
|
component: CostManagementDetailComponent,
|
||||||
|
data: { guard: { ability: ['FINANCIAL-COST-DETAIL-view'] } }
|
||||||
|
},
|
||||||
{ path: 'cost-management/expenses-receivable/:id', component: ExpensesReceivableComponent },
|
{ path: 'cost-management/expenses-receivable/:id', component: ExpensesReceivableComponent },
|
||||||
{ path: 'cost-management/expenses-payable/:id', component: ExpensesPayableComponent },
|
{ path: 'cost-management/expenses-payable/:id', component: ExpensesPayableComponent },
|
||||||
{ path: 'abnormal-gold', component: AbnormalGoldComponent },
|
{ path: 'abnormal-gold', component: AbnormalGoldComponent },
|
||||||
|
|||||||
@ -21,6 +21,7 @@ export class SearchDrawerComponent implements OnInit, AfterViewInit {
|
|||||||
ngAfterViewInit(): void {}
|
ngAfterViewInit(): void {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
this.defaultValue = {};
|
||||||
this.service.createEvent.subscribe(({ defaultValue, newSchema, newUI }) => {
|
this.service.createEvent.subscribe(({ defaultValue, newSchema, newUI }) => {
|
||||||
if (defaultValue) {
|
if (defaultValue) {
|
||||||
this.defaultValue = defaultValue;
|
this.defaultValue = defaultValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user