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

202.5.14 更新

上级 794d9fc0
...@@ -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]);
} }
......
...@@ -300,8 +300,9 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi ...@@ -300,8 +300,9 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
public loadDraft(action: string,context: any = {}, data: any = {}, isloading?: boolean): Promise<any> { public loadDraft(action: string,context: any = {}, data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data); const {data:Data,context:Context} = this.handleRequestData(action,context,data);
//仿真主键数据 //仿真主键数据
Data.${appde.getKeyPSAppDEField().getCodeName()?lower_case} = Util.createUUID(); const PrimaryKey = Util.createUUID();
Data.${appde.getCodeName()?lower_case} = Data.${appde.getKeyPSAppDEField().getCodeName()?lower_case}; Data.${appde.getKeyPSAppDEField().getCodeName()?lower_case} = PrimaryKey;
Data.${appde.getCodeName()?lower_case} = PrimaryKey;
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
let result: Promise<any>; let result: Promise<any>;
const _appEntityService: any = this.appEntityService; const _appEntityService: any = this.appEntityService;
...@@ -311,6 +312,7 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi ...@@ -311,6 +312,7 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
result = this.appEntityService.GetDraft(Context,Data, isloading); result = this.appEntityService.GetDraft(Context,Data, isloading);
} }
result.then((response) => { result.then((response) => {
response.data.${appde.getKeyPSAppDEField().getCodeName()?lower_case} = PrimaryKey;
this.handleResponse(action, response, true); this.handleResponse(action, response, true);
resolve(response); resolve(response);
}).catch(response => { }).catch(response => {
......
...@@ -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();
} }
......
<template> <template>
<div :class="['app-list', this.items.length > 0 ? '' : 'app-list-empty' ]"> <div :class="['app-list', this.items.length > 0 ? '' : 'app-list-empty' ]">
<div v-if="items.length > 0"> <div v-if="items.length > 0" style="height:100%;">
<#if ctrl.render??> <#if ctrl.render??>
${ctrl.render.code} ${ctrl.render.code}
<#else> <#else>
...@@ -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 });
}); });
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
</#ibizinclude> </#ibizinclude>
.app-list { .app-list {
height:100%;
flex-grow: 1; flex-grow: 1;
overflow-y: auto; overflow-y: auto;
.app-list-item { .app-list-item {
...@@ -16,6 +17,7 @@ ...@@ -16,6 +17,7 @@
} }
} }
.app-list-empty { .app-list-empty {
height:100%;
color: #909399; color: #909399;
display: flex; display: flex;
justify-content: center; justify-content: center;
......
...@@ -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);
} }
......
...@@ -2,14 +2,19 @@ ...@@ -2,14 +2,19 @@
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/LANGBASE.vue.ftl ../@MACRO/CONTROL/LANGBASE.vue.ftl
</#ibizinclude> </#ibizinclude>
<#if ctrl.getName() != 'toolbar'>
<#assign ModelsName>${ctrl.getCodeName()?lower_case}Models</#assign>
<#else>
<#assign ModelsName = 'toolBarModels' />
</#if>
<#assign deuiaction=item.getPSUIAction()> <#assign deuiaction=item.getPSUIAction()>
<#if item.getTooltip()?? && item.getTooltip() != ''> <#if item.getTooltip()?? && item.getTooltip() != ''>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<#if deuiaction.getUIActionTag() == 'ExportExcel'> <#if deuiaction.getUIActionTag() == 'ExportExcel'>
<app-export-excel :item="toolBarModels.${item.name}" :caption="$t('${langbase}.${item.name}.caption')" @exportexcel="${ctrl.name}_click({ tag: '${item.name}' }, $event)"></app-export-excel> <app-export-excel :item="${ModelsName}.${item.name}" :caption="$t('${langbase}.${item.name}.caption')" @exportexcel="${ctrl.name}_click({ tag: '${item.name}' }, $event)"></app-export-excel>
<#else> <#else>
<@badge item> <@badge item>
<i-button v-show="toolBarModels.${item.name}.visabled" :disabled="toolBarModels.${item.name}.disabled" class='<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>' @click="${ctrl.name}_click({ tag: '${item.name}' }, $event)"> <i-button v-show="${ModelsName}.${item.name}.visabled" :disabled="${ModelsName}.${item.name}.disabled" class='<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>' @click="${ctrl.name}_click({ tag: '${item.name}' }, $event)">
<#if item.isShowIcon()><i class='<#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if></#if>'></i></#if> <#if item.isShowIcon()><i class='<#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if></#if>'></i></#if>
<#if item.isShowCaption()><span class='caption'>{{<#if langbase??>$t('${langbase}.${item.name}.caption')<#else>'${item.getCaption()}'</#if>}}</span></#if> <#if item.isShowCaption()><span class='caption'>{{<#if langbase??>$t('${langbase}.${item.name}.caption')<#else>'${item.getCaption()}'</#if>}}</span></#if>
</i-button> </i-button>
...@@ -19,10 +24,10 @@ ...@@ -19,10 +24,10 @@
</tooltip> </tooltip>
<#else> <#else>
<#if deuiaction.getUIActionTag() == 'ExportExcel'> <#if deuiaction.getUIActionTag() == 'ExportExcel'>
<app-export-excel :item="toolBarModels.${item.name}" :caption="$t('${langbase}.${item.name}.caption')" @exportexcel="${ctrl.name}_click({ tag: '${item.name}' }, $event)"></app-export-excel> <app-export-excel :item="${ModelsName}.${item.name}" :caption="$t('${langbase}.${item.name}.caption')" @exportexcel="${ctrl.name}_click({ tag: '${item.name}' }, $event)"></app-export-excel>
<#else> <#else>
<@badge item> <@badge item>
<i-button v-show="toolBarModels.${item.name}.visabled" :disabled="toolBarModels.${item.name}.disabled" class='<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>' @click="${ctrl.name}_click({ tag: '${item.name}' }, $event)"> <i-button v-show="${ModelsName}.${item.name}.visabled" :disabled="${ModelsName}.${item.name}.disabled" class='<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>' @click="${ctrl.name}_click({ tag: '${item.name}' }, $event)">
<#if item.isShowIcon()><i class='<#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if></#if>'></i></#if> <#if item.isShowIcon()><i class='<#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if></#if>'></i></#if>
<#if item.isShowCaption()><span class='caption'>{{<#if langbase??>$t('${langbase}.${item.name}.caption')<#else>'${item.getCaption()}'</#if>}}</span></#if> <#if item.isShowCaption()><span class='caption'>{{<#if langbase??>$t('${langbase}.${item.name}.caption')<#else>'${item.getCaption()}'</#if>}}</span></#if>
</i-button> </i-button>
......
...@@ -2,7 +2,12 @@ ...@@ -2,7 +2,12 @@
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/LANGBASE.vue.ftl ../@MACRO/CONTROL/LANGBASE.vue.ftl
</#ibizinclude> </#ibizinclude>
<dropdown v-show="toolBarModels.${item.name}.visabled" trigger='click'> <#if ctrl.getName() != 'toolbar'>
<#assign ModelsName>${ctrl.getCodeName()?lower_case}Models</#assign>
<#else>
<#assign ModelsName = 'toolBarModels' />
</#if>
<dropdown v-show="${ModelsName}.${item.name}.visabled" trigger='click'>
<#if item.getTooltip()?? && item.getTooltip() != ''> <#if item.getTooltip()?? && item.getTooltip() != ''>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<@badge item> <@badge item>
......
<#if ctrl.getName() != 'toolbar'>
<#assign ModelsName>${ctrl.getCodeName()?lower_case}Models</#assign>
<#else>
<#assign ModelsName = 'toolBarModels' />
</#if>
<div class='toolbar-container'> <div class='toolbar-container'>
<#if (view.getPSWorkflow?? && view.getPSWorkflow()??) && (view.isWFIAMode?? && view.isWFIAMode()) && (view.getWFStepValue?? && view.getWFStepValue() == "") && (view.getViewType?? && (view.getViewType() == 'DEWFEDITVIEW3' || view.getViewType() == 'DEWFEDITVIEW'))><#t> <#if (view.getPSWorkflow?? && view.getPSWorkflow()??) && (view.isWFIAMode?? && view.isWFIAMode()) && (view.getWFStepValue?? && view.getWFStepValue() == "") && (view.getViewType?? && (view.getViewType() == 'DEWFEDITVIEW3' || view.getViewType() == 'DEWFEDITVIEW'))><#t>
<template v-for="item in containerModel.wflinks"> <template v-for="item in containerModel.wflinks">
......
<#-- 工具栏模型 --> <#-- 工具栏模型 -->
<#if ctrl.getName() != 'toolbar'>
<#assign ModelsName>${ctrl.getCodeName()?lower_case}Models</#assign>
<#else>
<#assign ModelsName = 'toolBarModels' />
</#if>
/** /**
* 工具栏模型 * 工具栏模型
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${view.name}')} * @memberof ${srfclassname('${view.name}')}
*/ */
public toolBarModels: any = { public ${ModelsName}: any = {
<#if ctrl.getPSDEToolbarItems()??> <#if ctrl.getPSDEToolbarItems()??>
<#list ctrl.getPSDEToolbarItems() as item> <#list ctrl.getPSDEToolbarItems() as item>
${P.getPartCode(item).code} ${P.getPartCode(item).code}
......
...@@ -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,11 +49,13 @@ ...@@ -49,11 +49,13 @@
</#if> </#if>
</row> </row>
</i-col> </i-col>
<i-col span="4"> <#if ctrl.getFormStyle() != "SEARCHBAR">
<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>
</row> </row>
</i-col> </i-col>
</#if>
</row> </row>
</i-form> </i-form>
\ No newline at end of file
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
<#assign content> <#assign content>
:showBusyIndicator="${ctrl.isShowBusyIndicator()?c}" :showBusyIndicator="${ctrl.isShowBusyIndicator()?c}"
<#if view.isExpandSearchForm??> <#if view.isExpandSearchForm??>
v-show="isExpandSearchForm" v-show="<#if ctrl.getFormStyle() == "SEARCHBAR">true<#else>isExpandSearchForm</#if>"
</#if> </#if>
loaddraftAction="<#if ctrl.getGetDraftPSControlAction()?? && ctrl.getGetDraftPSControlAction().getPSAppDEMethod()??>${ctrl.getGetDraftPSControlAction().getPSAppDEMethod().getCodeName()}</#if>" loaddraftAction="<#if ctrl.getGetDraftPSControlAction()?? && ctrl.getGetDraftPSControlAction().getPSAppDEMethod()??>${ctrl.getGetDraftPSControlAction().getPSAppDEMethod().getCodeName()}</#if>"
loadAction="<#if ctrl.getGetPSControlAction()?? && ctrl.getGetPSControlAction().getPSAppDEMethod()??>${ctrl.getGetPSControlAction().getPSAppDEMethod().getCodeName()}</#if>" loadAction="<#if ctrl.getGetPSControlAction()?? && ctrl.getGetPSControlAction().getPSAppDEMethod()??>${ctrl.getGetPSControlAction().getPSAppDEMethod().getCodeName()}</#if>"
<#if ctrl.getFormStyle() == "SEARCHBAR">@valuechange="qucikFormValueChange"</#if>
</#assign> </#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/HTML/DEFAULT.html.ftl ../@MACRO/HTML/DEFAULT.html.ftl
......
...@@ -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);
} }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</#if> </#if>
<#if layout == 'TABLE_24COL' && LayoutPos??><#t> <#if layout == 'TABLE_24COL' && LayoutPos??><#t>
<i-col<#if LayoutPos.getColXS() != -1> :xs="{ span: ${LayoutPos.getColXS()}, offset: <#if LayoutPos.getColXSOffset() != -1>${LayoutPos.getColXSOffset()}<#else>0</#if>}"</#if><#if LayoutPos.getColSM() != -1> :sm="{ span: ${LayoutPos.getColSM()}, offset: <#if LayoutPos.getColSMOffset() != -1>${LayoutPos.getColSMOffset()}<#else>0</#if>}"</#if><#if LayoutPos.getColMD() != -1> :md="{ span: ${LayoutPos.getColMD()}, offset: <#if LayoutPos.getColMDOffset() != -1>${LayoutPos.getColMDOffset()}<#else>0</#if> }"</#if><#if LayoutPos.getColLG() != -1> :lg="{ span: ${LayoutPos.getColLG()}, offset: <#if LayoutPos.getColLGOffset() != -1>${LayoutPos.getColLGOffset()}<#else>0</#if> }"</#if>> <i-col<#if LayoutPos.getColXS() != -1> :xs="{ span: ${LayoutPos.getColXS()}, offset: <#if LayoutPos.getColXSOffset() != -1>${LayoutPos.getColXSOffset()}<#else>0</#if>}"</#if><#if LayoutPos.getColSM() != -1> :sm="{ span: ${LayoutPos.getColSM()}, offset: <#if LayoutPos.getColSMOffset() != -1>${LayoutPos.getColSMOffset()}<#else>0</#if>}"</#if><#if LayoutPos.getColMD() != -1> :md="{ span: ${LayoutPos.getColMD()}, offset: <#if LayoutPos.getColMDOffset() != -1>${LayoutPos.getColMDOffset()}<#else>0</#if> }"</#if><#if LayoutPos.getColLG() != -1> :lg="{ span: ${LayoutPos.getColLG()}, offset: <#if LayoutPos.getColLGOffset() != -1>${LayoutPos.getColLGOffset()}<#else>0</#if> }"</#if>>
<card :bordered="false" dis-hover :padding="0"> <card class="portlet-card" :bordered="false" dis-hover :padding="0">
<#if portlet.isShowTitleBar() && portlet.getTitle()?has_content> <#if portlet.isShowTitleBar() && portlet.getTitle()?has_content>
<p slot='title'> <p slot='title'>
${portlet.getTitle()} ${portlet.getTitle()}
...@@ -34,7 +34,7 @@ ${P.getCtrlCode(portlet, 'CONTROL.html').code} ...@@ -34,7 +34,7 @@ ${P.getCtrlCode(portlet, 'CONTROL.html').code}
</card> </card>
</i-col> </i-col>
<#else> <#else>
<card :bordered="false" dis-hover :padding="0"> <card class="portlet-card" :bordered="false" dis-hover :padding="0">
<#if portlet.isShowTitleBar() && portlet.getTitle()?has_content><#t> <#if portlet.isShowTitleBar() && portlet.getTitle()?has_content><#t>
<p slot='title'> <p slot='title'>
${portlet.getTitle()} ${portlet.getTitle()}
...@@ -49,7 +49,7 @@ ${P.getCtrlCode(portlet, 'CONTROL.html').code} ...@@ -49,7 +49,7 @@ ${P.getCtrlCode(portlet, 'CONTROL.html').code}
</card> </card>
</#if> </#if>
<#if layout == 'FLEX'> <#if layout == 'FLEX'>
<card :bordered="false" dis-hover :padding="0"> <card class="portlet-card" :bordered="false" dis-hover :padding="0">
<#if portlet.isShowTitleBar() && portlet.getTitle()?has_content><#t> <#if portlet.isShowTitleBar() && portlet.getTitle()?has_content><#t>
<p slot='title'> <p slot='title'>
${portlet.getTitle()} ${portlet.getTitle()}
......
...@@ -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>
{ {
......
此差异已折叠。
...@@ -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 ;
} }
...@@ -230,7 +230,6 @@ ...@@ -230,7 +230,6 @@
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 +246,7 @@ ...@@ -247,7 +246,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 +255,7 @@ ...@@ -256,7 +255,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 +271,7 @@ ...@@ -272,7 +271,7 @@
* *
* @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected created() { public created() {
this.afterCreated(); this.afterCreated();
} }
...@@ -281,7 +280,7 @@ ...@@ -281,7 +280,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 +327,7 @@ ...@@ -328,7 +327,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
protected destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
} }
...@@ -337,7 +336,7 @@ ...@@ -337,7 +336,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 +351,7 @@ ...@@ -352,7 +351,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 +361,7 @@ ...@@ -362,7 +361,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 +371,7 @@ ...@@ -372,7 +371,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);
} }
......
...@@ -7,6 +7,7 @@ ${item.render.code} ...@@ -7,6 +7,7 @@ ${item.render.code}
<app-form-druipart <app-form-druipart
<#if item.getPSSysCss?? && item.getPSSysCss()??>class="${item.getPSSysCss().getCssName()}"</#if> <#if item.getPSSysCss?? && item.getPSSysCss()??>class="${item.getPSSysCss().getCssName()}"</#if>
:formState="formState" :formState="formState"
:isForbidLoad="this.data.srfuf === '0'"
paramItem='<#if item.getParamItem()??>${item.getParamItem()}<#else>${appde.getCodeName()?lower_case}</#if>' paramItem='<#if item.getParamItem()??>${item.getParamItem()}<#else>${appde.getCodeName()?lower_case}</#if>'
:parentdata='<#if dritem.getParentDataJO?? && dritem.getParentDataJO()??>${dritem.getParentDataJO()}<#else>{}</#if>' :parentdata='<#if dritem.getParentDataJO?? && dritem.getParentDataJO()??>${dritem.getParentDataJO()}<#else>{}</#if>'
:parameters="[ :parameters="[
......
...@@ -29,17 +29,13 @@ ...@@ -29,17 +29,13 @@
display: inline; display: inline;
} }
.el-table { .el-table {
th{ .quick-toolbar{
padding: 0px; display: inline-block;
.cell{ button{
font-size: 14px; background: #ebf3fb;
} color: #2575ca;
border: 0;
} }
td{
padding: 3px 0;
}
tr .el-table-column--selection .cell{
padding: 0;
} }
.el-tooltip{ .el-tooltip{
.ivu-form-item{ .ivu-form-item{
...@@ -69,12 +65,23 @@ ...@@ -69,12 +65,23 @@
position: absolute; position: absolute;
left: 0; left: 0;
} }
.batch-toolbar{
position: absolute;
left: 105px;
>.toolbar-container{
button {
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
margin-top: 0;
margin-bottom: 0;
}
} }
.el-table__body-wrapper{
height: calc(100% - 36px) !important;
} }
.el-table__empty-block{ }
height: auto !important; .el-table__body-wrapper{
height: calc(100% - 45px) !important;
} }
} }
.ivu-modal-content{ .ivu-modal-content{
...@@ -86,6 +93,7 @@ ...@@ -86,6 +93,7 @@
} }
<#ibizinclude> <#ibizinclude>
../@MACRO/CSS/DEFAULT.less.ftl ../@MACRO/CSS/DEFAULT.less.ftl
</#ibizinclude> </#ibizinclude>
\ No newline at end of file
...@@ -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) {
...@@ -309,7 +309,7 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi ...@@ -309,7 +309,7 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
if(response.data){ if(response.data){
Object.assign(response.data,{srfuf:'0'}); Object.assign(response.data,{srfuf:'0'});
//仿真主键数据 //仿真主键数据
response.data.${appde.getCodeName()?lower_case} = Util.createUUID(); response.data.${appde.getKeyPSAppDEField().getCodeName()?lower_case} = Util.createUUID();
} }
this.handleResponse(action, response, true); this.handleResponse(action, response, true);
this.mergeDefaults(response); this.mergeDefaults(response);
......
<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>
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册