提交 a5b45a8c 编写于 作者: KK's avatar KK

部件基类

上级 04523669
......@@ -26,6 +26,7 @@ export { PickupViewPanelServiceBase } from './control-service/pickup-view-panel-
export { WizardPanelServiceBase } from './control-service/wizard-panel-service-base';
export { CalendarServiceBase } from './control-service/calendar-service-base';
export { ChartServiceBase } from './control-service/chart-service-base';
export { ControlBase } from './widgets/ControlBase';
// 导出界面行为服务类
export { UILogicBase } from './ui-service/ui-logic-base';
export { WFUIActionBase } from './wf-ui-service/wf-ui-action-base';
......@@ -49,7 +50,7 @@ window['appEntityServiceConstructor'] = appEntityServiceConstructor;
window['counterServiceConstructor'] = counterServiceConstructor;
// 全局挂载权限服务构造器
window['authServiceConstructor'] = authServiceConstructor;
// 全局挂载权限服务构造器
// 全局挂载代码表服务构造器
window['codeListServiceConstructor'] = codeListServiceConstructor;
// 全局挂载应用通讯中心
window['acc'] = AppCommunicationsCenter.getInstance();
......
import { Subject, Subscription } from 'rxjs';
import GlobalUiService from '@/global-ui-service/global-ui-service';
import { Vue, Prop } from 'vue-property-decorator';
/**
* 部件基类
*
* @export
* @class ControlBase
* @extends {Vue}
*/
export class ControlBase extends Vue {
/**
* 名称
*
* @type {string}
* @memberof ControlBase
*/
@Prop() protected name?: string;
/**
* 视图名称
*
* @type {string}
* @memberof ControlBase
*/
@Prop() protected viewName!: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof ControlBase
*/
@Prop() protected viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof ControlBase
*/
@Prop({ default: {} }) protected context?: any;
/**
* 视图参数
*
* @type {*}
* @memberof ControlBase
*/
@Prop({ default: {} }) protected viewparams?: any;
/**
* 视图状态事件
*
* @protected
* @type {(Subscription | undefined)}
* @memberof ControlBase
*/
protected viewStateEvent: Subscription | undefined;
/**
* 全局 ui 服务
*
* @type {GlobalUiService}
* @memberof ControlBase
*/
protected globaluiservice: GlobalUiService = new GlobalUiService();
/**
* 关闭视图
*
* @param {any[]} args
* @memberof ControlBase
*/
protected closeView(args: any[]): void {
let _this: any = this;
_this.$emit('closeview', args);
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册