提交 5067b774 编写于 作者: tony001's avatar tony001

合并分支 'dev' 到 'master'

2020.5.10 更新

查看合并请求 !3
...@@ -46,7 +46,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -46,7 +46,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected name?: string; @Prop() public name?: string;
/** /**
* 视图通讯对象 * 视图通讯对象
...@@ -54,7 +54,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -54,7 +54,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @type {Subject<ViewState>} * @type {Subject<ViewState>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected viewState!: Subject<ViewState>; @Prop() public viewState!: Subject<ViewState>;
/** /**
* 应用上下文 * 应用上下文
...@@ -62,7 +62,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -62,7 +62,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected context: any; @Prop() public context: any;
/** /**
* 视图参数 * 视图参数
...@@ -70,16 +70,16 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -70,16 +70,16 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected viewparams: any; @Prop() public viewparams: any;
/** /**
* 视图状态事件 * 视图状态事件
* *
* @protected * @public
* @type {(Subscription | undefined)} * @type {(Subscription | undefined)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewStateEvent: Subscription | undefined; public viewStateEvent: Subscription | undefined;
/** /**
* 获取部件类型 * 获取部件类型
...@@ -87,7 +87,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -87,7 +87,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @returns {string} * @returns {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getControlType(): string { public getControlType(): string {
return '${ctrl.getControlType()}' return '${ctrl.getControlType()}'
} }
...@@ -105,7 +105,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -105,7 +105,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService} * @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService(); public ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService();
</#if> </#if>
</#list> </#list>
...@@ -115,7 +115,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -115,7 +115,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @type {Array<*>} * @type {Array<*>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected counterServiceArray:Array<any> = [${counterRefs}]; public counterServiceArray:Array<any> = [${counterRefs}];
</#if> </#if>
/** /**
...@@ -124,7 +124,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -124,7 +124,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @type {${srfclassname('${ctrl.codeName}')}Service} * @type {${srfclassname('${ctrl.codeName}')}Service}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected service: ${srfclassname('${ctrl.codeName}')}Service = new ${srfclassname('${ctrl.codeName}')}Service({ $store: this.$store }); public service: ${srfclassname('${ctrl.codeName}')}Service = new ${srfclassname('${ctrl.codeName}')}Service({ $store: this.$store });
<#if appde??> <#if appde??>
/** /**
...@@ -133,7 +133,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -133,7 +133,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @type {${srfclassname('${appde.getCodeName()}')}Service} * @type {${srfclassname('${appde.getCodeName()}')}Service}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected appEntityService: ${srfclassname('${appde.getCodeName()}')}Service = new ${srfclassname('${appde.getCodeName()}')}Service({ $store: this.$store }); public appEntityService: ${srfclassname('${appde.getCodeName()}')}Service = new ${srfclassname('${appde.getCodeName()}')}Service({ $store: this.$store });
</#if> </#if>
<#if ctrl.getPSControls?? && ctrl.getPSControls()??> <#if ctrl.getPSControls?? && ctrl.getPSControls()??>
<#list ctrl.getPSControls() as childCtrl> <#list ctrl.getPSControls() as childCtrl>
...@@ -148,7 +148,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -148,7 +148,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected ${childCtrl.name}_${eventName?lower_case}($event: any, $event2?: any) { public ${childCtrl.name}_${eventName?lower_case}($event: any, $event2?: any) {
<#if childCtrl.getPSControlLogics(eventName)??> <#if childCtrl.getPSControlLogics(eventName)??>
<#list childCtrl.getPSControlLogics(eventName) as ctrlLogic> <#list childCtrl.getPSControlLogics(eventName) as ctrlLogic>
<#if ctrlLogic.getLogicType?? && ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??> <#if ctrlLogic.getLogicType?? && ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??>
...@@ -194,7 +194,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -194,7 +194,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* @param {any} args * @param {any} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected closeView(args: any): void { public closeView(args: any): void {
let _this: any = this; let _this: any = this;
_this.$emit('closeview', [args]); _this.$emit('closeview', [args]);
} }
......
...@@ -46,7 +46,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -46,7 +46,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected name?: string; @Prop() public name?: string;
/** /**
* 视图通讯对象 * 视图通讯对象
...@@ -54,7 +54,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -54,7 +54,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @type {Subject<ViewState>} * @type {Subject<ViewState>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected viewState!: Subject<ViewState>; @Prop() public viewState!: Subject<ViewState>;
/** /**
* 应用上下文 * 应用上下文
...@@ -62,7 +62,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -62,7 +62,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected context: any; @Prop() public context: any;
/** /**
* 视图参数 * 视图参数
...@@ -70,16 +70,16 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -70,16 +70,16 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected viewparams: any; @Prop() public viewparams: any;
/** /**
* 视图状态事件 * 视图状态事件
* *
* @protected * @public
* @type {(Subscription | undefined)} * @type {(Subscription | undefined)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewStateEvent: Subscription | undefined; public viewStateEvent: Subscription | undefined;
/** /**
* 获取部件类型 * 获取部件类型
...@@ -87,7 +87,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -87,7 +87,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @returns {string} * @returns {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getControlType(): string { public getControlType(): string {
return '${ctrl.getControlType()}' return '${ctrl.getControlType()}'
} }
...@@ -105,7 +105,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -105,7 +105,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService} * @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService(); public ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService();
</#if> </#if>
</#list> </#list>
...@@ -115,7 +115,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -115,7 +115,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @type {Array<*>} * @type {Array<*>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected counterServiceArray:Array<any> = [${counterRefs}]; public counterServiceArray:Array<any> = [${counterRefs}];
</#if> </#if>
/** /**
...@@ -124,7 +124,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -124,7 +124,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @type {${srfclassname('${ctrl.codeName}')}Service} * @type {${srfclassname('${ctrl.codeName}')}Service}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected service: ${srfclassname('${ctrl.codeName}')}Service = new ${srfclassname('${ctrl.codeName}')}Service({ $store: this.$store }); public service: ${srfclassname('${ctrl.codeName}')}Service = new ${srfclassname('${ctrl.codeName}')}Service({ $store: this.$store });
<#if appde??> <#if appde??>
/** /**
...@@ -133,7 +133,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -133,7 +133,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @type {${srfclassname('${appde.getCodeName()}')}Service} * @type {${srfclassname('${appde.getCodeName()}')}Service}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected appEntityService: ${srfclassname('${appde.getCodeName()}')}Service = new ${srfclassname('${appde.getCodeName()}')}Service({ $store: this.$store }); public appEntityService: ${srfclassname('${appde.getCodeName()}')}Service = new ${srfclassname('${appde.getCodeName()}')}Service({ $store: this.$store });
</#if> </#if>
<#if ctrl.getPSControls?? && ctrl.getPSControls()??> <#if ctrl.getPSControls?? && ctrl.getPSControls()??>
<#list ctrl.getPSControls() as childCtrl> <#list ctrl.getPSControls() as childCtrl>
...@@ -148,7 +148,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -148,7 +148,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected ${childCtrl.name}_${eventName?lower_case}($event: any, $event2?: any) { public ${childCtrl.name}_${eventName?lower_case}($event: any, $event2?: any) {
<#if childCtrl.getPSControlLogics(eventName)??> <#if childCtrl.getPSControlLogics(eventName)??>
<#list childCtrl.getPSControlLogics(eventName) as ctrlLogic> <#list childCtrl.getPSControlLogics(eventName) as ctrlLogic>
<#if ctrlLogic.getLogicType?? && ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??> <#if ctrlLogic.getLogicType?? && ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??>
...@@ -194,7 +194,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -194,7 +194,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* @param {any} args * @param {any} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected closeView(args: any): void { public closeView(args: any): void {
let _this: any = this; let _this: any = this;
_this.$emit('closeview', [args]); _this.$emit('closeview', [args]);
} }
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
* @returns {any} * @returns {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isInit: any = { public isInit: any = {
<#list ctrl.getPSControls() as tabviewpanel> <#list ctrl.getPSControls() as tabviewpanel>
${tabviewpanel.name}: <#if tabviewpanel_index == 0> true <#else> false </#if>, ${tabviewpanel.name}: <#if tabviewpanel_index == 0> true <#else> false </#if>,
</#list> </#list>
...@@ -77,11 +77,11 @@ ...@@ -77,11 +77,11 @@
/** /**
* 行为参数 * 行为参数
* *
* @protected * @public
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected action:any = ''; public action:any = '';
/** /**
* 被激活的分页面板 * 被激活的分页面板
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected activiedTabViewPanel: string = '<#list ctrl.getPSControls() as tabviewpanel><#if tabviewpanel_index==0>${tabviewpanel.name}</#if></#list>'; public activiedTabViewPanel: string = '<#list ctrl.getPSControls() as tabviewpanel><#if tabviewpanel_index==0>${tabviewpanel.name}</#if></#list>';
/** /**
* 分页视图面板数据变更 * 分页视图面板数据变更
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -115,7 +115,14 @@ ...@@ -115,7 +115,14 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
//设置分页导航srfparentdename和srfparentkey
<#if ctrl.getPSAppDataEntity()??>
<#assign appDataEntity = ctrl.getPSAppDataEntity()/>
if(this.context.${appDataEntity.getCodeName()?lower_case}){
Object.assign(this.context,{srfparentdename:'${appDataEntity.getCodeName()}',srfparentkey:this.context.${appDataEntity.getCodeName()?lower_case}})
}
</#if>
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -132,7 +139,7 @@ ...@@ -132,7 +139,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -141,7 +148,7 @@ ...@@ -141,7 +148,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -157,7 +164,7 @@ ...@@ -157,7 +164,7 @@
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected tabPanelClick($event: any) { public tabPanelClick($event: any) {
if (!$event) { if (!$event) {
return; return;
} }
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isActivied: boolean = true; public isActivied: boolean = true;
/** /**
* vue 生命周期 * vue 生命周期
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewDatasChange($event:any){ public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event); this.$emit('viewpanelDatasChange',$event);
} }
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: false }) protected isSelectFirstDefault!: boolean; @Prop({ default: false }) public isSelectFirstDefault!: boolean;
/** /**
* 显示处理提示 * 显示处理提示
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 部件行为--create * 部件行为--create
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected createAction!: string; @Prop() public createAction!: string;
/** /**
* 部件行为--remove * 部件行为--remove
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected removeAction!: string; @Prop() public removeAction!: string;
/** /**
* 部件行为--update * 部件行为--update
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected updateAction!: string; @Prop() public updateAction!: string;
/** /**
* 部件行为--fetch * 部件行为--fetch
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* 当前页 * 当前页
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
* @type {number} * @type {number}
* @memberof Main * @memberof Main
*/ */
protected curPage: number = 1; public curPage: number = 1;
/** /**
* 数据 * 数据
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected items: any[] = []; public items: any[] = [];
/** /**
* 是否支持分页 * 是否支持分页
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isEnablePagingBar: boolean = true; public isEnablePagingBar: boolean = true;
/** /**
* 分页条数 * 分页条数
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected limit: number = 20; public limit: number = 20;
/** /**
* 总条数 * 总条数
...@@ -131,21 +131,21 @@ ...@@ -131,21 +131,21 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected totalRecord: number = 0; public totalRecord: number = 0;
/** /**
* 选中数组 * 选中数组
* @type {Array<any>} * @type {Array<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected selections: Array<any> = []; public selections: Array<any> = [];
/** /**
* Vue声明周期,组件挂载完毕 * Vue声明周期,组件挂载完毕
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected mounted () { public mounted () {
this.afterMounted(); this.afterMounted();
} }
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterMounted () { public afterMounted () {
this.$el.addEventListener('scroll', ()=> { this.$el.addEventListener('scroll', ()=> {
if( this.$el.scrollTop + this.$el.clientHeight >= this.$el.scrollHeight) { if( this.$el.scrollTop + this.$el.clientHeight >= this.$el.scrollHeight) {
this.loadMore(); this.loadMore();
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated() this.afterCreated()
} }
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(this.name, tag)) { if (!Object.is(this.name, tag)) {
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
* *
* @memberof Mob * @memberof Mob
*/ */
protected loadMore(){ public loadMore(){
if(this.totalRecord>this.items.length) if(this.totalRecord>this.items.length)
{ {
this.curPage = ++this.curPage; this.curPage = ++this.curPage;
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof Main * @memberof Main
*/ */
protected refresh(opt: any = {}) { public refresh(opt: any = {}) {
this.curPage = 1; this.curPage = 1;
this.items = []; this.items = [];
this.load(opt); this.load(opt);
...@@ -240,11 +240,11 @@ ...@@ -240,11 +240,11 @@
/** /**
* 列表数据加载 * 列表数据加载
* *
* @private * @public
* @param {*} [arg={}] * @param {*} [arg={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图列表fetchAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图列表fetchAction参数未配置' });
return; return;
...@@ -296,7 +296,7 @@ ...@@ -296,7 +296,7 @@
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格removeAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格removeAction参数未配置' });
return; return;
...@@ -382,7 +382,7 @@ ...@@ -382,7 +382,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
* *
*/ */
protected handleClick(args: any) { public handleClick(args: any) {
this.clearSelection(); this.clearSelection();
args.isselected = !args.isselected; args.isselected = !args.isselected;
this.selectchange(); this.selectchange();
...@@ -393,7 +393,7 @@ ...@@ -393,7 +393,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
* *
*/ */
protected handleDblClick(args: any) { public handleDblClick(args: any) {
this.$emit('rowdblclick', args); this.$emit('rowdblclick', args);
} }
...@@ -402,7 +402,7 @@ ...@@ -402,7 +402,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
* *
*/ */
protected selectchange() { public selectchange() {
this.selections = []; this.selections = [];
this.items.map((item: any) => { this.items.map((item: any) => {
if (item.isselected) { if (item.isselected) {
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected clearSelection(){ public clearSelection(){
this.items.map((item: any) => { this.items.map((item: any) => {
Object.assign(item, { isselected: false }); Object.assign(item, { isselected: false });
}); });
......
...@@ -62,25 +62,25 @@ ...@@ -62,25 +62,25 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected viewUID!:string; @Prop() public viewUID!:string;
/** /**
* 是否单选 * 是否单选
* *
* @protected * @public
* @type {(boolean)} * @type {(boolean)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected isSingleSelect:boolean = true; public isSingleSelect:boolean = true;
/** /**
* 呈现模式,可选值:horizontal或者vertical * 呈现模式,可选值:horizontal或者vertical
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected showMode:string ="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">horizontal<#else>vertical</#if>"; public showMode:string ="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">horizontal<#else>vertical</#if>";
/** /**
* 控件宽度 * 控件宽度
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>; public ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>;
/** /**
* 控件高度 * 控件高度
...@@ -96,16 +96,16 @@ ...@@ -96,16 +96,16 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()}<#else>0</#if>; public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()}<#else>0</#if>;
/** /**
* 搜素值 * 搜素值
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected searchText:string = ""; public searchText:string = "";
/** /**
* 分割宽度 * 分割宽度
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected split: number = 0.5; public split: number = 0.5;
<#if ctrl.getXDataPSControl()??> <#if ctrl.getXDataPSControl()??>
<#assign xDataControl = ctrl.getXDataPSControl() /> <#assign xDataControl = ctrl.getXDataPSControl() />
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navViewName: string = "<#if xDataControl.getNavPSAppView()??><#assign navPSAppView = xDataControl.getNavPSAppView() />${srffilepath2(navPSAppView.getCodeName())}</#if>"; public navViewName: string = "<#if xDataControl.getNavPSAppView()??><#assign navPSAppView = xDataControl.getNavPSAppView() />${srffilepath2(navPSAppView.getCodeName())}</#if>";
/** /**
* 导航视图参数 * 导航视图参数
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navViewParam: string = '<#if xDataControl.getNavViewParamJO()??>${xDataControl.getNavViewParamJO()}</#if>'; public navViewParam: string = '<#if xDataControl.getNavViewParamJO()??>${xDataControl.getNavViewParamJO()}</#if>';
/** /**
* 导航过滤项 * 导航过滤项
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navFilter: string = "<#if xDataControl.getNavFilter()??>${xDataControl.getNavFilter()}</#if>"; public navFilter: string = "<#if xDataControl.getNavFilter()??>${xDataControl.getNavFilter()}</#if>";
</#if> </#if>
/** /**
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) protected showBusyIndicator!: boolean; @Prop({ default: true }) public showBusyIndicator!: boolean;
<#if ctrl.getPSControls()??> <#if ctrl.getPSControls()??>
<#assign controls = ctrl.getPSControls()/> <#assign controls = ctrl.getPSControls()/>
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected selection: any = {}; public selection: any = {};
/** /**
* split值变化事件 * split值变化事件
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void { public ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void {
let data:any = {}; let data:any = {};
if (args.length === 0) { if (args.length === 0) {
return ; return ;
...@@ -317,7 +317,7 @@ ...@@ -317,7 +317,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_load(args:any, tag?: string, $event2?: any){ public ${ctrl.name}_load(args:any, tag?: string, $event2?: any){
this.$emit('load',args); this.$emit('load',args);
} }
...@@ -326,7 +326,7 @@ ...@@ -326,7 +326,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onSearch($event:any) { public onSearch($event:any) {
<#if ctrl.getPSDEList()??> <#if ctrl.getPSDEList()??>
<#assign list = ctrl.getPSDEList()/> <#assign list = ctrl.getPSDEList()/>
this.viewState.next({ tag: '${list.name}', action: "load", data: {query : this.searchText}}); this.viewState.next({ tag: '${list.name}', action: "load", data: {query : this.searchText}});
......
...@@ -62,25 +62,25 @@ ...@@ -62,25 +62,25 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected viewUID!:string; @Prop() public viewUID!:string;
/** /**
* 是否单选 * 是否单选
* *
* @protected * @public
* @type {(boolean)} * @type {(boolean)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected isSingleSelect:boolean = true; public isSingleSelect:boolean = true;
/** /**
* 呈现模式,可选值:horizontal或者vertical * 呈现模式,可选值:horizontal或者vertical
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected showMode:string ="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">horizontal<#else>vertical</#if>"; public showMode:string ="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">horizontal<#else>vertical</#if>";
/** /**
* 控件宽度 * 控件宽度
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>; public ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>;
/** /**
* 控件高度 * 控件高度
...@@ -96,16 +96,16 @@ ...@@ -96,16 +96,16 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()}<#else>0</#if>; public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()}<#else>0</#if>;
/** /**
* 搜素值 * 搜素值
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected searchText:string = ""; public searchText:string = "";
/** /**
* 分割宽度 * 分割宽度
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected split: number = 0.5; public split: number = 0.5;
<#if ctrl.getXDataPSControl()??> <#if ctrl.getXDataPSControl()??>
<#assign xDataControl = ctrl.getXDataPSControl() /> <#assign xDataControl = ctrl.getXDataPSControl() />
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navViewName: string = "<#if xDataControl.getNavPSAppView()??><#assign navPSAppView = xDataControl.getNavPSAppView() />${srffilepath2(navPSAppView.getCodeName())}</#if>"; public navViewName: string = "<#if xDataControl.getNavPSAppView()??><#assign navPSAppView = xDataControl.getNavPSAppView() />${srffilepath2(navPSAppView.getCodeName())}</#if>";
/** /**
* 导航视图参数 * 导航视图参数
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navViewParam: string = '<#if xDataControl.getNavViewParamJO()??>${xDataControl.getNavViewParamJO()}</#if>'; public navViewParam: string = '<#if xDataControl.getNavViewParamJO()??>${xDataControl.getNavViewParamJO()}</#if>';
/** /**
* 导航过滤项 * 导航过滤项
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navFilter: string = "<#if xDataControl.getNavFilter()??>${xDataControl.getNavFilter()}</#if>"; public navFilter: string = "<#if xDataControl.getNavFilter()??>${xDataControl.getNavFilter()}</#if>";
</#if> </#if>
/** /**
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) protected showBusyIndicator!: boolean; @Prop({ default: true }) public showBusyIndicator!: boolean;
<#if ctrl.getPSControls()??> <#if ctrl.getPSControls()??>
<#assign controls = ctrl.getPSControls()/> <#assign controls = ctrl.getPSControls()/>
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected selection: any = {}; public selection: any = {};
/** /**
* split值变化事件 * split值变化事件
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void { public ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void {
let data:any = {}; let data:any = {};
if (args.length === 0) { if (args.length === 0) {
return ; return ;
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_load(args: any[], tag?: string, $event2?: any): void { public ${ctrl.name}_load(args: any[], tag?: string, $event2?: any): void {
this.$emit('load',args); this.$emit('load',args);
} }
...@@ -334,7 +334,7 @@ ...@@ -334,7 +334,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onSearch() { public onSearch() {
<#if ctrl.getPSDEDataView()??> <#if ctrl.getPSDEDataView()??>
<#assign dataview = ctrl.getPSDEDataView()/> <#assign dataview = ctrl.getPSDEDataView()/>
this.viewState.next({ tag: '${dataview.name}', action: 'filter', data: { query: this.searchText} }); this.viewState.next({ tag: '${dataview.name}', action: 'filter', data: { query: this.searchText} });
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected initAction!: string; @Prop() public initAction!: string;
/** /**
* 部件行为--finish * 部件行为--finish
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected finishAction!: string; @Prop() public finishAction!: string;
/** /**
* 显示处理提示 * 显示处理提示
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 获取多项数据 * 获取多项数据
...@@ -88,11 +88,11 @@ ...@@ -88,11 +88,11 @@
/** /**
* 视图状态订阅对象 * 视图状态订阅对象
* *
* @private * @public
* @type {Subject<{action: string, data: any}>} * @type {Subject<{action: string, data: any}>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private wizardState: Subject<ViewState> = new Subject(); public wizardState: Subject<ViewState> = new Subject();
/** /**
* 当前激活表单 * 当前激活表单
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
/** /**
* 执行过的表单 * 执行过的表单
* *
* @private * @public
* @type {Array<string>} * @type {Array<string>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 部件行为--update * 部件行为--update
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected updateAction!: string; @Prop() public updateAction!: string;
/** /**
* 部件行为--fetch * 部件行为--fetch
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* 部件行为--remove * 部件行为--remove
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected removeAction!: string; @Prop() public removeAction!: string;
/** /**
* 部件行为--load * 部件行为--load
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected loadAction!: string; @Prop() public loadAction!: string;
/** /**
* 部件行为--loaddraft * 部件行为--loaddraft
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected loaddraftAction!: string; @Prop() public loaddraftAction!: string;
/** /**
* 部件行为--create * 部件行为--create
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected createAction!: string; @Prop() public createAction!: string;
/** /**
* 刷新数据 * 刷新数据
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected saveRefView?: number; @Prop() public saveRefView?: number;
/** /**
* 刷新数据 * 刷新数据
...@@ -132,18 +132,18 @@ ...@@ -132,18 +132,18 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected toString(item:any): string{ public toString(item:any): string{
return JSON.stringify(item); return JSON.stringify(item);
} }
/** /**
* 面板状态订阅对象 * 面板状态订阅对象
* *
* @private * @public
* @type {Subject<{action: string, data: any}>} * @type {Subject<{action: string, data: any}>}
* @memberof Meditviewpanel * @memberof Meditviewpanel
*/ */
protected panelState: Subject<ViewState> = new Subject(); public panelState: Subject<ViewState> = new Subject();
/** /**
* 视图名称 * 视图名称
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewname: string = '<#if ctrl.getEmbeddedPSAppView()??>${srffilepath2(ctrl.getEmbeddedPSAppView().getCodeName())}</#if>'; public viewname: string = '<#if ctrl.getEmbeddedPSAppView()??>${srffilepath2(ctrl.getEmbeddedPSAppView().getCodeName())}</#if>';
/** /**
* 获取数据对象 * 获取数据对象
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected items: any[] = []; public items: any[] = [];
/** /**
* 计数器 * 计数器
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
* @type number * @type number
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected count: number = 0; public count: number = 0;
<#-- BEGIN:参数处理 --> <#-- BEGIN:参数处理 -->
<#list ctrl.getAllRelatedPSAppViews() as dataview> <#list ctrl.getAllRelatedPSAppViews() as dataview>
...@@ -176,20 +176,20 @@ ...@@ -176,20 +176,20 @@
/** /**
* 关系实体参数对象 * 关系实体参数对象
* *
* @private * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private deResParameters: any[] = []; public deResParameters: any[] = [];
/** /**
* 当前应用视图参数对象 * 当前应用视图参数对象
* *
* @private * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private parameters: any[] = []; public parameters: any[] = [];
<#else> <#else>
<#-- <#assign dataview = ctrl.getAllRelatedPSAppViews()[0]> --> <#-- <#assign dataview = ctrl.getAllRelatedPSAppViews()[0]> -->
<#assign appDataEntity = dataview.getPSAppDataEntity()/> <#assign appDataEntity = dataview.getPSAppDataEntity()/>
...@@ -197,11 +197,11 @@ ...@@ -197,11 +197,11 @@
/** /**
* 关系实体参数对象 * 关系实体参数对象
* *
* @private * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private deResParameters: any[] = [ public deResParameters: any[] = [
<#-- BEGIN:存在父关系路径 --> <#-- BEGIN:存在父关系路径 -->
<#if dataview.getPSAppDERSPathCount() gt 0> <#if dataview.getPSAppDERSPathCount() gt 0>
<#list dataview.getPSAppDERSPath(dataview.getPSAppDERSPathCount() - 1) as deRSPath> <#list dataview.getPSAppDERSPath(dataview.getPSAppDERSPathCount() - 1) as deRSPath>
...@@ -215,11 +215,11 @@ ...@@ -215,11 +215,11 @@
/** /**
* 当前应用视图参数对象 * 当前应用视图参数对象
* *
* @private * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private parameters: any[] = [ public parameters: any[] = [
{ pathName: '${srfpluralize(appDataEntity.codeName)?lower_case}', parameterName: '${appDataEntity.getCodeName()?lower_case}' }, { pathName: '${srfpluralize(appDataEntity.codeName)?lower_case}', parameterName: '${appDataEntity.getCodeName()?lower_case}' },
]; ];
</#if> </#if>
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
* *
* @memberof Meditviewpanel * @memberof Meditviewpanel
*/ */
protected saveData(data?: any) { public saveData(data?: any) {
this.count = 0; this.count = 0;
if(this.items.length >0){ if(this.items.length >0){
Object.assign(data,{showResultInfo:false}); Object.assign(data,{showResultInfo:false});
...@@ -297,11 +297,11 @@ ...@@ -297,11 +297,11 @@
/** /**
* 处理数据 * 处理数据
* *
* @private * @public
* @param {any[]} datas * @param {any[]} datas
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private doItems(datas: any[]): void { public doItems(datas: any[]): void {
const [{ pathName, parameterName }] = this.parameters; const [{ pathName, parameterName }] = this.parameters;
datas.forEach((arg: any) => { datas.forEach((arg: any) => {
let id: string = arg[parameterName] ? arg[parameterName] : this.$util.createUUID(); let id: string = arg[parameterName] ? arg[parameterName] : this.$util.createUUID();
...@@ -335,11 +335,11 @@ ...@@ -335,11 +335,11 @@
/** /**
* 数据加载 * 数据加载
* *
* @private * @public
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private load(data: any): void { public load(data: any): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图多编辑视图面板fetchAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图多编辑视图面板fetchAction参数未配置' });
return; return;
...@@ -374,7 +374,7 @@ ...@@ -374,7 +374,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected handleAdd(){ public handleAdd(){
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图多编辑视图面板loaddraftAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图多编辑视图面板loaddraftAction参数未配置' });
return; return;
...@@ -404,7 +404,7 @@ ...@@ -404,7 +404,7 @@
* @param {boolean} $event * @param {boolean} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected setViewDirty(item: any, $event: boolean) { public setViewDirty(item: any, $event: boolean) {
let index: number = this.items.findIndex((_item: any) => Object.is(_item.id, item.id)); let index: number = this.items.findIndex((_item: any) => Object.is(_item.id, item.id));
if (index === -1) { if (index === -1) {
return; return;
...@@ -423,7 +423,7 @@ ...@@ -423,7 +423,7 @@
* 部件抛出事件 * 部件抛出事件
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewDataChange($event:any){ public viewDataChange($event:any){
if($event){ if($event){
try{ try{
$event = JSON.parse($event); $event = JSON.parse($event);
...@@ -458,7 +458,7 @@ ...@@ -458,7 +458,7 @@
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewload($event:any){ public viewload($event:any){
console.log('视图加载完成'); console.log('视图加载完成');
} }
...@@ -468,7 +468,7 @@ ...@@ -468,7 +468,7 @@
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewdirty(item:any,$event:any){ public viewdirty(item:any,$event:any){
// editview9 视图数据变化; // editview9 视图数据变化;
this.setViewDirty(item, $event); this.setViewDirty(item, $event);
} }
......
...@@ -151,11 +151,11 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -151,11 +151,11 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* 菜单模型 * 菜单模型
* *
* @private * @public
* @type {${srfclassname('${ctrl.codeName}')}Model} * @type {${srfclassname('${ctrl.codeName}')}Model}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private menuMode: ${srfclassname('${ctrl.codeName}')}Model = new ${srfclassname('${ctrl.codeName}')}Model(); public menuMode: ${srfclassname('${ctrl.codeName}')}Model = new ${srfclassname('${ctrl.codeName}')}Model();
/** /**
* 显示处理提示 * 显示处理提示
...@@ -163,17 +163,17 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -163,17 +163,17 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 菜单数据 * 菜单数据
* *
* @private * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Provide() @Provide()
private menus: any[] = []; public menus: any[] = [];
/** /**
* 菜单收缩改变 * 菜单收缩改变
...@@ -181,7 +181,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -181,7 +181,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Model() protected collapsechange?: boolean; @Model() public collapsechange?: boolean;
/** /**
* 监听菜单收缩 * 监听菜单收缩
...@@ -243,7 +243,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -243,7 +243,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Provide() protected defaultOpeneds: any[] = []; @Provide() public defaultOpeneds: any[] = [];
/** /**
* 是否展开 * 是否展开
...@@ -251,7 +251,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -251,7 +251,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Provide() protected isCollapse: boolean = false; @Provide() public isCollapse: boolean = false;
/** /**
* 触发方式,默认click * 触发方式,默认click
...@@ -267,13 +267,13 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -267,13 +267,13 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected counterdata: any = {}; public counterdata: any = {};
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -282,7 +282,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -282,7 +282,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (Object.is(this.mode, 'horizontal')) { if (Object.is(this.mode, 'horizontal')) {
this.trigger = 'hover'; this.trigger = 'hover';
} }
...@@ -301,7 +301,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -301,7 +301,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -310,7 +310,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -310,7 +310,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -324,10 +324,10 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -324,10 +324,10 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* 处理菜单默认选中项 * 处理菜单默认选中项
* *
* @private * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private doMenuSelect(): void { public doMenuSelect(): void {
if (!this.isDefaultPage) { if (!this.isDefaultPage) {
return; return;
} }
...@@ -361,13 +361,13 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -361,13 +361,13 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* 计算菜单选中项 * 计算菜单选中项
* *
* @private * @public
* @param {any[]} items * @param {any[]} items
* @param {string} appfunctag * @param {string} appfunctag
* @returns {boolean} * @returns {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private computeMenuSelect(items: any[], appfunctag: string): boolean { public computeMenuSelect(items: any[], appfunctag: string): boolean {
const appFuncs: any[] = this.menuMode.getAppFuncs(); const appFuncs: any[] = this.menuMode.getAppFuncs();
return items.some((item: any) => { return items.some((item: any) => {
if (Object.is(appfunctag, '') && !Object.is(item.appfunctag, '')) { if (Object.is(appfunctag, '') && !Object.is(item.appfunctag, '')) {
...@@ -398,13 +398,13 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -398,13 +398,13 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* 获取菜单项数据 * 获取菜单项数据
* *
* @private * @public
* @param {any[]} items * @param {any[]} items
* @param {string} name * @param {string} name
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private compute(items: any[], name: string) { public compute(items: any[], name: string) {
const item: any = {}; const item: any = {};
items.some((_item: any) => { items.some((_item: any) => {
if (name && Object.is(_item.name, name)) { if (name && Object.is(_item.name, name)) {
...@@ -427,11 +427,11 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -427,11 +427,11 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* 设置是否隐藏菜单栏 * 设置是否隐藏菜单栏
* *
* @private * @public
* @param {*} item * @param {*} item
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private setHideSideBar(item: any): void { public setHideSideBar(item: any): void {
<#if view.isDefaultPage?? && view.isDefaultPage()> <#if view.isDefaultPage?? && view.isDefaultPage()>
if (item.hidesidebar) { if (item.hidesidebar) {
this.$emit('collapsechange', true); this.$emit('collapsechange', true);
...@@ -447,7 +447,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -447,7 +447,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected select(index: any, indexs: any[]) { public select(index: any, indexs: any[]) {
let item = this.compute(this.menus, index); let item = this.compute(this.menus, index);
if (Object.keys(item).length === 0) { if (Object.keys(item).length === 0) {
return; return;
...@@ -458,11 +458,11 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -458,11 +458,11 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* 菜单点击 * 菜单点击
* *
* @private * @public
* @param {*} item 菜单数据 * @param {*} item 菜单数据
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private click(item: any) { public click(item: any) {
if (item) { if (item) {
switch (item.appfunctag) { switch (item.appfunctag) {
<#if ctrl.getPSAppFuncs()??> <#if ctrl.getPSAppFuncs()??>
...@@ -494,7 +494,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -494,7 +494,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected load(data: any) { public load(data: any) {
this.dataProcess(this.menuMode.getAppMenuItems()); this.dataProcess(this.menuMode.getAppMenuItems());
this.menus = this.menuMode.getAppMenuItems(); this.menus = this.menuMode.getAppMenuItems();
<#if view.isDefaultPage?? && view.isDefaultPage()> <#if view.isDefaultPage?? && view.isDefaultPage()>
...@@ -505,11 +505,11 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -505,11 +505,11 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
/** /**
* 数据处理 * 数据处理
* *
* @private * @public
* @param {any[]} items * @param {any[]} items
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private dataProcess(items: any[]): void { public dataProcess(items: any[]): void {
items.forEach((_item: any) => { items.forEach((_item: any) => {
if (_item.expanded) { if (_item.expanded) {
this.defaultOpeneds.push(_item.name); this.defaultOpeneds.push(_item.name);
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
/** /**
* 菜单项集合 * 菜单项集合
* *
* @private * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}Model * @memberof ${srfclassname('${ctrl.codeName}')}Model
*/ */
private items: any[] = [ public items: any[] = [
<#list ctrl.getPSAppMenuItems() as child> <#list ctrl.getPSAppMenuItems() as child>
${P.getPartCode(child,"ITEM").code}, ${P.getPartCode(child,"ITEM").code},
</#list> </#list>
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
/** /**
* 应用功能集合 * 应用功能集合
* *
* @private * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}Model * @memberof ${srfclassname('${ctrl.codeName}')}Model
*/ */
private funcs: any[] = [ public funcs: any[] = [
<#if view.isDefaultPage?? && view.isDefaultPage()> <#if view.isDefaultPage?? && view.isDefaultPage()>
<#list ctrl.getPSAppFuncs() as appFuncs> <#list ctrl.getPSAppFuncs() as appFuncs>
{ {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<i-form :model="this.data" class='app-search-form<#if ctrl.getPSSysCss()??> ${ctrl.getPSSysCss().getCssName()}</#if><#if ctrl.isInfoFormMode?? && ctrl.isInfoFormMode()> info-form-mode</#if>' ref='${ctrl.name}' style="<#if ctrl.getFormWidth() gt 1>width: ${ctrl.getFormWidth()?c}px;</#if>"> <i-form :model="this.data" class='app-search-form<#if ctrl.getPSSysCss()??> ${ctrl.getPSSysCss().getCssName()}</#if><#if ctrl.isInfoFormMode?? && ctrl.isInfoFormMode()> info-form-mode</#if>' ref='${ctrl.name}' style="<#if ctrl.getFormWidth() gt 1>width: ${ctrl.getFormWidth()?c}px;</#if>">
<input style="display:none;"/> <input style="display:none;"/>
<row> <row>
<i-col span="20"> <i-col span="20" class="form-content">
<row> <row>
<#if ctrl.isNoTabHeader()> <#if ctrl.isNoTabHeader()>
<#list ctrl.getPSDEFormPages() as formmenber> <#list ctrl.getPSDEFormPages() as formmenber>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</#if> </#if>
</row> </row>
</i-col> </i-col>
<i-col span="4"> <i-col span="4" class="search-button">
<row v-show="Object.keys(data).length>0"> <row v-show="Object.keys(data).length>0">
<i-button class='search_reset' size="default" type="primary" @click="onSearch">{{$t('app.searchButton.search')}}</i-button> <i-button class='search_reset' size="default" type="primary" @click="onSearch">{{$t('app.searchButton.search')}}</i-button>
<i-button class='search_reset' size="default" @click="onReset">{{this.$t('app.searchButton.reset')}}</i-button> <i-button class='search_reset' size="default" @click="onReset">{{this.$t('app.searchButton.reset')}}</i-button>
......
...@@ -38,7 +38,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -38,7 +38,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 部件行为--loaddraft * 部件行为--loaddraft
...@@ -46,7 +46,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -46,7 +46,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected loaddraftAction!: string; @Prop() public loaddraftAction!: string;
/** /**
* 部件行为--load * 部件行为--load
...@@ -54,7 +54,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -54,7 +54,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected loadAction!: string; @Prop() public loadAction!: string;
/** /**
* 视图标识 * 视图标识
...@@ -62,7 +62,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -62,7 +62,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected viewtag!: string; @Prop() public viewtag!: string;
/** /**
* 表单状态 * 表单状态
...@@ -70,7 +70,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -70,7 +70,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {Subject<any>} * @type {Subject<any>}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected formState: Subject<any> = new Subject(); public formState: Subject<any> = new Subject();
/** /**
* 忽略表单项值变化 * 忽略表单项值变化
...@@ -78,34 +78,34 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -78,34 +78,34 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ignorefieldvaluechange: boolean = false; public ignorefieldvaluechange: boolean = false;
/** /**
* 数据变化 * 数据变化
* *
* @private * @public
* @type {Subject<any>} * @type {Subject<any>}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private dataChang: Subject<any> = new Subject(); public dataChang: Subject<any> = new Subject();
/** /**
* 视图状态事件 * 视图状态事件
* *
* @private * @public
* @type {(Subscription | undefined)} * @type {(Subscription | undefined)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private dataChangEvent: Subscription | undefined; public dataChangEvent: Subscription | undefined;
/** /**
* 原始数据 * 原始数据
* *
* @private * @public
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private oldData: any = {}; public oldData: any = {};
/** /**
* 表单数据对象 * 表单数据对象
...@@ -113,7 +113,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -113,7 +113,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected data: any = { public data: any = {
<#list ctrl.getPSDEFormItems() as item> <#list ctrl.getPSDEFormItems() as item>
${item.getName()}: null, ${item.getName()}: null,
</#list> </#list>
...@@ -125,7 +125,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -125,7 +125,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected rules: any = { public rules: any = {
<#list ctrl.getAllPSDEFormDetails() as formdetail> <#list ctrl.getAllPSDEFormDetails() as formdetail>
<#if formdetail.getDetailType?? && formdetail.getDetailType() == 'FORMITEM'> <#if formdetail.getDetailType?? && formdetail.getDetailType() == 'FORMITEM'>
${formdetail.getName()}: [ ${formdetail.getName()}: [
...@@ -144,7 +144,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -144,7 +144,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected detailsModel: any = { public detailsModel: any = {
<#list ctrl.getAllPSDEFormDetails() as formdetail> <#list ctrl.getAllPSDEFormDetails() as formdetail>
${formdetail.name}: ${P.getPartCode(formdetail, 'DETAIL_MODEL').code}, ${formdetail.name}: ${P.getPartCode(formdetail, 'DETAIL_MODEL').code},
</#list> </#list>
...@@ -171,11 +171,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -171,11 +171,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 重置表单项值 * 重置表单项值
* *
* @private * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
<#list ctrl.getPSDEFormItems() as item> <#list ctrl.getPSDEFormItems() as item>
<#if item.getResetItemName?? && item.getResetItemName()??> <#if item.getResetItemName?? && item.getResetItemName()??>
if (Object.is(name, '${item.getResetItemName()}')) { if (Object.is(name, '${item.getResetItemName()}')) {
...@@ -191,11 +191,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -191,11 +191,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 表单逻辑 * 表单逻辑
* *
* @private * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
<#if P.getPartCode(item,'FORM_LOGIC').code?length gt 0> <#if P.getPartCode(item,'FORM_LOGIC').code?length gt 0>
${P.getPartCode(item,'FORM_LOGIC').code} ${P.getPartCode(item,'FORM_LOGIC').code}
</#if> </#if>
...@@ -216,12 +216,12 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -216,12 +216,12 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 表单值变化 * 表单值变化
* *
* @private * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (this.ignorefieldvaluechange) { if (this.ignorefieldvaluechange) {
return; return;
} }
...@@ -233,11 +233,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -233,11 +233,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 表单加载完成 * 表单加载完成
* *
* @private * @public
* @param {*} [data={}] * @param {*} [data={}]
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private onFormLoad(data: any = {}): void { public onFormLoad(data: any = {}): void {
this.setFormEnableCond(data); this.setFormEnableCond(data);
this.fillForm(data); this.fillForm(data);
<#if ctrl.getControlType() == 'FORM'> <#if ctrl.getControlType() == 'FORM'>
...@@ -254,7 +254,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -254,7 +254,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} [_datas={}] * @param {*} [_datas={}]
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected fillForm(_datas: any = {}): void { public fillForm(_datas: any = {}): void {
this.ignorefieldvaluechange = true; this.ignorefieldvaluechange = true;
Object.keys(_datas).forEach((name: string) => { Object.keys(_datas).forEach((name: string) => {
if (this.data.hasOwnProperty(name)) { if (this.data.hasOwnProperty(name)) {
...@@ -269,11 +269,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -269,11 +269,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 设置表单项是否启用 * 设置表单项是否启用
* *
* @protected * @public
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected setFormEnableCond(data: any): void { public setFormEnableCond(data: any): void {
Object.values(this.detailsModel).forEach((detail: any) => { Object.values(this.detailsModel).forEach((detail: any) => {
if (!Object.is(detail.detailType, 'FORMITEM')) { if (!Object.is(detail.detailType, 'FORMITEM')) {
return; return;
...@@ -286,10 +286,10 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -286,10 +286,10 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 重置草稿表单状态 * 重置草稿表单状态
* *
* @private * @public
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private resetDraftFormStates(): void { public resetDraftFormStates(): void {
const form: any = this.$refs.form; const form: any = this.$refs.form;
if (form) { if (form) {
form.resetFields(); form.resetFields();
...@@ -301,7 +301,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -301,7 +301,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected resetValidates(): void { public resetValidates(): void {
Object.values(this.detailsModel).forEach((detail: any) => { Object.values(this.detailsModel).forEach((detail: any) => {
if (!Object.is(detail.detailType, 'FORMITEM')) { if (!Object.is(detail.detailType, 'FORMITEM')) {
return; return;
...@@ -317,7 +317,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -317,7 +317,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {any[]} fieldErrors * @param {any[]} fieldErrors
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected fillValidates(fieldErrors: any[]): void { public fillValidates(fieldErrors: any[]): void {
fieldErrors.forEach((error: any) => { fieldErrors.forEach((error: any) => {
const formItem: FormItemModel = this.detailsModel[error.field]; const formItem: FormItemModel = this.detailsModel[error.field];
if (!formItem) { if (!formItem) {
...@@ -335,7 +335,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -335,7 +335,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {boolean} * @returns {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected formValidateStatus(): boolean { public formValidateStatus(): boolean {
const form: any = this.$refs.${ctrl.name}; const form: any = this.$refs.${ctrl.name};
let validatestate: boolean = true; let validatestate: boolean = true;
form.validate((valid: boolean) => { form.validate((valid: boolean) => {
...@@ -350,7 +350,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -350,7 +350,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected getValues(): any { public getValues(): any {
return this.data; return this.data;
} }
...@@ -361,7 +361,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -361,7 +361,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onFormItemValueChange($event: { name: string, value: any }): void { public onFormItemValueChange($event: { name: string, value: any }): void {
if (!$event) { if (!$event) {
return; return;
} }
...@@ -379,7 +379,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -379,7 +379,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected setDataItemValue(name: string, value: any): void { public setDataItemValue(name: string, value: any): void {
if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) { if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) {
return; return;
} }
...@@ -399,7 +399,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -399,7 +399,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${formdetail.getName()}_click($event: any): void { public ${formdetail.getName()}_click($event: any): void {
<#if formdetail.getPSUIAction?? && formdetail.getPSUIAction()??> <#if formdetail.getPSUIAction?? && formdetail.getPSUIAction()??>
<#assign uiaction = formdetail.getPSUIAction()> <#assign uiaction = formdetail.getPSUIAction()>
this.${ctrl.name}_${formdetail.getName()}_click(null, null, $event); this.${ctrl.name}_${formdetail.getName()}_click(null, null, $event);
...@@ -414,7 +414,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -414,7 +414,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${formdetail.getName()}_click($event: any): void { public ${formdetail.getName()}_click($event: any): void {
<#assign itemUpdate=formdetail.getPSDEFormItemUpdate()/> <#assign itemUpdate=formdetail.getPSDEFormItemUpdate()/>
<#if formdetail.getParamPickupPSAppView()??> <#if formdetail.getParamPickupPSAppView()??>
<#assign dataview = formdetail.getParamPickupPSAppView()> <#assign dataview = formdetail.getParamPickupPSAppView()>
...@@ -498,7 +498,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -498,7 +498,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected groupUIActionClick($event: any): void { public groupUIActionClick($event: any): void {
if (!$event) { if (!$event) {
return; return;
} }
...@@ -521,7 +521,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -521,7 +521,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected created(): void { public created(): void {
this.afterCreated(); this.afterCreated();
} }
...@@ -530,7 +530,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -530,7 +530,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -554,7 +554,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -554,7 +554,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -563,7 +563,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -563,7 +563,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -582,7 +582,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -582,7 +582,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected autoLoad(arg: any = {}): void { public autoLoad(arg: any = {}): void {
if (arg.srfkey && !Object.is(arg.srfkey, '')) { if (arg.srfkey && !Object.is(arg.srfkey, '')) {
Object.assign(arg, { srfkey: arg.srfkey }); Object.assign(arg, { srfkey: arg.srfkey });
this.load(arg); this.load(arg);
...@@ -599,11 +599,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -599,11 +599,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 加载 * 加载
* *
* @private * @public
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图搜索表单loadAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图搜索表单loadAction参数未配置' });
return; return;
...@@ -640,7 +640,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -640,7 +640,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图搜索表单loaddraftAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图搜索表单loaddraftAction参数未配置' });
return; return;
...@@ -702,7 +702,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -702,7 +702,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void { public updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
} }
...@@ -712,7 +712,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -712,7 +712,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onEnter($event: any): void { public onEnter($event: any): void {
<#if ctrl.getControlType() == 'SEARCHFORM' && !ctrl.isEnableAutoSearch()> <#if ctrl.getControlType() == 'SEARCHFORM' && !ctrl.isEnableAutoSearch()>
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
...@@ -729,7 +729,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -729,7 +729,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onSearch() { public onSearch() {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
...@@ -741,7 +741,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -741,7 +741,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onReset() { public onReset() {
this.loadDraft({},'RESET'); this.loadDraft({},'RESET');
} }
</#if> </#if>
...@@ -752,7 +752,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -752,7 +752,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onSearch() { public onSearch() {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
margin-right: 12px; margin-right: 12px;
margin-bottom: 8px; margin-bottom: 8px;
} }
.search-button{
text-align: right;
}
} }
.app-search-form-flex { .app-search-form-flex {
height: 100%; height: 100%;
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({default:true}) protected isShowSlot?: boolean; @Prop({default:true}) public isShowSlot?: boolean;
/** /**
* 应用实体参数名称 * 应用实体参数名称
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
* @type string * @type string
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected parentName!: string; @Prop() public parentName!: string;
/** /**
* 获取多项数据 * 获取多项数据
...@@ -70,16 +70,16 @@ ...@@ -70,16 +70,16 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected selection: any = {}; public selection: any = {};
/** /**
* 父数据 * 父数据
* *
* @private * @public
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private parentData: any = {}; public parentData: any = {};
/** /**
* 关系栏数据项 * 关系栏数据项
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected items: any[] = [ public items: any[] = [
<#list ctrl.getRootItem().getAllItems() as dritem> <#list ctrl.getRootItem().getAllItems() as dritem>
{ {
index: ${dritem_index?c}, index: ${dritem_index?c},
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected created(): void { public created(): void {
this.afterCreated(); this.afterCreated();
} }
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -156,12 +156,12 @@ ...@@ -156,12 +156,12 @@
/** /**
* 获取关系项 * 获取关系项
* *
* @private * @public
* @param {*} [arg={}] * @param {*} [arg={}]
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private getDRTabItem(arg: any = {}): any { public getDRTabItem(arg: any = {}): any {
let expmode = arg.nodetype.toUpperCase(); let expmode = arg.nodetype.toUpperCase();
if (!expmode) { if (!expmode) {
expmode = ''; expmode = '';
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
* @param {boolean} state * @param {boolean} state
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected setItemDisabled(state: boolean): void { public setItemDisabled(state: boolean): void {
this.items.forEach((item: any) => { this.items.forEach((item: any) => {
if (Object.is(item.name, 'form')) { if (Object.is(item.name, 'form')) {
item.disabled = false; item.disabled = false;
...@@ -199,12 +199,12 @@ ...@@ -199,12 +199,12 @@
/** /**
* 获取数据项 * 获取数据项
* *
* @private * @public
* @param {string} id * @param {string} id
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
private getItem(id: string): any { public getItem(id: string): any {
const arr: any[] = this.items.filter((_item: any) => Object.is(_item.id, id)); const arr: any[] = this.items.filter((_item: any) => Object.is(_item.id, id));
if (arr) { if (arr) {
return arr[0]; return arr[0];
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected tabPanelClick($event: any): void { public tabPanelClick($event: any): void {
const item = this.getItem($event); const item = this.getItem($event);
if (Object.is(item.id, this.selection.id)) { if (Object.is(item.id, this.selection.id)) {
return; return;
......
...@@ -104,11 +104,11 @@ ...@@ -104,11 +104,11 @@
/** /**
* 父数据 * 父数据
* *
* @private * @public
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private parentData: any = {}; public parentData: any = {};
/** /**
* 宽度 * 宽度
...@@ -158,12 +158,12 @@ ...@@ -158,12 +158,12 @@
/** /**
* 获取关系项 * 获取关系项
* *
* @private * @public
* @param {*} [arg={}] * @param {*} [arg={}]
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private getDRBarItem(arg: any = {}): any { public getDRBarItem(arg: any = {}): any {
let expmode = arg.nodetype; let expmode = arg.nodetype;
if (!expmode) { if (!expmode) {
expmode = ''; expmode = '';
...@@ -185,11 +185,11 @@ ...@@ -185,11 +185,11 @@
/** /**
* 处理数据 * 处理数据
* *
* @private * @public
* @param {any[]} items * @param {any[]} items
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private dataProcess(items: any[]): void { public dataProcess(items: any[]): void {
items.forEach((_item: any) => { items.forEach((_item: any) => {
if (_item.expanded) { if (_item.expanded) {
this.defaultOpeneds.push(_item.id); this.defaultOpeneds.push(_item.id);
......
...@@ -45,7 +45,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -45,7 +45,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator!: boolean; @Prop({ default: true }) public showBusyIndicator!: boolean;
/** /**
* 部件行为--fetch * 部件行为--fetch
...@@ -53,7 +53,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -53,7 +53,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* Vue声明周期(组件初始化完毕) * Vue声明周期(组件初始化完毕)
...@@ -87,7 +87,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -87,7 +87,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -96,7 +96,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -96,7 +96,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -248,7 +248,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -248,7 +248,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.name}')}Base * @memberof ${srfclassname('${ctrl.name}')}Base
*/ */
protected refresh(opt: any = {}) { public refresh(opt: any = {}) {
this.load(opt); this.load(opt);
} }
...@@ -594,7 +594,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -594,7 +594,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
let curCodeList:Map<number,any> = allCodeList.get(groupField[0].codelist.tag); let curCodeList:Map<number,any> = allCodeList.get(groupField[0].codelist.tag);
curCodeList.forEach((codelist:any) =>{ curCodeList.forEach((codelist:any) =>{
arr.forEach((item:any) =>{ arr.forEach((item:any) =>{
if(Object.is(item.planetype,codelist)){ if(Object.is(item[groupField[0].name],codelist)){
returnArray.push(item); returnArray.push(item);
item.hasused = true; item.hasused = true;
} }
...@@ -640,8 +640,8 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -640,8 +640,8 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
public handleSortGroupData(arr:Array<any>,groupField:any,label:string){ public handleSortGroupData(arr:Array<any>,groupField:any,label:string){
arr.forEach((item:any) =>{ arr.forEach((item:any) =>{
let sortFieldValue:Array<any> = item[groupField[0].name].split("-"); let sortFieldValue:Array<any> = item[groupField[0].name].split("-");
Object.assign(item,{sortField:Number(sortFieldValue[0]+sortFieldValue[1])}); Object.assign(item,{sortField:Number(sortFieldValue[0])*10000+Number(sortFieldValue[1])});
item[groupField[0].name] = sortFieldValue[0]+"年"+sortFieldValue[1]+label; item[groupField[0].name] = sortFieldValue[0]+"年"+sortFieldValue[1]+label;
}) })
arr.sort((a:any, b:any) => { arr.sort((a:any, b:any) => {
return Number(a.sortField) - Number(b.sortField); return Number(a.sortField) - Number(b.sortField);
......
...@@ -42,7 +42,7 @@ import echarts from 'echarts'; ...@@ -42,7 +42,7 @@ import echarts from 'echarts';
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator!: boolean; @Prop({ default: true }) public showBusyIndicator!: boolean;
/** /**
* 部件行为--fetch * 部件行为--fetch
...@@ -50,7 +50,7 @@ import echarts from 'echarts'; ...@@ -50,7 +50,7 @@ import echarts from 'echarts';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* Vue声明周期(组件初始化完毕) * Vue声明周期(组件初始化完毕)
...@@ -84,7 +84,7 @@ import echarts from 'echarts'; ...@@ -84,7 +84,7 @@ import echarts from 'echarts';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -93,7 +93,7 @@ import echarts from 'echarts'; ...@@ -93,7 +93,7 @@ import echarts from 'echarts';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -241,7 +241,7 @@ import echarts from 'echarts'; ...@@ -241,7 +241,7 @@ import echarts from 'echarts';
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.name}')} * @memberof ${srfclassname('${ctrl.name}')}
*/ */
protected refresh(opt: any = {}) { public refresh(opt: any = {}) {
this.load(opt); this.load(opt);
} }
......
...@@ -89,29 +89,29 @@ import UtilService from '@/utilservice/util-service'; ...@@ -89,29 +89,29 @@ import UtilService from '@/utilservice/util-service';
/** /**
* 是否支持看板定制 * 是否支持看板定制
* *
* @protected * @public
* @type {(boolean)} * @type {(boolean)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected isEnableCustomized!:boolean; @Prop() public isEnableCustomized!:boolean;
/** /**
* 是否已有看板定制 * 是否已有看板定制
* *
* @protected * @public
* @type {(boolean)} * @type {(boolean)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isHasCustomized:boolean = false; public isHasCustomized:boolean = false;
/** /**
* 模型数据 * 模型数据
* *
* @protected * @public
* @type {(*)} * @type {(*)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected modelDta:any; public modelDta:any;
/** /**
* modleId * modleId
...@@ -119,7 +119,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -119,7 +119,7 @@ import UtilService from '@/utilservice/util-service';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected modelId:string = "dashboard_<#if ctrl.getPSAppDataEntity()??>${ctrl.getPSAppDataEntity().getCodeName()?lower_case}<#else>app</#if>_${ctrl.getCodeName()?lower_case}"; public modelId:string = "dashboard_<#if ctrl.getPSAppDataEntity()??>${ctrl.getPSAppDataEntity().getCodeName()?lower_case}<#else>app</#if>_${ctrl.getCodeName()?lower_case}";
/** /**
* 建构功能服务对象 * 建构功能服务对象
...@@ -127,7 +127,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -127,7 +127,7 @@ import UtilService from '@/utilservice/util-service';
* @type {UtilService} * @type {UtilService}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected utilService:UtilService = new UtilService(); public utilService:UtilService = new UtilService();
/** /**
* 功能服务名称 * 功能服务名称
...@@ -135,7 +135,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -135,7 +135,7 @@ import UtilService from '@/utilservice/util-service';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected utilServiceName:string = "<#if ctrl.getPSAppDynaDashboardUtil?? && ctrl.getPSAppDynaDashboardUtil()??>${ctrl.getPSAppDynaDashboardUtil().getCodeName()?lower_case}</#if>"; public utilServiceName:string = "<#if ctrl.getPSAppDynaDashboardUtil?? && ctrl.getPSAppDynaDashboardUtil()??>${ctrl.getPSAppDynaDashboardUtil().getCodeName()?lower_case}</#if>";
/** /**
* 获取多项数据 * 获取多项数据
...@@ -162,7 +162,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -162,7 +162,7 @@ import UtilService from '@/utilservice/util-service';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -171,7 +171,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -171,7 +171,7 @@ import UtilService from '@/utilservice/util-service';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -235,7 +235,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -235,7 +235,7 @@ import UtilService from '@/utilservice/util-service';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected loadModel(){ public loadModel(){
if(this.isEnableCustomized){ if(this.isEnableCustomized){
this.utilService.getService(this.utilServiceName).then((service:any) =>{ this.utilService.getService(this.utilServiceName).then((service:any) =>{
service.loadModelData(JSON.parse(JSON.stringify(this.context)),{modelid:this.modelId}).then((res:any) =>{ service.loadModelData(JSON.parse(JSON.stringify(this.context)),{modelid:this.modelId}).then((res:any) =>{
...@@ -266,7 +266,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -266,7 +266,7 @@ import UtilService from '@/utilservice/util-service';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected handleClick(){ public handleClick(){
const view:any ={ const view:any ={
viewname: 'app-portal-design', viewname: 'app-portal-design',
title: '面板设计', title: '面板设计',
...@@ -291,7 +291,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -291,7 +291,7 @@ import UtilService from '@/utilservice/util-service';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -300,7 +300,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -300,7 +300,7 @@ import UtilService from '@/utilservice/util-service';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: false }) protected isSelectFirstDefault!: boolean; @Prop({ default: false }) public isSelectFirstDefault!: boolean;
/** /**
* 显示处理提示 * 显示处理提示
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 部件行为--create * 部件行为--create
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected createAction!: string; @Prop() public createAction!: string;
/** /**
* 部件行为--remove * 部件行为--remove
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected removeAction!: string; @Prop() public removeAction!: string;
/** /**
* 部件行为--update * 部件行为--update
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected updateAction!: string; @Prop() public updateAction!: string;
/** /**
* 部件行为--fetch * 部件行为--fetch
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* 是否单选 * 是否单选
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected isSingleSelect?: boolean; @Prop() public isSingleSelect?: boolean;
/** /**
* 数据 * 数据
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected items: any[] = []; public items: any[] = [];
/** /**
* 是否支持分页 * 是否支持分页
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c};; public isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c};;
/** /**
* 总条数 * 总条数
...@@ -158,14 +158,14 @@ ...@@ -158,14 +158,14 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected totalRecord: number = 0; public totalRecord: number = 0;
/** /**
* 选中数组 * 选中数组
* @type {Array<any>} * @type {Array<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected selections: Array<any> = []; public selections: Array<any> = [];
/** /**
* 当前页 * 当前页
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected curPage: number = 1; public curPage: number = 1;
/** /**
* 分页条数 * 分页条数
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected limit: number = ${ctrl.getPagingSize()?c}; public limit: number = ${ctrl.getPagingSize()?c};
/** /**
* 排序方向 * 排序方向
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected sortDir:string = ''; public sortDir:string = '';
/** /**
* 排序字段 * 排序字段
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected sortField: string = ''; public sortField: string = '';
/** /**
* 排序点击事件 * 排序点击事件
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected sortClick(field:string) { public sortClick(field:string) {
if(this.sortField !== field){ if(this.sortField !== field){
this.sortField = field; this.sortField = field;
this.sortDir = 'asc'; this.sortDir = 'asc';
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getsortClass(field:string) { public getsortClass(field:string) {
if(this.sortField !== field || this.sortDir === ''){ if(this.sortField !== field || this.sortDir === ''){
return ''; return '';
}else if(this.sortDir === 'asc'){ }else if(this.sortDir === 'asc'){
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected mounted () { public mounted () {
this.afterMounted(); this.afterMounted();
} }
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterMounted(){ public afterMounted(){
<#if !ctrl.isEnablePagingBar()> <#if !ctrl.isEnablePagingBar()>
this.$el.addEventListener('scroll', ()=> { this.$el.addEventListener('scroll', ()=> {
if( this.$el.scrollTop + this.$el.clientHeight >= this.$el.scrollHeight) { if( this.$el.scrollTop + this.$el.clientHeight >= this.$el.scrollHeight) {
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(this.name, tag)) { if (!Object.is(this.name, tag)) {
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected loadMore(){ public loadMore(){
if(this.totalRecord>this.items.length) if(this.totalRecord>this.items.length)
{ {
this.curPage = ++this.curPage; this.curPage = ++this.curPage;
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected refresh(opt: any = {}) { public refresh(opt: any = {}) {
this.curPage = 1; this.curPage = 1;
this.load(opt, true); this.load(opt, true);
} }
...@@ -318,7 +318,7 @@ ...@@ -318,7 +318,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -339,12 +339,12 @@ ...@@ -339,12 +339,12 @@
/** /**
* 表格数据加载 * 表格数据加载
* *
* @private * @public
* @param {*} [arg={}] * @param {*} [arg={}]
* @param {boolean} [isReset=false] 是否重置items * @param {boolean} [isReset=false] 是否重置items
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private load(opt: any = {}, isReset: boolean = false): void { public load(opt: any = {}, isReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图列表fetchAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图列表fetchAction参数未配置' });
return; return;
...@@ -405,7 +405,7 @@ ...@@ -405,7 +405,7 @@
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格removeAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格removeAction参数未配置' });
return; return;
...@@ -504,7 +504,7 @@ ...@@ -504,7 +504,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
* *
*/ */
protected handleClick(args: any) { public handleClick(args: any) {
args.isselected = !args.isselected; args.isselected = !args.isselected;
if(this.isSingleSelect) { if(this.isSingleSelect) {
this.items.forEach((item:any) =>{ this.items.forEach((item:any) =>{
...@@ -521,7 +521,7 @@ ...@@ -521,7 +521,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
* *
*/ */
protected handleDblClick(args: any) { public handleDblClick(args: any) {
this.$emit('rowdblclick', args); this.$emit('rowdblclick', args);
} }
...@@ -530,7 +530,7 @@ ...@@ -530,7 +530,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
* *
*/ */
protected selectchange() { public selectchange() {
this.selections = []; this.selections = [];
this.items.map((item: any) => { this.items.map((item: any) => {
if (item.isselected) { if (item.isselected) {
......
...@@ -62,25 +62,25 @@ ...@@ -62,25 +62,25 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected viewUID!:string; @Prop() public viewUID!:string;
/** /**
* 是否单选 * 是否单选
* *
* @protected * @public
* @type {(boolean)} * @type {(boolean)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected isSingleSelect:boolean = true; public isSingleSelect:boolean = true;
/** /**
* 呈现模式,可选值:horizontal或者vertical * 呈现模式,可选值:horizontal或者vertical
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected showMode:string ="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">horizontal<#else>vertical</#if>"; public showMode:string ="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">horizontal<#else>vertical</#if>";
/** /**
* 控件宽度 * 控件宽度
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>; public ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>;
/** /**
* 控件高度 * 控件高度
...@@ -96,16 +96,16 @@ ...@@ -96,16 +96,16 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()}<#else>0</#if>; public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()}<#else>0</#if>;
/** /**
* 搜素值 * 搜素值
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected searchText:string = ""; public searchText:string = "";
/** /**
* 分割宽度 * 分割宽度
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected split: number = 0.5; public split: number = 0.5;
<#if ctrl.getXDataPSControl()??> <#if ctrl.getXDataPSControl()??>
<#assign xDataControl = ctrl.getXDataPSControl() /> <#assign xDataControl = ctrl.getXDataPSControl() />
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navViewName: any = { public navViewName: any = {
<#if xDataControl.getPSSysCalendarItems()??> <#if xDataControl.getPSSysCalendarItems()??>
<#list xDataControl.getPSSysCalendarItems() as calendarItem> <#list xDataControl.getPSSysCalendarItems() as calendarItem>
${calendarItem.getItemType()}: "<#if calendarItem.getNavPSAppView?? && calendarItem.getNavPSAppView()??><#assign navPSAppView = calendarItem.getNavPSAppView() />${srffilepath2(navPSAppView.getCodeName())}</#if>", ${calendarItem.getItemType()}: "<#if calendarItem.getNavPSAppView?? && calendarItem.getNavPSAppView()??><#assign navPSAppView = calendarItem.getNavPSAppView() />${srffilepath2(navPSAppView.getCodeName())}</#if>",
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navViewParam: any = { public navViewParam: any = {
<#if xDataControl.getPSSysCalendarItems()??> <#if xDataControl.getPSSysCalendarItems()??>
<#list xDataControl.getPSSysCalendarItems() as calendarItem> <#list xDataControl.getPSSysCalendarItems() as calendarItem>
${calendarItem.getItemType()}: '<#if calendarItem.getNavViewParamJO?? && calendarItem.getNavViewParamJO()??>${calendarItem.getNavViewParamJO()}</#if>', ${calendarItem.getItemType()}: '<#if calendarItem.getNavViewParamJO?? && calendarItem.getNavViewParamJO()??>${calendarItem.getNavViewParamJO()}</#if>',
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
</#if> </#if>
protected navFilter: any = { public navFilter: any = {
<#if xDataControl.getPSSysCalendarItems()??> <#if xDataControl.getPSSysCalendarItems()??>
<#list xDataControl.getPSSysCalendarItems() as calendarItem> <#list xDataControl.getPSSysCalendarItems() as calendarItem>
${calendarItem.getItemType()}: "<#if calendarItem.getNavFilter?? && calendarItem.getNavFilter()??>${calendarItem.getNavFilter()}</#if>", ${calendarItem.getItemType()}: "<#if calendarItem.getNavFilter?? && calendarItem.getNavFilter()??>${calendarItem.getNavFilter()}</#if>",
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) protected showBusyIndicator!: boolean; @Prop({ default: true }) public showBusyIndicator!: boolean;
<#if ctrl.getPSControls()??> <#if ctrl.getPSControls()??>
<#assign controls = ctrl.getPSControls()/> <#assign controls = ctrl.getPSControls()/>
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected selection: any = {}; public selection: any = {};
/** /**
* split值变化事件 * split值变化事件
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -318,7 +318,7 @@ ...@@ -318,7 +318,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void { public ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void {
let data:any = {}; let data:any = {};
if (args.length === 0) { if (args.length === 0) {
return ; return ;
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_load(args:any, tag?: string, $event2?: any){ public ${ctrl.name}_load(args:any, tag?: string, $event2?: any){
this.$emit('load',args); this.$emit('load',args);
} }
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onSearch($event:any) { public onSearch($event:any) {
<#if ctrl.getXDataPSControl()??> <#if ctrl.getXDataPSControl()??>
<#assign xDataControl = ctrl.getXDataPSControl()/> <#assign xDataControl = ctrl.getXDataPSControl()/>
let calendar:any = this.$refs.${xDataControl.getName()}; let calendar:any = this.$refs.${xDataControl.getName()};
......
...@@ -64,7 +64,7 @@ FullCalendar, ...@@ -64,7 +64,7 @@ FullCalendar,
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: false }) protected isSelectFirstDefault!: boolean; @Prop({ default: false }) public isSelectFirstDefault!: boolean;
/** /**
* 显示处理提示 * 显示处理提示
...@@ -72,7 +72,7 @@ FullCalendar, ...@@ -72,7 +72,7 @@ FullCalendar,
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 部件行为--load * 部件行为--load
...@@ -80,34 +80,34 @@ FullCalendar, ...@@ -80,34 +80,34 @@ FullCalendar,
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected loadAction!: string; @Prop() public loadAction!: string;
/** /**
* 日历部件样式名 * 日历部件样式名
* *
* @protected * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected calendarClass: string = "calendar"; public calendarClass: string = "calendar";
/** /**
* 选中事件element元素 * 选中事件element元素
* *
* @protected * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected selectedEventElement:any; public selectedEventElement:any;
/** /**
* 引用插件集合 * 引用插件集合
* *
* @protected * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected calendarPlugins: any[] = [ public calendarPlugins: any[] = [
dayGridPlugin, dayGridPlugin,
timeGridPlugin, timeGridPlugin,
listPlugin, listPlugin,
...@@ -117,11 +117,11 @@ FullCalendar, ...@@ -117,11 +117,11 @@ FullCalendar,
/** /**
* 设置头部显示 * 设置头部显示
* *
* @protected * @public
* @type {} * @type {}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected header: any = { public header: any = {
left: 'prev,next today gotoDate', left: 'prev,next today gotoDate',
center: 'title', center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek'
...@@ -130,11 +130,11 @@ FullCalendar, ...@@ -130,11 +130,11 @@ FullCalendar,
/** /**
* 按钮文本集合 * 按钮文本集合
* *
* @protected * @public
* @type {} * @type {}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected buttonText: any = { public buttonText: any = {
today: '今天', today: '今天',
month: '月', month: '月',
week: '周', week: '周',
...@@ -145,11 +145,11 @@ FullCalendar, ...@@ -145,11 +145,11 @@ FullCalendar,
/** /**
* 自定义按钮集合 * 自定义按钮集合
* *
* @protected * @public
* @type {} * @type {}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected customButtons: any = { public customButtons: any = {
gotoDate: { gotoDate: {
text: "跳转", text: "跳转",
click: this.openDateSelect click: this.openDateSelect
...@@ -159,38 +159,38 @@ FullCalendar, ...@@ -159,38 +159,38 @@ FullCalendar,
/** /**
* 模态显示控制变量 * 模态显示控制变量
* *
* @protected * @public
* @type boolean * @type boolean
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected modalVisible: boolean = false; public modalVisible: boolean = false;
/** /**
* 跳转日期 * 跳转日期
* *
* @protected * @public
* @type Date * @type Date
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected selectedGotoDate: Date = new Date(); public selectedGotoDate: Date = new Date();
/** /**
* 打开时间选择模态 * 打开时间选择模态
* *
* @protected * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected openDateSelect(){ public openDateSelect(){
this.modalVisible = true; this.modalVisible = true;
} }
/** /**
* 跳转到指定时间 * 跳转到指定时间
* *
* @protected * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected gotoDate(){ public gotoDate(){
let appCalendar: any = this.$refs.calendar; let appCalendar: any = this.$refs.calendar;
let api = appCalendar.getApi(); let api = appCalendar.getApi();
api.gotoDate(this.selectedGotoDate); api.gotoDate(this.selectedGotoDate);
...@@ -199,11 +199,11 @@ FullCalendar, ...@@ -199,11 +199,11 @@ FullCalendar,
/** /**
* 有效日期范围 * 有效日期范围
* *
* @protected * @public
* @type {} * @type {}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected validRange: any = { public validRange: any = {
start:"0000-01-01", start:"0000-01-01",
end:"9999-12-31" end:"9999-12-31"
}; };
...@@ -211,19 +211,19 @@ FullCalendar, ...@@ -211,19 +211,19 @@ FullCalendar,
/** /**
* 默认加载日期 * 默认加载日期
* *
* @protected * @public
* @type {} * @type {}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected defaultDate: any = this.$util.dateFormat(new Date()); public defaultDate: any = this.$util.dateFormat(new Date());
/** /**
* 设置按钮文本 * 设置按钮文本
* *
* @protected * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected setButtonText(){ public setButtonText(){
this.buttonText.today = this.$t('app.calendar.today'), this.buttonText.today = this.$t('app.calendar.today'),
this.buttonText.month = this.$t('app.calendar.month'), this.buttonText.month = this.$t('app.calendar.month'),
this.buttonText.week = this.$t('app.calendar.week'), this.buttonText.week = this.$t('app.calendar.week'),
...@@ -235,31 +235,31 @@ FullCalendar, ...@@ -235,31 +235,31 @@ FullCalendar,
/** /**
* 监听语言变化 * 监听语言变化
* *
* @protected * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Watch('$i18n.locale') @Watch('$i18n.locale')
protected onLocaleChange(newval: any, val: any) { public onLocaleChange(newval: any, val: any) {
this.setButtonText(); this.setButtonText();
} }
/** /**
* 日程事件集合 * 日程事件集合
* *
* @protected * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected events: any[] = []; public events: any[] = [];
/** /**
* 日历样式类型 * 日历样式类型
* *
* @protected * @public
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected calendarType: string = "${ctrl.getCalendarStyle()}"; public calendarType: string = "${ctrl.getCalendarStyle()}";
/** /**
* 搜索获取日程事件 * 搜索获取日程事件
...@@ -267,7 +267,7 @@ FullCalendar, ...@@ -267,7 +267,7 @@ FullCalendar,
* @param {*} $event 日期信息 * @param {*} $event 日期信息
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected searchEvents(fetchInfo?:any, successCallback?:any, failureCallback?:any ) { public searchEvents(fetchInfo?:any, successCallback?:any, failureCallback?:any ) {
let start = (fetchInfo && fetchInfo.start) ? this.$util.dateFormat(fetchInfo.start) : null; let start = (fetchInfo && fetchInfo.start) ? this.$util.dateFormat(fetchInfo.start) : null;
let end = (fetchInfo && fetchInfo.end) ? this.$util.dateFormat(fetchInfo.end) : null; let end = (fetchInfo && fetchInfo.end) ? this.$util.dateFormat(fetchInfo.end) : null;
let arg = { start: start, end: end }; let arg = { start: start, end: end };
...@@ -315,7 +315,7 @@ FullCalendar, ...@@ -315,7 +315,7 @@ FullCalendar,
* @param {*} $event 日期信息 * @param {*} $event 日期信息
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onDateClick($event: any) { public onDateClick($event: any) {
let date = $event.date; let date = $event.date;
let datestr = $event.dateStr; let datestr = $event.dateStr;
} }
...@@ -326,7 +326,7 @@ FullCalendar, ...@@ -326,7 +326,7 @@ FullCalendar,
* @param {*} $event 事件信息 * @param {*} $event 事件信息
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getEditView(deName: string) { public getEditView(deName: string) {
let view: any = {}; let view: any = {};
switch(deName){ switch(deName){
<#if view.getAllRelatedPSAppViews?? && view.getAllRelatedPSAppViews()??> <#if view.getAllRelatedPSAppViews?? && view.getAllRelatedPSAppViews()??>
...@@ -377,7 +377,7 @@ FullCalendar, ...@@ -377,7 +377,7 @@ FullCalendar,
* @param {*} $event timeline事件对象 * @param {*} $event timeline事件对象
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onEventClick($event: any, isOriginData:boolean = false, $event2?: any) { public onEventClick($event: any, isOriginData:boolean = false, $event2?: any) {
// 处理event数据 // 处理event数据
let event: any = {}; let event: any = {};
if(isOriginData){ if(isOriginData){
...@@ -453,7 +453,7 @@ FullCalendar, ...@@ -453,7 +453,7 @@ FullCalendar,
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected refresh() { public refresh() {
if(Object.is(this.calendarType,"TIMELINE")){ if(Object.is(this.calendarType,"TIMELINE")){
this.searchEvents(); this.searchEvents();
} else { } else {
...@@ -468,7 +468,7 @@ FullCalendar, ...@@ -468,7 +468,7 @@ FullCalendar,
* @param {*} $event 事件信息 * @param {*} $event 事件信息
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onEventDrop($event: any) { public onEventDrop($event: any) {
if(this.isSelectFirstDefault){ if(this.isSelectFirstDefault){
return; return;
} }
...@@ -541,7 +541,7 @@ FullCalendar, ...@@ -541,7 +541,7 @@ FullCalendar,
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
<#if ctrl.getCalendarStyle?? && ctrl.getCalendarStyle() == 'TIMELINE'> <#if ctrl.getCalendarStyle?? && ctrl.getCalendarStyle() == 'TIMELINE'>
this.searchEvents(); this.searchEvents();
<#else> <#else>
...@@ -555,7 +555,7 @@ FullCalendar, ...@@ -555,7 +555,7 @@ FullCalendar,
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -570,7 +570,7 @@ FullCalendar, ...@@ -570,7 +570,7 @@ FullCalendar,
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -579,7 +579,7 @@ FullCalendar, ...@@ -579,7 +579,7 @@ FullCalendar,
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
......
...@@ -38,11 +38,11 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi ...@@ -38,11 +38,11 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
/** /**
* 事件配置集合 * 事件配置集合
* *
* @protected * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected eventsConfig: any[] = [ public eventsConfig: any[] = [
<#if ctrl.getPSSysCalendarItems()??> <#if ctrl.getPSSysCalendarItems()??>
<#list ctrl.getPSSysCalendarItems() as calendarItem> <#list ctrl.getPSSysCalendarItems() as calendarItem>
{ {
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected isSingleSelect!: boolean; @Prop({ default: true }) public isSingleSelect!: boolean;
/** /**
* 是否默认选中第一条数据 * 是否默认选中第一条数据
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: false }) protected isSelectFirstDefault!: boolean; @Prop({ default: false }) public isSelectFirstDefault!: boolean;
/** /**
* 枝干节点是否可用(具有数据能力,可抛出) * 枝干节点是否可用(具有数据能力,可抛出)
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({default:true}) protected isBranchAvailable!: boolean; @Prop({default:true}) public isBranchAvailable!: boolean;
/** /**
* 显示处理提示 * 显示处理提示
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 初始化完成 * 初始化完成
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected inited: boolean = false; public inited: boolean = false;
/** /**
* 已选中数据集合 * 已选中数据集合
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected selectedNodes: any = []; public selectedNodes: any = [];
/** /**
* 当前选中数据项 * 当前选中数据项
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected currentselectedNode: any = {}; public currentselectedNode: any = {};
/** /**
* 选中数据字符串 * 选中数据字符串
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected selectedData?: string; @Prop() public selectedData?: string;
/** /**
* 选中值变化 * 选中值变化
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected echoselectedNodes:any[] = this.selectedData ? ( this.isSingleSelect ? [JSON.parse(this.selectedData)[0]] : JSON.parse(this.selectedData)) : []; public echoselectedNodes:any[] = this.selectedData ? ( this.isSingleSelect ? [JSON.parse(this.selectedData)[0]] : JSON.parse(this.selectedData)) : [];
/** /**
* 部件行为--update * 部件行为--update
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected updateAction!: string; @Prop() public updateAction!: string;
/** /**
* 部件行为--fetch * 部件行为--fetch
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* 部件行为--remove * 部件行为--remove
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected removeAction!: string; @Prop() public removeAction!: string;
/** /**
* 部件行为--load * 部件行为--load
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected loadAction!: string; @Prop() public loadAction!: string;
/** /**
* 部件行为--create * 部件行为--create
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected createAction!: string; @Prop() public createAction!: string;
/** /**
* 过滤属性 * 过滤属性
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected srfnodefilter: string = ''; public srfnodefilter: string = '';
/** /**
* 默认输出图标 * 默认输出图标
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isOutputIconDefault: boolean = ${ctrl.isOutputIconDefault()?c}; public isOutputIconDefault: boolean = ${ctrl.isOutputIconDefault()?c};
<#-- /** <#-- /**
* 树数据 * 树数据
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Provide() @Provide()
protected nodes: any[] = []; --> public nodes: any[] = []; -->
/** /**
* 数据展开主键 * 数据展开主键
...@@ -238,18 +238,18 @@ ...@@ -238,18 +238,18 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Provide() @Provide()
protected expandedKeys: string[] = []; public expandedKeys: string[] = [];
/** /**
* 选中数据变更事件 * 选中数据变更事件
* *
* @private * @public
* @param {*} data * @param {*} data
* @param {*} data 当前节点对应传入对象 * @param {*} data 当前节点对应传入对象
* @param {*} checkedState 树目前选中状态对象 * @param {*} checkedState 树目前选中状态对象
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private onCheck(data: any, checkedState: any) { public onCheck(data: any, checkedState: any) {
// 处理多选数据 // 处理多选数据
if(!this.isSingleSelect){ if(!this.isSingleSelect){
let leafNodes = checkedState.checkedNodes.filter((item:any) => item.leaf); let leafNodes = checkedState.checkedNodes.filter((item:any) => item.leaf);
...@@ -261,12 +261,12 @@ ...@@ -261,12 +261,12 @@
/** /**
* 选中数据变更事件 * 选中数据变更事件
* *
* @private * @public
* @param {*} data 节点对应传入对象 * @param {*} data 节点对应传入对象
* @param {*} node 节点对应node对象 * @param {*} node 节点对应node对象
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private selectionChange(data: any, node: any) { public selectionChange(data: any, node: any) {
// 禁用项处理 // 禁用项处理
if (data.disabled){ if (data.disabled){
node.isCurrent = false; node.isCurrent = false;
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
* 对树节点进行筛选操作 * 对树节点进行筛选操作
* @memberof OrderTree * @memberof OrderTree
*/ */
protected filterNode(value:any, data:any) { public filterNode(value:any, data:any) {
if (!value) return true; if (!value) return true;
return data.text.indexOf(value) !== -1; return data.text.indexOf(value) !== -1;
} }
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -345,7 +345,7 @@ ...@@ -345,7 +345,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -359,7 +359,7 @@ ...@@ -359,7 +359,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected refresh_all(): void { public refresh_all(): void {
this.inited = false; this.inited = false;
this.$nextTick(() => { this.$nextTick(() => {
this.inited = true; this.inited = true;
...@@ -371,7 +371,7 @@ ...@@ -371,7 +371,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected refresh_parent(): void { public refresh_parent(): void {
if (Object.keys(this.currentselectedNode).length === 0) { if (Object.keys(this.currentselectedNode).length === 0) {
return; return;
} }
...@@ -400,7 +400,7 @@ ...@@ -400,7 +400,7 @@
* @param {*} node * @param {*} node
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected load(node: any = {}, resolve?: any) { public load(node: any = {}, resolve?: any) {
if (node.data && node.data.children) { if (node.data && node.data.children) {
resolve(node.data.children); resolve(node.data.children);
return; return;
...@@ -409,10 +409,19 @@ ...@@ -409,10 +409,19 @@
srfnodeid: node.data && node.data.id ? node.data.id : "#", srfnodeid: node.data && node.data.id ? node.data.id : "#",
srfnodefilter: this.srfnodefilter srfnodefilter: this.srfnodefilter
}; };
Object.assign(params,{viewparams:this.viewparams}); let tempViewParams:any = JSON.parse(JSON.stringify(this.viewparams));
let curNode:any = {}; let curNode:any = {};
curNode = Util.deepObjectMerge(curNode,node); curNode = Util.deepObjectMerge(curNode,node);
let tempContext:any = this.computecurNodeContext(curNode); let tempContext:any = this.computecurNodeContext(curNode);
if(curNode.data && curNode.data.srfparentdename){
Object.assign(tempContext,{srfparentdename:curNode.data.srfparentdename});
Object.assign(tempViewParams,{srfparentdename:curNode.data.srfparentdename});
}
if(curNode.data && curNode.data.srfparentkey){
Object.assign(tempContext,{srfparentkey:curNode.data.srfparentkey});
Object.assign(tempViewParams,{srfparentkey:curNode.data.srfparentkey});
}
Object.assign(params,{viewparams:tempViewParams});
this.service.getNodes(tempContext,params).then((response: any) => { this.service.getNodes(tempContext,params).then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: "错误", desc: response.info }); this.$Notice.error({ title: "错误", desc: response.info });
...@@ -445,7 +454,7 @@ ...@@ -445,7 +454,7 @@
* @param {*} curNode 当前节点 * @param {*} curNode 当前节点
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected computecurNodeContext(curNode:any){ public computecurNodeContext(curNode:any){
let tempContext:any = JSON.parse(JSON.stringify(this.context)); let tempContext:any = JSON.parse(JSON.stringify(this.context));
while(curNode){ while(curNode){
if(curNode.data && curNode.data.id){ if(curNode.data && curNode.data.id){
...@@ -478,7 +487,7 @@ ...@@ -478,7 +487,7 @@
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected refresh(args: any[]): void { public refresh(args: any[]): void {
if (Object.keys(this.currentselectedNode).length === 0) { if (Object.keys(this.currentselectedNode).length === 0) {
return; return;
} }
...@@ -503,13 +512,13 @@ ...@@ -503,13 +512,13 @@
/** /**
* 刷新节点 * 刷新节点
* *
* @protected * @public
* @param {*} [curContext] 当前节点上下文 * @param {*} [curContext] 当前节点上下文
* @param {*} [arg={}] 当前节点附加参数 * @param {*} [arg={}] 当前节点附加参数
* @param {boolean} parentnode 是否是刷新父节点 * @param {boolean} parentnode 是否是刷新父节点
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected refresh_node(curContext:any,arg: any = {}, parentnode: boolean): void { public refresh_node(curContext:any,arg: any = {}, parentnode: boolean): void {
const { srfnodeid: id } = arg; const { srfnodeid: id } = arg;
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
const get: Promise<any> = this.service.getNodes(JSON.parse(JSON.stringify(this.context)),arg); const get: Promise<any> = this.service.getNodes(JSON.parse(JSON.stringify(this.context)),arg);
...@@ -537,12 +546,12 @@ ...@@ -537,12 +546,12 @@
/** /**
* 默认展开节点 * 默认展开节点
* *
* @private * @public
* @param {any[]} items * @param {any[]} items
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected formatExpanded(items: any[]): any[] { public formatExpanded(items: any[]): any[] {
const data: any[] = []; const data: any[] = [];
items.forEach((item) => { items.forEach((item) => {
if (item.expanded || (item.children && item.children.length > 0)) { if (item.expanded || (item.children && item.children.length > 0)) {
...@@ -560,7 +569,7 @@ ...@@ -560,7 +569,7 @@
* @param {boolean} isSelectedAll 是否选中所有子节点 * @param {boolean} isSelectedAll 是否选中所有子节点
* @memberof MainTree * @memberof MainTree
*/ */
protected setDefaultSelection(items: any[], isRoot: boolean = false, isSelectedAll: boolean = false): void { public setDefaultSelection(items: any[], isRoot: boolean = false, isSelectedAll: boolean = false): void {
if(items.length == 0){ if(items.length == 0){
return; return;
} }
...@@ -626,7 +635,7 @@ ...@@ -626,7 +635,7 @@
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected renderContextMenu(node: any) { public renderContextMenu(node: any) {
let content; let content;
if (node && node.data) { if (node && node.data) {
const data: any = JSON.parse(JSON.stringify(node.data)); const data: any = JSON.parse(JSON.stringify(node.data));
...@@ -655,7 +664,7 @@ ...@@ -655,7 +664,7 @@
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected renderContextMenu${srfclassname(childCtrl.getOwner().getNodeType()?lower_case)}() { public renderContextMenu${srfclassname(childCtrl.getOwner().getNodeType()?lower_case)}() {
return ( return (
<@ibizindent blank=12> <@ibizindent blank=12>
${P.getCtrlCode(childCtrl, 'CONTROL.html').code} ${P.getCtrlCode(childCtrl, 'CONTROL.html').code}
...@@ -672,7 +681,7 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code} ...@@ -672,7 +681,7 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code}
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected setTreeNodeHighLight(data: any): void { public setTreeNodeHighLight(data: any): void {
const tree: any = this.$refs.${ctrl.name}; const tree: any = this.$refs.${ctrl.name};
tree.setCurrentKey(data.id); tree.setCurrentKey(data.id);
} }
...@@ -683,7 +692,7 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code} ...@@ -683,7 +692,7 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code}
* @param {*} node * @param {*} node
* @memberof AppView * @memberof AppView
*/ */
protected doDefaultAction(node: any) { public doDefaultAction(node: any) {
if (node && node.data) { if (node && node.data) {
const data: any = node.data; const data: any = node.data;
const tags: string[] = data.id.split(';'); const tags: string[] = data.id.split(';');
......
...@@ -17,9 +17,37 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -17,9 +17,37 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
../@MACRO/SERVICE/SERVICE_HEADER.ts.ftl ../@MACRO/SERVICE/SERVICE_HEADER.ts.ftl
</#ibizinclude> </#ibizinclude>
<#-- 设置UI必须参数 --> <#-- 获取树节点关系导航上下文 -->
<#macro setUIParam node> <#macro getNavContext nodeRs>
<#compress>
<#if nodeRs.getPSDETreeNodeRSNavContexts()??>
<#list nodeRs.getPSDETreeNodeRSNavContexts() as rsNavContext>
"${rsNavContext.getKey()}":{"isRawValue":${rsNavContext.isRawValue()?c},"value":"${rsNavContext.getValue()}"}<#if rsNavContext_has_next>,</#if>
</#list>
</#if>
</#compress>
</#macro>
<#-- 获取树节点关系导航参数 -->
<#macro getNavParams nodeRs>
<#compress>
<#if nodeRs.getPSDETreeNodeRSNavParams()??>
<#list nodeRs.getPSDETreeNodeRSNavParams() as rsNavParam>
"${rsNavParam.getKey()}":{"isRawValue":${rsNavParam.isRawValue()?c},"value":"${rsNavParam.getValue()}"}<#if rsNavParam_has_next>,</#if>
</#list>
</#if>
</#compress>
</#macro>
<#-- 获取树节点关系参数 -->
<#macro getParams nodeRs>
<#compress>
<#if nodeRs.getPSDETreeNodeRSParams()??>
<#list nodeRs.getPSDETreeNodeRSParams() as rsParam>
"${rsParam.getKey()}":{"value":"${rsParam.getValue()}"}<#if rsParam_has_next>,</#if>
</#list>
</#if>
</#compress>
</#macro> </#macro>
/** /**
...@@ -52,22 +80,22 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -52,22 +80,22 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
/** /**
* 节点分隔符号 * 节点分隔符号
* *
* @private * @public
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Service * @memberof ${srfclassname('${ctrl.codeName}')}Service
*/ */
private TREENODE_SEPARATOR: string = ';'; public TREENODE_SEPARATOR: string = ';';
<#if ctrl.getPSDETreeNodes()??> <#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as node> <#list ctrl.getPSDETreeNodes() as node>
/** /**
* ${node.getName()}节点分隔符号 * ${node.getName()}节点分隔符号
* *
* @private * @public
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Service * @memberof ${srfclassname('${ctrl.codeName}')}Service
*/ */
private TREENODE_${node.getNodeType()?upper_case}: string = '${node.getNodeType()?j_string}'; public TREENODE_${node.getNodeType()?upper_case}: string = '${node.getNodeType()?j_string}';
</#list> </#list>
</#if> </#if>
...@@ -125,7 +153,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -125,7 +153,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
srfnodefilter: srfnodefilter, srfnodefilter: srfnodefilter,
strRealNodeId: strRealNodeId, strRealNodeId: strRealNodeId,
srfnodeid: srfnodeid, srfnodeid: srfnodeid,
strNodeType: strNodeType strNodeType: strNodeType,
viewparams: JSON.parse(JSON.stringify(data)).viewparams
} }
); );
...@@ -170,15 +199,20 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -170,15 +199,20 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
/** /**
* 填充 树视图节点[${node.getName()}] * 填充 树视图节点[${node.getName()}]
* *
* @private * @public
* @param {any{}} context * @param {any{}} context
* @param {*} filter * @param {*} filter
* @param {any[]} list * @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')}Service * @memberof ${srfclassname('${ctrl.codeName}')}Service
*/ */
@Errorlog @Errorlog
private fill${srfclassname(node.getNodeType()?lower_case)}Nodes(context:any={},filter: any, list: any[]): Promise<any> { public fill${srfclassname(node.getNodeType()?lower_case)}Nodes(context:any={},filter: any, list: any[],rsNavContext?:any,rsNavParams?:any,rsParams?:any): Promise<any> {
context = this.handleResNavContext(context,filter,rsNavContext);
filter = this.handleResNavParams(context,filter,rsNavParams,rsParams);
return new Promise((resolve:any,reject:any) =>{ return new Promise((resolve:any,reject:any) =>{
<#if node.getTreeNodeType() == 'STATIC'> <#if node.getTreeNodeType() == 'STATIC'>
let treeNode: any = {}; let treeNode: any = {};
...@@ -527,7 +561,7 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -527,7 +561,7 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
/** /**
* 获取查询集合 * 获取查询集合
* *
* @private * @public
* @param {any{}} context * @param {any{}} context
* @param {*} searchFilter * @param {*} searchFilter
* @param {*} filter * @param {*} filter
...@@ -535,14 +569,23 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -535,14 +569,23 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
* @memberof TestEnetityDatasService * @memberof TestEnetityDatasService
*/ */
@Errorlog @Errorlog
private search${srfclassname(node.getNodeType()?lower_case)}(context:any={}, searchFilter: any, filter: any): Promise<any> { public search${srfclassname(node.getNodeType()?lower_case)}(context:any={}, searchFilter: any, filter: any): Promise<any> {
return new Promise((resolve:any,reject:any) =>{ return new Promise((resolve:any,reject:any) =>{
if(filter.viewparams){
Object.assign(searchFilter,filter.viewparams);
}
if(!searchFilter.page){ if(!searchFilter.page){
Object.assign(searchFilter,{page:0}); Object.assign(searchFilter,{page:0});
} }
if(!searchFilter.size){ if(!searchFilter.size){
Object.assign(searchFilter,{size:1000}); Object.assign(searchFilter,{size:1000});
} }
if(context && context.srfparentdename){
Object.assign(searchFilter,{srfparentdename:JSON.parse(JSON.stringify(context)).srfparentdename});
}
if(context && context.srfparentkey){
Object.assign(searchFilter,{srfparentkey:JSON.parse(JSON.stringify(context)).srfparentkey});
}
<#if node.getSortField?? && node.getSortField()?? && node.getSortField() != "" && node.getSortDir?? && node.getSortDir()?? && node.getSortDir() != ""> <#if node.getSortField?? && node.getSortField()?? && node.getSortField() != "" && node.getSortDir?? && node.getSortDir()?? && node.getSortDir() != "">
Object.assign(searchFilter,{sort: '${node.getSortField()?lower_case},${node.getSortDir()?lower_case}'}) Object.assign(searchFilter,{sort: '${node.getSortField()?lower_case},${node.getSortDir()?lower_case}'})
</#if> </#if>
...@@ -556,7 +599,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -556,7 +599,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
const response: Promise<any> = _appEntityService['${node.getPSAppDEDataSet().getCodeName()}'](context, searchFilter, false); const response: Promise<any> = _appEntityService['${node.getPSAppDEDataSet().getCodeName()}'](context, searchFilter, false);
response.then((response: any) => { response.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
reject("数据集异常!"); resolve([]);
console.error('查询${node.getPSAppDEDataSet().getCodeName()}数据集异常!');
} }
const data: any = response.data; const data: any = response.data;
if (Object.keys(data).length > 0) { if (Object.keys(data).length > 0) {
...@@ -566,7 +610,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -566,7 +610,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
resolve([]); resolve([]);
} }
}).catch((response: any) => { }).catch((response: any) => {
reject("数据集异常!"); resolve([]);
console.error('查询${node.getPSAppDEDataSet().getCodeName()}数据集异常!');
}); });
} }
}) })
...@@ -576,7 +621,7 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -576,7 +621,7 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
/** /**
* 填充 树视图节点[${node.getName()}]子节点 * 填充 树视图节点[${node.getName()}]子节点
* *
* @private * @public
* @param {any{}} context * @param {any{}} context
* @param {*} filter * @param {*} filter
* @param {any[]} list * @param {any[]} list
...@@ -584,14 +629,17 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -584,14 +629,17 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
* @memberof ${srfclassname('${ctrl.codeName}')}Service * @memberof ${srfclassname('${ctrl.codeName}')}Service
*/ */
@Errorlog @Errorlog
private async fill${srfclassname(node.getNodeType()?lower_case)}NodeChilds(context:any={}, filter: any, list: any[]): Promise<any> { public async fill${srfclassname(node.getNodeType()?lower_case)}NodeChilds(context:any={}, filter: any, list: any[]): Promise<any> {
<#if ctrl.getPSDETreeNodeRSs()??> <#if ctrl.getPSDETreeNodeRSs()??>
if (filter.srfnodefilter && !Object.is(filter.srfnodefilter,"")) { if (filter.srfnodefilter && !Object.is(filter.srfnodefilter,"")) {
<#list ctrl.getPSDETreeNodeRSs() as noders> <#list ctrl.getPSDETreeNodeRSs() as noders>
<#if noders.getParentPSDETreeNode().id == node.id> <#if noders.getParentPSDETreeNode().id == node.id>
<#if noders.getSearchMode() == 1 || noders.getSearchMode() == 3> <#if noders.getSearchMode() == 1 || noders.getSearchMode() == 3>
// 填充${noders.getChildPSDETreeNode().getName()} // 填充${noders.getChildPSDETreeNode().getName()}
await this.fill${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}Nodes(context, filter, list); let ${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsNavContext:any = {<@getNavContext nodeRs=noders />};
let ${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsNavParams:any = {<@getNavParams nodeRs=noders />};
let ${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsParams:any = {<@getParams nodeRs=noders />};
await this.fill${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}Nodes(context, filter, list ,${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsNavContext,${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsNavParams,${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsParams);
</#if> </#if>
</#if> </#if>
</#list> </#list>
...@@ -600,7 +648,10 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -600,7 +648,10 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
<#if noders.getParentPSDETreeNode().id == node.id> <#if noders.getParentPSDETreeNode().id == node.id>
<#if noders.getSearchMode() == 2 || noders.getSearchMode() == 3> <#if noders.getSearchMode() == 2 || noders.getSearchMode() == 3>
// 填充${noders.getChildPSDETreeNode().getName()} // 填充${noders.getChildPSDETreeNode().getName()}
await this.fill${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}Nodes(context, filter, list); let ${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsNavContext:any = {<@getNavContext nodeRs=noders />};
let ${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsNavParams:any = {<@getNavParams nodeRs=noders />};
let ${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsParams:any = {<@getParams nodeRs=noders />};
await this.fill${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}Nodes(context, filter, list ,${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsNavContext,${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsNavParams,${srfclassname(noders.getChildPSDETreeNode().getNodeType()?lower_case)}RsParams);
</#if> </#if>
</#if> </#if>
</#list> </#list>
...@@ -676,6 +727,127 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -676,6 +727,127 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
}) })
} }
/**
* 处理节点关系导航上下文
*
* @param context 应用上下文
* @param filter 参数
* @param resNavContext 节点关系导航上下文
*
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
public handleResNavContext(context:any,filter:any,resNavContext:any){
if(resNavContext && Object.keys(resNavContext).length > 0){
let tempContextData:any = JSON.parse(JSON.stringify(context));
let tempViewParams:any = {};
if(filter && filter.viewparams){
tempViewParams = filter.viewparams;
}
Object.keys(resNavContext).forEach((item:any) =>{
let curDataObj:any = resNavContext[item];
this.handleCustomDataLogic(context,tempViewParams,curDataObj,tempContextData,item);
})
return tempContextData;
}else{
return context;
}
}
/**
* 处理关系导航参数
*
* @param context 应用上下文
* @param filter 参数
* @param resNavParams 节点关系导航参数
* @param resParams 节点关系参数
*
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
public handleResNavParams(context:any,filter:any,resNavParams:any,resParams:any){
if((resNavParams && Object.keys(resNavParams).length >0) || (resParams && Object.keys(resParams).length >0)){
let tempViewParamData:any = {};
let tempViewParams:any = {};
if(filter && filter.viewparams){
tempViewParams = filter.viewparams;
tempViewParamData = JSON.parse(JSON.stringify(filter.viewparams));
}
if( Object.keys(resNavParams).length > 0){
Object.keys(resNavParams).forEach((item:any) =>{
let curDataObj:any = resNavParams[item];
this.handleCustomDataLogic(context,tempViewParams,curDataObj,tempViewParamData,item);
})
}
if( Object.keys(resParams).length > 0){
Object.keys(resParams).forEach((item:any) =>{
let curDataObj:any = resParams[item];
tempViewParamData[item.toLowerCase()] = curDataObj.value;
})
}
Object.assign(filter,{viewparams:tempViewParamData});
return filter;
}else{
return filter;
}
}
/**
* 处理自定义节点关系导航数据
*
* @param context 应用上下文
* @param viewparams 参数
* @param curNavData 节点关系导航参数对象
* @param tempData 返回数据
* @param item 节点关系导航参数键值
*
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
public handleCustomDataLogic(context:any,viewparams:any,curNavData:any,tempData:any,item:string){
// 直接值直接赋值
if(curNavData.isRawValue){
if(Object.is(curNavData.value,"null") || Object.is(curNavData.value,"")){
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: curNavData.value,
writable : true,
enumerable : true,
configurable : true
});
}
}else{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if(context[(curNavData.value).toLowerCase()]){
Object.defineProperty(tempData, item.toLowerCase(), {
value: context[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
if(viewparams[(curNavData.value).toLowerCase()]){
Object.defineProperty(tempData, item.toLowerCase(), {
value: viewparams[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}
}
}
}
<#ibizinclude> <#ibizinclude>
../@MACRO/SERVICE/SERVICE_BOTTOM.ts.ftl ../@MACRO/SERVICE/SERVICE_BOTTOM.ts.ftl
</#ibizinclude> </#ibizinclude>
\ No newline at end of file
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected viewUID!:string; @Prop() public viewUID!:string;
/** /**
* 获取多项数据 * 获取多项数据
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected selection: any = {}; public selection: any = {};
/** /**
* 控件宽度 * 控件宽度
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>; public ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>;
/** /**
* 过滤值 * 过滤值
...@@ -96,25 +96,25 @@ ...@@ -96,25 +96,25 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected srfnodefilter: string = ''; public srfnodefilter: string = '';
/** /**
* 刷新标识 * 刷新标识
* *
* @protected * @public
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected counter:number = 0; public counter:number = 0;
/** /**
* 是否加载默认关联视图 * 是否加载默认关联视图
* *
* @protected * @public
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected istLoadDefaultRefView: boolean = false; public istLoadDefaultRefView: boolean = false;
/** /**
* 分割宽度 * 分割宽度
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected split: number = 0.2; public split: number = 0.2;
/** /**
* split值变化事件 * split值变化事件
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected getExpItemView(arg: any = {}): any { public getExpItemView(arg: any = {}): any {
let expmode = arg.nodetype.toUpperCase(); let expmode = arg.nodetype.toUpperCase();
if (!expmode) { if (!expmode) {
expmode = ''; expmode = '';
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void { public ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void {
if (args.length === 0) { if (args.length === 0) {
return ; return ;
} }
...@@ -224,13 +224,13 @@ ...@@ -224,13 +224,13 @@
if(arg.srfappctx){ if(arg.srfappctx){
Object.assign(tempContext,JSON.parse(JSON.stringify(arg.srfappctx))); Object.assign(tempContext,JSON.parse(JSON.stringify(arg.srfappctx)));
} }
Object.assign(tempContext,this.context);
if(arg.srfparentdename){ if(arg.srfparentdename){
Object.assign(tempContext,{srfparentdename:arg.srfparentdename}); Object.assign(tempContext,{srfparentdename:arg.srfparentdename});
} }
if(arg.srfparentkey){ if(arg.srfparentkey){
Object.assign(tempContext,{srfparentkey:arg.srfparentkey}); Object.assign(tempContext,{srfparentkey:arg.srfparentkey});
} }
Object.assign(tempContext,this.context);
this.selection = {}; this.selection = {};
Object.assign(this.selection, { view: { viewname: refview.viewname } }); Object.assign(this.selection, { view: { viewname: refview.viewname } });
Object.assign(this.selection,{'viewparam':tempViewparam,'context':tempContext}); Object.assign(this.selection,{'viewparam':tempViewparam,'context':tempContext});
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_load(args: any[], tag?: string, $event2?: any): void { public ${ctrl.name}_load(args: any[], tag?: string, $event2?: any): void {
this.$emit('load',args); this.$emit('load',args);
} }
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onSearch(): void { public onSearch(): void {
if (!this.viewState) { if (!this.viewState) {
return; return;
} }
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
* *
* @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -337,7 +337,7 @@ ...@@ -337,7 +337,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -352,7 +352,7 @@ ...@@ -352,7 +352,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onViewDatasChange($event: any): void { public onViewDatasChange($event: any): void {
this.$emit('selectionchange', $event); this.$emit('selectionchange', $event);
} }
...@@ -362,7 +362,7 @@ ...@@ -362,7 +362,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected viewDatasActivated($event: any): void { public viewDatasActivated($event: any): void {
this.$emit('activated', $event); this.$emit('activated', $event);
} }
...@@ -372,7 +372,7 @@ ...@@ -372,7 +372,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onViewLoad($event: any): void { public onViewLoad($event: any): void {
this.$emit('load', $event); this.$emit('load', $event);
} }
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected selection: any = {}; public selection: any = {};
/** /**
...@@ -85,16 +85,16 @@ ...@@ -85,16 +85,16 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected srffilter: string = ''; public srffilter: string = '';
/** /**
* 关联视图信息集合 * 关联视图信息集合
* *
* @private * @public
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private refViews: any = [ public refViews: any = [
<#list view.getAllRelatedPSAppViews() as refview> <#list view.getAllRelatedPSAppViews() as refview>
<#if refview.getWFStepValue??> <#if refview.getWFStepValue??>
{ {
...@@ -112,8 +112,8 @@ ...@@ -112,8 +112,8 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
<#-- protected split: string = '<#if ctrl.getWidth() gt 0>${ctrl.getWidth()?c}<#else>200</#if>px'; --> <#-- public split: string = '<#if ctrl.getWidth() gt 0>${ctrl.getWidth()?c}<#else>200</#if>px'; -->
protected split: number = 0.2; public split: number = 0.2;
/** /**
* 获取关系项视图 * 获取关系项视图
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected select(index: any, indexs: any[]) { public select(index: any, indexs: any[]) {
this.refViews.some((item:any) =>{ this.refViews.some((item:any) =>{
if(Object.is("wfstep-"+item.wfstepValue, index)){ if(Object.is("wfstep-"+item.wfstepValue, index)){
this.selection = { viewName: item.viewName }; this.selection = { viewName: item.viewName };
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onViewDatasChange($event: any): void { public onViewDatasChange($event: any): void {
this.$emit('selectionchange', $event); this.$emit('selectionchange', $event);
} }
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewDatasActivated($event: any): void { public viewDatasActivated($event: any): void {
this.$emit('activated', $event); this.$emit('activated', $event);
} }
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onViewLoad($event: any): void { public onViewLoad($event: any): void {
this.$emit('load', $event); this.$emit('load', $event);
} }
......
...@@ -40,7 +40,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -40,7 +40,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: false }) protected autosave?: boolean; @Prop({ default: false }) public autosave?: boolean;
/** /**
* 显示处理提示 * 显示处理提示
...@@ -48,7 +48,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -48,7 +48,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 部件行为--submit * 部件行为--submit
...@@ -56,7 +56,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -56,7 +56,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected WFSubmitAction!: string; @Prop() public WFSubmitAction!: string;
/** /**
* 部件行为--start * 部件行为--start
...@@ -64,7 +64,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -64,7 +64,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected WFStartAction!: string; @Prop() public WFStartAction!: string;
/** /**
* 部件行为--update * 部件行为--update
...@@ -72,7 +72,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -72,7 +72,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected updateAction!: string; @Prop() public updateAction!: string;
/** /**
* 部件行为--remove * 部件行为--remove
...@@ -80,7 +80,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -80,7 +80,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected removeAction!: string; @Prop() public removeAction!: string;
/** /**
* 部件行为--loaddraft * 部件行为--loaddraft
...@@ -88,7 +88,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -88,7 +88,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected loaddraftAction!: string; @Prop() public loaddraftAction!: string;
/** /**
* 部件行为--load * 部件行为--load
...@@ -96,7 +96,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -96,7 +96,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected loadAction!: string; @Prop() public loadAction!: string;
/** /**
* 部件行为--create * 部件行为--create
...@@ -104,7 +104,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -104,7 +104,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected createAction!: string; @Prop() public createAction!: string;
/** /**
* 部件行为--create * 部件行为--create
...@@ -112,7 +112,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -112,7 +112,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected searchAction!: string; @Prop() public searchAction!: string;
/** /**
* 视图标识 * 视图标识
...@@ -120,7 +120,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -120,7 +120,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected viewtag!: string; @Prop() public viewtag!: string;
/** /**
* 表单状态 * 表单状态
...@@ -128,7 +128,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -128,7 +128,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {Subject<any>} * @type {Subject<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected formState: Subject<any> = new Subject(); public formState: Subject<any> = new Subject();
/** /**
* 忽略表单项值变化 * 忽略表单项值变化
...@@ -136,34 +136,34 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -136,34 +136,34 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected ignorefieldvaluechange: boolean = false; public ignorefieldvaluechange: boolean = false;
/** /**
* 数据变化 * 数据变化
* *
* @private * @public
* @type {Subject<any>} * @type {Subject<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private dataChang: Subject<any> = new Subject(); public dataChang: Subject<any> = new Subject();
/** /**
* 视图状态事件 * 视图状态事件
* *
* @private * @public
* @type {(Subscription | undefined)} * @type {(Subscription | undefined)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private dataChangEvent: Subscription | undefined; public dataChangEvent: Subscription | undefined;
/** /**
* 原始数据 * 原始数据
* *
* @private * @public
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private oldData: any = {}; public oldData: any = {};
/** /**
* 表单数据对象 * 表单数据对象
...@@ -171,7 +171,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -171,7 +171,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected data: any = { public data: any = {
<#list ctrl.getPSDEFormItems() as item> <#list ctrl.getPSDEFormItems() as item>
${item.getName()}: null, ${item.getName()}: null,
</#list> </#list>
...@@ -184,7 +184,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -184,7 +184,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected currentAction: string = ""; public currentAction: string = "";
/** /**
* 关系界面计数器 * 关系界面计数器
...@@ -192,7 +192,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -192,7 +192,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected drcounter: number = 0; public drcounter: number = 0;
/** /**
* 需要等待关系界面保存时,第一次调用save参数的备份 * 需要等待关系界面保存时,第一次调用save参数的备份
...@@ -200,7 +200,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -200,7 +200,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected drsaveopt: any = {}; public drsaveopt: any = {};
/** /**
* 表单保存回调存储对象 * 表单保存回调存储对象
...@@ -208,7 +208,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -208,7 +208,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected saveState:any ; public saveState:any ;
/** /**
* 属性值规则 * 属性值规则
...@@ -216,7 +216,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -216,7 +216,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected rules: any = { public rules: any = {
<#list ctrl.getAllPSDEFormDetails() as formdetail> <#list ctrl.getAllPSDEFormDetails() as formdetail>
<#if formdetail.getDetailType?? && formdetail.getDetailType() == 'FORMITEM'> <#if formdetail.getDetailType?? && formdetail.getDetailType() == 'FORMITEM'>
${formdetail.getName()}: [ ${formdetail.getName()}: [
...@@ -262,7 +262,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -262,7 +262,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected detailsModel: any = { public detailsModel: any = {
<#list ctrl.getAllPSDEFormDetails() as formdetail> <#list ctrl.getAllPSDEFormDetails() as formdetail>
${formdetail.name}: ${P.getPartCode(formdetail, 'DETAIL_MODEL').code}, ${formdetail.name}: ${P.getPartCode(formdetail, 'DETAIL_MODEL').code},
</#list> </#list>
...@@ -298,11 +298,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -298,11 +298,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 重置表单项值 * 重置表单项值
* *
* @private * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
<#list ctrl.getPSDEFormItems() as item> <#list ctrl.getPSDEFormItems() as item>
<#if item.getResetItemName?? && item.getResetItemName()??> <#if item.getResetItemName?? && item.getResetItemName()??>
if (Object.is(name, '${item.getResetItemName()}')) { if (Object.is(name, '${item.getResetItemName()}')) {
...@@ -321,7 +321,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -321,7 +321,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {any[]} args * @param {any[]} args
* @memberof EditForm * @memberof EditForm
*/ */
protected ResetData(_datas:any){ public ResetData(_datas:any){
if(Object.keys(_datas).length >0){ if(Object.keys(_datas).length >0){
Object.keys(_datas).forEach((name: string) => { Object.keys(_datas).forEach((name: string) => {
if (this.data.hasOwnProperty(name)) { if (this.data.hasOwnProperty(name)) {
...@@ -334,11 +334,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -334,11 +334,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 表单逻辑 * 表单逻辑
* *
* @private * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
<#if P.getPartCode(item,'FORM_LOGIC').code?length gt 0> <#if P.getPartCode(item,'FORM_LOGIC').code?length gt 0>
${P.getPartCode(item,'FORM_LOGIC').code} ${P.getPartCode(item,'FORM_LOGIC').code}
</#if> </#if>
...@@ -359,12 +359,12 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -359,12 +359,12 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 表单值变化 * 表单值变化
* *
* @private * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (this.ignorefieldvaluechange) { if (this.ignorefieldvaluechange) {
return; return;
} }
...@@ -376,14 +376,14 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -376,14 +376,14 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 表单加载完成 * 表单加载完成
* *
* @private * @public
* @param {*} [data={}] * @param {*} [data={}]
* @param {string} [action] * @param {string} [action]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private onFormLoad(data: any = {},action:string): void { public onFormLoad(data: any = {},action:string): void {
<#if de??> <#if de??>
if(Object.is(action,"save") || Object.is(action,"autoSave")) if(Object.is(action,"save") || Object.is(action,"autoSave") || Object.is(action,"submit"))
// 更新context的实体主键 // 更新context的实体主键
if(data.${appde.getCodeName()?lower_case}){ if(data.${appde.getCodeName()?lower_case}){
Object.assign(this.context,{${appde.getCodeName()?lower_case}:data.${appde.getCodeName()?lower_case}}) Object.assign(this.context,{${appde.getCodeName()?lower_case}:data.${appde.getCodeName()?lower_case}})
...@@ -406,7 +406,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -406,7 +406,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {string} [action] * @param {string} [action]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected fillForm(_datas: any = {},action:string): void { public fillForm(_datas: any = {},action:string): void {
this.ignorefieldvaluechange = true; this.ignorefieldvaluechange = true;
Object.keys(_datas).forEach((name: string) => { Object.keys(_datas).forEach((name: string) => {
if (this.data.hasOwnProperty(name)) { if (this.data.hasOwnProperty(name)) {
...@@ -427,11 +427,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -427,11 +427,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 设置表单项是否启用 * 设置表单项是否启用
* *
* @protected * @public
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected setFormEnableCond(data: any): void { public setFormEnableCond(data: any): void {
Object.values(this.detailsModel).forEach((detail: any) => { Object.values(this.detailsModel).forEach((detail: any) => {
if (!Object.is(detail.detailType, 'FORMITEM')) { if (!Object.is(detail.detailType, 'FORMITEM')) {
return; return;
...@@ -444,10 +444,10 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -444,10 +444,10 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 重置草稿表单状态 * 重置草稿表单状态
* *
* @private * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private resetDraftFormStates(): void { public resetDraftFormStates(): void {
const form: any = this.$refs.form; const form: any = this.$refs.form;
if (form) { if (form) {
form.resetFields(); form.resetFields();
...@@ -459,7 +459,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -459,7 +459,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected resetValidates(): void { public resetValidates(): void {
Object.values(this.detailsModel).forEach((detail: any) => { Object.values(this.detailsModel).forEach((detail: any) => {
if (!Object.is(detail.detailType, 'FORMITEM')) { if (!Object.is(detail.detailType, 'FORMITEM')) {
return; return;
...@@ -475,7 +475,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -475,7 +475,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {any[]} fieldErrors * @param {any[]} fieldErrors
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected fillValidates(fieldErrors: any[]): void { public fillValidates(fieldErrors: any[]): void {
fieldErrors.forEach((error: any) => { fieldErrors.forEach((error: any) => {
const formItem: FormItemModel = this.detailsModel[error.field]; const formItem: FormItemModel = this.detailsModel[error.field];
if (!formItem) { if (!formItem) {
...@@ -493,7 +493,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -493,7 +493,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {boolean} * @returns {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected formValidateStatus(): boolean { public formValidateStatus(): boolean {
const form: any = this.$refs.${ctrl.name}; const form: any = this.$refs.${ctrl.name};
let validatestate: boolean = true; let validatestate: boolean = true;
form.validate((valid: boolean) => { form.validate((valid: boolean) => {
...@@ -508,7 +508,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -508,7 +508,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getValues(): any { public getValues(): any {
return this.data; return this.data;
} }
...@@ -519,7 +519,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -519,7 +519,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onFormItemValueChange($event: { name: string, value: any }): void { public onFormItemValueChange($event: { name: string, value: any }): void {
if (!$event) { if (!$event) {
return; return;
} }
...@@ -537,7 +537,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -537,7 +537,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected setDataItemValue(name: string, value: any): void { public setDataItemValue(name: string, value: any): void {
if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) { if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) {
return; return;
} }
...@@ -557,7 +557,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -557,7 +557,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof @memberof ${srfclassname('${ctrl.codeName}')} * @memberof @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected ${formdetail.getName()}_click($event: any): void { public ${formdetail.getName()}_click($event: any): void {
<#if formdetail.getPSUIAction?? && formdetail.getPSUIAction()??> <#if formdetail.getPSUIAction?? && formdetail.getPSUIAction()??>
<#assign uiaction = formdetail.getPSUIAction()> <#assign uiaction = formdetail.getPSUIAction()>
this.${ctrl.name}_${formdetail.getName()}_click(null, null, $event); this.${ctrl.name}_${formdetail.getName()}_click(null, null, $event);
...@@ -572,7 +572,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -572,7 +572,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof @memberof ${srfclassname('${ctrl.codeName}')} * @memberof @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected ${formdetail.getName()}_click($event: any): void { public ${formdetail.getName()}_click($event: any): void {
<#assign itemUpdate=formdetail.getPSDEFormItemUpdate()/> <#assign itemUpdate=formdetail.getPSDEFormItemUpdate()/>
<#if formdetail.getParamPickupPSAppView()??> <#if formdetail.getParamPickupPSAppView()??>
<#assign dataview = formdetail.getParamPickupPSAppView()> <#assign dataview = formdetail.getParamPickupPSAppView()>
...@@ -656,7 +656,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -656,7 +656,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected groupUIActionClick($event: any): void { public groupUIActionClick($event: any): void {
if (!$event) { if (!$event) {
return; return;
} }
...@@ -679,7 +679,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -679,7 +679,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created(): void { public created(): void {
this.afterCreated(); this.afterCreated();
} }
...@@ -688,7 +688,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -688,7 +688,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -746,7 +746,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -746,7 +746,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -755,7 +755,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -755,7 +755,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -773,7 +773,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -773,7 +773,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} [arg={}] * @param {*} [arg={}]
* @memberof @memberof ${srfclassname('${ctrl.codeName}')} * @memberof @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected copy(arg: any = {}): void { public copy(arg: any = {}): void {
this.loadDraft(arg); this.loadDraft(arg);
} }
...@@ -781,7 +781,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -781,7 +781,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
*打印 *打印
*@memberof @memberof ${srfclassname('${ctrl.codeName}')} *@memberof @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected print(){ public print(){
let _this:any = this; let _this:any = this;
_this.$print({id:'${ctrl.name}',popTitle:'${ctrl.getLogicName()}'}); _this.$print({id:'${ctrl.name}',popTitle:'${ctrl.getLogicName()}'});
} }
...@@ -792,7 +792,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -792,7 +792,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected refresh(args: any[]): void { public refresh(args: any[]): void {
let arg: any = {}; let arg: any = {};
Object.assign(arg,args[0]); Object.assign(arg,args[0]);
if (this.data.srfkey && !Object.is(this.data.srfkey, '')) { if (this.data.srfkey && !Object.is(this.data.srfkey, '')) {
...@@ -814,7 +814,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -814,7 +814,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected autoLoad(arg: any = {}): void { public autoLoad(arg: any = {}): void {
if (arg.srfkey && !Object.is(arg.srfkey, '')) { if (arg.srfkey && !Object.is(arg.srfkey, '')) {
Object.assign(arg, { srfkey: arg.srfkey }); Object.assign(arg, { srfkey: arg.srfkey });
this.load(arg); this.load(arg);
...@@ -831,11 +831,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -831,11 +831,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 加载 * 加载
* *
* @private * @public
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表单loadAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表单loadAction参数未配置' });
return; return;
...@@ -870,7 +870,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -870,7 +870,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected loadDraft(opt: any = {}): void { public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表单loaddraftAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表单loaddraftAction参数未配置' });
return; return;
...@@ -926,7 +926,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -926,7 +926,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected autoSave(opt: any = {}): void { public autoSave(opt: any = {}): void {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
return; return;
} }
...@@ -979,7 +979,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -979,7 +979,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected async save(opt: any = {}, showResultInfo?: boolean, ifStateNext: boolean = true): Promise<any> { public async save(opt: any = {}, showResultInfo?: boolean, ifStateNext: boolean = true): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
showResultInfo = showResultInfo === undefined ? true : false; showResultInfo = showResultInfo === undefined ? true : false;
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
...@@ -1055,11 +1055,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1055,11 +1055,11 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 删除 * 删除
* *
* @private * @public
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.name}')} * @memberof ${srfclassname('${ctrl.name}')}
*/ */
private remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表单removeAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表单removeAction参数未配置' });
...@@ -1094,16 +1094,14 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1094,16 +1094,14 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected async wfstart(data: any,localdata?:any): Promise<any> { public async wfstart(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
<#-- if(!this.WFStartAction){ <#-- if(!this.WFStartAction){
this.$Notice.error({ title: '错误', desc: 'WFCIDEditView视图表单WFStartAction参数未配置' }); this.$Notice.error({ title: '错误', desc: 'WFCIDEditView视图表单WFStartAction参数未配置' });
return; return;
} --> } -->
const _this: any = this; const _this: any = this;
const arg: any = data[0]; const post: Promise<any> = _this.save({},false);
Object.assign(arg,{viewparams:this.viewparams});
const post: Promise<any> = Object.is(arg.srfuf, '1')?this.service.update(this.updateAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(this.createAction,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response:any) =>{ post.then((response:any) =>{
const arg:any = response.data; const arg:any = response.data;
if(this.viewparams){ if(this.viewparams){
...@@ -1156,7 +1154,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1156,7 +1154,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected async wfsubmit(data: any,localdata?:any): Promise<any> { public async wfsubmit(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
<#-- if(!this.WFSubmitAction){ <#-- if(!this.WFSubmitAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表单WFSubmitAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表单WFSubmitAction参数未配置' });
...@@ -1171,6 +1169,13 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1171,6 +1169,13 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
const post: Promise<any> = Object.is(arg.srfuf, '1')?this.service.update(this.updateAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(this.createAction,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = Object.is(arg.srfuf, '1')?this.service.update(this.updateAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(this.createAction,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response:any) =>{ post.then((response:any) =>{
const arg:any = response.data; const arg:any = response.data;
// 保存完成UI处理
this.onFormLoad(arg,'save');
this.$emit('save', arg);
this.$nextTick(() => {
this.formState.next({ type: 'save', data: arg });
});
// 准备提交参数
if(this.viewparams){ if(this.viewparams){
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
} }
...@@ -1182,6 +1187,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1182,6 +1187,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
} }
return; return;
} }
this.onFormLoad(arg,'submit');
this.$store.dispatch('viewaction/datasaved', { viewtag: this.viewtag });
this.$Notice.info({ title: '', desc: '工作流提交成功' }); this.$Notice.info({ title: '', desc: '工作流提交成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
...@@ -1224,7 +1231,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1224,7 +1231,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void { public updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) { if (!mode || (mode && Object.is(mode, ''))) {
return; return;
} }
...@@ -1269,7 +1276,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1269,7 +1276,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onEnter($event: any): void { public onEnter($event: any): void {
<#if ctrl.getControlType() == 'SEARCHFORM' && !ctrl.isEnableAutoSearch()> <#if ctrl.getControlType() == 'SEARCHFORM' && !ctrl.isEnableAutoSearch()>
this.$emit('load', this.data); this.$emit('load', this.data);
</#if> </#if>
...@@ -1281,7 +1288,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1281,7 +1288,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected saveAndExit(data:any[]):Promise<any>{ public saveAndExit(data:any[]):Promise<any>{
let _this = this; let _this = this;
return new Promise((resolve: any, reject: any) =>{ return new Promise((resolve: any, reject: any) =>{
let arg: any = {}; let arg: any = {};
...@@ -1306,7 +1313,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1306,7 +1313,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected saveAndNew(data:any[]):Promise<any>{ public saveAndNew(data:any[]):Promise<any>{
let _this = this; let _this = this;
return new Promise((resolve: any, reject: any) =>{ return new Promise((resolve: any, reject: any) =>{
let arg: any = {}; let arg: any = {};
...@@ -1329,7 +1336,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1329,7 +1336,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected removeAndExit(data:any[]):Promise<any>{ public removeAndExit(data:any[]):Promise<any>{
let _this = this; let _this = this;
return new Promise((resolve: any, reject: any) =>{ return new Promise((resolve: any, reject: any) =>{
let arg: any = {}; let arg: any = {};
...@@ -1353,7 +1360,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1353,7 +1360,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {any} $event * @param {any} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected drdatasaved($event:any){ public drdatasaved($event:any){
let _this = this; let _this = this;
this.drcounter--; this.drcounter--;
if(this.drcounter > 0){ if(this.drcounter > 0){
...@@ -1399,7 +1406,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1399,7 +1406,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
this.data['${formdetail.getCodeName()?lower_case}'] = this.context['srfuserid']; this.data['${formdetail.getCodeName()?lower_case}'] = this.context['srfuserid'];
<#else> <#else>
<#-- 默认值 --> <#-- 默认值 -->
this.data['${formdetail.getCodeName()?lower_case}'] = '${formdetail.getCreateDV()}'; <#assign datatype=srfjavatype(formdetail.getStdDataType())>
this.data['${formdetail.getCodeName()?lower_case}'] = <#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>${formdetail.getCreateDV()}<#else>'${formdetail.getCreateDV()}'</#if>;
</#if> </#if>
} }
</#if> </#if>
...@@ -1433,7 +1441,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1433,7 +1441,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
this.data['${formdetail.getCodeName()?lower_case}'] = this.context['srfuserid']; this.data['${formdetail.getCodeName()?lower_case}'] = this.context['srfuserid'];
<#else> <#else>
<#-- 默认值 --> <#-- 默认值 -->
this.data['${formdetail.getCodeName()?lower_case}'] = '${formdetail.getUpdateDV()}'; <#assign datatype=srfjavatype(formdetail.getStdDataType())>
this.data['${formdetail.getCodeName()?lower_case}'] = <#if datatype=='BigInteger' || datatype=='Integer' || datatype=='Double' || datatype=='Decimal' || datatype=='Float' || datatype=='BigDecimal'>${formdetail.getUpdateDV()}<#else>'${formdetail.getUpdateDV()}'</#if>;
</#if> </#if>
} }
</#if> </#if>
...@@ -1450,7 +1459,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1450,7 +1459,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onSearch() { public onSearch() {
this.$emit('load', this.data); this.$emit('load', this.data);
} }
...@@ -1459,7 +1468,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1459,7 +1468,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onReset() { public onReset() {
this.loadDraft(); this.loadDraft();
} }
</#if> </#if>
...@@ -1470,7 +1479,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1470,7 +1479,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onSearch() { public onSearch() {
this.$emit('load', this.data); this.$emit('load', this.data);
} }
......
...@@ -121,7 +121,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -121,7 +121,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected newdata: any; @Prop() public newdata: any;
</#if> </#if>
<#if logic.getPFLogicCodeType() == 'APP_OPENDATA'> <#if logic.getPFLogicCodeType() == 'APP_OPENDATA'>
/** /**
...@@ -130,7 +130,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -130,7 +130,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected opendata: any; @Prop() public opendata: any;
</#if> </#if>
</#list> </#list>
</#if> </#if>
...@@ -141,7 +141,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -141,7 +141,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: true }) protected showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
/** /**
* 部件行为--update * 部件行为--update
...@@ -149,7 +149,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -149,7 +149,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected updateAction!: string; @Prop() public updateAction!: string;
/** /**
* 部件行为--fetch * 部件行为--fetch
...@@ -157,7 +157,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -157,7 +157,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* 部件行为--remove * 部件行为--remove
...@@ -165,7 +165,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -165,7 +165,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected removeAction!: string; @Prop() public removeAction!: string;
/** /**
* 部件行为--load * 部件行为--load
...@@ -173,7 +173,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -173,7 +173,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected loadAction!: string; @Prop() public loadAction!: string;
/** /**
* 部件行为--loaddraft * 部件行为--loaddraft
...@@ -181,7 +181,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -181,7 +181,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected loaddraftAction!: string; @Prop() public loaddraftAction!: string;
/** /**
* 部件行为--create * 部件行为--create
...@@ -189,7 +189,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -189,7 +189,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected createAction!: string; @Prop() public createAction!: string;
/** /**
* 当前页 * 当前页
...@@ -197,7 +197,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -197,7 +197,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected curPage: number = 1; public curPage: number = 1;
/** /**
* 数据 * 数据
...@@ -205,7 +205,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -205,7 +205,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected items: any[] = []; public items: any[] = [];
/** /**
* 是否支持分页 * 是否支持分页
...@@ -213,7 +213,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -213,7 +213,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c}; public isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c};
/** /**
* 是否禁用排序 * 是否禁用排序
...@@ -221,7 +221,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -221,7 +221,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isNoSort: boolean = ${ctrl.isNoSort()?c}; public isNoSort: boolean = ${ctrl.isNoSort()?c};
/** /**
* 排序方向 * 排序方向
...@@ -229,7 +229,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -229,7 +229,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected minorSortDir: string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()}</#if>'; public minorSortDir: string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()}</#if>';
/** /**
* 排序字段 * 排序字段
...@@ -237,7 +237,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -237,7 +237,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected minorSortPSDEF: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>'; public minorSortPSDEF: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>';
/** /**
* 分页条数 * 分页条数
...@@ -245,7 +245,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -245,7 +245,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected limit: number = ${ctrl.getPagingSize()?c}; public limit: number = ${ctrl.getPagingSize()?c};
/** /**
* 是否显示标题 * 是否显示标题
...@@ -253,7 +253,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -253,7 +253,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isHideHeader: boolean = ${ctrl.isHideHeader()?c}; public isHideHeader: boolean = ${ctrl.isHideHeader()?c};
/** /**
* 是否默认选中第一条数据 * 是否默认选中第一条数据
...@@ -261,7 +261,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -261,7 +261,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({ default: false }) protected isSelectFirstDefault!: boolean; @Prop({ default: false }) public isSelectFirstDefault!: boolean;
/** /**
* 是否单选 * 是否单选
...@@ -269,7 +269,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -269,7 +269,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected isSingleSelect?: boolean; @Prop() public isSingleSelect?: boolean;
/** /**
* 选中数据字符串 * 选中数据字符串
...@@ -277,7 +277,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -277,7 +277,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected selectedData?: string; @Prop() public selectedData?: string;
/** /**
* 选中值变化 * 选中值变化
...@@ -314,7 +314,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -314,7 +314,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {(number | 0 | 1 | 2)} * @type {(number | 0 | 1 | 2)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({default: 2}) protected gridRowActiveMode!: number; @Prop({default: 2}) public gridRowActiveMode!: number;
/** /**
* 是否开启行编辑 * 是否开启行编辑
...@@ -322,7 +322,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -322,7 +322,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({default: false}) protected isOpenEdit!: boolean; @Prop({default: false}) public isOpenEdit!: boolean;
/** /**
* 实际是否开启行编辑 * 实际是否开启行编辑
...@@ -330,7 +330,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -330,7 +330,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected actualIsOpenEdit: boolean = this.isOpenEdit; public actualIsOpenEdit: boolean = this.isOpenEdit;
/** /**
* 总条数 * 总条数
...@@ -338,7 +338,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -338,7 +338,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected totalrow: number = 0; public totalrow: number = 0;
/** /**
* 选中行数据 * 选中行数据
...@@ -346,7 +346,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -346,7 +346,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {any[]} * @type {any[]}
* @memberof Main * @memberof Main
*/ */
protected selections: any[] = []; public selections: any[] = [];
/** /**
* 拦截行选中 * 拦截行选中
...@@ -354,7 +354,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -354,7 +354,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof Main * @memberof Main
*/ */
protected stopRowClick: boolean = false; public stopRowClick: boolean = false;
<#if ctrl.getAggMode() == "ALL"> <#if ctrl.getAggMode() == "ALL">
/** /**
...@@ -363,7 +363,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -363,7 +363,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected aggAction:string ='<#if ctrl.getAggPSDEAction()??>${ctrl.getAggPSDEAction().getCodeName()}</#if>'; public aggAction:string ='<#if ctrl.getAggPSDEAction()??>${ctrl.getAggPSDEAction().getCodeName()}</#if>';
/** /**
* 远程数据 * 远程数据
...@@ -371,7 +371,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -371,7 +371,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected remoteData:any = {}; public remoteData:any = {};
</#if> </#if>
/** /**
...@@ -380,7 +380,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -380,7 +380,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected isDisplay:boolean = <#if ctrl.getAggMode() == "ALL">false<#else>true</#if>; public isDisplay:boolean = <#if ctrl.getAggMode() == "ALL">false<#else>true</#if>;
/** /**
* 部件刷新 * 部件刷新
...@@ -388,7 +388,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -388,7 +388,7 @@ import CodeListService from "@service/app/codelist-service";
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected refresh(args: any[]): void { public refresh(args: any[]): void {
this.load(); this.load();
} }
...@@ -398,7 +398,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -398,7 +398,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {number} * @type {number}
* @memberof AppIndex * @memberof AppIndex
*/ */
protected checkboxColWidth: number = <#if app.getPSApplicationUI()??>${app.getPSApplicationUI().getPFStyleParam('EL-TABLE.CHECKCOLWIDTH',80)}<#else>80</#if>; public checkboxColWidth: number = <#if app.getPSApplicationUI()??>${app.getPSApplicationUI().getPFStyleParam('EL-TABLE.CHECKCOLWIDTH',50)}<#else>50</#if>;
/** /**
* 是否允许拖动列宽 * 是否允许拖动列宽
...@@ -406,8 +406,8 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -406,8 +406,8 @@ import CodeListService from "@service/app/codelist-service";
* @type {boolean} * @type {boolean}
* @memberof AppEmbedPicker * @memberof AppEmbedPicker
*/ */
protected isDragendCol: boolean = <#if app.getPSApplicationUI()??>${app.getPSApplicationUI().getPFStyleParam('EL-TABLE.ISDRAGENDCOL',false)?c}<#else>false</#if>; public isDragendCol: boolean = <#if app.getPSApplicationUI()??>${app.getPSApplicationUI().getPFStyleParam('EL-TABLE.ISDRAGENDCOL',false)?c}<#else>false</#if>;
<#-- protected isDragendCol: boolean = true; --> <#-- public isDragendCol: boolean = true; -->
/** /**
* 所有列成员 * 所有列成员
...@@ -415,7 +415,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -415,7 +415,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected allColumns: any[] = [ public allColumns: any[] = [
<#if ctrl.getAllPSDEGridColumns()??> <#if ctrl.getAllPSDEGridColumns()??>
<#list ctrl.getAllPSDEGridColumns() as column> <#list ctrl.getAllPSDEGridColumns() as column>
{ {
...@@ -435,7 +435,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -435,7 +435,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected rules: any = { public rules: any = {
<#list ctrl.getPSDEGridEditItems() as edititem> <#list ctrl.getPSDEGridEditItems() as edititem>
${edititem.getName()}: [ ${edititem.getName()}: [
{ required: <#if edititem.isAllowEmpty()>false<#else>true</#if>, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: <#if edititem.getCaption?? && edititem.getCaption()??>'${edititem.getCaption()} 值不能为空'<#else>'值不能为空'</#if>, trigger: 'change' }, { required: <#if edititem.isAllowEmpty()>false<#else>true</#if>, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: <#if edititem.getCaption?? && edititem.getCaption()??>'${edititem.getCaption()} 值不能为空'<#else>'值不能为空'</#if>, trigger: 'change' },
...@@ -464,7 +464,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -464,7 +464,7 @@ import CodeListService from "@service/app/codelist-service";
* @param {*} [arg={}] * @param {*} [arg={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected load(opt: any = {}, pageReset: boolean = false): void { public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格fetchAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格fetchAction参数未配置' });
return; return;
...@@ -540,7 +540,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -540,7 +540,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格removeAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格removeAction参数未配置' });
return; return;
...@@ -643,7 +643,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -643,7 +643,7 @@ import CodeListService from "@service/app/codelist-service";
* @param {*} [arg={}] * @param {*} [arg={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected addBatch(arg: any = {}): void { public addBatch(arg: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格fetchAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格fetchAction参数未配置' });
return; return;
...@@ -718,7 +718,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -718,7 +718,7 @@ import CodeListService from "@service/app/codelist-service";
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected allExportColumns: any[] = [ public allExportColumns: any[] = [
<#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??> <#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??>
<#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as column> <#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as column>
{ {
...@@ -739,7 +739,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -739,7 +739,7 @@ import CodeListService from "@service/app/codelist-service";
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected exportExcel(data: any = {}): void { public exportExcel(data: any = {}): void {
// 导出Excel // 导出Excel
const doExport = async (_data:any) => { const doExport = async (_data:any) => {
const tHeader: Array<any> = []; const tHeader: Array<any> = [];
...@@ -880,13 +880,13 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -880,13 +880,13 @@ import CodeListService from "@service/app/codelist-service";
/** /**
* 解析代码表和vlaue,设置items * 解析代码表和vlaue,设置items
* *
* @private * @public
* @param {any[]} items 代码表数据 * @param {any[]} items 代码表数据
* @param {*} value * @param {*} value
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private getCodelistValue(items: any[], value: any, codelist: any,){ public getCodelistValue(items: any[], value: any, codelist: any,){
if(!value){ if(!value){
return this.$t('codelist.'+codelist.srfkey+'.empty'); return this.$t('codelist.'+codelist.srfkey+'.empty');
} }
...@@ -933,13 +933,13 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -933,13 +933,13 @@ import CodeListService from "@service/app/codelist-service";
/** /**
* 获取代码项 * 获取代码项
* *
* @private * @public
* @param {any[]} items * @param {any[]} items
* @param {*} value * @param {*} value
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private getItem(items: any[], value: any, codelist: any): any { public getItem(items: any[], value: any, codelist: any): any {
const arr: Array<any> = items.filter(item => {return item.value == value}); const arr: Array<any> = items.filter(item => {return item.value == value});
if (arr.length !== 1) { if (arr.length !== 1) {
return undefined; return undefined;
...@@ -956,7 +956,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -956,7 +956,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created(): void { public created(): void {
this.afterCreated(); this.afterCreated();
} }
...@@ -965,7 +965,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -965,7 +965,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
this.setColState(); this.setColState();
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
...@@ -990,7 +990,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -990,7 +990,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -999,7 +999,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -999,7 +999,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -1014,7 +1014,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1014,7 +1014,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getSelection(): any[] { public getSelection(): any[] {
return this.selections; return this.selections;
} }
...@@ -1025,7 +1025,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1025,7 +1025,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected rowDBLClick($event: any): void { public rowDBLClick($event: any): void {
if (!$event || this.actualIsOpenEdit || Object.is(this.gridRowActiveMode,0)) { if (!$event || this.actualIsOpenEdit || Object.is(this.gridRowActiveMode,0)) {
return; return;
} }
...@@ -1049,7 +1049,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1049,7 +1049,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected select($event: any): void { public select($event: any): void {
if (!$event) { if (!$event) {
return; return;
} }
...@@ -1064,7 +1064,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1064,7 +1064,7 @@ import CodeListService from "@service/app/codelist-service";
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected selectAll($event: any): void { public selectAll($event: any): void {
if (!$event) { if (!$event) {
return; return;
} }
...@@ -1081,7 +1081,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1081,7 +1081,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected rowClick($event: any, ifAlways: boolean = false): void { public rowClick($event: any, ifAlways: boolean = false): void {
if (!ifAlways && (!$event || this.actualIsOpenEdit)) { if (!ifAlways && (!$event || this.actualIsOpenEdit)) {
return; return;
} }
...@@ -1123,7 +1123,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1123,7 +1123,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected pageOnChange($event: any): void { public pageOnChange($event: any): void {
if (!$event) { if (!$event) {
return; return;
} }
...@@ -1141,7 +1141,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1141,7 +1141,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onPageSizeChange($event: any): void { public onPageSizeChange($event: any): void {
if (!$event) { if (!$event) {
return; return;
} }
...@@ -1159,7 +1159,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1159,7 +1159,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected pageRefresh(): void { public pageRefresh(): void {
this.load({}); this.load({});
} }
...@@ -1169,7 +1169,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1169,7 +1169,7 @@ import CodeListService from "@service/app/codelist-service";
* @param {{ column: any, prop: any, order: any }} { column, prop, order } * @param {{ column: any, prop: any, order: any }} { column, prop, order }
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onSortChange({ column, prop, order }: { column: any, prop: any, order: any }): void { public onSortChange({ column, prop, order }: { column: any, prop: any, order: any }): void {
const dir = Object.is(order, 'ascending') ? 'asc' : Object.is(order, 'descending') ? 'desc' : ''; const dir = Object.is(order, 'ascending') ? 'asc' : Object.is(order, 'descending') ? 'desc' : '';
if (Object.is(dir, this.minorSortDir) && Object.is(this.minorSortPSDEF, prop)) { if (Object.is(dir, this.minorSortDir) && Object.is(this.minorSortPSDEF, prop)) {
return; return;
...@@ -1186,7 +1186,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1186,7 +1186,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {string} * @returns {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onRowClassName({ row, rowIndex }: { row: any, rowIndex: any }): string { public onRowClassName({ row, rowIndex }: { row: any, rowIndex: any }): string {
const index = this.selections.findIndex((select: any) => Object.is(select.srfkey, row.srfkey)); const index = this.selections.findIndex((select: any) => Object.is(select.srfkey, row.srfkey));
return index !== -1 ? 'grid-row-select' : ''; return index !== -1 ? 'grid-row-select' : '';
} }
...@@ -1198,7 +1198,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1198,7 +1198,7 @@ import CodeListService from "@service/app/codelist-service";
* @param {any} param * @param {any} param
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getSummaries(param:any){ public getSummaries(param:any){
<#if ctrl.getAggMode() == "PAGE"> <#if ctrl.getAggMode() == "PAGE">
const { columns, data } = param; const { columns, data } = param;
const sums:Array<any> = []; const sums:Array<any> = [];
...@@ -1324,7 +1324,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1324,7 +1324,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getAggData(){ public getAggData(){
this.service.getAggData(this.aggAction,JSON.parse(JSON.stringify(this.context)),this.showBusyIndicator).then((response:any) =>{ this.service.getAggData(this.aggAction,JSON.parse(JSON.stringify(this.context)),this.showBusyIndicator).then((response:any) =>{
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.errorMessage) {
...@@ -1353,7 +1353,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1353,7 +1353,7 @@ import CodeListService from "@service/app/codelist-service";
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected uiAction(row: any, tag: any, $event: any) { public uiAction(row: any, tag: any, $event: any) {
this.rowClick(row, true); this.rowClick(row, true);
<#if ctrl.getPSAppViewLogics()??> <#if ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as logic> <#list ctrl.getPSAppViewLogics() as logic>
...@@ -1372,7 +1372,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1372,7 +1372,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected setColState() { public setColState() {
const _data: any = localStorage.getItem('${ctrl.getPSDataEntity().getName()?lower_case}_${ctrl.getCodeName()?lower_case}_${ctrl.name}'); const _data: any = localStorage.getItem('${ctrl.getPSDataEntity().getName()?lower_case}_${ctrl.getCodeName()?lower_case}_${ctrl.name}');
if (_data) { if (_data) {
let columns = JSON.parse(_data); let columns = JSON.parse(_data);
...@@ -1390,7 +1390,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1390,7 +1390,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onColChange() { public onColChange() {
localStorage.setItem('${ctrl.getPSDataEntity().getName()?lower_case}_${ctrl.getCodeName()?lower_case}_${ctrl.name}', JSON.stringify(this.allColumns)); localStorage.setItem('${ctrl.getPSDataEntity().getName()?lower_case}_${ctrl.getCodeName()?lower_case}_${ctrl.name}', JSON.stringify(this.allColumns));
} }
...@@ -1401,7 +1401,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1401,7 +1401,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {boolean} * @returns {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getColumnState(name: string): boolean { public getColumnState(name: string): boolean {
let column = this.allColumns.find((col: any) => let column = this.allColumns.find((col: any) =>
Object.is(name, col.name) Object.is(name, col.name)
); );
...@@ -1426,7 +1426,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1426,7 +1426,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected save(args: any[], params?: any, $event?: any, xData?: any): void { public save(args: any[], params?: any, $event?: any, xData?: any): void {
let _this = this; let _this = this;
let promises:any = []; let promises:any = [];
_this.items.forEach((item:any)=>{ _this.items.forEach((item:any)=>{
...@@ -1470,7 +1470,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1470,7 +1470,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected newRow(args: any[], params?: any, $event?: any, xData?: any): void { public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格loaddraftAction参数未配置' }); this.$Notice.error({ title: '错误', desc: '${view.getName()}视图表格loaddraftAction参数未配置' });
return; return;
...@@ -1507,7 +1507,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1507,7 +1507,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onGridItemValueChange(row: any,$event: { name: string, value: any }): void { public onGridItemValueChange(row: any,$event: { name: string, value: any }): void {
if (!$event) { if (!$event) {
return; return;
} }
...@@ -1521,14 +1521,14 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1521,14 +1521,14 @@ import CodeListService from "@service/app/codelist-service";
/** /**
* 表格编辑项值变化 * 表格编辑项值变化
* *
* @private * @public
* @param row 行数据 * @param row 行数据
* @param property 列编辑项名 * @param property 列编辑项名
* @param row 列编辑项值 * @param row 列编辑项值
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected gridEditItemChange(row: any, property: string, value: any){ public gridEditItemChange(row: any, property: string, value: any){
row.rowDataState = row.rowDataState ? row.rowDataState : "update" ; row.rowDataState = row.rowDataState ? row.rowDataState : "update" ;
<#if ctrl.getPSDEGridEditItems()??> <#if ctrl.getPSDEGridEditItems()??>
<#list ctrl.getPSDEGridEditItems() as editItem> <#list ctrl.getPSDEGridEditItems() as editItem>
...@@ -1553,7 +1553,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1553,7 +1553,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected updateGridEditItem(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void { public updateGridEditItem(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) { if (!mode || (mode && Object.is(mode, ''))) {
return; return;
} }
...@@ -1594,7 +1594,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -1594,7 +1594,7 @@ import CodeListService from "@service/app/codelist-service";
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected getRowClassName(args:{row: any,rowIndex: number}){ public getRowClassName(args:{row: any,rowIndex: number}){
let isSelected = this.selections.some((item:any)=>{ let isSelected = this.selections.some((item:any)=>{
return Object.is(item.${appde.getCodeName()?lower_case},args.row.${appde.getCodeName()?lower_case}); return Object.is(item.${appde.getCodeName()?lower_case},args.row.${appde.getCodeName()?lower_case});
}); });
......
...@@ -39,12 +39,12 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi ...@@ -39,12 +39,12 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
/** /**
* 处理数据 * 处理数据
* *
* @private * @public
* @param {Promise<any>} promise * @param {Promise<any>} promise
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')}Service * @memberof ${srfclassname('${ctrl.codeName}')}Service
*/ */
private doItems(promise: Promise<any>, deKeyField: string, deName: string): Promise<any> { public doItems(promise: Promise<any>, deKeyField: string, deName: string): Promise<any> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
promise.then((response: any) => { promise.then((response: any) => {
if (response && response.status === 200) { if (response && response.status === 200) {
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected newdata: any; @Prop() public newdata: any;
</#if> </#if>
<#if logic.getPFLogicCodeType() == 'APP_OPENDATA'> <#if logic.getPFLogicCodeType() == 'APP_OPENDATA'>
/** /**
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected opendata: any; @Prop() public opendata: any;
</#if> </#if>
</#list> </#list>
</#if> </#if>
...@@ -85,25 +85,25 @@ ...@@ -85,25 +85,25 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() protected viewUID!:string; @Prop() public viewUID!:string;
/** /**
* 是否单选 * 是否单选
* *
* @protected * @public
* @type {(boolean)} * @type {(boolean)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected isSingleSelect:boolean = true; public isSingleSelect:boolean = true;
/** /**
* 呈现模式,可选值:horizontal或者vertical * 呈现模式,可选值:horizontal或者vertical
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected showMode:string ="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">horizontal<#else>vertical</#if>"; public showMode:string ="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">horizontal<#else>vertical</#if>";
/** /**
* 控件宽度 * 控件宽度
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>; public ctrlWidth:number = <#if ctrl.getWidth()??>${ctrl.getWidth()}<#else>0</#if>;
/** /**
* 控件高度 * 控件高度
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()}<#else>0</#if>; public ctrlHeight: number = <#if ctrl.getHeight()??>${ctrl.getHeight()}<#else>0</#if>;
/** /**
* 选中数据 * 选中数据
...@@ -127,16 +127,16 @@ ...@@ -127,16 +127,16 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected selection: any = {}; public selection: any = {};
/** /**
* 搜素值 * 搜素值
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected searchText:string = ""; public searchText:string = "";
/** /**
* 分割宽度 * 分割宽度
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected split: number = 0.5; public split: number = 0.5;
<#if ctrl.getXDataPSControl()??> <#if ctrl.getXDataPSControl()??>
<#assign xDataControl = ctrl.getXDataPSControl() /> <#assign xDataControl = ctrl.getXDataPSControl() />
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navViewName: string = "<#if xDataControl.getNavPSAppView()??><#assign navPSAppView = xDataControl.getNavPSAppView() />${srffilepath2(navPSAppView.getCodeName())}</#if>"; public navViewName: string = "<#if xDataControl.getNavPSAppView()??><#assign navPSAppView = xDataControl.getNavPSAppView() />${srffilepath2(navPSAppView.getCodeName())}</#if>";
/** /**
* 导航视图参数 * 导航视图参数
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navViewParam: string = '<#if xDataControl.getNavViewParamJO()??>${xDataControl.getNavViewParamJO()}</#if>'; public navViewParam: string = '<#if xDataControl.getNavViewParamJO()??>${xDataControl.getNavViewParamJO()}</#if>';
/** /**
* 导航过滤项 * 导航过滤项
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected navFilter: string = "<#if xDataControl.getNavFilter()??>${xDataControl.getNavFilter()}</#if>"; public navFilter: string = "<#if xDataControl.getNavFilter()??>${xDataControl.getNavFilter()}</#if>";
</#if> </#if>
/** /**
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
* @type {boolean} * @type {boolean}
* @memberof MOBILEENTITY3Canlen * @memberof MOBILEENTITY3Canlen
*/ */
@Prop({ default: true }) protected showBusyIndicator!: boolean; @Prop({ default: true }) public showBusyIndicator!: boolean;
<#if ctrl.getPSControls()??> <#if ctrl.getPSControls()??>
<#assign controls = ctrl.getPSControls()/> <#assign controls = ctrl.getPSControls()/>
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -297,7 +297,7 @@ ...@@ -297,7 +297,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected onSearch($event:any) { public onSearch($event:any) {
<#if ctrl.getXDataPSControl()??> <#if ctrl.getXDataPSControl()??>
<#assign xDataControl = ctrl.getXDataPSControl()/> <#assign xDataControl = ctrl.getXDataPSControl()/>
let grid:any = this.$refs.${xDataControl.getName()}; let grid:any = this.$refs.${xDataControl.getName()};
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void { public ${ctrl.name}_selectionchange(args: any [], tag?: string, $event2?: any): void {
let data:any = {}; let data:any = {};
if (args.length === 0) { if (args.length === 0) {
return ; return ;
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected ${ctrl.name}_load(args:any, tag?: string, $event2?: any){ public ${ctrl.name}_load(args:any, tag?: string, $event2?: any){
this.$emit('load',args); this.$emit('load',args);
} }
<#ibizinclude> <#ibizinclude>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if> <#if view.getViewStyle() != 'DEFAULT'>${view.getViewStyle()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if> <#if view.getViewStyle() != 'DEFAULT'>${view.getViewStyle()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :disHover="true" :padding="0" :bordered="false"> <card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
<#ibizinclude> <#ibizinclude>
./VIEW_CAPTION.vue.ftl ./VIEW_CAPTION.vue.ftl
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :disHover="true" :padding="0" :bordered="false"> <card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
<#ibizinclude> <#ibizinclude>
./VIEW_CAPTION.vue.ftl ./VIEW_CAPTION.vue.ftl
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<#ibizinclude> <#ibizinclude>
./VIEW_CAPTION_DATAINFO.vue.ftl ./VIEW_CAPTION_DATAINFO.vue.ftl
......
...@@ -34,7 +34,7 @@ ${P.getCtrlCode('grid', 'CONTROL.html').code} ...@@ -34,7 +34,7 @@ ${P.getCtrlCode('grid', 'CONTROL.html').code}
</#assign> </#assign>
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> view-no-toolbar' :dis-hover="true" :bordered="false">
<@ibizindent blank=8> <@ibizindent blank=8>
<#ibizinclude> <#ibizinclude>
./VIEW_CAPTION.vue.ftl ./VIEW_CAPTION.vue.ftl
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :dis-hover='true' :padding='0' :bordered='false'> <card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover='true' :padding='0' :bordered='false'>
<#ibizinclude> <#ibizinclude>
./VIEW_CAPTION_DATAINFO.vue.ftl ./VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :dis-hover="true" :bordered="false"> <card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
</#ibizinclude> </#ibizinclude>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :bordered="false" :dis-hover="true" > <card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :bordered="false" :dis-hover="true" >
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card view-no-caption' :bordered="false" :dis-hover="true" > <card class='view-car <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :bordered="false" :dis-hover="true" >
<div class='content-container'> <div class='content-container'>
<#assign MDContent> <#assign MDContent>
<#comment><!--开始:快速搜索或工具栏存在--></#comment> <#comment><!--开始:快速搜索或工具栏存在--></#comment>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :bordered="false" :dis-hover="true" > <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :bordered="false" :dis-hover="true" >
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :bordered="false" :dis-hover="true" > <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :bordered="false" :dis-hover="true" >
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :disHover="true" :padding="0" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
<div class="content-container"> <div class="content-container">
<iframe :src="iframeUrl" height="100%" width="100%" seamless="seamless" frameborder="0" scrolling="auto"></iframe> <iframe :src="iframeUrl" height="100%" width="100%" seamless="seamless" frameborder="0" scrolling="auto"></iframe>
</div> </div>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :disHover="true" :padding="0" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
<div class="content-container"> <div class="content-container">
<iframe :src="iframeUrl" height="100%" width="100%" seamless="seamless" frameborder="0" scrolling="auto"></iframe> <iframe :src="iframeUrl" height="100%" width="100%" seamless="seamless" frameborder="0" scrolling="auto"></iframe>
</div> </div>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :disHover="true" :padding="0" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION.vue.ftl ../@MACRO/VIEW_CAPTION.vue.ftl
</#ibizinclude> </#ibizinclude>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :disHover="true" :padding="0" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION.vue.ftl ../@MACRO/VIEW_CAPTION.vue.ftl
</#ibizinclude> </#ibizinclude>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :disHover="true" :padding="0" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION.vue.ftl ../@MACRO/VIEW_CAPTION.vue.ftl
</#ibizinclude> </#ibizinclude>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' dis-hover :padding="0" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' dis-hover :padding="0" :bordered="false">
<@ibizindent blank=8> <@ibizindent blank=8>
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION.vue.ftl ../@MACRO/VIEW_CAPTION.vue.ftl
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card view-no-caption <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
<div class="translate-contant"> <div class="translate-contant">
<div class="center" :style="{width : !isShowButton ? '100%' : ''}"> <div class="center" :style="{width : !isShowButton ? '100%' : ''}">
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<@ibizindent blank=8> <@ibizindent blank=8>
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION.vue.ftl ../@MACRO/VIEW_CAPTION.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card view-no-caption' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<div class='content-container'> <div class='content-container'>
<#assign MDContent> <#assign MDContent>
<#comment><!--开始:快速搜索或工具栏存在--></#comment> <#comment><!--开始:快速搜索或工具栏存在--></#comment>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card view-no-caption <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
<#if view.hasPSControl('pickupviewpanel')> <#if view.hasPSControl('pickupviewpanel')>
<@ibizindent blank=12> <@ibizindent blank=12>
......
<#ibizinclude> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
../@MACRO/DEFAULT.vue.ftl <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
</#ibizinclude> <card class='view-card view-no-caption <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
\ No newline at end of file <#if view.hasPSControl('toolbar')>
<#assign toolbarCtrl = view.getPSControl('toolbar')>
<@ibizindent blank=8>
${P.getCtrlCode(toolbarCtrl, 'CONTROL.html').code}
</@ibizindent>
</#if>
<div class="content-container">
<#if view.getAllPSControls()??>
<#list view.getAllPSControls() as ctrl>
<#if ctrl.getControlType() != "TOOLBAR">
<#if P.getCtrlCode(ctrl, 'CONTROL.html')??>
<@ibizindent blank=12>
${P.getCtrlCode(ctrl, 'CONTROL.html').code}
</@ibizindent>
</#if>
</#if>
</#list>
</#if>
</div>
</card>
</div>
\ No newline at end of file
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<@ibizindent blank=8> <@ibizindent blank=8>
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<div class='content-container'> <div class='content-container'>
<#assign MDContent> <#assign MDContent>
<#-- 搜索框: BEGIN --> <#-- 搜索框: BEGIN -->
......
<#ibizinclude> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
../@MACRO/DEFAULT.vue.ftl <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
</#ibizinclude> <card class='view-card view-no-caption <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
\ No newline at end of file <#if view.hasPSControl('toolbar')>
<#assign toolbarCtrl = view.getPSControl('toolbar')>
<@ibizindent blank=8>
${P.getCtrlCode(toolbarCtrl, 'CONTROL.html').code}
</@ibizindent>
</#if>
<div class="content-container">
<#if view.getAllPSControls()??>
<#list view.getAllPSControls() as ctrl>
<#if ctrl.getControlType() != "TOOLBAR">
<#if P.getCtrlCode(ctrl, 'CONTROL.html')??>
<@ibizindent blank=12>
${P.getCtrlCode(ctrl, 'CONTROL.html').code}
</@ibizindent>
</#if>
</#if>
</#list>
</#if>
</div>
</card>
</div>
\ No newline at end of file
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :disHover="true" :padding="0" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION.vue.ftl ../@MACRO/VIEW_CAPTION.vue.ftl
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<#ibizinclude> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
../@MACRO/DEFAULT.vue.ftl <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
</#ibizinclude> <card class='view-card view-no-caption <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :disHover="true" :padding="0" :bordered="false">
\ No newline at end of file <#if view.hasPSControl('toolbar')>
<#assign toolbarCtrl = view.getPSControl('toolbar')>
<@ibizindent blank=8>
${P.getCtrlCode(toolbarCtrl, 'CONTROL.html').code}
</@ibizindent>
</#if>
<div class="content-container">
<#if view.getAllPSControls()??>
<#list view.getAllPSControls() as ctrl>
<#if ctrl.getControlType() != "TOOLBAR">
<#if P.getCtrlCode(ctrl, 'CONTROL.html')??>
<@ibizindent blank=12>
${P.getCtrlCode(ctrl, 'CONTROL.html').code}
</@ibizindent>
</#if>
</#if>
</#list>
</#if>
</div>
</card>
</div>
\ No newline at end of file
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl ../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' :dis-hover="true" :bordered="false"> <card class='view-card view-no-caption <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<#-- 不带数据信息标题 -->
<#if view.isShowCaptionBar()>
<p v-if="isShowButton" slot='title'>
<#if view.getPSSysImage()??>
<#assign viewimg = view.getPSSysImage()/>
<#if viewimg.getImagePath() != "">
<span class='caption-image'><i class='${viewimg.getCssClass()}'></i></span>
<#else>
<span class='caption-image'><img src='${viewimg.getImagePath()}'/></span>
</#if>
</#if>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</p>
</#if>
<div class='content-container'> <div class='content-container'>
<#-- 搜索框: BEGIN --> <#-- 搜索框: BEGIN -->
<#if (view.isEnableQuickSearch())> <#if (view.isEnableQuickSearch())>
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card view-no-caption' :dis-hover="true" :bordered="false"> <card class='view-card view-no-caption <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
<div class='content-container pickup-grid-view'> <div class='content-container pickup-grid-view'>
<@ibizindent blank=12> <@ibizindent blank=12>
<#if view.hasPSControl('searchform')> <#if view.hasPSControl('searchform')>
......
<div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>"> <div class="view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if>' dis-hover :padding="0" :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' dis-hover :padding="0" :bordered="false">
<@ibizindent blank=8> <@ibizindent blank=8>
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION.vue.ftl ../@MACRO/VIEW_CAPTION.vue.ftl
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card' dis-hover :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' dis-hover :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION.vue.ftl ../@MACRO/VIEW_CAPTION.vue.ftl
</#ibizinclude> </#ibizinclude>
......
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if> <#if view.getViewStyle() != 'DEFAULT'>${view.getViewStyle()}</#if>'> <div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if> <#if view.getViewStyle() != 'DEFAULT'>${view.getViewStyle()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card' dis-hover :bordered="false"> <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' dis-hover :bordered="false">
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CAPTION.vue.ftl ../@MACRO/VIEW_CAPTION.vue.ftl
</#ibizinclude> </#ibizinclude>
......
...@@ -29,7 +29,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -29,7 +29,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected selectedData?: string; @Prop() public selectedData?: string;
/** /**
* 获取多项数据 * 获取多项数据
...@@ -57,7 +57,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -57,7 +57,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected view: any = { public view: any = {
viewname: '<#if ctrl.getPSAppDEView()??>${srffilepath2(ctrl.getPSAppDEView().getCodeName())}</#if>', viewname: '<#if ctrl.getPSAppDEView()??>${srffilepath2(ctrl.getPSAppDEView().getCodeName())}</#if>',
data: {}, data: {},
} }
...@@ -68,7 +68,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -68,7 +68,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewdata: string = JSON.stringify(this.context); public viewdata: string = JSON.stringify(this.context);
/** /**
* 视图参数 * 视图参数
...@@ -76,7 +76,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -76,7 +76,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {*} * @type {*}
* @memberof PickupViewpickupviewpanel * @memberof PickupViewpickupviewpanel
*/ */
protected viewparam: string = JSON.stringify(this.viewparams); public viewparam: string = JSON.stringify(this.viewparams);
/** /**
* 是否显示按钮 * 是否显示按钮
...@@ -84,7 +84,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -84,7 +84,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop({default: true}) protected isShowButton!: boolean; @Prop({default: true}) public isShowButton!: boolean;
/** /**
* 是否单选 * 是否单选
...@@ -92,7 +92,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -92,7 +92,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected isSingleSelect?: boolean; @Prop() public isSingleSelect?: boolean;
/** /**
* 初始化完成 * 初始化完成
...@@ -100,7 +100,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -100,7 +100,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected inited: boolean = false; public inited: boolean = false;
/** /**
* 视图数据变化 * 视图数据变化
...@@ -108,7 +108,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -108,7 +108,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onViewDatasChange($event: any): void { public onViewDatasChange($event: any): void {
if($event.length>0){ if($event.length>0){
$event.forEach((item:any,index:any) => { $event.forEach((item:any,index:any) => {
let srfmajortext = item['${ctrl.getPSAppDataEntity().getMajorPSAppDEField().getCodeName()?lower_case}']; let srfmajortext = item['${ctrl.getPSAppDataEntity().getMajorPSAppDEField().getCodeName()?lower_case}'];
...@@ -126,7 +126,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -126,7 +126,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected viewDatasActivated($event: any): void { public viewDatasActivated($event: any): void {
this.$emit('activated', $event); this.$emit('activated', $event);
} }
...@@ -136,7 +136,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -136,7 +136,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected onViewLoad($event: any): void { public onViewLoad($event: any): void {
this.$emit('load', $event); this.$emit('load', $event);
} }
...@@ -145,7 +145,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -145,7 +145,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -154,7 +154,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -154,7 +154,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -174,7 +174,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -174,7 +174,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -183,7 +183,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -183,7 +183,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected actionBarModelData:any[] =[ public actionBarModelData:any[] =[
<#if ctrl.getPSAppViewLogics?? && ctrl.getPSAppViewLogics()??> <#if ctrl.getPSAppViewLogics?? && ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as appViewLogic> <#list ctrl.getPSAppViewLogics() as appViewLogic>
{ viewlogicname:"${appViewLogic.name}", { viewlogicname:"${appViewLogic.name}",
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected handleItemClick($event:any){ public handleItemClick($event:any){
<#if ctrl.getPSAppViewLogics?? && ctrl.getPSAppViewLogics()??> <#if ctrl.getPSAppViewLogics?? && ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as appViewLogic> <#list ctrl.getPSAppViewLogics() as appViewLogic>
if(Object.is($event,'${appViewLogic.name}')){ if(Object.is($event,'${appViewLogic.name}')){
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe(); this.viewStateEvent.unsubscribe();
} }
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected data?: any; @Prop() public data?: any;
<#if ctrl.getAllPSPanelItems()??> <#if ctrl.getAllPSPanelItems()??>
<#list ctrl.getAllPSPanelItems() as panelItem> <#list ctrl.getAllPSPanelItems() as panelItem>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* *
* @memberof @memberof ${srfclassname('${ctrl.codeName}')} * @memberof @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected ${panelItem.getName()}_click($event: any): void { public ${panelItem.getName()}_click($event: any): void {
<#if panelItem.getPSUIAction?? && panelItem.getPSUIAction()??> <#if panelItem.getPSUIAction?? && panelItem.getPSUIAction()??>
<#assign uiaction = panelItem.getPSUIAction()> <#assign uiaction = panelItem.getPSUIAction()>
this.${ctrl.name}_${panelItem.getName()}_click(null, null, $event); this.${ctrl.name}_${panelItem.getName()}_click(null, null, $event);
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:activeData="row" :activeData="row"
:disabled="row.srfuf === 1 ? (${item.getEnableCond()?c} & 2) !== 2 : (${item.getEnableCond()?c} & 1) !== 1" :disabled="row.srfuf === 1 ? (${item.getEnableCond()?c} & 2) !== 2 : (${item.getEnableCond()?c} & 1) !== 1"
:curvalue="row[column.property]" :curvalue="row[column.property]"
name="column.property" :name="column.property"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
:service="service" :service="service"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:activeData="row" :activeData="row"
:disabled="row.srfuf === 1 ? (${item.getEnableCond()?c} & 2) !== 2 : (${item.getEnableCond()?c} & 1) !== 1" :disabled="row.srfuf === 1 ? (${item.getEnableCond()?c} & 2) !== 2 : (${item.getEnableCond()?c} & 1) !== 1"
:curvalue="row[column.property]" :curvalue="row[column.property]"
name="column.property" :name="column.property"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
:service="service" :service="service"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @param {*} [item={}] * @param {*} [item={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected click${item.codeName}(item: any = {}){ public click${item.codeName}(item: any = {}){
const localdata: any = this.$store.getters.getLocalData(); const localdata: any = this.$store.getters.getLocalData();
const url = `${item.getHtmlPageUrl()}`; const url = `${item.getHtmlPageUrl()}`;
window.open(url, '_blank'); window.open(url, '_blank');
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
<#assign dataview = item.getPSAppView()/> <#assign dataview = item.getPSAppView()/>
protected click${item.codeName}(item: any = {}) { public click${item.codeName}(item: any = {}) {
<#if dataview.isRedirectView()> <#if dataview.isRedirectView()>
this.$Notice.warning({ title: '警告', desc: '重定向视图暂不支持应用功能打开' }); this.$Notice.warning({ title: '警告', desc: '重定向视图暂不支持应用功能打开' });
<#else> <#else>
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
* @param {*} [item={}] * @param {*} [item={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected click${item.codeName}(item: any = {}){ public click${item.codeName}(item: any = {}){
${item.getJSCode()} ${item.getJSCode()}
} }
\ No newline at end of file
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
* @param {*} [item={}] * @param {*} [item={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected click${item.codeName}(item: any = {}){ public click${item.codeName}(item: any = {}){
this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' }); this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' });
} }
\ No newline at end of file
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
* @param {*} [item={}] * @param {*} [item={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected click${item.codeName}(item: any = {}){ public click${item.codeName}(item: any = {}){
this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' }); this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' });
} }
\ No newline at end of file
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof appUIService * @memberof appUIService
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
} }
\ No newline at end of file
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' }); this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' });
} }
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' }); this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' });
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this // 界面行为容器对象 _this
const _this: any = this; const _this: any = this;
if (xData && xData.save instanceof Function) { if (xData && xData.save instanceof Function) {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) { if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => { xData.saveAndExit().then((response: any) => {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (!xData || !(xData.saveAndNew instanceof Function)) { if (!xData || !(xData.saveAndNew instanceof Function)) {
return; return;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this // 界面行为容器对象 _this
const _this: any = this; const _this: any = this;
if (xData && xData.save instanceof Function) { if (xData && xData.save instanceof Function) {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.closeView(args); this.closeView(args);
if(window.parent){ if(window.parent){
window.parent.postMessage([{ ...args }],'*'); window.parent.postMessage([{ ...args }],'*');
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (!xData || !(xData.remove instanceof Function)) { if (!xData || !(xData.remove instanceof Function)) {
return ; return ;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (xData && xData.removeAndExit instanceof Function) { if (xData && xData.removeAndExit instanceof Function) {
xData.removeAndExit().then((response: any) => { xData.removeAndExit().then((response: any) => {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) { if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args); xData.refresh(args);
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (!xData || !(xData.exportExcel instanceof Function) || !$event) { if (!xData || !(xData.exportExcel instanceof Function) || !$event) {
return ; return ;
......
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '导出数据模型未支持' }); this.$Notice.error({ title: '错误', desc: '导出数据模型未支持' });
} }
\ No newline at end of file
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '帮助未支持' }); this.$Notice.error({ title: '错误', desc: '帮助未支持' });
} }
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (!xData || !(xData.wfstart instanceof Function)) { if (!xData || !(xData.wfstart instanceof Function)) {
return; return;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this; let _this:any = this;
if (!xData || !(xData.wfsubmit instanceof Function)) { if (!xData || !(xData.wfsubmit instanceof Function)) {
return; return;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this; let _this:any = this;
if (!xData || !(xData.print instanceof Function) || !$event) { if (!xData || !(xData.print instanceof Function) || !$event) {
return ; return ;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) { if (args.length === 0) {
return; return;
} }
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
if (args.length > 0) { if (args.length > 0) {
Object.assign(data, { srfsourcekey: args[0].srfkey }) Object.assign(data, { srfsourcekey: args[0].srfkey })
} }
_this.newdata([{ ...data }], params, $event, xData); _this.newdata([{ ...data }],[{ ...data }],params, $event, xData);
} else if (xData && xData.copy instanceof Function) { } else if (xData && xData.copy instanceof Function) {
const data2: any = {}; const data2: any = {};
if (args.length > 0) { if (args.length > 0) {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (!xData || !(xData.importExcel instanceof Function) || !$event) { if (!xData || !(xData.importExcel instanceof Function) || !$event) {
return ; return ;
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) { if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {}; const data: any = {};
_this.newdata([{ ...data }], params, $event, xData); _this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else { } else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
const data: any = {}; const data: any = {};
if (_this.newRow && _this.newRow instanceof Function) { if (_this.newRow && _this.newRow instanceof Function) {
......
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' }); this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' });
} }
\ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) { if (args.length === 0) {
return; return;
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (xData && xData.refresh_all && xData.refresh_all instanceof Function) { if (xData && xData.refresh_all && xData.refresh_all instanceof Function) {
xData.refresh_all(); xData.refresh_all();
return; return;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (xData && xData.refresh_parent && xData.refresh_parent instanceof Function) { if (xData && xData.refresh_parent && xData.refresh_parent instanceof Function) {
xData.refresh_parent(); xData.refresh_parent();
return; return;
......
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
} }
\ No newline at end of file
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' }); this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' });
} }
\ No newline at end of file
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' }); this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' });
} }
\ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) { if (args.length === 0) {
return; return;
} }
......
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '编辑界面_数据导航功能未支持' }); this.$Notice.error({ title: '错误', desc: '编辑界面_数据导航功能未支持' });
} }
\ No newline at end of file
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' }); this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' });
} }
\ No newline at end of file
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData.actualIsOpenEdit = !xData.actualIsOpenEdit; xData.actualIsOpenEdit = !xData.actualIsOpenEdit;
} }
\ No newline at end of file
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' }); this.$Notice.error({ title: '错误', desc: '暂不支持此项操作' });
} }
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (_this.hasOwnProperty('isExpandSearchForm')) { if (_this.hasOwnProperty('isExpandSearchForm')) {
_this.isExpandSearchForm = !_this.isExpandSearchForm; _this.isExpandSearchForm = !_this.isExpandSearchForm;
......
...@@ -11,6 +11,17 @@ ...@@ -11,6 +11,17 @@
</#if> </#if>
</#compress> </#compress>
</#macro> </#macro>
<#macro getreskey appEntity curEntity>
<#compress>
<#if appEntity.getMajorPSAppDERSs()??>
<#list appEntity.getMajorPSAppDERSs() as appDeRs>
<#if appDeRs.getMinorPSAppDataEntity().getCodeName() == curEntity.getCodeName()>
${appDeRs.getPSDER1N().getPSPickupDEField().getCodeName()?lower_case}
</#if>
</#list>
</#if>
</#compress>
</#macro>
<#if item.getPSViewLogic?? && item.getPSViewLogic()??> <#if item.getPSViewLogic?? && item.getPSViewLogic()??>
<#assign viewlogic = item.getPSViewLogic()/> <#assign viewlogic = item.getPSViewLogic()/>
/** /**
...@@ -23,7 +34,7 @@ ...@@ -23,7 +34,7 @@
* @param {*} [xData] * @param {*} [xData]
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) { public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
<#if viewlogic.isEnableWizardAdd()> <#if viewlogic.isEnableWizardAdd()>
this.$Notice.warning({ title: '错误', desc: '向导添加未实现' }); this.$Notice.warning({ title: '错误', desc: '向导添加未实现' });
<#elseif viewlogic.isEnableBatchAdd()> <#elseif viewlogic.isEnableBatchAdd()>
...@@ -33,7 +44,8 @@ ...@@ -33,7 +44,8 @@
const batchAddPSAppViews=[ const batchAddPSAppViews=[
<#list batchAddPSAppViews as batchAddPSAppView> <#list batchAddPSAppViews as batchAddPSAppView>
{view:{viewname:'${srffilepath2(batchAddPSAppView.getCodeName())}',height: ${batchAddPSAppView.getHeight()?c},width: ${batchAddPSAppView.getWidth()?c},title: '${batchAddPSAppView.title}'}, {view:{viewname:'${srffilepath2(batchAddPSAppView.getCodeName())}',height: ${batchAddPSAppView.getHeight()?c},width: ${batchAddPSAppView.getWidth()?c},title: '${batchAddPSAppView.title}'},
res:<@getres tempView=batchAddPSAppView />}<#if batchAddPSAppView_has_next>,</#if> res:<@getres tempView=batchAddPSAppView /><#if batchAddPSAppView.getPSAppDataEntity()??><#assign appDataEntity= batchAddPSAppView.getPSAppDataEntity()/>,
'resAppKey':'<@getreskey appEntity=appDataEntity curEntity=view.getPSAppDataEntity() />'</#if>}<#if batchAddPSAppView_has_next>,</#if>
</#list> </#list>
]; ];
</#if> </#if>
...@@ -44,6 +56,9 @@ ...@@ -44,6 +56,9 @@
let openViewModel:any = batchAddPSAppViews.find((item:any) =>{ let openViewModel:any = batchAddPSAppViews.find((item:any) =>{
return (item.res && (item.res[0] !== this.context.srfparentdename)); return (item.res && (item.res[0] !== this.context.srfparentdename));
}) })
let otherViewModel:any = batchAddPSAppViews.find((item:any) =>{
return (item.res && (item.res[0] == this.context.srfparentdename));
})
let container: Subject<any> = this.$appmodal.openModal(openViewModel.view, JSON.parse(JSON.stringify(this.context)), args[0]); let container: Subject<any> = this.$appmodal.openModal(openViewModel.view, JSON.parse(JSON.stringify(this.context)), args[0]);
container.subscribe((result: any) => { container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) { if (!result || !Object.is(result.ret, 'OK')) {
...@@ -54,8 +69,10 @@ ...@@ -54,8 +69,10 @@
} }
let requestParam:Array<any> = []; let requestParam:Array<any> = [];
result.datas.forEach((record:any) => { result.datas.forEach((record:any) => {
record[this.appEntityService.APPDEKEY] = this.context['srfparentkey']; let tempParam:any = {};
requestParam.push(record); tempParam[otherViewModel.resAppKey] = this.context['srfparentkey'];
tempParam[openViewModel.resAppKey] = record.srfkey;
requestParam.push(tempParam);
}); });
this.appEntityService.createBatch(JSON.parse(JSON.stringify(this.context)),requestParam,true).then((response:any) =>{ this.appEntityService.createBatch(JSON.parse(JSON.stringify(this.context)),requestParam,true).then((response:any) =>{
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* @param {*} [xData] * @param {*} [xData]
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected ${item.name}(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) { public ${item.name}(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) {
<#if viewlogic.getOpenDataPSAppView()??> <#if viewlogic.getOpenDataPSAppView()??>
<#assign dataview = viewlogic.getOpenDataPSAppView()/> <#assign dataview = viewlogic.getOpenDataPSAppView()/>
const data: any = {}; const data: any = {};
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
protected ${item.name}(params: any = {}, tag?: any, $event?: any) { public ${item.name}(params: any = {}, tag?: any, $event?: any) {
<#-- 事件参数(未支持) --> <#-- 事件参数(未支持) -->
<#if item.getEventArg()?? && item.getEventArg()?length gt 0> <#if item.getEventArg()?? && item.getEventArg()?length gt 0>
// 参数 // 参数
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected query: string = ''; public query: string = '';
/** /**
* 是否展开搜索表单 * 是否展开搜索表单
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected isExpandSearchForm: boolean = ${view.isExpandSearchForm()?c}; public isExpandSearchForm: boolean = ${view.isExpandSearchForm()?c};
/** /**
* 快速搜索 * 快速搜索
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected onSearch($event: any): void { public onSearch($event: any): void {
const refs: any = this.$refs; const refs: any = this.$refs;
if (refs.list) { if (refs.list) {
refs.list.load({}); refs.list.load({});
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
@Prop() protected selectedData?: string; @Prop() public selectedData?: string;
/** /**
* 是否单选 * 是否单选
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
@Prop() protected isSingleSelect?: boolean; @Prop() public isSingleSelect?: boolean;
/** /**
* 搜索值 * 搜索值
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected query: string = ''; public query: string = '';
/** /**
* 是否展开搜索表单 * 是否展开搜索表单
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected isExpandSearchForm: boolean = ${view.isExpandSearchForm()?c}; public isExpandSearchForm: boolean = ${view.isExpandSearchForm()?c};
/** /**
* 表格行数据默认激活模式 * 表格行数据默认激活模式
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
* @type {(number | 0 | 1 | 2)} * @type {(number | 0 | 1 | 2)}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected gridRowActiveMode: number | 0 | 1 | 2 = ${view.getGridRowActiveMode()?c}; public gridRowActiveMode: number | 0 | 1 | 2 = ${view.getGridRowActiveMode()?c};
/** /**
* 快速搜索 * 快速搜索
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected onSearch($event: any): void { public onSearch($event: any): void {
const refs: any = this.$refs; const refs: any = this.$refs;
if (refs.grid) { if (refs.grid) {
refs.grid.load({}); refs.grid.load({});
......
...@@ -7,21 +7,21 @@ ...@@ -7,21 +7,21 @@
/** /**
* 视图引擎 * 视图引擎
* *
* @private * @public
* @type {Engine} * @type {Engine}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
private ${engine.getName()?lower_case}: ${engine.getEngineType()}Engine = new ${engine.getEngineType()}Engine(); public ${engine.getName()?lower_case}: ${engine.getEngineType()}Engine = new ${engine.getEngineType()}Engine();
</#list> </#list>
</#if> </#if>
/** /**
* 引擎初始化 * 引擎初始化
* *
* @private * @public
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
private engineInit(): void { public engineInit(): void {
<#if view.getPSAppViewEngines()??> <#if view.getPSAppViewEngines()??>
<#list view.getPSAppViewEngines() as engine> <#list view.getPSAppViewEngines() as engine>
this.${engine.getName()?lower_case}.init({ this.${engine.getName()?lower_case}.init({
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected context:any = {}; public context:any = {};
/** /**
* 视图参数 * 视图参数
...@@ -67,15 +67,15 @@ ...@@ -67,15 +67,15 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected viewparams:any = {}; public viewparams:any = {};
/** /**
* 解析视图参数 * 解析视图参数
* *
* @private * @public
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
private parseViewParam(): void { public parseViewParam(): void {
for(let key in this.context){ for(let key in this.context){
delete this.context[key]; delete this.context[key];
} }
...@@ -151,14 +151,14 @@ ...@@ -151,14 +151,14 @@
// 直接值直接赋值 // 直接值直接赋值
if(curNavData.isRawValue){ if(curNavData.isRawValue){
if(Object.is(curNavData.value,"null") || Object.is(curNavData.value,"")){ if(Object.is(curNavData.value,"null") || Object.is(curNavData.value,"")){
Object.defineProperty(tempData, item, { Object.defineProperty(tempData, item.toLowerCase(), {
value: null, value: null,
writable : true, writable : true,
enumerable : true, enumerable : true,
configurable : true configurable : true
}); });
}else{ }else{
Object.defineProperty(tempData, item, { Object.defineProperty(tempData, item.toLowerCase(), {
value: curNavData.value, value: curNavData.value,
writable : true, writable : true,
enumerable : true, enumerable : true,
...@@ -167,23 +167,23 @@ ...@@ -167,23 +167,23 @@
} }
}else{ }else{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null // 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if(this.context[curNavData.value]){ if(this.context[(curNavData.value).toLowerCase()]){
Object.defineProperty(tempData, item, { Object.defineProperty(tempData, item.toLowerCase(), {
value: this.context[curNavData.value], value: this.context[(curNavData.value).toLowerCase()],
writable : true, writable : true,
enumerable : true, enumerable : true,
configurable : true configurable : true
}); });
}else{ }else{
if(this.viewparams[curNavData.value]){ if(this.viewparams[(curNavData.value).toLowerCase()]){
Object.defineProperty(tempData, item, { Object.defineProperty(tempData, item.toLowerCase(), {
value: this.viewparams[curNavData.value], value: this.viewparams[(curNavData.value).toLowerCase()],
writable : true, writable : true,
enumerable : true, enumerable : true,
configurable : true configurable : true
}); });
}else{ }else{
Object.defineProperty(tempData, item, { Object.defineProperty(tempData, item.toLowerCase(), {
value: null, value: null,
writable : true, writable : true,
enumerable : true, enumerable : true,
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected afterCreated(){ public afterCreated(){
const secondtag = this.$util.createUUID(); const secondtag = this.$util.createUUID();
this.$store.commit('viewaction/createdView', { viewtag: this.viewtag, secondtag: secondtag }); this.$store.commit('viewaction/createdView', { viewtag: this.viewtag, secondtag: secondtag });
this.viewtag = secondtag; this.viewtag = secondtag;
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected beforeDestroy() { public beforeDestroy() {
this.$store.commit('viewaction/removeView', this.viewtag); this.$store.commit('viewaction/removeView', this.viewtag);
} }
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected mounted() { public mounted() {
this.afterMounted(); this.afterMounted();
} }
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected afterMounted(){ public afterMounted(){
const _this: any = this; const _this: any = this;
<#if view.getPSAppViewEngines()??> <#if view.getPSAppViewEngines()??>
_this.engineInit(); _this.engineInit();
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${ctrl.name}_${eventName?lower_case}($event: any, $event2?: any) { public ${ctrl.name}_${eventName?lower_case}($event: any, $event2?: any) {
<#if ctrl.getPSControlLogics(eventName)??> <#if ctrl.getPSControlLogics(eventName)??>
<#list ctrl.getPSControlLogics(eventName) as ctrlLogic> <#list ctrl.getPSControlLogics(eventName) as ctrlLogic>
<#if ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??> <#if ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??>
...@@ -334,7 +334,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -334,7 +334,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected closeView(args: any[]): void { public closeView(args: any[]): void {
let _view: any = this; let _view: any = this;
if (_view.viewdata) { if (_view.viewdata) {
_view.$emit('viewdataschange', [args]); _view.$emit('viewdataschange', [args]);
...@@ -353,7 +353,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -353,7 +353,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected destroyed(){ public destroyed(){
this.afterDestroyed(); this.afterDestroyed();
} }
...@@ -362,7 +362,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -362,7 +362,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected afterDestroyed(){ public afterDestroyed(){
if(this.viewDefaultUsage){ if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage); let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){ if(localStoreLength.length > 0){
......
...@@ -7,21 +7,21 @@ ...@@ -7,21 +7,21 @@
/** /**
* 视图引擎 * 视图引擎
* *
* @private * @public
* @type {Engine} * @type {Engine}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
private ${engine.getName()?lower_case}: ${engine.getEngineType()}Engine = new ${engine.getEngineType()}Engine(); public ${engine.getName()?lower_case}: ${engine.getEngineType()}Engine = new ${engine.getEngineType()}Engine();
</#list> </#list>
</#if> </#if>
/** /**
* 引擎初始化 * 引擎初始化
* *
* @private * @public
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
private engineInit(): void { public engineInit(): void {
<#if view.getPSAppViewEngines()??> <#if view.getPSAppViewEngines()??>
<#list view.getPSAppViewEngines() as engine> <#list view.getPSAppViewEngines() as engine>
this.${engine.getName()?lower_case}.init({ this.${engine.getName()?lower_case}.init({
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected context:any = {}; public context:any = {};
/** /**
* 视图参数 * 视图参数
...@@ -67,15 +67,15 @@ ...@@ -67,15 +67,15 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected viewparams:any = {}; public viewparams:any = {};
/** /**
* 解析视图参数 * 解析视图参数
* *
* @private * @public
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
private parseViewParam(): void { public parseViewParam(): void {
if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) { if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) {
Object.assign(this.context, JSON.parse(this.viewdata)); Object.assign(this.context, JSON.parse(this.viewdata));
<#if self_viewparam??> <#if self_viewparam??>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected afterCreated(){ public afterCreated(){
const secondtag = this.$util.createUUID(); const secondtag = this.$util.createUUID();
this.$store.commit('viewaction/createdView', { viewtag: this.viewtag, secondtag: secondtag }); this.$store.commit('viewaction/createdView', { viewtag: this.viewtag, secondtag: secondtag });
this.viewtag = secondtag; this.viewtag = secondtag;
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected beforeDestroy() { public beforeDestroy() {
this.$store.commit('viewaction/removeView', this.viewtag); this.$store.commit('viewaction/removeView', this.viewtag);
} }
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected mounted() { public mounted() {
this.afterMounted(); this.afterMounted();
} }
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected afterMounted(){ public afterMounted(){
<#if view.getPSControls()??> <#if view.getPSControls()??>
<#list view.getPSControls() as ctrl> <#list view.getPSControls() as ctrl>
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${ctrl.name}_${eventName?lower_case}($event: any, $event2?: any) { public ${ctrl.name}_${eventName?lower_case}($event: any, $event2?: any) {
<#if ctrl.getPSControlLogics(eventName)??> <#if ctrl.getPSControlLogics(eventName)??>
<#list ctrl.getPSControlLogics(eventName) as ctrlLogic> <#list ctrl.getPSControlLogics(eventName) as ctrlLogic>
<#if ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??> <#if ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??>
...@@ -218,7 +218,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -218,7 +218,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected closeView(args: any[]): void { public closeView(args: any[]): void {
let _view: any = this; let _view: any = this;
if (_view.viewdata) { if (_view.viewdata) {
_view.$emit('viewdataschange', [args]); _view.$emit('viewdataschange', [args]);
...@@ -237,7 +237,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -237,7 +237,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected destroyed(){ public destroyed(){
this.afterDestroyed(); this.afterDestroyed();
} }
...@@ -246,7 +246,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -246,7 +246,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* *
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected afterDestroyed(){ public afterDestroyed(){
if(this.viewDefaultUsage){ if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage); let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){ if(localStoreLength.length > 0){
......
...@@ -58,7 +58,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -58,7 +58,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {${srfclassname('${appde.getCodeName()}')}Service} * @type {${srfclassname('${appde.getCodeName()}')}Service}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected appEntityService: ${srfclassname('${appde.getCodeName()}')}Service = new ${srfclassname('${appde.getCodeName()}')}Service; public appEntityService: ${srfclassname('${appde.getCodeName()}')}Service = new ${srfclassname('${appde.getCodeName()}')}Service;
</#if> </#if>
<#if view.getPSAppCounterRefs()??> <#if view.getPSAppCounterRefs()??>
...@@ -74,7 +74,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -74,7 +74,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService} * @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService({ $store: this.$store }); public ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService({ $store: this.$store });
</#if> </#if>
</#list> </#list>
...@@ -84,7 +84,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -84,7 +84,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {Array<*>} * @type {Array<*>}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected counterServiceArray:Array<any> = [${counterRefs}]; public counterServiceArray:Array<any> = [${counterRefs}];
</#if> </#if>
/** /**
...@@ -95,7 +95,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -95,7 +95,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
@Emit() @Emit()
protected viewDatasChange(val: any):any { public viewDatasChange(val: any):any {
return val; return val;
} }
...@@ -105,7 +105,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -105,7 +105,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
@Prop() protected viewdata!: string; @Prop() public viewdata!: string;
/** /**
* 传入视图参数 * 传入视图参数
...@@ -113,7 +113,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -113,7 +113,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
@Prop() protected viewparam!: string; @Prop() public viewparam!: string;
/** /**
* 视图默认使用 * 视图默认使用
...@@ -121,7 +121,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -121,7 +121,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
@Prop({ default: true }) protected viewDefaultUsage!: boolean; @Prop({ default: true }) public viewDefaultUsage!: boolean;
/** /**
* 视图标识 * 视图标识
...@@ -129,7 +129,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -129,7 +129,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected viewtag: string = '${view.getId()}'; public viewtag: string = '${view.getId()}';
/** /**
* 自定义视图导航上下文集合 * 自定义视图导航上下文集合
...@@ -137,10 +137,10 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -137,10 +137,10 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {*} * @type {*}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected customViewNavContexts:any ={ public customViewNavContexts:any ={
<#if view.getPSAppViewNavContexts()??> <#if view.getPSAppViewNavContexts()??>
<#list view.getPSAppViewNavContexts() as viewNavContext> <#list view.getPSAppViewNavContexts() as viewNavContext>
"${viewNavContext.getKey()?lower_case}":{"isRawValue":${viewNavContext.isRawValue()?c},"value":"${viewNavContext.getValue()?lower_case}"}<#if viewNavContext_has_next>,</#if> "${viewNavContext.getKey()}":{"isRawValue":${viewNavContext.isRawValue()?c},"value":"${viewNavContext.getValue()}"}<#if viewNavContext_has_next>,</#if>
</#list> </#list>
</#if> </#if>
}; };
...@@ -151,10 +151,10 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -151,10 +151,10 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {*} * @type {*}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected customViewParams:any ={ public customViewParams:any ={
<#if view.getPSAppViewNavParams()??> <#if view.getPSAppViewNavParams()??>
<#list view.getPSAppViewNavParams() as viewNavParam> <#list view.getPSAppViewNavParams() as viewNavParam>
"${viewNavParam.getKey()?lower_case}":{"isRawValue":${viewNavParam.isRawValue()?c},"value":"${viewNavParam.getValue()?lower_case}"}<#if viewNavParam_has_next>,</#if> "${viewNavParam.getKey()}":{"isRawValue":${viewNavParam.isRawValue()?c},"value":"${viewNavParam.getValue()}"}<#if viewNavParam_has_next>,</#if>
</#list> </#list>
</#if> </#if>
}; };
...@@ -165,7 +165,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -165,7 +165,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {*} * @type {*}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected model: any = { public model: any = {
srfCaption: '<#if view.getPSAppDataEntity()??>entities.${view.getPSAppDataEntity().getCodeName()?lower_case}.views.${view.getPSDEViewCodeName()?lower_case}.caption<#else>app.views.${view.getCodeName()?lower_case}.caption</#if>', srfCaption: '<#if view.getPSAppDataEntity()??>entities.${view.getPSAppDataEntity().getCodeName()?lower_case}.views.${view.getPSDEViewCodeName()?lower_case}.caption<#else>app.views.${view.getCodeName()?lower_case}.caption</#if>',
srfTitle: '<#if view.getPSAppDataEntity()??>entities.${view.getPSAppDataEntity().getCodeName()?lower_case}.views.${view.getPSDEViewCodeName()?lower_case}.title<#else>app.views.${view.getCodeName()?lower_case}.title</#if>', srfTitle: '<#if view.getPSAppDataEntity()??>entities.${view.getPSAppDataEntity().getCodeName()?lower_case}.views.${view.getPSDEViewCodeName()?lower_case}.title<#else>app.views.${view.getCodeName()?lower_case}.title</#if>',
srfSubTitle: '<#if view.getPSAppDataEntity()??>entities.${view.getPSAppDataEntity().getCodeName()?lower_case}.views.${view.getPSDEViewCodeName()?lower_case}.subtitle<#else>app.views.${view.getCodeName()?lower_case}.subtitle</#if>', srfSubTitle: '<#if view.getPSAppDataEntity()??>entities.${view.getPSAppDataEntity().getCodeName()?lower_case}.views.${view.getPSDEViewCodeName()?lower_case}.subtitle<#else>app.views.${view.getCodeName()?lower_case}.subtitle</#if>',
...@@ -213,7 +213,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -213,7 +213,7 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @type {*} * @type {*}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected containerModel: any = { public containerModel: any = {
<#if view.getPSControls()??> <#if view.getPSControls()??>
<#list view.getPSControls() as ctrl> <#list view.getPSControls() as ctrl>
view_${ctrl.name}: { name: '${ctrl.name}', type: '${ctrl.getControlType()}' }, view_${ctrl.name}: { name: '${ctrl.name}', type: '${ctrl.getControlType()}' },
...@@ -251,11 +251,11 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -251,11 +251,11 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
/** /**
* 视图状态订阅对象 * 视图状态订阅对象
* *
* @private * @public
* @type {Subject<{action: string, data: any}>} * @type {Subject<{action: string, data: any}>}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
protected viewState: Subject<ViewState> = new Subject(); public viewState: Subject<ViewState> = new Subject();
<#if view.hasPSControl('toolbar')> <#if view.hasPSControl('toolbar')>
${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected loadWFLinks(): void { public loadWFLinks(): void {
const url = '${app.getPKGCodeName()?lower_case}/${de.getPSSystemModule().codeName?lower_case}/${de.codeName?lower_case}/wflinks'; const url = '${app.getPKGCodeName()?lower_case}/${de.getPSSystemModule().codeName?lower_case}/${de.codeName?lower_case}/wflinks';
const arg: any = {}; const arg: any = {};
if (this.engine && this.engine.viewdata && this.engine.viewdata.srfkey) { if (this.engine && this.engine.viewdata && this.engine.viewdata.srfkey) {
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected wflink_click(item: any, $event: any): void { public wflink_click(item: any, $event: any): void {
if (Object.is(item.type, 'FRONT')) { if (Object.is(item.type, 'FRONT')) {
this.wflink_front(item, $event); this.wflink_front(item, $event);
} else if (Object.is(item.type, 'BACKEND')) { } else if (Object.is(item.type, 'BACKEND')) {
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected wflink_front(item: any, $event: any): void { public wflink_front(item: any, $event: any): void {
if (!item.page || Object.is(item.page, '')) { if (!item.page || Object.is(item.page, '')) {
return; return;
} }
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
* @param {*} [data] * @param {*} [data]
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected wflink_backend(item: any, $event: any, data?: any): void { public wflink_backend(item: any, $event: any, data?: any): void {
const _this: any = this; const _this: any = this;
this.wf_Step(item, $event, data).then((response: any) => { this.wf_Step(item, $event, data).then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
...@@ -129,14 +129,14 @@ ...@@ -129,14 +129,14 @@
/** /**
* 工作流步骤 * 工作流步骤
* *
* @private * @public
* @param {*} item * @param {*} item
* @param {*} $event * @param {*} $event
* @param {*} [data] * @param {*} [data]
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
private async wf_Step(item: any, $event: any, data?: any): Promise<any> { public async wf_Step(item: any, $event: any, data?: any): Promise<any> {
const arg: any = { args: {} }; const arg: any = { args: {} };
if (data) { if (data) {
Object.assign(arg, data); Object.assign(arg, data);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* @memberof @memberof ${srfclassname('${view.name}')}Base * @memberof @memberof ${srfclassname('${view.name}')}Base
*/ */
protected iframeUrl:string =""; public iframeUrl:string ="";
/** /**
* 获取iframe路径 * 获取iframe路径
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* @memberof @memberof ${srfclassname('${view.name}')}Base * @memberof @memberof ${srfclassname('${view.name}')}Base
*/ */
protected iframeUrl:string =""; public iframeUrl:string ="";
/** /**
* 获取iframe路径 * 获取iframe路径
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* @type {number} * @type {number}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected split: number = 0.2; public split: number = 0.2;
/** /**
* 树导航栏数据 * 树导航栏数据
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected wfStepModel: Array<any> = []; public wfStepModel: Array<any> = [];
/** /**
* 是否展开搜索表单 * 是否展开搜索表单
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected isExpandSearchForm:boolean = true; public isExpandSearchForm:boolean = true;
/** /**
* 是否单选 * 是否单选
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected isSingleSelect:boolean = true; public isSingleSelect:boolean = true;
/** /**
* 左侧树的默认配置 * 左侧树的默认配置
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected defaultProps:any ={ public defaultProps:any ={
children: 'children', children: 'children',
label: 'userTaskName' label: 'userTaskName'
}; };
...@@ -48,14 +48,14 @@ ...@@ -48,14 +48,14 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected curSelectedNode:any; public curSelectedNode:any;
/** /**
* 获取树导航栏数据 * 获取树导航栏数据
* *
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected getWFStepModel():Promise<any>{ public getWFStepModel():Promise<any>{
return new Promise((resolve:any, reject:any) =>{ return new Promise((resolve:any, reject:any) =>{
this.appEntityService.WFGetWFStep().then((response:any) =>{ this.appEntityService.WFGetWFStep().then((response:any) =>{
if (response && response.status === 200) { if (response && response.status === 200) {
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected handleNodeClick(data:any) { public handleNodeClick(data:any) {
this.curSelectedNode = data; this.curSelectedNode = data;
this.setTreeNodeHighLight(this.curSelectedNode); this.setTreeNodeHighLight(this.curSelectedNode);
Object.assign(this.viewparams,{'userTaskId':data['userTaskId'],'processDefinitionKey':data['processDefinitionKey']}); Object.assign(this.viewparams,{'userTaskId':data['userTaskId'],'processDefinitionKey':data['processDefinitionKey']});
...@@ -99,13 +99,48 @@ ...@@ -99,13 +99,48 @@
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected setTreeNodeHighLight(data: any): void { public setTreeNodeHighLight(data: any): void {
this.$nextTick(() =>{ this.$nextTick(() =>{
const tree: any = this.$refs.tree; const tree: any = this.$refs.tree;
tree.setCurrentKey(data.userTaskId); tree.setCurrentKey(data.userTaskId);
}) })
} }
<#if view.hasPSControl('grid')>
<#assign grid = view.getPSControl('grid')>
/**
* 刷新数据
*
* @readonly
* @type {(number | null)}
* @memberof ${srfclassname('${view.name}')}Base
*/
get refreshdata(): number | null {
return this.$store.getters['viewaction/getRefreshData'](this.viewtag);
}
/**
* 监控数据变化
*
* @param {*} newVal
* @param {*} oldVal
* @returns
* @memberof ${srfclassname('${view.name}')}Base
*/
@Watch('refreshdata')
onRefreshData(newVal: any, oldVal: any) {
if (newVal === null || newVal === undefined) {
return;
}
if (newVal === 0) {
return;
}
const grid: any = this.$refs.${grid.name};
if (grid) {
grid.load({});
}
}
</#if>
</#assign> </#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW-BASE.vue.ftl ../@MACRO/VIEW-BASE.vue.ftl
......
...@@ -36,7 +36,7 @@ if(this.viewparams.selectedData){ ...@@ -36,7 +36,7 @@ if(this.viewparams.selectedData){
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected selectedData: string = ""; public selectedData: string = "";
/** /**
* 是否初始化已选中项 * 是否初始化已选中项
...@@ -44,7 +44,7 @@ if(this.viewparams.selectedData){ ...@@ -44,7 +44,7 @@ if(this.viewparams.selectedData){
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
isInitSelected:boolean = false; public isInitSelected:boolean = false;
/** /**
* 视图选中数据 * 视图选中数据
......
...@@ -27,7 +27,7 @@ if(this.viewparams.selectedData){ ...@@ -27,7 +27,7 @@ if(this.viewparams.selectedData){
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
protected selectedData: string = ""; public selectedData: string = "";
/** /**
* 视图选中数据 * 视图选中数据
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
@Prop() protected selectedData?: string; @Prop() public selectedData?: string;
/** /**
* 是否单选 * 是否单选
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
@Prop() protected isSingleSelect?: boolean; @Prop() public isSingleSelect?: boolean;
/** /**
* 是否显示按钮 * 是否显示按钮
......
...@@ -21,11 +21,11 @@ ...@@ -21,11 +21,11 @@
/** /**
* 菜单位置 * 菜单位置
* *
* @private * @public
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
private mode: string ='<#if view.getMainMenuAlign()=="TOP">horizontal</#if><#if view.getMainMenuAlign()=="LEFT" || view.getMainMenuAlign() =="">vertical</#if>'; public mode: string ='<#if view.getMainMenuAlign()=="TOP">horizontal</#if><#if view.getMainMenuAlign()=="LEFT" || view.getMainMenuAlign() =="">vertical</#if>';
/** /**
* 当前主题 * 当前主题
......
...@@ -90,12 +90,12 @@ export default class ${srfclassname('${item.getCodeName()}')} { ...@@ -90,12 +90,12 @@ export default class ${srfclassname('${item.getCodeName()}')} {
/** /**
* 处理数据 * 处理数据
* *
* @private * @public
* @param {any[]} items * @param {any[]} items
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${item.getCodeName()}')} * @memberof ${srfclassname('${item.getCodeName()}')}
*/ */
private doItems(items: any[]): any[] { public doItems(items: any[]): any[] {
let _items: any[] = []; let _items: any[] = [];
items.forEach((item: any) => { items.forEach((item: any) => {
let itemdata:any = {}; let itemdata:any = {};
...@@ -181,12 +181,12 @@ export default class ${srfclassname('${item.getCodeName()}')} { ...@@ -181,12 +181,12 @@ export default class ${srfclassname('${item.getCodeName()}')} {
/** /**
* 处理数据 * 处理数据
* *
* @private * @public
* @param {any[]} items * @param {any[]} items
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${item.getCodeName()}')} * @memberof ${srfclassname('${item.getCodeName()}')}
*/ */
private doItems(items: any[]): any[] { public doItems(items: any[]): any[] {
let _items: any[] = []; let _items: any[] = [];
items.forEach((item: any) => { items.forEach((item: any) => {
let itemdata:any = {}; let itemdata:any = {};
......
...@@ -16,7 +16,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase ...@@ -16,7 +16,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase
* @param {*} [opts={}] * @param {*} [opts={}]
* @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase
*/ */
protected counterData:any ={}; public counterData:any ={};
/** /**
* Creates an instance of ${srfclassname('${item.getCodeName()}')}CounterServiceBase. * Creates an instance of ${srfclassname('${item.getCodeName()}')}CounterServiceBase.
...@@ -38,7 +38,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase ...@@ -38,7 +38,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase
* @param {*} [opts={}] * @param {*} [opts={}]
* @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase
*/ */
protected initCounterData(){ public initCounterData(){
this.fetchCounterData(); this.fetchCounterData();
} }
...@@ -48,7 +48,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase ...@@ -48,7 +48,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase
* @param {*} [opts={}] * @param {*} [opts={}]
* @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase
*/ */
protected async fetchCounterData(){ public async fetchCounterData(){
this.counterData = { this.counterData = {
item1:parseInt((Math.random()*10)+''), item1:parseInt((Math.random()*10)+''),
item2:parseInt((Math.random()*100)+''), item2:parseInt((Math.random()*100)+''),
...@@ -68,7 +68,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase ...@@ -68,7 +68,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase
* *
* @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase
*/ */
protected async refreshData(){ public async refreshData(){
const res = await this.fetchCounterData(); const res = await this.fetchCounterData();
return res; return res;
} }
......
...@@ -25,7 +25,7 @@ export const Environment = { ...@@ -25,7 +25,7 @@ export const Environment = {
// 是否为开发模式 // 是否为开发模式
devMode: true, devMode: true,
// 项目模板地址 // 项目模板地址
ProjectUrl: "http://172.16.180.229/wangxiang1/VUE_R7_FTL", ProjectUrl: "http://demo.ibizlab.cn/groups/ibizr7pfstdtempl",
// 配置平台地址 // 配置平台地址
StudioUrl: "http://172.16.170.145/slnstudio/", StudioUrl: "http://172.16.170.145/slnstudio/",
// 中心标识 // 中心标识
......
...@@ -41,49 +41,49 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten ...@@ -41,49 +41,49 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected isEnableWorkflow:boolean = false; public isEnableWorkflow:boolean = false;
/** /**
* 当前UI服务对应的数据服务对象 * 当前UI服务对应的数据服务对象
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected dataService:${srfclassname('${item.getCodeName()}')}Service = new ${srfclassname('${item.getCodeName()}')}Service(); public dataService:${srfclassname('${item.getCodeName()}')}Service = new ${srfclassname('${item.getCodeName()}')}Service();
/** /**
* 所有关联视图 * 所有关联视图
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected allViewMap: Map<string, Object> = new Map(); public allViewMap: Map<string, Object> = new Map();
/** /**
* 状态值 * 状态值
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected stateValue: number = <#if curWorkFlow?? && curWorkFlow.getEntityWFState()??>${curWorkFlow.getEntityWFState()}<#else>0</#if>; public stateValue: number = <#if curWorkFlow?? && curWorkFlow.getEntityWFState()??>${curWorkFlow.getEntityWFState()}<#else>0</#if>;
/** /**
* 状态属性 * 状态属性
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected stateField: string = "<#if curWorkFlow?? && curWorkFlow.getWFStatePSDEField()??>${curWorkFlow.getWFStatePSDEField().getCodeName()?lower_case}</#if>"; public stateField: string = "<#if curWorkFlow?? && curWorkFlow.getWFStatePSDEField()??>${curWorkFlow.getWFStatePSDEField().getCodeName()?lower_case}</#if>";
/** /**
* 主状态属性集合 * 主状态属性集合
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected mainStateFields:Array<any> = [<#if item.getPSDataEntity?? && item.getPSDataEntity()?? && item.getPSDataEntity().getDEMainStateDEFields()??><#list item.getPSDataEntity().getDEMainStateDEFields() as demsField>'${demsField.getCodeName()?lower_case}'<#if demsField_has_next>,</#if></#list></#if>]; public mainStateFields:Array<any> = [<#if item.getPSDataEntity?? && item.getPSDataEntity()?? && item.getPSDataEntity().getDEMainStateDEFields()??><#list item.getPSDataEntity().getDEMainStateDEFields() as demsField>'${demsField.getCodeName()?lower_case}'<#if demsField_has_next>,</#if></#list></#if>];
/** /**
* 主状态集合Map * 主状态集合Map
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected allDeMainStateMap:Map<string,string> = new Map(); public allDeMainStateMap:Map<string,string> = new Map();
/** /**
* Creates an instance of ${srfclassname('${item.getCodeName()}')}UIServiceBase. * Creates an instance of ${srfclassname('${item.getCodeName()}')}UIServiceBase.
...@@ -173,7 +173,7 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code} ...@@ -173,7 +173,7 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code}
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected getRealDEType(entity:any){ public getRealDEType(entity:any){
} }
...@@ -185,7 +185,7 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code} ...@@ -185,7 +185,7 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code}
* @param bWFMode 是否工作流模式 * @param bWFMode 是否工作流模式
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){ public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = ''; let strPDTParam:string = '';
if (bDataInWF) { if (bDataInWF) {
// 判断数据是否在流程中 // 判断数据是否在流程中
...@@ -302,7 +302,7 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code} ...@@ -302,7 +302,7 @@ ${P.getLogicCode(appdeUIAction, "LOGIC.vue").code}
* @param curData 当前数据 * @param curData 当前数据
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/ */
protected async getDEMainStateTag(curData:any){ public async getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null; if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{ this.mainStateFields.forEach((singleMainField:any) =>{
......
...@@ -22,7 +22,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext ...@@ -22,7 +22,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase
*/ */
protected stoageDataService: ${srfclassname('${stoageDataEntity.getCodeName()}')}Service = new ${srfclassname('${stoageDataEntity.getCodeName()}')}Service(); public stoageDataService: ${srfclassname('${stoageDataEntity.getCodeName()}')}Service = new ${srfclassname('${stoageDataEntity.getCodeName()}')}Service();
</#if> </#if>
/** /**
...@@ -30,28 +30,28 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext ...@@ -30,28 +30,28 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase
*/ */
protected loadAction: string = "${item.getGetPSAppDEAction().getCodeName()}"; public loadAction: string = "${item.getGetPSAppDEAction().getCodeName()}";
/** /**
* 建立数据行为 * 建立数据行为
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase
*/ */
protected createAction: string = "${item.getCreatePSAppDEAction().getCodeName()}"; public createAction: string = "${item.getCreatePSAppDEAction().getCodeName()}";
/** /**
* 更新数据行为 * 更新数据行为
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase
*/ */
protected updateAction: string = "${item.getUpdatePSAppDEAction().getCodeName()}"; public updateAction: string = "${item.getUpdatePSAppDEAction().getCodeName()}";
/** /**
* 删除数据行为 * 删除数据行为
* *
* @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase
*/ */
protected removeAction: string = "${item.getRemovePSAppDEAction().getCodeName()}"; public removeAction: string = "${item.getRemovePSAppDEAction().getCodeName()}";
/** /**
* Creates an instance of ${srfclassname('${item.getCodeName()}')}UtilServiceBase. * Creates an instance of ${srfclassname('${item.getCodeName()}')}UtilServiceBase.
...@@ -88,7 +88,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext ...@@ -88,7 +88,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext
* @param isloading 是否加载 * @param isloading 是否加载
* @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase
*/ */
protected loadModelData(context: any = {},data: any = {}, isloading?: boolean): Promise<any>{ public loadModelData(context: any = {},data: any = {}, isloading?: boolean): Promise<any>{
<#-- const {context:contextResult,data:dataResult} = this.handlePreParam(context,data); --> <#-- const {context:contextResult,data:dataResult} = this.handlePreParam(context,data); -->
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
let dataStr = window.localStorage.getItem(data.modelid); let dataStr = window.localStorage.getItem(data.modelid);
...@@ -122,7 +122,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext ...@@ -122,7 +122,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext
* @param isloading 是否加载 * @param isloading 是否加载
* @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase
*/ */
protected saveModelData(context: any = {},action:string,data: any = {}, isloading?: boolean):Promise<any>{ public saveModelData(context: any = {},action:string,data: any = {}, isloading?: boolean):Promise<any>{
<#-- const {context:contextResult,data:dataResult} = this.handlePreParam(context,data); --> <#-- const {context:contextResult,data:dataResult} = this.handlePreParam(context,data); -->
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
window.localStorage.setItem(data.modelid, JSON.stringify(data)); window.localStorage.setItem(data.modelid, JSON.stringify(data));
...@@ -144,7 +144,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext ...@@ -144,7 +144,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext
* @param isloading 是否加载 * @param isloading 是否加载
* @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase
*/ */
protected createdModelData(context: any = {},data: any = {}, isloading?: boolean):Promise<any>{ public createdModelData(context: any = {},data: any = {}, isloading?: boolean):Promise<any>{
const {context:contextResult,data:dataResult} = this.handlePreParam(context,data); const {context:contextResult,data:dataResult} = this.handlePreParam(context,data);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
let result: Promise<any>; let result: Promise<any>;
...@@ -166,7 +166,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext ...@@ -166,7 +166,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UtilServiceBase ext
* @param isloading 是否加载 * @param isloading 是否加载
* @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}UtilServiceBase
*/ */
protected updateModelData(context: any = {},data: any = {}, isloading?: boolean):Promise<any>{ public updateModelData(context: any = {},data: any = {}, isloading?: boolean):Promise<any>{
const {context:contextResult,data:dataResult} = this.handlePreParam(context,data); const {context:contextResult,data:dataResult} = this.handlePreParam(context,data);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
let result: Promise<any>; let result: Promise<any>;
......
## v7.0.0-alpha.3 [2020-5-10]
### Bug修复
分页导航栏传递srfparentdename和srfparentkey问题
提交流程、启动流程刷新表格数据问题
修复视图自定义导航参数大小写问题
修复批添加功能
修复树部件查询数据集合异常处理
修复图表排序问题
修复富文本国际化切换失效
### 功能新增及优化
#### 模板
搜索面板布局优化
表格checkbox宽度优化
选择类视图不显示标题
补充树节点关系导航上下文,导航参数上下文
#### 基础文件
登录页面调整
## v7.0.0-alpha.2 [2020-5-7] ## v7.0.0-alpha.2 [2020-5-7]
### Bug修复 ### Bug修复
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册