mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-29 11:36:32 +08:00
29 lines
847 B
TypeScript
29 lines
847 B
TypeScript
import { Component, Injector } from '@angular/core';
|
|
import { TableQueryComponentBase } from '../../../util';
|
|
import { ApplicationQuery } from './model/application-query';
|
|
import { ApplicationViewModel } from './model/application-view-model';
|
|
import { env } from '../../env';
|
|
|
|
/**
|
|
* 应用程序首页
|
|
*/
|
|
@Component({
|
|
selector: 'application-index',
|
|
templateUrl: env.prod() ? './html/application-index.component.html' : '/view/systems/application'
|
|
})
|
|
export class ApplicationIndexComponent extends TableQueryComponentBase<ApplicationViewModel, ApplicationQuery>{
|
|
/**
|
|
* 初始化应用程序首页
|
|
* @param injector 注入器
|
|
*/
|
|
constructor(injector: Injector) {
|
|
super(injector);
|
|
}
|
|
|
|
/**
|
|
* 创建查询参数
|
|
*/
|
|
protected createQuery() {
|
|
return new ApplicationQuery();
|
|
}
|
|
} |