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

部件Base注释修改

上级 ec8260b6
...@@ -44,7 +44,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -44,7 +44,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* 名称 * 名称
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public name?: string; @Prop() public name?: string;
...@@ -52,7 +52,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -52,7 +52,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}')}Base
*/ */
@Prop() public viewState!: Subject<ViewState>; @Prop() public viewState!: Subject<ViewState>;
...@@ -60,7 +60,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -60,7 +60,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* 应用上下文 * 应用上下文
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public context: any; @Prop() public context: any;
...@@ -68,7 +68,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -68,7 +68,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* 视图参数 * 视图参数
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public viewparams: any; @Prop() public viewparams: any;
...@@ -77,7 +77,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -77,7 +77,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* *
* @public * @public
* @type {(Subscription | undefined)} * @type {(Subscription | undefined)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewStateEvent: Subscription | undefined; public viewStateEvent: Subscription | undefined;
...@@ -85,7 +85,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -85,7 +85,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* 获取部件类型 * 获取部件类型
* *
* @returns {string} * @returns {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getControlType(): string { public getControlType(): string {
return '${ctrl.getControlType()}' return '${ctrl.getControlType()}'
...@@ -103,7 +103,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -103,7 +103,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* ${srfclassname('${appCounter.getCodeName()}')}CounterService计数器服务对象 * ${srfclassname('${appCounter.getCodeName()}')}CounterService计数器服务对象
* *
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService} * @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ${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>
...@@ -113,7 +113,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -113,7 +113,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* 计数器服务对象集合 * 计数器服务对象集合
* *
* @type {Array<*>} * @type {Array<*>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public counterServiceArray:Array<any> = [${counterRefs}]; public counterServiceArray:Array<any> = [${counterRefs}];
</#if> </#if>
...@@ -122,7 +122,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -122,7 +122,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}')}Base
*/ */
public 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??>
...@@ -131,7 +131,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -131,7 +131,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}')}Base
*/ */
public 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>
...@@ -146,7 +146,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme ...@@ -146,7 +146,7 @@ export default class ${srfclassname('${ctrl.codeName}')}Base extends Vue impleme
* *
* @param {*} [args={}] * @param {*} [args={}]
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ${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)??>
...@@ -192,7 +192,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -192,7 +192,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* 关闭视图 * 关闭视图
* *
* @param {any} args * @param {any} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public closeView(args: any): void { public closeView(args: any): void {
let _this: any = this; let _this: any = this;
...@@ -202,7 +202,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -202,7 +202,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
/** /**
* 计数器刷新 * 计数器刷新
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public counterRefresh(){ public counterRefresh(){
const _this:any =this; const _this:any =this;
......
...@@ -44,7 +44,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -44,7 +44,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* 名称 * 名称
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public name?: string; @Prop() public name?: string;
...@@ -52,7 +52,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -52,7 +52,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* 视图通讯对象 * 视图通讯对象
* *
* @type {Subject<ViewState>} * @type {Subject<ViewState>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public viewState!: Subject<ViewState>; @Prop() public viewState!: Subject<ViewState>;
...@@ -60,7 +60,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -60,7 +60,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* 应用上下文 * 应用上下文
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public context: any; @Prop() public context: any;
...@@ -68,7 +68,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -68,7 +68,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* 视图参数 * 视图参数
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public viewparams: any; @Prop() public viewparams: any;
...@@ -77,7 +77,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -77,7 +77,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* *
* @public * @public
* @type {(Subscription | undefined)} * @type {(Subscription | undefined)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewStateEvent: Subscription | undefined; public viewStateEvent: Subscription | undefined;
...@@ -85,7 +85,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -85,7 +85,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* 获取部件类型 * 获取部件类型
* *
* @returns {string} * @returns {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getControlType(): string { public getControlType(): string {
return '${ctrl.getControlType()}' return '${ctrl.getControlType()}'
...@@ -103,7 +103,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -103,7 +103,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* ${srfclassname('${appCounter.getCodeName()}')}CounterService计数器服务对象 * ${srfclassname('${appCounter.getCodeName()}')}CounterService计数器服务对象
* *
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService} * @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ${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>
...@@ -113,7 +113,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -113,7 +113,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* 计数器服务对象集合 * 计数器服务对象集合
* *
* @type {Array<*>} * @type {Array<*>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public counterServiceArray:Array<any> = [${counterRefs}]; public counterServiceArray:Array<any> = [${counterRefs}];
</#if> </#if>
...@@ -122,7 +122,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -122,7 +122,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}')}Base
*/ */
public 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??>
...@@ -131,7 +131,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -131,7 +131,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}')}Base
*/ */
public 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>
...@@ -146,7 +146,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get ...@@ -146,7 +146,7 @@ export default class <#if ctrl.getPSAppDataEntity()??>${srfclassname('${ctrl.get
* *
* @param {*} [args={}] * @param {*} [args={}]
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ${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)??>
...@@ -192,7 +192,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -192,7 +192,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
* 关闭视图 * 关闭视图
* *
* @param {any} args * @param {any} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public closeView(args: any): void { public closeView(args: any): void {
let _this: any = this; let _this: any = this;
...@@ -202,7 +202,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -202,7 +202,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
/** /**
* 计数器刷新 * 计数器刷新
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public counterRefresh(){ public counterRefresh(){
const _this:any =this; const _this:any =this;
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
* 是否初始化 * 是否初始化
* *
* @returns {any} * @returns {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isInit: any = { public isInit: any = {
<#list ctrl.getPSControls() as tabviewpanel> <#list ctrl.getPSControls() as tabviewpanel>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return []; return [];
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
* 从父传入的当前分页面板panel值 * 从父传入的当前分页面板panel值
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public tabValue?: string; @Prop() public tabValue?: string;
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Watch('tabValue') @Watch('tabValue')
public onValueChange(newVal: any, oldVal: any) { public onValueChange(newVal: any, oldVal: any) {
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
* *
* @public * @public
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public action:any = ''; public action:any = '';
...@@ -107,14 +107,14 @@ ...@@ -107,14 +107,14 @@
* 被激活的分页面板 * 被激活的分页面板
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public 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>';
/** /**
* 分页视图面板数据变更 * 分页视图面板数据变更
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public tabViewPanelDatasChange(){ public tabViewPanelDatasChange(){
this.counterRefresh(); this.counterRefresh();
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
* vue 生命周期 * vue 生命周期
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
//设置分页导航srfparentdename和srfparentkey //设置分页导航srfparentdename和srfparentkey
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
* *
* @param {*} $event * @param {*} $event
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public tabPanelClick($event: any) { public tabPanelClick($event: any) {
if (!$event) { if (!$event) {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return []; return [];
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
* 是否被激活 * 是否被激活
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isActivied: boolean = true; public isActivied: boolean = true;
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
* 局部上下文 * 局部上下文
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public localContext: any = <#if ctrl.getPSNavigateContexts?? && ctrl.getPSNavigateContexts()??><@getNavigateContext ctrl /><#else>null</#if>; public localContext: any = <#if ctrl.getPSNavigateContexts?? && ctrl.getPSNavigateContexts()??><@getNavigateContext ctrl /><#else>null</#if>;
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
* 局部视图参数 * 局部视图参数
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public localViewParam: any = <#if ctrl.getPSNavigateParams?? && ctrl.getPSNavigateParams()??><@getNavigateParams ctrl /><#else>null</#if>; public localViewParam: any = <#if ctrl.getPSNavigateParams?? && ctrl.getPSNavigateParams()??><@getNavigateParams ctrl /><#else>null</#if>;
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
* 传入上下文 * 传入上下文
* *
* @type {string} * @type {string}
* @memberof TabExpViewtabviewpanel * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewdata: string = JSON.stringify(this.context); public viewdata: string = JSON.stringify(this.context);
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
* 视图面板过滤项 * 视图面板过滤项
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public navfilter: string = "<#if ctrl.getNavFilter?? && ctrl.getNavFilter()??>${ctrl.getNavFilter()}</#if>"; public navfilter: string = "<#if ctrl.getNavFilter?? && ctrl.getNavFilter()??>${ctrl.getNavFilter()}</#if>";
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
* vue 生命周期 * vue 生命周期
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
this.initNavParam(); this.initNavParam();
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
/** /**
* 初始化导航参数 * 初始化导航参数
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public initNavParam(){ public initNavParam(){
if(!Object.is(this.navfilter,"")){ if(!Object.is(this.navfilter,"")){
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
/** /**
* 视图数据变化 * 视图数据变化
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewDatasChange($event:any){ public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event); this.$emit('viewpanelDatasChange',$event);
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return this.selections; return this.selections;
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
* 是否默认选中第一条数据 * 是否默认选中第一条数据
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: false }) public 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}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
* 部件行为--create * 部件行为--create
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public createAction!: string; @Prop() public createAction!: string;
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
* 部件行为--remove * 部件行为--remove
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public removeAction!: string; @Prop() public removeAction!: string;
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
* 部件行为--update * 部件行为--update
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public updateAction!: string; @Prop() public updateAction!: string;
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
* 部件行为--fetch * 部件行为--fetch
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
* 打开新建数据视图 * 打开新建数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public newdata: any; @Prop() public newdata: any;
</#if> </#if>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
* 打开编辑数据视图 * 打开编辑数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public opendata: any; @Prop() public opendata: any;
</#if> </#if>
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
* this引用 * this引用
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public thisRef: any = this; public thisRef: any = this;
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
* 当前页 * 当前页
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public curPage: number = 1; public curPage: number = 1;
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
* 数据 * 数据
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public items: any[] = []; public items: any[] = [];
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
* 是否支持分页 * 是否支持分页
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isEnablePagingBar: boolean = true; public isEnablePagingBar: boolean = true;
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
* 分页条数 * 分页条数
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public limit: number = ${ctrl.getPagingSize()?c}; public limit: number = ${ctrl.getPagingSize()?c};
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
* 总条数 * 总条数
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public totalRecord: number = 0; public totalRecord: number = 0;
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
* 加载的数据是否附加在items之后 * 加载的数据是否附加在items之后
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isAddBehind:boolean = false; public isAddBehind:boolean = false;
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
* 排序方向 * 排序方向
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public sortDir:string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()?lower_case}</#if>'; public sortDir:string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()?lower_case}</#if>';
...@@ -186,21 +186,21 @@ ...@@ -186,21 +186,21 @@
* 排序字段 * 排序字段
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public sortField: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>'; public sortField: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>';
/** /**
* 选中数组 * 选中数组
* @type {Array<any>} * @type {Array<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selections: Array<any> = []; public selections: Array<any> = [];
/** /**
* Vue声明周期,组件挂载完毕 * Vue声明周期,组件挂载完毕
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public mounted () { public mounted () {
this.afterMounted(); this.afterMounted();
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
/** /**
* 执行mounted后的逻辑 * 执行mounted后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterMounted () { public afterMounted () {
this.$el.addEventListener('scroll', ()=> { this.$el.addEventListener('scroll', ()=> {
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
/** /**
* Vue声明周期,组件创建完毕 * Vue声明周期,组件创建完毕
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated() this.afterCreated()
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -250,7 +250,7 @@ ...@@ -250,7 +250,7 @@
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
/** /**
* 加载更多 * 加载更多
* *
* @memberof Mob * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public loadMore(){ public loadMore(){
if(this.totalRecord>this.items.length) if(this.totalRecord>this.items.length)
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
* *
* @public * @public
* @param {*} [arg={}] * @param {*} [arg={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
* *
* @param {any[]} datas * @param {any[]} datas
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
...@@ -453,7 +453,7 @@ ...@@ -453,7 +453,7 @@
* *
* @param {*} $event * @param {*} $event
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async save(args: any[], params?: any, $event?: any, xData?: any){ public async save(args: any[], params?: any, $event?: any, xData?: any){
let _this = this; let _this = this;
...@@ -507,7 +507,7 @@ ...@@ -507,7 +507,7 @@
* @param {any} item 当前列数据 * @param {any} item 当前列数据
* @param {any} $event 面板事件数据 * @param {any} $event 面板事件数据
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onPanelDataChange(item:any,$event:any) { public onPanelDataChange(item:any,$event:any) {
Object.assign(item, $event, {rowDataState:'update'}); Object.assign(item, $event, {rowDataState:'update'});
...@@ -515,7 +515,7 @@ ...@@ -515,7 +515,7 @@
/** /**
* 选择数据 * 选择数据
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
* *
*/ */
public handleClick(args: any) { public handleClick(args: any) {
...@@ -526,7 +526,7 @@ ...@@ -526,7 +526,7 @@
/** /**
* 双击数据 * 双击数据
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
* *
*/ */
public handleDblClick(args: any) { public handleDblClick(args: any) {
...@@ -535,7 +535,7 @@ ...@@ -535,7 +535,7 @@
/** /**
* 触发事件 * 触发事件
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
* *
*/ */
public selectchange() { public selectchange() {
...@@ -551,7 +551,7 @@ ...@@ -551,7 +551,7 @@
/** /**
* 清除当前所有选中状态 * 清除当前所有选中状态
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public clearSelection(){ public clearSelection(){
this.items.map((item: any) => { this.items.map((item: any) => {
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
* 部件行为--init * 部件行为--init
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public initAction!: string; @Prop() public initAction!: string;
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
* 部件行为--finish * 部件行为--finish
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public finishAction!: string; @Prop() public finishAction!: string;
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return [this.formParam]; return [this.formParam];
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
* 获取单项数据 * 获取单项数据
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return this.formParam; return this.formParam;
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
* *
* @public * @public
* @type {Subject<{action: string, data: any}>} * @type {Subject<{action: string, data: any}>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public wizardState: Subject<ViewState> = new Subject(); public wizardState: Subject<ViewState> = new Subject();
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
* 当前激活表单 * 当前激活表单
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
<#if ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getFirstPSDEWizardForm()??> <#if ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getFirstPSDEWizardForm()??>
<#assign firstForm = ctrl.getPSDEWizard().getFirstPSDEWizardForm()> <#assign firstForm = ctrl.getPSDEWizard().getFirstPSDEWizardForm()>
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
* 向导表单参数 * 向导表单参数
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public formParam: any = {}; public formParam: any = {};
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
* *
* @public * @public
* @type {Array<string>} * @type {Array<string>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public historyForms: Array<string> = []; public historyForms: Array<string> = [];
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
* 步骤行为集合 * 步骤行为集合
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public stepActions: any = {}; public stepActions: any = {};
...@@ -137,21 +137,21 @@ ...@@ -137,21 +137,21 @@
* 向导表单集合 * 向导表单集合
* *
* @type {Array<any>} * @type {Array<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public wizardForms: Array<any> = []; public wizardForms: Array<any> = [];
/** /**
* 当前状态 * 当前状态
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public curState = ''; public curState = '';
/** /**
* Vue声明周期(处理组件的输入属性) * Vue声明周期(处理组件的输入属性)
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created(): void { public created(): void {
this.regFormActions(); this.regFormActions();
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
/** /**
* 注册表单步骤行为 * 注册表单步骤行为
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public regFormActions() { public regFormActions() {
<#if ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getPSDEWizardForms()??> <#if ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getPSDEWizardForms()??>
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
/** /**
* 注册表单步骤行为 * 注册表单步骤行为
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public regFormAction(name: string, actions: Array<string>) { public regFormAction(name: string, actions: Array<string>) {
this.stepActions[name] = actions; this.stepActions[name] = actions;
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
/** /**
* 初始化行为 * 初始化行为
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public doInit(opt: any = {}) { public doInit(opt: any = {}) {
<#if ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getInitPSDEAction()??> <#if ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getInitPSDEAction()??>
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
/** /**
* 表单加载 * 表单加载
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public formLoad() { public formLoad() {
if(this.activeForm) { if(this.activeForm) {
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
/** /**
* 完成行为 * 完成行为
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public doFinish() { public doFinish() {
<#if ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getFinishPSDEAction()??> <#if ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getFinishPSDEAction()??>
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
* *
* @param {*} args * @param {*} args
* @param {string} name * @param {string} name
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ${ctrl.name}_formload(args: any, name: string, $event2?: any) { public ${ctrl.name}_formload(args: any, name: string, $event2?: any) {
if(args) { if(args) {
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
* *
* @param {*} args * @param {*} args
* @param {string} name * @param {string} name
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ${ctrl.name}_formsave(args: any, name: string, $event2?: any) { public ${ctrl.name}_formsave(args: any, name: string, $event2?: any) {
Object.assign(this.formParam, args); Object.assign(this.formParam, args);
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
/** /**
* 获取下一步向导表单 * 获取下一步向导表单
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getNextForm() { public getNextForm() {
let index = this.wizardForms.indexOf(this.activeForm); let index = this.wizardForms.indexOf(this.activeForm);
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
/** /**
* 上一步 * 上一步
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onClickPrev() { public onClickPrev() {
const length = this.historyForms.length; const length = this.historyForms.length;
...@@ -344,7 +344,7 @@ ...@@ -344,7 +344,7 @@
/** /**
* 下一步 * 下一步
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onClickNext() { public onClickNext() {
if(this.activeForm) { if(this.activeForm) {
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
/** /**
* 完成 * 完成
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onClickFinish() { public onClickFinish() {
if(this.activeForm) { if(this.activeForm) {
...@@ -383,7 +383,7 @@ ...@@ -383,7 +383,7 @@
* 是否禁用 * 是否禁用
* *
* @param {string} type * @param {string} type
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isDisabled(type: string) { public isDisabled(type: string) {
const actions: Array<string> = this.stepActions[this.activeForm] const actions: Array<string> = this.stepActions[this.activeForm]
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return []; return [];
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
* 部件行为--update * 部件行为--update
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public updateAction!: string; @Prop() public updateAction!: string;
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
* 部件行为--fetch * 部件行为--fetch
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
* 部件行为--remove * 部件行为--remove
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public removeAction!: string; @Prop() public removeAction!: string;
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
* 部件行为--load * 部件行为--load
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loadAction!: string; @Prop() public loadAction!: string;
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
* 部件行为--loaddraft * 部件行为--loaddraft
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loaddraftAction!: string; @Prop() public loaddraftAction!: string;
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
* 部件行为--create * 部件行为--create
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public createAction!: string; @Prop() public createAction!: string;
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
* 刷新数据 * 刷新数据
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public saveRefView?: number; @Prop() public saveRefView?: number;
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Watch('saveRefView') @Watch('saveRefView')
onSaveRefView(newVal: any, oldVal: any) { onSaveRefView(newVal: any, oldVal: any) {
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
* 对象转字符串 * 对象转字符串
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public toString(item:any): string{ public toString(item:any): string{
return JSON.stringify(item); return JSON.stringify(item);
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
* 视图名称 * 视图名称
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewname: string = '<#if ctrl.getEmbeddedPSAppView()??>${srffilepath2(ctrl.getEmbeddedPSAppView().getCodeName())}</#if>'; public viewname: string = '<#if ctrl.getEmbeddedPSAppView()??>${srffilepath2(ctrl.getEmbeddedPSAppView().getCodeName())}</#if>';
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
* 获取数据对象 * 获取数据对象
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public items: any[] = []; public items: any[] = [];
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
* 计数器 * 计数器
* *
* @type number * @type number
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public count: number = 0; public count: number = 0;
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public deResParameters: any[] = []; public deResParameters: any[] = [];
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public parameters: any[] = []; public parameters: any[] = [];
<#else> <#else>
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public deResParameters: any[] = [ public deResParameters: any[] = [
<#-- BEGIN:存在父关系路径 --> <#-- BEGIN:存在父关系路径 -->
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public 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}' },
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
/** /**
* vue 声明周期 * vue 声明周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
* *
* @public * @public
* @param {any[]} datas * @param {any[]} datas
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public doItems(datas: any[]): void { public doItems(datas: any[]): void {
const [{ pathName, parameterName }] = this.parameters; const [{ pathName, parameterName }] = this.parameters;
...@@ -337,7 +337,7 @@ ...@@ -337,7 +337,7 @@
* *
* @public * @public
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(data: any): void { public load(data: any): void {
if(!this.fetchAction){ if(!this.fetchAction){
...@@ -372,7 +372,7 @@ ...@@ -372,7 +372,7 @@
/** /**
* 增加数据 * 增加数据
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public handleAdd(){ public handleAdd(){
if(!this.loaddraftAction){ if(!this.loaddraftAction){
...@@ -402,7 +402,7 @@ ...@@ -402,7 +402,7 @@
* *
* @param {*} item * @param {*} item
* @param {boolean} $event * @param {boolean} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public 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));
...@@ -421,7 +421,7 @@ ...@@ -421,7 +421,7 @@
/** /**
* 部件抛出事件 * 部件抛出事件
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewDataChange($event:any){ public viewDataChange($event:any){
if($event){ if($event){
...@@ -456,7 +456,7 @@ ...@@ -456,7 +456,7 @@
* 视图加载完成 * 视图加载完成
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewload($event:any){ public viewload($event:any){
console.log('视图加载完成'); console.log('视图加载完成');
...@@ -466,7 +466,7 @@ ...@@ -466,7 +466,7 @@
* editview9 视图数据变化 * editview9 视图数据变化
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewdirty(item:any,$event:any){ public viewdirty(item:any,$event:any){
// editview9 视图数据变化; // editview9 视图数据变化;
......
...@@ -134,7 +134,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -134,7 +134,7 @@ import NavDataService from '@/service/app/navdata-service';
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return []; return [];
...@@ -144,7 +144,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -144,7 +144,7 @@ import NavDataService from '@/service/app/navdata-service';
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -154,7 +154,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -154,7 +154,7 @@ import NavDataService from '@/service/app/navdata-service';
* 导航模式(route:面包屑模式、tab:分页导航模式) * 导航模式(route:面包屑模式、tab:分页导航模式)
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({default:'tab'}) public navModel?:string; @Prop({default:'tab'}) public navModel?:string;
...@@ -162,7 +162,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -162,7 +162,7 @@ import NavDataService from '@/service/app/navdata-service';
* 视图标识 * 视图标识
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public viewtag!:string; @Prop() public viewtag!:string;
...@@ -171,7 +171,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -171,7 +171,7 @@ import NavDataService from '@/service/app/navdata-service';
* *
* @public * @public
* @type {${srfclassname('${ctrl.codeName}')}Model} * @type {${srfclassname('${ctrl.codeName}')}Model}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public menuMode: ${srfclassname('${ctrl.codeName}')}Model = new ${srfclassname('${ctrl.codeName}')}Model(); public menuMode: ${srfclassname('${ctrl.codeName}')}Model = new ${srfclassname('${ctrl.codeName}')}Model();
...@@ -179,7 +179,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -179,7 +179,7 @@ import NavDataService from '@/service/app/navdata-service';
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -188,7 +188,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -188,7 +188,7 @@ import NavDataService from '@/service/app/navdata-service';
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Provide() @Provide()
public menus: any[] = []; public menus: any[] = [];
...@@ -197,7 +197,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -197,7 +197,7 @@ import NavDataService from '@/service/app/navdata-service';
* 菜单收缩改变 * 菜单收缩改变
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Model() public collapsechange?: boolean; @Model() public collapsechange?: boolean;
...@@ -206,7 +206,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -206,7 +206,7 @@ import NavDataService from '@/service/app/navdata-service';
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Watch('collapsechange') @Watch('collapsechange')
onCollapsechangeChange(newVal: any, oldVal: any) { onCollapsechangeChange(newVal: any, oldVal: any) {
...@@ -219,7 +219,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -219,7 +219,7 @@ import NavDataService from '@/service/app/navdata-service';
* 当前模式,菜单在顶部还是在底部 * 当前模式,菜单在顶部还是在底部
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() mode: any; @Prop() mode: any;
...@@ -227,7 +227,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -227,7 +227,7 @@ import NavDataService from '@/service/app/navdata-service';
* 当前菜单是否在默认视图上 * 当前菜单是否在默认视图上
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: false }) isDefaultPage?: boolean; @Prop({ default: false }) isDefaultPage?: boolean;
...@@ -235,7 +235,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -235,7 +235,7 @@ import NavDataService from '@/service/app/navdata-service';
* 默认打开视图 * 默认打开视图
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() defPSAppView: any; @Prop() defPSAppView: any;
...@@ -243,7 +243,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -243,7 +243,7 @@ import NavDataService from '@/service/app/navdata-service';
* 默认激活的index * 默认激活的index
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Provide() defaultActive: any = null; @Provide() defaultActive: any = null;
...@@ -251,7 +251,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -251,7 +251,7 @@ import NavDataService from '@/service/app/navdata-service';
* 当前选中主题 * 当前选中主题
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() selectTheme: any; @Prop() selectTheme: any;
...@@ -259,7 +259,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -259,7 +259,7 @@ import NavDataService from '@/service/app/navdata-service';
* 默认打开的index数组 * 默认打开的index数组
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Provide() public defaultOpeneds: any[] = []; @Provide() public defaultOpeneds: any[] = [];
...@@ -267,7 +267,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -267,7 +267,7 @@ import NavDataService from '@/service/app/navdata-service';
* 是否展开 * 是否展开
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Provide() public isCollapse: boolean = false; @Provide() public isCollapse: boolean = false;
...@@ -275,7 +275,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -275,7 +275,7 @@ import NavDataService from '@/service/app/navdata-service';
* 触发方式,默认click * 触发方式,默认click
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Provide() trigger: string = 'click'; @Provide() trigger: string = 'click';
...@@ -283,13 +283,13 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -283,13 +283,13 @@ import NavDataService from '@/service/app/navdata-service';
* 计数器数据 * 计数器数据
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public counterdata: any = {}; public counterdata: any = {};
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -298,7 +298,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -298,7 +298,7 @@ import NavDataService from '@/service/app/navdata-service';
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (Object.is(this.mode, 'horizontal')) { if (Object.is(this.mode, 'horizontal')) {
...@@ -317,7 +317,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -317,7 +317,7 @@ import NavDataService from '@/service/app/navdata-service';
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -326,7 +326,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -326,7 +326,7 @@ import NavDataService from '@/service/app/navdata-service';
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -343,7 +343,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -343,7 +343,7 @@ import NavDataService from '@/service/app/navdata-service';
* 处理菜单默认选中项 * 处理菜单默认选中项
* *
* @public * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public doMenuSelect(): void { public doMenuSelect(): void {
if (!this.isDefaultPage) { if (!this.isDefaultPage) {
...@@ -385,7 +385,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -385,7 +385,7 @@ import NavDataService from '@/service/app/navdata-service';
* @param {any[]} items * @param {any[]} items
* @param {string} appfunctag * @param {string} appfunctag
* @returns {boolean} * @returns {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public computeMenuSelect(items: any[], appfunctag: string): boolean { public computeMenuSelect(items: any[], appfunctag: string): boolean {
const appFuncs: any[] = this.menuMode.getAppFuncs(); const appFuncs: any[] = this.menuMode.getAppFuncs();
...@@ -422,7 +422,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -422,7 +422,7 @@ import NavDataService from '@/service/app/navdata-service';
* @param {any[]} items * @param {any[]} items
* @param {string} name * @param {string} name
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public compute(items: any[], name: string) { public compute(items: any[], name: string) {
const item: any = {}; const item: any = {};
...@@ -449,7 +449,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -449,7 +449,7 @@ import NavDataService from '@/service/app/navdata-service';
* *
* @public * @public
* @param {*} item * @param {*} item
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public setHideSideBar(item: any): void { public setHideSideBar(item: any): void {
<#if view.isDefaultPage?? && view.isDefaultPage()> <#if view.isDefaultPage?? && view.isDefaultPage()>
...@@ -465,7 +465,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -465,7 +465,7 @@ import NavDataService from '@/service/app/navdata-service';
* @param {*} index * @param {*} index
* @param {any[]} indexs * @param {any[]} indexs
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public select(index: any, indexs: any[]) { public select(index: any, indexs: any[]) {
let item = this.compute(this.menus, index); let item = this.compute(this.menus, index);
...@@ -480,7 +480,7 @@ import NavDataService from '@/service/app/navdata-service'; ...@@ -480,7 +480,7 @@ import NavDataService from '@/service/app/navdata-service';
* *
* @public * @public
* @param {*} item 菜单数据 * @param {*} item 菜单数据
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public click(item: any) { public click(item: any) {
if (item) { if (item) {
...@@ -518,7 +518,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -518,7 +518,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
* 数据加载 * 数据加载
* *
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(data: any) { public load(data: any) {
this.handleMenusResource(this.menuMode.getAppMenuItems()); this.handleMenusResource(this.menuMode.getAppMenuItems());
...@@ -528,7 +528,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -528,7 +528,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
* 通过统一资源标识计算菜单 * 通过统一资源标识计算菜单
* *
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public handleMenusResource(inputMenus:Array<any>){ public handleMenusResource(inputMenus:Array<any>){
if(Environment.enablePermissionValid){ if(Environment.enablePermissionValid){
...@@ -545,7 +545,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -545,7 +545,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
* 计算有效菜单项 * 计算有效菜单项
* *
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public computedEffectiveMenus(inputMenus:Array<any>){ public computedEffectiveMenus(inputMenus:Array<any>){
inputMenus.forEach((_item:any) =>{ inputMenus.forEach((_item:any) =>{
...@@ -563,7 +563,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -563,7 +563,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
* *
* @public * @public
* @param {any[]} items * @param {any[]} items
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public dataProcess(items: any[]): void { public dataProcess(items: any[]): void {
items.forEach((_item: any) => { items.forEach((_item: any) => {
...@@ -581,7 +581,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -581,7 +581,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
* *
* @readonly * @readonly
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
get popperClass(): string { get popperClass(): string {
return 'app-popper-menu ' + this.selectTheme; return 'app-popper-menu ' + this.selectTheme;
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return this.items; return this.items;
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return this.selection; return this.selection;
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
* 加载行为 * 加载行为
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loadAction?: string; @Prop() public loadAction?: string;
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
* 数据选中项 * 数据选中项
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selection: any = {}; public selection: any = {};
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
* 关系栏数据项 * 关系栏数据项
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public items: any[] = [ public items: any[] = [
<#if view.hasPSControl('form')> <#if view.hasPSControl('form')>
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
* 默认打开项 * 默认打开项
* *
* @type {string[]} * @type {string[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public defaultOpeneds: string[] = []; public defaultOpeneds: string[] = [];
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
* *
* @public * @public
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public parentData: any = {}; public parentData: any = {};
...@@ -144,14 +144,14 @@ ...@@ -144,14 +144,14 @@
* 宽度 * 宽度
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public width: number = <#if ctrl.getWidth() gt 240><#else>240</#if>; public width: number = <#if ctrl.getWidth() gt 240><#else>240</#if>;
/** /**
* 生命周期 * 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created(): void { public created(): void {
if (this.viewState) { if (this.viewState) {
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
* @public * @public
* @param {*} [arg={}] * @param {*} [arg={}]
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDRBarItem(arg: any = {}): any { public getDRBarItem(arg: any = {}): any {
let expmode = arg.nodetype; let expmode = arg.nodetype;
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
* *
* @public * @public
* @param {any[]} items * @param {any[]} items
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public dataProcess(items: any[]): void { public dataProcess(items: any[]): void {
items.forEach((_item: any) => { items.forEach((_item: any) => {
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
* @param {any[]} items * @param {any[]} items
* @param {string} id * @param {string} id
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getItem(items: any[], id: string): any { public getItem(items: any[], id: string): any {
const item: any = {}; const item: any = {};
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
* 节点选中 * 节点选中
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onSelect($event: any): void { public onSelect($event: any): void {
const item = this.getItem(this.items, $event); const item = this.getItem(this.items, $event);
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
* 子节点打开 * 子节点打开
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onOpen($event: any): void { public onOpen($event: any): void {
const item = this.getItem(this.items, $event); const item = this.getItem(this.items, $event);
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
* 子节点关闭 * 子节点关闭
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onClose($event: any): void { public onClose($event: any): void {
const item = this.getItem(this.items, $event); const item = this.getItem(this.items, $event);
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
* *
* @param {any[]} items * @param {any[]} items
* @param {boolean} state * @param {boolean} state
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public setItemDisabled(items: any[], state: boolean) { public setItemDisabled(items: any[], state: boolean) {
items.forEach((item: any) => { items.forEach((item: any) => {
......
...@@ -24,7 +24,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -24,7 +24,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return []; return [];
...@@ -34,7 +34,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -34,7 +34,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -44,7 +44,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -44,7 +44,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator!: boolean; @Prop({ default: true }) public showBusyIndicator!: boolean;
...@@ -52,14 +52,14 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -52,14 +52,14 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* 部件行为--fetch * 部件行为--fetch
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* Vue声明周期(组件初始化完毕) * Vue声明周期(组件初始化完毕)
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -68,7 +68,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -68,7 +68,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -86,7 +86,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -86,7 +86,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -95,7 +95,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -95,7 +95,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
......
...@@ -24,7 +24,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -24,7 +24,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return []; return [];
...@@ -34,7 +34,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -34,7 +34,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -44,7 +44,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -44,7 +44,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator!: boolean; @Prop({ default: true }) public showBusyIndicator!: boolean;
...@@ -52,14 +52,14 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -52,14 +52,14 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
* 部件行为--fetch * 部件行为--fetch
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* Vue声明周期(组件初始化完毕) * Vue声明周期(组件初始化完毕)
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -68,7 +68,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -68,7 +68,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -86,7 +86,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -86,7 +86,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -95,7 +95,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char ...@@ -95,7 +95,7 @@ import { ChartDataSetField,ChartLineSeries,ChartFunnelSeries,ChartPieSeries,Char
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
......
...@@ -95,7 +95,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -95,7 +95,7 @@ import UtilService from '@/utilservice/util-service';
* *
* @public * @public
* @type {(boolean)} * @type {(boolean)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public isEnableCustomized!:boolean; @Prop() public isEnableCustomized!:boolean;
...@@ -104,7 +104,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -104,7 +104,7 @@ import UtilService from '@/utilservice/util-service';
* *
* @public * @public
* @type {(boolean)} * @type {(boolean)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isHasCustomized:boolean = false; public isHasCustomized:boolean = false;
...@@ -113,7 +113,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -113,7 +113,7 @@ import UtilService from '@/utilservice/util-service';
* *
* @public * @public
* @type {(*)} * @type {(*)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public modelDta:any; public modelDta:any;
...@@ -121,7 +121,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -121,7 +121,7 @@ import UtilService from '@/utilservice/util-service';
* modleId * modleId
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public modelId:string = "dashboard_<#if ctrl.getPSAppDataEntity()??>${ctrl.getPSAppDataEntity().getCodeName()?lower_case}<#else>app</#if>_${ctrl.getCodeName()?lower_case}"; public modelId:string = "dashboard_<#if ctrl.getPSAppDataEntity()??>${ctrl.getPSAppDataEntity().getCodeName()?lower_case}<#else>app</#if>_${ctrl.getCodeName()?lower_case}";
...@@ -129,7 +129,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -129,7 +129,7 @@ import UtilService from '@/utilservice/util-service';
* 建构功能服务对象 * 建构功能服务对象
* *
* @type {UtilService} * @type {UtilService}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public utilService:UtilService = new UtilService(); public utilService:UtilService = new UtilService();
...@@ -137,7 +137,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -137,7 +137,7 @@ import UtilService from '@/utilservice/util-service';
* 功能服务名称 * 功能服务名称
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public utilServiceName:string = "<#if ctrl.getPSAppDynaDashboardUtil?? && ctrl.getPSAppDynaDashboardUtil()??>${ctrl.getPSAppDynaDashboardUtil().getCodeName()?lower_case}</#if>"; public utilServiceName:string = "<#if ctrl.getPSAppDynaDashboardUtil?? && ctrl.getPSAppDynaDashboardUtil()??>${ctrl.getPSAppDynaDashboardUtil().getCodeName()?lower_case}</#if>";
...@@ -145,7 +145,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -145,7 +145,7 @@ import UtilService from '@/utilservice/util-service';
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return []; return [];
...@@ -155,7 +155,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -155,7 +155,7 @@ import UtilService from '@/utilservice/util-service';
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return {}; return {};
...@@ -164,7 +164,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -164,7 +164,7 @@ import UtilService from '@/utilservice/util-service';
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -173,7 +173,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -173,7 +173,7 @@ import UtilService from '@/utilservice/util-service';
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -191,21 +191,21 @@ import UtilService from '@/utilservice/util-service'; ...@@ -191,21 +191,21 @@ import UtilService from '@/utilservice/util-service';
/** /**
* 动态设计水平列数 * 动态设计水平列数
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public layoutColNum:number = 12; public layoutColNum:number = 12;
/** /**
* 动态设计单元格高度,80px * 动态设计单元格高度,80px
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public layoutRowH:number = 80; public layoutRowH:number = 80;
/** /**
* 通知状态 * 通知状态
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public notifyState(){ public notifyState(){
this.$nextTick(() =>{ this.$nextTick(() =>{
...@@ -237,7 +237,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -237,7 +237,7 @@ import UtilService from '@/utilservice/util-service';
/** /**
* 加载布局与数据模型 * 加载布局与数据模型
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public loadModel(){ public loadModel(){
if(this.isEnableCustomized){ if(this.isEnableCustomized){
...@@ -273,7 +273,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -273,7 +273,7 @@ import UtilService from '@/utilservice/util-service';
/** /**
* 处理私人定制按钮 * 处理私人定制按钮
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public handleClick(){ public handleClick(){
const view:any ={ const view:any ={
...@@ -298,7 +298,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -298,7 +298,7 @@ import UtilService from '@/utilservice/util-service';
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -307,7 +307,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -307,7 +307,7 @@ import UtilService from '@/utilservice/util-service';
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return this.selections; return this.selections;
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
* 是否默认选中第一条数据 * 是否默认选中第一条数据
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: false }) public 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}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
* 部件行为--create * 部件行为--create
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public createAction!: string; @Prop() public createAction!: string;
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
* 部件行为--remove * 部件行为--remove
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public removeAction!: string; @Prop() public removeAction!: string;
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
* 部件行为--update * 部件行为--update
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public updateAction!: string; @Prop() public updateAction!: string;
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
* 部件行为--fetch * 部件行为--fetch
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
* 打开新建数据视图 * 打开新建数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public newdata: any; @Prop() public newdata: any;
</#if> </#if>
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
* 打开编辑数据视图 * 打开编辑数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public opendata: any; @Prop() public opendata: any;
</#if> </#if>
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
* this引用 * this引用
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public thisRef: any = this; public thisRef: any = this;
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
* 是否单选 * 是否单选
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public isSingleSelect?: boolean; @Prop() public isSingleSelect?: boolean;
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
* 数据 * 数据
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public items: any[] = []; public items: any[] = [];
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
* 是否支持分页 * 是否支持分页
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c};; public isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c};;
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
* 总条数 * 总条数
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public totalRecord: number = 0; public totalRecord: number = 0;
...@@ -197,14 +197,14 @@ ...@@ -197,14 +197,14 @@
* 加载的数据是否附加在items之后 * 加载的数据是否附加在items之后
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isAddBehind:boolean = false; public isAddBehind:boolean = false;
/** /**
* 选中数组 * 选中数组
* @type {Array<any>} * @type {Array<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selections: Array<any> = []; public selections: Array<any> = [];
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
* 当前页 * 当前页
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public curPage: number = 1; public curPage: number = 1;
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
* 分页条数 * 分页条数
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public limit: number = ${ctrl.getPagingSize()?c}; public limit: number = ${ctrl.getPagingSize()?c};
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
* 排序方向 * 排序方向
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public sortDir:string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()?lower_case}</#if>'; public sortDir:string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()?lower_case}</#if>';
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
* 排序字段 * 排序字段
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public sortField: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>'; public sortField: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>';
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
* 排序点击事件 * 排序点击事件
* @param {string} field 属性名 * @param {string} field 属性名
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public sortClick(field:string) { public sortClick(field:string) {
if(this.sortField !== field){ if(this.sortField !== field){
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
* 排序class变更 * 排序class变更
* @param {string} field 属性名 * @param {string} field 属性名
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getsortClass(field:string) { public getsortClass(field:string) {
if(this.sortField !== field || this.sortDir === ''){ if(this.sortField !== field || this.sortDir === ''){
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
/** /**
* Vue声明周期,组件挂载完毕 * Vue声明周期,组件挂载完毕
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public mounted () { public mounted () {
this.afterMounted(); this.afterMounted();
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
/** /**
* 执行mounted后的逻辑 * 执行mounted后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterMounted(){ public afterMounted(){
<#if !ctrl.isEnablePagingBar()> <#if !ctrl.isEnablePagingBar()>
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
/** /**
* Vue声明周期,组件创建完毕 * Vue声明周期,组件创建完毕
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -333,7 +333,7 @@ ...@@ -333,7 +333,7 @@
/** /**
* 加载更多 * 加载更多
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public loadMore(){ public loadMore(){
if(this.totalRecord>this.items.length) if(this.totalRecord>this.items.length)
...@@ -348,7 +348,7 @@ ...@@ -348,7 +348,7 @@
* 刷新 * 刷新
* *
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh(opt: any = {}) { public refresh(opt: any = {}) {
this.curPage = 1; this.curPage = 1;
...@@ -358,7 +358,7 @@ ...@@ -358,7 +358,7 @@
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -384,7 +384,7 @@ ...@@ -384,7 +384,7 @@
* @public * @public
* @param {*} [arg={}] * @param {*} [arg={}]
* @param {boolean} [isReset=false] 是否重置items * @param {boolean} [isReset=false] 是否重置items
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(opt: any = {}, isReset: boolean = false): void { public load(opt: any = {}, isReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
...@@ -450,7 +450,7 @@ ...@@ -450,7 +450,7 @@
* *
* @param {any[]} datas * @param {any[]} datas
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
...@@ -552,7 +552,7 @@ ...@@ -552,7 +552,7 @@
* *
* @param {*} $event * @param {*} $event
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async save(args: any[], params?: any, $event?: any, xData?: any){ public async save(args: any[], params?: any, $event?: any, xData?: any){
let _this = this; let _this = this;
...@@ -606,7 +606,7 @@ ...@@ -606,7 +606,7 @@
* @param {any} item 当前卡片数据 * @param {any} item 当前卡片数据
* @param {any} $event 面板事件数据 * @param {any} $event 面板事件数据
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onPanelDataChange(item:any,$event:any) { public onPanelDataChange(item:any,$event:any) {
Object.assign(item, $event, {rowDataState:'update'}); Object.assign(item, $event, {rowDataState:'update'});
...@@ -614,7 +614,7 @@ ...@@ -614,7 +614,7 @@
/** /**
* 选择数据 * 选择数据
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
* *
*/ */
public handleClick(args: any) { public handleClick(args: any) {
...@@ -631,7 +631,7 @@ ...@@ -631,7 +631,7 @@
/** /**
* 双击数据 * 双击数据
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
* *
*/ */
public handleDblClick(args: any) { public handleDblClick(args: any) {
...@@ -640,7 +640,7 @@ ...@@ -640,7 +640,7 @@
/** /**
* 触发事件 * 触发事件
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
* *
*/ */
public selectchange() { public selectchange() {
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
* 打开新建数据视图 * 打开新建数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public newdata: any; @Prop() public newdata: any;
</#if> </#if>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
* 打开编辑数据视图 * 打开编辑数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public opendata: any; @Prop() public opendata: any;
</#if> </#if>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
* 部件行为--load * 部件行为--load
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loadAction!: string; @Prop() public loadAction!: string;
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
* 是否单选 * 是否单选
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public isSingleSelect!: boolean; @Prop({ default: true }) public isSingleSelect!: boolean;
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public controlClass: string = "${ctrl.name}"; public controlClass: string = "${ctrl.name}";
...@@ -75,28 +75,28 @@ ...@@ -75,28 +75,28 @@
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public items: any[] = []; public items: any[] = [];
/** /**
* 默认展开节点集合 * 默认展开节点集合
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public defExpands: any = []; public defExpands: any = [];
/** /**
* 行节点下标 * 行节点下标
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public itemNum: any = {}; public itemNum: any = {};
/** /**
* 计数下标 * 计数下标
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public num: number = 0; public num: number = 0;
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
* 获取列属性值 * 获取列属性值
* *
* @public * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getColumnValue(task: any, field: string) { public getColumnValue(task: any, field: string) {
<#if ctrl.getPSDETreeNodes()??> <#if ctrl.getPSDETreeNodes()??>
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
* 获取代码项 * 获取代码项
* *
* @public * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getCodeListItem(codelist: any, val: any) { public getCodeListItem(codelist: any, val: any) {
for(let i = 0; i < codelist.items.length; i++) { for(let i = 0; i < codelist.items.length; i++) {
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
* 搜索获取日程事件 * 搜索获取日程事件
* *
* @param {*} $event 日期信息 * @param {*} $event 日期信息
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(task: any = {}, resolve?: any) { public load(task: any = {}, resolve?: any) {
const params: any = { const params: any = {
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
* 计算当前节点的上下文 * 计算当前节点的上下文
* *
* @param {*} curNode 当前节点 * @param {*} curNode 当前节点
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public computecurNodeContext(curNode:any){ public computecurNodeContext(curNode:any){
let tempContext:any = {}; let tempContext:any = {};
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
* 节点展开 * 节点展开
* *
* @param {*} item 当前节点 * @param {*} item 当前节点
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public itemExpand(item: any) { public itemExpand(item: any) {
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
/** /**
* 刷新 * 刷新
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh() { public refresh() {
this.load(); this.load();
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
* 选中的数据 * 选中的数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selections: any[] = []; public selections: any[] = [];
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return this.selections; return this.selections;
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
* vue 生命周期 * vue 生命周期
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.load(); this.load();
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
* 设置行Class * 设置行Class
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public setRowClass({row, rowIndex}: {row: any, rowIndex: number}) { public setRowClass({row, rowIndex}: {row: any, rowIndex: number}) {
return 'treegrid' + this.itemNum[row.id]; return 'treegrid' + this.itemNum[row.id];
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
* 展开默认节点 * 展开默认节点
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public expandDefNode() { public expandDefNode() {
if(this.defExpands.length > 0) { if(this.defExpands.length > 0) {
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
* 选中变化 * 选中变化
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public select($event: any) { public select($event: any) {
if (!$event) { if (!$event) {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return [this.currentselectedNode]; return [this.currentselectedNode];
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return this.currentselectedNode; return this.currentselectedNode;
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
* 是否单选 * 是否单选
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public isSingleSelect!: boolean; @Prop({ default: true }) public isSingleSelect!: boolean;
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
* 是否默认选中第一条数据 * 是否默认选中第一条数据
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: false }) public isSelectFirstDefault!: boolean; @Prop({ default: false }) public isSelectFirstDefault!: boolean;
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
* 枝干节点是否可用(具有数据能力,可抛出) * 枝干节点是否可用(具有数据能力,可抛出)
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({default:true}) public isBranchAvailable!: boolean; @Prop({default:true}) public isBranchAvailable!: boolean;
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
* 初始化完成 * 初始化完成
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public inited: boolean = false; public inited: boolean = false;
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
* 已选中数据集合 * 已选中数据集合
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selectedNodes: any = []; public selectedNodes: any = [];
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
* 当前选中数据项 * 当前选中数据项
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public currentselectedNode: any = {}; public currentselectedNode: any = {};
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
* 选中数据字符串 * 选中数据字符串
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public selectedData?: string; @Prop() public selectedData?: string;
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Watch('selectedData') @Watch('selectedData')
public onValueChange(newVal: any, oldVal: any) { public onValueChange(newVal: any, oldVal: any) {
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
* 回显选中数据集合 * 回显选中数据集合
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public echoselectedNodes:any[] = this.selectedData ? ( this.isSingleSelect ? [JSON.parse(this.selectedData)[0]] : JSON.parse(this.selectedData)) : []; public echoselectedNodes:any[] = this.selectedData ? ( this.isSingleSelect ? [JSON.parse(this.selectedData)[0]] : JSON.parse(this.selectedData)) : [];
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
* 部件行为--update * 部件行为--update
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public updateAction!: string; @Prop() public updateAction!: string;
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
* 部件行为--fetch * 部件行为--fetch
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
* 部件行为--remove * 部件行为--remove
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public removeAction!: string; @Prop() public removeAction!: string;
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
* 部件行为--load * 部件行为--load
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loadAction!: string; @Prop() public loadAction!: string;
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
* 部件行为--create * 部件行为--create
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public createAction!: string; @Prop() public createAction!: string;
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
* 过滤属性 * 过滤属性
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public srfnodefilter: string = ''; public srfnodefilter: string = '';
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
* 默认输出图标 * 默认输出图标
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isOutputIconDefault: boolean = ${ctrl.isOutputIconDefault()?c}; public isOutputIconDefault: boolean = ${ctrl.isOutputIconDefault()?c};
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
* 树数据 * 树数据
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Provide() @Provide()
public nodes: any[] = []; --> public nodes: any[] = []; -->
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
* 数据展开主键 * 数据展开主键
* *
* @type {string[]} * @type {string[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Provide() @Provide()
public expandedKeys: string[] = []; public expandedKeys: string[] = [];
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
* @param {*} data * @param {*} data
* @param {*} data 当前节点对应传入对象 * @param {*} data 当前节点对应传入对象
* @param {*} checkedState 树目前选中状态对象 * @param {*} checkedState 树目前选中状态对象
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onCheck(data: any, checkedState: any) { public onCheck(data: any, checkedState: any) {
// 处理多选数据 // 处理多选数据
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
* @public * @public
* @param {*} data 节点对应传入对象 * @param {*} data 节点对应传入对象
* @param {*} node 节点对应node对象 * @param {*} node 节点对应node对象
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selectionChange(data: any, node: any) { public selectionChange(data: any, node: any) {
// 禁用项处理 // 禁用项处理
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
/** /**
* Vue声明周期(处理组件的输入属性) * Vue声明周期(处理组件的输入属性)
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -296,7 +296,7 @@ ...@@ -296,7 +296,7 @@
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -334,7 +334,7 @@ ...@@ -334,7 +334,7 @@
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -357,7 +357,7 @@ ...@@ -357,7 +357,7 @@
/** /**
* 刷新数据 * 刷新数据
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh_all(): void { public refresh_all(): void {
this.inited = false; this.inited = false;
...@@ -369,7 +369,7 @@ ...@@ -369,7 +369,7 @@
/** /**
* 刷新父节点 * 刷新父节点
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh_parent(): void { public refresh_parent(): void {
if (Object.keys(this.currentselectedNode).length === 0) { if (Object.keys(this.currentselectedNode).length === 0) {
...@@ -398,7 +398,7 @@ ...@@ -398,7 +398,7 @@
* 数据加载 * 数据加载
* *
* @param {*} node * @param {*} node
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(node: any = {}, resolve?: any) { public load(node: any = {}, resolve?: any) {
if (node.data && node.data.children) { if (node.data && node.data.children) {
...@@ -452,7 +452,7 @@ ...@@ -452,7 +452,7 @@
* 计算当前节点的上下文 * 计算当前节点的上下文
* *
* @param {*} curNode 当前节点 * @param {*} curNode 当前节点
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public computecurNodeContext(curNode:any){ public computecurNodeContext(curNode:any){
let tempContext:any = {}; let tempContext:any = {};
...@@ -468,7 +468,7 @@ ...@@ -468,7 +468,7 @@
* 刷新功能 * 刷新功能
* *
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh(args: any[]): void { public refresh(args: any[]): void {
this.refresh_all(); this.refresh_all();
...@@ -500,7 +500,7 @@ ...@@ -500,7 +500,7 @@
* @param {*} [curContext] 当前节点上下文 * @param {*} [curContext] 当前节点上下文
* @param {*} [arg={}] 当前节点附加参数 * @param {*} [arg={}] 当前节点附加参数
* @param {boolean} parentnode 是否是刷新父节点 * @param {boolean} parentnode 是否是刷新父节点
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh_node(curContext:any,arg: any = {}, parentnode: boolean): void { public refresh_node(curContext:any,arg: any = {}, parentnode: boolean): void {
const { srfnodeid: id } = arg; const { srfnodeid: id } = arg;
...@@ -533,7 +533,7 @@ ...@@ -533,7 +533,7 @@
* @public * @public
* @param {any[]} items * @param {any[]} items
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public formatExpanded(items: any[]): any[] { public formatExpanded(items: any[]): any[] {
const data: any[] = []; const data: any[] = [];
...@@ -551,7 +551,7 @@ ...@@ -551,7 +551,7 @@
* @param {any[]} items 当前节点所有子节点集合 * @param {any[]} items 当前节点所有子节点集合
* @param {boolean} isRoot 是否是加载根节点 * @param {boolean} isRoot 是否是加载根节点
* @param {boolean} isSelectedAll 是否选中所有子节点 * @param {boolean} isSelectedAll 是否选中所有子节点
* @memberof MainTree * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public setDefaultSelection(items: any[], isRoot: boolean = false, isSelectedAll: boolean = false): void { public setDefaultSelection(items: any[], isRoot: boolean = false, isSelectedAll: boolean = false): void {
if(items.length == 0){ if(items.length == 0){
...@@ -617,7 +617,7 @@ ...@@ -617,7 +617,7 @@
* *
* @param {*} node * @param {*} node
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public renderContextMenu(node: any) { public renderContextMenu(node: any) {
let content; let content;
...@@ -646,7 +646,7 @@ ...@@ -646,7 +646,7 @@
* *
* @param {*} node * @param {*} node
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public renderContextMenu${srfclassname(childCtrl.getOwner().getNodeType()?lower_case)}() { public renderContextMenu${srfclassname(childCtrl.getOwner().getNodeType()?lower_case)}() {
return ( return (
...@@ -663,7 +663,7 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code} ...@@ -663,7 +663,7 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code}
* 设置选中高亮 * 设置选中高亮
* *
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public setTreeNodeHighLight(data: any): void { public setTreeNodeHighLight(data: any): void {
const tree: any = this.$refs.${ctrl.name}; const tree: any = this.$refs.${ctrl.name};
...@@ -674,7 +674,7 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code} ...@@ -674,7 +674,7 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code}
* 执行默认界面行为 * 执行默认界面行为
* *
* @param {*} node * @param {*} node
* @memberof AppView * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public doDefaultAction(node: any) { public doDefaultAction(node: any) {
if (node && node.data) { if (node && node.data) {
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return []; return [];
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return {}; return {};
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
* 选中数据 * 选中数据
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selection: any = {}; public selection: any = {};
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
* 过滤值 * 过滤值
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public srffilter: string = ''; public srffilter: string = '';
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
* *
* @public * @public
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refViews: any = [ public refViews: any = [
<#list view.getAllRelatedPSAppViews() as refview> <#list view.getAllRelatedPSAppViews() as refview>
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
* 分割宽度 * 分割宽度
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public split: number = 0.2; public split: number = 0.2;
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
* *
* @param {*} [arg={}] * @param {*} [arg={}]
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public select(index: any, indexs: any[]) { public select(index: any, indexs: any[]) {
this.refViews.some((item:any) =>{ this.refViews.some((item:any) =>{
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
* 视图数据变化 * 视图数据变化
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onViewDatasChange($event: any): void { public onViewDatasChange($event: any): void {
this.$emit('selectionchange', $event); this.$emit('selectionchange', $event);
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
* 视图数据被激活 * 视图数据被激活
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewDatasActivated($event: any): void { public viewDatasActivated($event: any): void {
this.$emit('activated', $event); this.$emit('activated', $event);
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
* 视图数据加载完成 * 视图数据加载完成
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onViewLoad($event: any): void { public onViewLoad($event: any): void {
this.$emit('load', $event); this.$emit('load', $event);
......
...@@ -21,7 +21,7 @@ GanttElastic, ...@@ -21,7 +21,7 @@ GanttElastic,
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -29,7 +29,7 @@ GanttElastic, ...@@ -29,7 +29,7 @@ GanttElastic,
* 部件行为--load * 部件行为--load
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loadAction!: string; @Prop() public loadAction!: string;
...@@ -38,7 +38,7 @@ GanttElastic, ...@@ -38,7 +38,7 @@ GanttElastic,
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ganttClass: string = "gantt"; public ganttClass: string = "gantt";
...@@ -47,7 +47,7 @@ GanttElastic, ...@@ -47,7 +47,7 @@ GanttElastic,
* *
* @public * @public
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public locale: string = 'zh-CN'; public locale: string = 'zh-CN';
...@@ -56,7 +56,7 @@ GanttElastic, ...@@ -56,7 +56,7 @@ GanttElastic,
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public localeZH: any = { public localeZH: any = {
weekdays: ['星期一','星期二','星期三','星期四','星期五','星期六','星期日'], weekdays: ['星期一','星期二','星期三','星期四','星期五','星期六','星期日'],
...@@ -72,7 +72,7 @@ GanttElastic, ...@@ -72,7 +72,7 @@ GanttElastic,
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public options: any = { public options: any = {
isflex: true, isflex: true,
...@@ -141,7 +141,7 @@ GanttElastic, ...@@ -141,7 +141,7 @@ GanttElastic,
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public dynamicStyle: any = {}; public dynamicStyle: any = {};
...@@ -150,7 +150,7 @@ GanttElastic, ...@@ -150,7 +150,7 @@ GanttElastic,
* *
* @public * @public
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public tasks: any[] = []; public tasks: any[] = [];
...@@ -158,7 +158,7 @@ GanttElastic, ...@@ -158,7 +158,7 @@ GanttElastic,
* 监听语言变化 * 监听语言变化
* *
* @public * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Watch('$i18n.locale') @Watch('$i18n.locale')
public onLocaleChange(newval: any, val: any) { public onLocaleChange(newval: any, val: any) {
...@@ -169,7 +169,7 @@ GanttElastic, ...@@ -169,7 +169,7 @@ GanttElastic,
* 获取列属性值 * 获取列属性值
* *
* @public * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getColumnValue(task: any, field: string) { public getColumnValue(task: any, field: string) {
<#if ctrl.getPSDETreeNodes()??> <#if ctrl.getPSDETreeNodes()??>
...@@ -198,7 +198,7 @@ GanttElastic, ...@@ -198,7 +198,7 @@ GanttElastic,
* 获取代码项 * 获取代码项
* *
* @public * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getCodeListItem(codelist: any, val: any) { public getCodeListItem(codelist: any, val: any) {
for(let i = 0; i < codelist.items.length; i++) { for(let i = 0; i < codelist.items.length; i++) {
...@@ -213,7 +213,7 @@ GanttElastic, ...@@ -213,7 +213,7 @@ GanttElastic,
* 获取部件参数 * 获取部件参数
* *
* @returns {any} * @returns {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getOptions() { public getOptions() {
if(Object.is(this.locale, 'zh-CN')) { if(Object.is(this.locale, 'zh-CN')) {
...@@ -226,7 +226,7 @@ GanttElastic, ...@@ -226,7 +226,7 @@ GanttElastic,
* 搜索获取日程事件 * 搜索获取日程事件
* *
* @param {*} $event 日期信息 * @param {*} $event 日期信息
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(task: any = {}) { public load(task: any = {}) {
const params: any = { const params: any = {
...@@ -270,7 +270,7 @@ GanttElastic, ...@@ -270,7 +270,7 @@ GanttElastic,
* 计算当前节点的上下文 * 计算当前节点的上下文
* *
* @param {*} curNode 当前节点 * @param {*} curNode 当前节点
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public computecurNodeContext(curNode:any){ public computecurNodeContext(curNode:any){
let tempContext:any = {}; let tempContext:any = {};
...@@ -286,7 +286,7 @@ GanttElastic, ...@@ -286,7 +286,7 @@ GanttElastic,
* 节点展开 * 节点展开
* *
* @param {*} task 当前节点 * @param {*} task 当前节点
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public taskItemExpand(task: any) { public taskItemExpand(task: any) {
if(!task.collapsed) { if(!task.collapsed) {
...@@ -300,7 +300,7 @@ GanttElastic, ...@@ -300,7 +300,7 @@ GanttElastic,
/** /**
* 刷新 * 刷新
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh() { public refresh() {
this.load(); this.load();
...@@ -312,7 +312,7 @@ GanttElastic, ...@@ -312,7 +312,7 @@ GanttElastic,
* 选中的数据 * 选中的数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selections: any[] = []; public selections: any[] = [];
...@@ -320,7 +320,7 @@ GanttElastic, ...@@ -320,7 +320,7 @@ GanttElastic,
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return this.selections; return this.selections;
...@@ -330,7 +330,7 @@ GanttElastic, ...@@ -330,7 +330,7 @@ GanttElastic,
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -340,7 +340,7 @@ GanttElastic, ...@@ -340,7 +340,7 @@ GanttElastic,
* vue 生命周期 * vue 生命周期
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.locale = this.$i18n.locale; this.locale = this.$i18n.locale;
...@@ -351,7 +351,7 @@ GanttElastic, ...@@ -351,7 +351,7 @@ GanttElastic,
* 点击事件 * 点击事件
* *
* @returns * @returns
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public taskClick({event, data}: {event: any, data: any}) { public taskClick({event, data}: {event: any, data: any}) {
const _this: any = this; const _this: any = this;
......
...@@ -85,7 +85,7 @@ draggable, ...@@ -85,7 +85,7 @@ draggable,
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return this.selections; return this.selections;
...@@ -95,7 +95,7 @@ draggable, ...@@ -95,7 +95,7 @@ draggable,
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return null; return null;
...@@ -105,7 +105,7 @@ draggable, ...@@ -105,7 +105,7 @@ draggable,
* 是否默认选中第一条数据 * 是否默认选中第一条数据
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: false }) public isSelectFirstDefault!: boolean; @Prop({ default: false }) public isSelectFirstDefault!: boolean;
...@@ -113,7 +113,7 @@ draggable, ...@@ -113,7 +113,7 @@ draggable,
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -121,7 +121,7 @@ draggable, ...@@ -121,7 +121,7 @@ draggable,
* 部件行为--create * 部件行为--create
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public createAction!: string; @Prop() public createAction!: string;
...@@ -129,7 +129,7 @@ draggable, ...@@ -129,7 +129,7 @@ draggable,
* 部件行为--remove * 部件行为--remove
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public removeAction!: string; @Prop() public removeAction!: string;
...@@ -137,7 +137,7 @@ draggable, ...@@ -137,7 +137,7 @@ draggable,
* 部件行为--update * 部件行为--update
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public updateAction!: string; @Prop() public updateAction!: string;
...@@ -145,7 +145,7 @@ draggable, ...@@ -145,7 +145,7 @@ draggable,
* 部件行为--fetch * 部件行为--fetch
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
...@@ -153,7 +153,7 @@ draggable, ...@@ -153,7 +153,7 @@ draggable,
* 部件行为--updateGroup * 部件行为--updateGroup
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public updateGroupAction!: string; @Prop() public updateGroupAction!: string;
...@@ -161,7 +161,7 @@ draggable, ...@@ -161,7 +161,7 @@ draggable,
* 是否单选 * 是否单选
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public isSingleSelect?: boolean; @Prop() public isSingleSelect?: boolean;
...@@ -169,7 +169,7 @@ draggable, ...@@ -169,7 +169,7 @@ draggable,
* 数据 * 数据
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public items: any[] = []; public items: any[] = [];
...@@ -177,7 +177,7 @@ draggable, ...@@ -177,7 +177,7 @@ draggable,
* 是否支持分页 * 是否支持分页
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c};; public isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c};;
...@@ -185,7 +185,7 @@ draggable, ...@@ -185,7 +185,7 @@ draggable,
* 总条数 * 总条数
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public totalRecord: number = 0; public totalRecord: number = 0;
...@@ -193,14 +193,14 @@ draggable, ...@@ -193,14 +193,14 @@ draggable,
* 加载的数据是否附加在items之后 * 加载的数据是否附加在items之后
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isAddBehind:boolean = false; public isAddBehind:boolean = false;
/** /**
* 选中数组 * 选中数组
* @type {Array<any>} * @type {Array<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selections: Array<any> = []; public selections: Array<any> = [];
...@@ -208,7 +208,7 @@ draggable, ...@@ -208,7 +208,7 @@ draggable,
* 当前页 * 当前页
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public curPage: number = 1; public curPage: number = 1;
...@@ -216,7 +216,7 @@ draggable, ...@@ -216,7 +216,7 @@ draggable,
* 分页条数 * 分页条数
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public limit: number = ${ctrl.getPagingSize()?c}; public limit: number = ${ctrl.getPagingSize()?c};
...@@ -224,7 +224,7 @@ draggable, ...@@ -224,7 +224,7 @@ draggable,
* 排序方向 * 排序方向
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public sortDir:string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()?lower_case}</#if>'; public sortDir:string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()?lower_case}</#if>';
...@@ -232,7 +232,7 @@ draggable, ...@@ -232,7 +232,7 @@ draggable,
* 排序字段 * 排序字段
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public sortField: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>'; public sortField: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>';
...@@ -240,42 +240,42 @@ draggable, ...@@ -240,42 +240,42 @@ draggable,
* 是否分组 * 是否分组
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isGroup: boolean = true; public isGroup: boolean = true;
/** /**
* 分组集合 * 分组集合
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public groups: any[] = []; public groups: any[] = [];
/** /**
* 分组属性名称 * 分组属性名称
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public groupField: string = '<#if ctrl.getGroupPSDEField()??>${ctrl.getGroupPSDEField().getCodeName()?lower_case}</#if>'; public groupField: string = '<#if ctrl.getGroupPSDEField()??>${ctrl.getGroupPSDEField().getCodeName()?lower_case}</#if>';
/** /**
* 分组模式 * 分组模式
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public groupMode: string = '${ctrl.getGroupMode()}' public groupMode: string = '${ctrl.getGroupMode()}'
/** /**
* 分组模式 * 分组模式
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public groupCodelist: string = '<#if ctrl.getGroupPSCodeList()??>${ctrl.getGroupPSCodeList().getCodeName()}</#if>' public groupCodelist: string = '<#if ctrl.getGroupPSCodeList()??>${ctrl.getGroupPSCodeList().getCodeName()}</#if>'
/** /**
* Vue声明周期,组件挂载完毕 * Vue声明周期,组件挂载完毕
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public mounted () { public mounted () {
this.afterMounted(); this.afterMounted();
...@@ -284,7 +284,7 @@ draggable, ...@@ -284,7 +284,7 @@ draggable,
/** /**
* 执行mounted后的逻辑 * 执行mounted后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterMounted(){ public afterMounted(){
<#if !ctrl.isEnablePagingBar()> <#if !ctrl.isEnablePagingBar()>
...@@ -299,7 +299,7 @@ draggable, ...@@ -299,7 +299,7 @@ draggable,
/** /**
* Vue声明周期,组件创建完毕 * Vue声明周期,组件创建完毕
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -308,7 +308,7 @@ draggable, ...@@ -308,7 +308,7 @@ draggable,
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -329,7 +329,7 @@ draggable, ...@@ -329,7 +329,7 @@ draggable,
/** /**
* 加载更多 * 加载更多
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public loadMore(){ public loadMore(){
if(this.totalRecord>this.items.length) if(this.totalRecord>this.items.length)
...@@ -344,7 +344,7 @@ draggable, ...@@ -344,7 +344,7 @@ draggable,
* 刷新 * 刷新
* *
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh(opt: any = {}) { public refresh(opt: any = {}) {
this.curPage = 1; this.curPage = 1;
...@@ -354,7 +354,7 @@ draggable, ...@@ -354,7 +354,7 @@ draggable,
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -363,7 +363,7 @@ draggable, ...@@ -363,7 +363,7 @@ draggable,
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -380,7 +380,7 @@ draggable, ...@@ -380,7 +380,7 @@ draggable,
* @public * @public
* @param {*} [arg={}] * @param {*} [arg={}]
* @param {boolean} [isReset=false] 是否重置items * @param {boolean} [isReset=false] 是否重置items
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(opt: any = {}, isReset: boolean = false): void { public load(opt: any = {}, isReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
...@@ -447,7 +447,7 @@ draggable, ...@@ -447,7 +447,7 @@ draggable,
* *
* @param {any[]} datas * @param {any[]} datas
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
...@@ -547,7 +547,7 @@ draggable, ...@@ -547,7 +547,7 @@ draggable,
* 设置分组集合 * 设置分组集合
* *
* @param {*} * @param {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public updateData(opt: any) { public updateData(opt: any) {
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -585,7 +585,7 @@ draggable, ...@@ -585,7 +585,7 @@ draggable,
* 设置分组集合 * 设置分组集合
* *
* @param {} * @param {}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public setGroups() { public setGroups() {
if(!this.isGroup || !this.groupField || Object.is(this.groupMode, 'NONE')) { if(!this.isGroup || !this.groupField || Object.is(this.groupMode, 'NONE')) {
...@@ -621,7 +621,7 @@ draggable, ...@@ -621,7 +621,7 @@ draggable,
* 设置分组集合 * 设置分组集合
* *
* @param {string} name * @param {string} name
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getGroupItems(name: string) { public getGroupItems(name: string) {
let datas: any = []; let datas: any = [];
...@@ -637,7 +637,7 @@ draggable, ...@@ -637,7 +637,7 @@ draggable,
* 设置分组集合 * 设置分组集合
* *
* @param {string} name * @param {string} name
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getGroupText(name: string) { public getGroupText(name: string) {
if(Object.is(this.groupMode, 'CODELIST') && this.groupCodelist) { if(Object.is(this.groupMode, 'CODELIST') && this.groupCodelist) {
...@@ -657,7 +657,7 @@ draggable, ...@@ -657,7 +657,7 @@ draggable,
/** /**
* 选择数据 * 选择数据
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
* *
*/ */
public handleClick(args: any) { public handleClick(args: any) {
...@@ -672,7 +672,7 @@ draggable, ...@@ -672,7 +672,7 @@ draggable,
/** /**
* 双击数据 * 双击数据
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
* *
*/ */
public handleDblClick(args: any) { public handleDblClick(args: any) {
...@@ -687,7 +687,7 @@ draggable, ...@@ -687,7 +687,7 @@ draggable,
/** /**
* 触发事件 * 触发事件
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
* *
*/ */
public selectchange() { public selectchange() {
...@@ -705,7 +705,7 @@ draggable, ...@@ -705,7 +705,7 @@ draggable,
* *
* @param {*} tag * @param {*} tag
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public uiAction(tag: any, $event: any) { public uiAction(tag: any, $event: any) {
let row = this.selections.length > 0 ? this.selections[0] : {}; let row = this.selections.length > 0 ? this.selections[0] : {};
...@@ -726,7 +726,7 @@ draggable, ...@@ -726,7 +726,7 @@ draggable,
* *
* @param {*} evt * @param {*} evt
* @param {*} name * @param {*} name
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onDragChange(evt: any, name: string) { public onDragChange(evt: any, name: string) {
if(evt && evt.added && evt.added.element) { if(evt && evt.added && evt.added.element) {
......
...@@ -16,7 +16,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -16,7 +16,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 工作流审批意见控件绑定值 * 工作流审批意见控件绑定值
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public srfwfmemo:string = ""; public srfwfmemo:string = "";
...@@ -24,7 +24,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -24,7 +24,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return [this.data]; return [this.data];
...@@ -34,7 +34,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -34,7 +34,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return this.data; return this.data;
...@@ -44,7 +44,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -44,7 +44,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 是否默认保存 * 是否默认保存
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: false }) public autosave?: boolean; @Prop({ default: false }) public autosave?: boolean;
...@@ -52,7 +52,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -52,7 +52,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -60,7 +60,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -60,7 +60,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 部件行为--submit * 部件行为--submit
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public WFSubmitAction!: string; @Prop() public WFSubmitAction!: string;
...@@ -68,7 +68,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -68,7 +68,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 部件行为--start * 部件行为--start
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public WFStartAction!: string; @Prop() public WFStartAction!: string;
...@@ -76,7 +76,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -76,7 +76,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 部件行为--update * 部件行为--update
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public updateAction!: string; @Prop() public updateAction!: string;
...@@ -84,7 +84,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -84,7 +84,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 部件行为--remove * 部件行为--remove
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public removeAction!: string; @Prop() public removeAction!: string;
...@@ -92,7 +92,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -92,7 +92,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 部件行为--loaddraft * 部件行为--loaddraft
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loaddraftAction!: string; @Prop() public loaddraftAction!: string;
...@@ -100,7 +100,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -100,7 +100,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 部件行为--load * 部件行为--load
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loadAction!: string; @Prop() public loadAction!: string;
...@@ -108,7 +108,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -108,7 +108,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 部件行为--create * 部件行为--create
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public createAction!: string; @Prop() public createAction!: string;
...@@ -116,7 +116,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -116,7 +116,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 部件行为--create * 部件行为--create
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public searchAction!: string; @Prop() public searchAction!: string;
...@@ -124,7 +124,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -124,7 +124,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 视图标识 * 视图标识
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public viewtag!: string; @Prop() public viewtag!: string;
...@@ -132,7 +132,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -132,7 +132,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 表单状态 * 表单状态
* *
* @type {Subject<any>} * @type {Subject<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public formState: Subject<any> = new Subject(); public formState: Subject<any> = new Subject();
...@@ -140,7 +140,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -140,7 +140,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 忽略表单项值变化 * 忽略表单项值变化
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ignorefieldvaluechange: boolean = false; public ignorefieldvaluechange: boolean = false;
...@@ -149,7 +149,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -149,7 +149,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @public * @public
* @type {Subject<any>} * @type {Subject<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public dataChang: Subject<any> = new Subject(); public dataChang: Subject<any> = new Subject();
...@@ -158,7 +158,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -158,7 +158,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @public * @public
* @type {(Subscription | undefined)} * @type {(Subscription | undefined)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public dataChangEvent: Subscription | undefined; public dataChangEvent: Subscription | undefined;
...@@ -167,7 +167,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -167,7 +167,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @public * @public
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public oldData: any = {}; public oldData: any = {};
...@@ -175,7 +175,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -175,7 +175,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 表单数据对象 * 表单数据对象
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public data: any = { public data: any = {
<#list ctrl.getPSDEFormItems() as item> <#list ctrl.getPSDEFormItems() as item>
...@@ -188,7 +188,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -188,7 +188,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 当前执行的行为逻辑 * 当前执行的行为逻辑
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public currentAction: string = ""; public currentAction: string = "";
...@@ -196,7 +196,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -196,7 +196,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 关系界面计数器 * 关系界面计数器
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public drcounter: number = 0; public drcounter: number = 0;
...@@ -204,7 +204,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -204,7 +204,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 需要等待关系界面保存时,第一次调用save参数的备份 * 需要等待关系界面保存时,第一次调用save参数的备份
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public drsaveopt: any = {}; public drsaveopt: any = {};
...@@ -212,7 +212,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -212,7 +212,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 表单保存回调存储对象 * 表单保存回调存储对象
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public saveState:any ; public saveState:any ;
...@@ -220,7 +220,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -220,7 +220,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 属性值规则 * 属性值规则
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public rules: any = { public rules: any = {
<#list ctrl.getAllPSDEFormDetails() as formdetail> <#list ctrl.getAllPSDEFormDetails() as formdetail>
...@@ -266,7 +266,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -266,7 +266,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 详情模型集合 * 详情模型集合
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public detailsModel: any = { public detailsModel: any = {
<#list ctrl.getAllPSDEFormDetails() as formdetail> <#list ctrl.getAllPSDEFormDetails() as formdetail>
...@@ -283,7 +283,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -283,7 +283,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Watch('data.${item.getName()}') @Watch('data.${item.getName()}')
on${srfclassname('${item.getName()}')}Change(newVal: any, oldVal: any) { on${srfclassname('${item.getName()}')}Change(newVal: any, oldVal: any) {
...@@ -306,7 +306,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -306,7 +306,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @public * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
<#list ctrl.getPSDEFormItems() as item> <#list ctrl.getPSDEFormItems() as item>
...@@ -325,7 +325,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -325,7 +325,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 置空对象 * 置空对象
* *
* @param {any[]} args * @param {any[]} args
* @memberof EditForm * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ResetData(_datas:any){ public ResetData(_datas:any){
if(Object.keys(_datas).length >0){ if(Object.keys(_datas).length >0){
...@@ -342,7 +342,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -342,7 +342,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @public * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
<#if P.getPartCode(item,'FORM_LOGIC').code?length gt 0> <#if P.getPartCode(item,'FORM_LOGIC').code?length gt 0>
...@@ -368,7 +368,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -368,7 +368,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @public * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (this.ignorefieldvaluechange) { if (this.ignorefieldvaluechange) {
...@@ -385,7 +385,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -385,7 +385,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @public * @public
* @param {*} [data={}] * @param {*} [data={}]
* @param {string} [action] * @param {string} [action]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onFormLoad(data: any = {},action:string): void { public onFormLoad(data: any = {},action:string): void {
<#if de??> <#if de??>
...@@ -410,7 +410,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -410,7 +410,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @param {*} [_datas={}] * @param {*} [_datas={}]
* @param {string} [action] * @param {string} [action]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public fillForm(_datas: any = {},action:string): void { public fillForm(_datas: any = {},action:string): void {
this.ignorefieldvaluechange = true; this.ignorefieldvaluechange = true;
...@@ -435,7 +435,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -435,7 +435,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @public * @public
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public setFormEnableCond(data: any): void { public setFormEnableCond(data: any): void {
Object.values(this.detailsModel).forEach((detail: any) => { Object.values(this.detailsModel).forEach((detail: any) => {
...@@ -451,7 +451,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -451,7 +451,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 重置草稿表单状态 * 重置草稿表单状态
* *
* @public * @public
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public resetDraftFormStates(): void { public resetDraftFormStates(): void {
const form: any = this.$refs.form; const form: any = this.$refs.form;
...@@ -463,7 +463,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -463,7 +463,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 重置校验结果 * 重置校验结果
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public resetValidates(): void { public resetValidates(): void {
Object.values(this.detailsModel).forEach((detail: any) => { Object.values(this.detailsModel).forEach((detail: any) => {
...@@ -479,7 +479,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -479,7 +479,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 填充校验结果 (后台) * 填充校验结果 (后台)
* *
* @param {any[]} fieldErrors * @param {any[]} fieldErrors
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public fillValidates(fieldErrors: any[]): void { public fillValidates(fieldErrors: any[]): void {
fieldErrors.forEach((error: any) => { fieldErrors.forEach((error: any) => {
...@@ -497,7 +497,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -497,7 +497,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 表单校验状态 * 表单校验状态
* *
* @returns {boolean} * @returns {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public formValidateStatus(): boolean { public formValidateStatus(): boolean {
const form: any = this.$refs.${ctrl.name}; const form: any = this.$refs.${ctrl.name};
...@@ -512,7 +512,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -512,7 +512,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 获取全部值 * 获取全部值
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getValues(): any { public getValues(): any {
return this.data; return this.data;
...@@ -523,7 +523,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -523,7 +523,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @param {{ name: string, value: any }} $event * @param {{ name: string, value: any }} $event
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onFormItemValueChange($event: { name: string, value: any }): void { public onFormItemValueChange($event: { name: string, value: any }): void {
if (!$event) { if (!$event) {
...@@ -541,7 +541,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -541,7 +541,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {string} name * @param {string} name
* @param {*} value * @param {*} value
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public setDataItemValue(name: string, value: any): void { public setDataItemValue(name: string, value: any): void {
if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) { if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) {
...@@ -561,7 +561,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -561,7 +561,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 表单 ${formdetail.getCaption()} 事件 * 表单 ${formdetail.getCaption()} 事件
* *
* @memberof @memberof ${srfclassname('${ctrl.codeName}')} * @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ${formdetail.getName()}_click($event: any): void { public ${formdetail.getName()}_click($event: any): void {
<#if formdetail.getPSUIAction?? && formdetail.getPSUIAction()??> <#if formdetail.getPSUIAction?? && formdetail.getPSUIAction()??>
...@@ -576,7 +576,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -576,7 +576,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 表单 ${formdetail.getCaption()} 事件 * 表单 ${formdetail.getCaption()} 事件
* *
* @memberof @memberof ${srfclassname('${ctrl.codeName}')} * @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ${formdetail.getName()}_click($event: any): void { public ${formdetail.getName()}_click($event: any): void {
<#assign itemUpdate=formdetail.getPSDEFormItemUpdate()/> <#assign itemUpdate=formdetail.getPSDEFormItemUpdate()/>
...@@ -660,7 +660,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -660,7 +660,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 分组界面行为事件 * 分组界面行为事件
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public groupUIActionClick($event: any): void { public groupUIActionClick($event: any): void {
if (!$event) { if (!$event) {
...@@ -683,7 +683,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -683,7 +683,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* Vue声明周期(处理组件的输入属性) * Vue声明周期(处理组件的输入属性)
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created(): void { public created(): void {
this.afterCreated(); this.afterCreated();
...@@ -692,7 +692,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -692,7 +692,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
if (this.viewState) { if (this.viewState) {
...@@ -754,7 +754,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -754,7 +754,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -763,7 +763,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -763,7 +763,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -781,7 +781,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -781,7 +781,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 拷贝内容 * 拷贝内容
* *
* @param {*} [arg={}] * @param {*} [arg={}]
* @memberof @memberof ${srfclassname('${ctrl.codeName}')} * @memberof @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public copy(srfkey: string): void { public copy(srfkey: string): void {
let copyData = this.$store.getters.getCopyData(srfkey); let copyData = this.$store.getters.getCopyData(srfkey);
...@@ -799,7 +799,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -799,7 +799,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
*打印 *打印
*@memberof @memberof ${srfclassname('${ctrl.codeName}')} *@memberof @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public print(){ public print(){
let _this:any = this; let _this:any = this;
...@@ -810,7 +810,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -810,7 +810,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 部件刷新 * 部件刷新
* *
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh(args: any[]): void { public refresh(args: any[]): void {
let arg: any = {}; let arg: any = {};
...@@ -832,7 +832,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -832,7 +832,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @param {*} [arg={}] * @param {*} [arg={}]
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public autoLoad(arg: any = {}): void { public autoLoad(arg: any = {}): void {
if (arg.srfkey && !Object.is(arg.srfkey, '')) { if (arg.srfkey && !Object.is(arg.srfkey, '')) {
...@@ -853,7 +853,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -853,7 +853,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @public * @public
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
...@@ -888,7 +888,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -888,7 +888,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 加载草稿 * 加载草稿
* *
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public loadDraft(opt: any = {}): void { public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
...@@ -944,7 +944,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -944,7 +944,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 自动保存 * 自动保存
* *
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public autoSave(opt: any = {}): void { public autoSave(opt: any = {}): void {
if (!this.formValidateStatus()) { if (!this.formValidateStatus()) {
...@@ -997,7 +997,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -997,7 +997,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {boolean} [showResultInfo] * @param {boolean} [showResultInfo]
* @param {boolean} [ifStateNext] formState是否下发通知 * @param {boolean} [ifStateNext] formState是否下发通知
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async save(opt: any = {}, showResultInfo?: boolean, ifStateNext: boolean = true): Promise<any> { public async save(opt: any = {}, showResultInfo?: boolean, ifStateNext: boolean = true): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
...@@ -1077,7 +1077,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1077,7 +1077,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* *
* @public * @public
* @param {*} [opt={}] * @param {*} [opt={}]
* @memberof ${srfclassname('${ctrl.name}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
...@@ -1112,7 +1112,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1112,7 +1112,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} [data={}] * @param {*} [data={}]
* @param {*} [localdata={}] * @param {*} [localdata={}]
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async wfstart(data: any,localdata?:any): Promise<any> { public async wfstart(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
...@@ -1172,7 +1172,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1172,7 +1172,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {*} [data={}] * @param {*} [data={}]
* @param {*} [localdata={}] * @param {*} [localdata={}]
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async wfsubmit(data: any,localdata?:any): Promise<any> { public async wfsubmit(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
...@@ -1253,7 +1253,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1253,7 +1253,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* @param {string[]} updateDetails 更新项 * @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态 * @param {boolean} [showloading] 是否显示加载状态
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void { public updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) { if (!mode || (mode && Object.is(mode, ''))) {
...@@ -1298,7 +1298,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1298,7 +1298,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 回车事件 * 回车事件
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onEnter($event: any): void { public onEnter($event: any): void {
<#if ctrl.getControlType() == 'SEARCHFORM' && !ctrl.isEnableAutoSearch()> <#if ctrl.getControlType() == 'SEARCHFORM' && !ctrl.isEnableAutoSearch()>
...@@ -1310,7 +1310,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1310,7 +1310,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 保存并退出 * 保存并退出
* *
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public saveAndExit(data:any[]):Promise<any>{ public saveAndExit(data:any[]):Promise<any>{
let _this = this; let _this = this;
...@@ -1335,7 +1335,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1335,7 +1335,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 保存并新建 * 保存并新建
* *
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public saveAndNew(data:any[]):Promise<any>{ public saveAndNew(data:any[]):Promise<any>{
let _this = this; let _this = this;
...@@ -1358,7 +1358,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1358,7 +1358,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 删除并退出 * 删除并退出
* *
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public removeAndExit(data:any[]):Promise<any>{ public removeAndExit(data:any[]):Promise<any>{
let _this = this; let _this = this;
...@@ -1382,7 +1382,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1382,7 +1382,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
* 关系界面数据保存完成 * 关系界面数据保存完成
* *
* @param {any} $event * @param {any} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public drdatasaved($event:any){ public drdatasaved($event:any){
let _this = this; let _this = this;
...@@ -1405,7 +1405,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1405,7 +1405,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 新建默认值 * 新建默认值
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public createDefault(){ public createDefault(){
<#list ctrl.getAllPSDEFormDetails() as formdetail><#t> <#list ctrl.getAllPSDEFormDetails() as formdetail><#t>
...@@ -1440,7 +1440,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1440,7 +1440,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 更新默认值 * 更新默认值
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public updateDefault(){ public updateDefault(){
<#list ctrl.getAllPSDEFormDetails() as formdetail><#t> <#list ctrl.getAllPSDEFormDetails() as formdetail><#t>
...@@ -1480,7 +1480,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1480,7 +1480,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 搜索 * 搜索
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onSearch() { public onSearch() {
this.$emit('load', this.data); this.$emit('load', this.data);
...@@ -1489,7 +1489,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1489,7 +1489,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 重置 * 重置
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onReset() { public onReset() {
this.loadDraft(); this.loadDraft();
...@@ -1500,7 +1500,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1500,7 +1500,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/** /**
* 搜索 * 搜索
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onSearch() { public onSearch() {
this.$emit('load', this.data); this.$emit('load', this.data);
......
...@@ -111,7 +111,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -111,7 +111,7 @@ import { FormItemModel } from '@/model/form-detail';
* 代码表服务对象 * 代码表服务对象
* *
* @type {CodeListService} * @type {CodeListService}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public codeListService:CodeListService = new CodeListService({ $store: this.$store }); public codeListService:CodeListService = new CodeListService({ $store: this.$store });
...@@ -119,7 +119,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -119,7 +119,7 @@ import { FormItemModel } from '@/model/form-detail';
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return this.selections; return this.selections;
...@@ -129,7 +129,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -129,7 +129,7 @@ import { FormItemModel } from '@/model/form-detail';
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return this.selections[0]; return this.selections[0];
...@@ -142,7 +142,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -142,7 +142,7 @@ import { FormItemModel } from '@/model/form-detail';
* 打开新建数据视图 * 打开新建数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public newdata: any; @Prop() public newdata: any;
</#if> </#if>
...@@ -151,7 +151,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -151,7 +151,7 @@ import { FormItemModel } from '@/model/form-detail';
* 打开编辑数据视图 * 打开编辑数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public opendata: any; @Prop() public opendata: any;
</#if> </#if>
...@@ -162,7 +162,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -162,7 +162,7 @@ import { FormItemModel } from '@/model/form-detail';
* 显示处理提示 * 显示处理提示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: true }) public showBusyIndicator?: boolean; @Prop({ default: true }) public showBusyIndicator?: boolean;
...@@ -170,7 +170,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -170,7 +170,7 @@ import { FormItemModel } from '@/model/form-detail';
* 部件行为--update * 部件行为--update
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public updateAction!: string; @Prop() public updateAction!: string;
...@@ -178,7 +178,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -178,7 +178,7 @@ import { FormItemModel } from '@/model/form-detail';
* 部件行为--fetch * 部件行为--fetch
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
...@@ -186,7 +186,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -186,7 +186,7 @@ import { FormItemModel } from '@/model/form-detail';
* 部件行为--remove * 部件行为--remove
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public removeAction!: string; @Prop() public removeAction!: string;
...@@ -194,7 +194,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -194,7 +194,7 @@ import { FormItemModel } from '@/model/form-detail';
* 部件行为--load * 部件行为--load
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loadAction!: string; @Prop() public loadAction!: string;
...@@ -202,7 +202,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -202,7 +202,7 @@ import { FormItemModel } from '@/model/form-detail';
* 部件行为--loaddraft * 部件行为--loaddraft
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public loaddraftAction!: string; @Prop() public loaddraftAction!: string;
...@@ -210,7 +210,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -210,7 +210,7 @@ import { FormItemModel } from '@/model/form-detail';
* 部件行为--create * 部件行为--create
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public createAction!: string; @Prop() public createAction!: string;
...@@ -218,7 +218,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -218,7 +218,7 @@ import { FormItemModel } from '@/model/form-detail';
* 当前页 * 当前页
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public curPage: number = 1; public curPage: number = 1;
...@@ -226,7 +226,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -226,7 +226,7 @@ import { FormItemModel } from '@/model/form-detail';
* 数据 * 数据
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public items: any[] = []; public items: any[] = [];
...@@ -234,7 +234,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -234,7 +234,7 @@ import { FormItemModel } from '@/model/form-detail';
* 是否支持分页 * 是否支持分页
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c}; public isEnablePagingBar: boolean = ${ctrl.isEnablePagingBar()?c};
...@@ -242,7 +242,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -242,7 +242,7 @@ import { FormItemModel } from '@/model/form-detail';
* 是否禁用排序 * 是否禁用排序
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isNoSort: boolean = ${ctrl.isNoSort()?c}; public isNoSort: boolean = ${ctrl.isNoSort()?c};
...@@ -250,7 +250,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -250,7 +250,7 @@ import { FormItemModel } from '@/model/form-detail';
* 排序方向 * 排序方向
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public minorSortDir: string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()}</#if>'; public minorSortDir: string = '<#if ctrl.getMinorSortDir()??>${ctrl.getMinorSortDir()}</#if>';
...@@ -258,7 +258,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -258,7 +258,7 @@ import { FormItemModel } from '@/model/form-detail';
* 排序字段 * 排序字段
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public minorSortPSDEF: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>'; public minorSortPSDEF: string = '<#if ctrl.getMinorSortPSDEF()??>${ctrl.getMinorSortPSDEF().getCodeName()?lower_case}</#if>';
...@@ -266,7 +266,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -266,7 +266,7 @@ import { FormItemModel } from '@/model/form-detail';
* 分页条数 * 分页条数
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public limit: number = ${ctrl.getPagingSize()?c}; public limit: number = ${ctrl.getPagingSize()?c};
...@@ -274,7 +274,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -274,7 +274,7 @@ import { FormItemModel } from '@/model/form-detail';
* 是否显示标题 * 是否显示标题
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isHideHeader: boolean = ${ctrl.isHideHeader()?c}; public isHideHeader: boolean = ${ctrl.isHideHeader()?c};
...@@ -282,7 +282,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -282,7 +282,7 @@ import { FormItemModel } from '@/model/form-detail';
* 是否默认选中第一条数据 * 是否默认选中第一条数据
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({ default: false }) public isSelectFirstDefault!: boolean; @Prop({ default: false }) public isSelectFirstDefault!: boolean;
...@@ -290,7 +290,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -290,7 +290,7 @@ import { FormItemModel } from '@/model/form-detail';
* 是否单选 * 是否单选
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public isSingleSelect?: boolean; @Prop() public isSingleSelect?: boolean;
...@@ -298,7 +298,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -298,7 +298,7 @@ import { FormItemModel } from '@/model/form-detail';
* 选中数据字符串 * 选中数据字符串
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public selectedData?: string; @Prop() public selectedData?: string;
...@@ -307,7 +307,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -307,7 +307,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainTree * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Watch('selectedData') @Watch('selectedData')
public onValueChange(newVal: any, oldVal: any) { public onValueChange(newVal: any, oldVal: any) {
...@@ -335,7 +335,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -335,7 +335,7 @@ import { FormItemModel } from '@/model/form-detail';
* 2 双击激活 * 2 双击激活
* *
* @type {(number | 0 | 1 | 2)} * @type {(number | 0 | 1 | 2)}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({default: 2}) public gridRowActiveMode!: number; @Prop({default: 2}) public gridRowActiveMode!: number;
...@@ -343,7 +343,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -343,7 +343,7 @@ import { FormItemModel } from '@/model/form-detail';
* 是否开启行编辑 * 是否开启行编辑
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({default: false}) public isOpenEdit!: boolean; @Prop({default: false}) public isOpenEdit!: boolean;
...@@ -351,7 +351,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -351,7 +351,7 @@ import { FormItemModel } from '@/model/form-detail';
* 实际是否开启行编辑 * 实际是否开启行编辑
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public actualIsOpenEdit: boolean = this.isOpenEdit; public actualIsOpenEdit: boolean = this.isOpenEdit;
...@@ -359,7 +359,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -359,7 +359,7 @@ import { FormItemModel } from '@/model/form-detail';
* 总条数 * 总条数
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public totalrow: number = 0; public totalrow: number = 0;
...@@ -384,7 +384,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -384,7 +384,7 @@ import { FormItemModel } from '@/model/form-detail';
* 表格聚合行为 * 表格聚合行为
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public aggAction:string ='<#if ctrl.getAggPSDEAction()??>${ctrl.getAggPSDEAction().getCodeName()}</#if>'; public aggAction:string ='<#if ctrl.getAggPSDEAction()??>${ctrl.getAggPSDEAction().getCodeName()}</#if>';
...@@ -392,7 +392,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -392,7 +392,7 @@ import { FormItemModel } from '@/model/form-detail';
* 远程数据 * 远程数据
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public remoteData:any = {}; public remoteData:any = {};
</#if> </#if>
...@@ -411,7 +411,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -411,7 +411,7 @@ import { FormItemModel } from '@/model/form-detail';
* 表格是否显示 * 表格是否显示
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public isDisplay:boolean = <#if ctrl.getAggMode() == "ALL">false<#else>true</#if>; public isDisplay:boolean = <#if ctrl.getAggMode() == "ALL">false<#else>true</#if>;
...@@ -419,7 +419,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -419,7 +419,7 @@ import { FormItemModel } from '@/model/form-detail';
* 部件刷新 * 部件刷新
* *
* @param {any[]} args * @param {any[]} args
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh(args: any[]): void { public refresh(args: any[]): void {
this.load(); this.load();
...@@ -446,7 +446,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -446,7 +446,7 @@ import { FormItemModel } from '@/model/form-detail';
* 所有列成员 * 所有列成员
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public allColumns: any[] = [ public allColumns: any[] = [
<#if ctrl.getAllPSDEGridColumns()??> <#if ctrl.getAllPSDEGridColumns()??>
...@@ -466,7 +466,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -466,7 +466,7 @@ import { FormItemModel } from '@/model/form-detail';
* 表格模型集合 * 表格模型集合
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public gridItemsModel: any[] = []; public gridItemsModel: any[] = [];
...@@ -474,7 +474,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -474,7 +474,7 @@ import { FormItemModel } from '@/model/form-detail';
* 获取表格行模型 * 获取表格行模型
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getGridRowModel(){ public getGridRowModel(){
return { return {
...@@ -488,7 +488,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -488,7 +488,7 @@ import { FormItemModel } from '@/model/form-detail';
* 属性值规则 * 属性值规则
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public rules: any = { public rules: any = {
<#list ctrl.getPSDEGridEditItems() as edititem> <#list ctrl.getPSDEGridEditItems() as edititem>
...@@ -523,7 +523,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -523,7 +523,7 @@ import { FormItemModel } from '@/model/form-detail';
* @param {number} rowIndex 行索引 * @param {number} rowIndex 行索引
* @returns Promise<any> * @returns Promise<any>
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public validate(property:string, data:any, rowIndex:number):Promise<any>{ public validate(property:string, data:any, rowIndex:number):Promise<any>{
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
...@@ -541,7 +541,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -541,7 +541,7 @@ import { FormItemModel } from '@/model/form-detail';
* 校验所有修改过的编辑项 * 校验所有修改过的编辑项
* *
* @returns Promise<any> * @returns Promise<any>
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async validateAll(){ public async validateAll(){
let validateState = true; let validateState = true;
...@@ -563,7 +563,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -563,7 +563,7 @@ import { FormItemModel } from '@/model/form-detail';
* 表格数据加载 * 表格数据加载
* *
* @param {*} [arg={}] * @param {*} [arg={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public load(opt: any = {}, pageReset: boolean = false): void { public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
...@@ -643,7 +643,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -643,7 +643,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {any[]} datas * @param {any[]} datas
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
...@@ -749,7 +749,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -749,7 +749,7 @@ import { FormItemModel } from '@/model/form-detail';
* 批量添加 * 批量添加
* *
* @param {*} [arg={}] * @param {*} [arg={}]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public addBatch(arg: any = {}): void { public addBatch(arg: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
...@@ -780,7 +780,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -780,7 +780,7 @@ import { FormItemModel } from '@/model/form-detail';
* 数据导入 * 数据导入
* *
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public importExcel(data:any ={}):void{ public importExcel(data:any ={}):void{
//导入excel //导入excel
...@@ -824,7 +824,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -824,7 +824,7 @@ import { FormItemModel } from '@/model/form-detail';
* 所有导出列成员 * 所有导出列成员
* *
* @type {any[]} * @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public allExportColumns: any[] = [ public allExportColumns: any[] = [
<#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??> <#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??>
...@@ -845,7 +845,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -845,7 +845,7 @@ import { FormItemModel } from '@/model/form-detail';
* 数据导出 * 数据导出
* *
* @param {*} data * @param {*} data
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public exportExcel(data: any = {}): void { public exportExcel(data: any = {}): void {
// 导出Excel // 导出Excel
...@@ -928,7 +928,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -928,7 +928,7 @@ import { FormItemModel } from '@/model/form-detail';
* @param {*} filterVal * @param {*} filterVal
* @param {*} jsonData * @param {*} jsonData
* @returns {[]} * @returns {[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async formatExcelData(filterVal:any, jsonData:any) { public async formatExcelData(filterVal:any, jsonData:any) {
let codelistColumns:Array<any> = [ let codelistColumns:Array<any> = [
...@@ -992,7 +992,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -992,7 +992,7 @@ import { FormItemModel } from '@/model/form-detail';
* @param {any[]} items 代码表数据 * @param {any[]} items 代码表数据
* @param {*} value * @param {*} value
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getCodelistValue(items: any[], value: any, codelist: any,){ public getCodelistValue(items: any[], value: any, codelist: any,){
if(!value){ if(!value){
...@@ -1045,7 +1045,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1045,7 +1045,7 @@ import { FormItemModel } from '@/model/form-detail';
* @param {any[]} items * @param {any[]} items
* @param {*} value * @param {*} value
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getItem(items: any[], value: any, codelist: any): any { public getItem(items: any[], value: any, codelist: any): any {
const arr: Array<any> = items.filter(item => {return item.value == value}); const arr: Array<any> = items.filter(item => {return item.value == value});
...@@ -1062,7 +1062,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1062,7 +1062,7 @@ import { FormItemModel } from '@/model/form-detail';
/** /**
* 生命周期 * 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created(): void { public created(): void {
this.afterCreated(); this.afterCreated();
...@@ -1071,7 +1071,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1071,7 +1071,7 @@ import { FormItemModel } from '@/model/form-detail';
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
this.setColState(); this.setColState();
...@@ -1096,7 +1096,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1096,7 +1096,7 @@ import { FormItemModel } from '@/model/form-detail';
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -1105,7 +1105,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1105,7 +1105,7 @@ import { FormItemModel } from '@/model/form-detail';
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
...@@ -1120,7 +1120,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1120,7 +1120,7 @@ import { FormItemModel } from '@/model/form-detail';
* 获取选中行胡数据 * 获取选中行胡数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getSelection(): any[] { public getSelection(): any[] {
return this.selections; return this.selections;
...@@ -1131,7 +1131,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1131,7 +1131,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {*} $event * @param {*} $event
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public rowDBLClick($event: any): void { public rowDBLClick($event: any): void {
if (!$event || this.actualIsOpenEdit || Object.is(this.gridRowActiveMode,0)) { if (!$event || this.actualIsOpenEdit || Object.is(this.gridRowActiveMode,0)) {
...@@ -1155,7 +1155,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1155,7 +1155,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {*} $event * @param {*} $event
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public select($event: any): void { public select($event: any): void {
if (!$event) { if (!$event) {
...@@ -1170,7 +1170,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1170,7 +1170,7 @@ import { FormItemModel } from '@/model/form-detail';
* 复选框数据全部选中 * 复选框数据全部选中
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public selectAll($event: any): void { public selectAll($event: any): void {
if (!$event) { if (!$event) {
...@@ -1187,7 +1187,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1187,7 +1187,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {*} $event * @param {*} $event
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public rowClick($event: any, ifAlways: boolean = false): void { public rowClick($event: any, ifAlways: boolean = false): void {
if (!ifAlways && (!$event || this.actualIsOpenEdit)) { if (!ifAlways && (!$event || this.actualIsOpenEdit)) {
...@@ -1229,7 +1229,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1229,7 +1229,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {*} $event * @param {*} $event
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public pageOnChange($event: any): void { public pageOnChange($event: any): void {
if (!$event) { if (!$event) {
...@@ -1247,7 +1247,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1247,7 +1247,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {*} $event * @param {*} $event
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onPageSizeChange($event: any): void { public onPageSizeChange($event: any): void {
if (!$event) { if (!$event) {
...@@ -1265,7 +1265,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1265,7 +1265,7 @@ import { FormItemModel } from '@/model/form-detail';
/** /**
* 分页刷新 * 分页刷新
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public pageRefresh(): void { public pageRefresh(): void {
this.load({}); this.load({});
...@@ -1275,7 +1275,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1275,7 +1275,7 @@ import { FormItemModel } from '@/model/form-detail';
* 排序变化 * 排序变化
* *
* @param {{ column: any, prop: any, order: any }} { column, prop, order } * @param {{ column: any, prop: any, order: any }} { column, prop, order }
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onSortChange({ column, prop, order }: { column: any, prop: any, order: any }): void { public onSortChange({ column, prop, order }: { column: any, prop: any, order: any }): void {
const dir = Object.is(order, 'ascending') ? 'asc' : Object.is(order, 'descending') ? 'desc' : ''; const dir = Object.is(order, 'ascending') ? 'asc' : Object.is(order, 'descending') ? 'desc' : '';
...@@ -1292,7 +1292,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1292,7 +1292,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {{ row: any, rowIndex: any }} { row, rowIndex } * @param {{ row: any, rowIndex: any }} { row, rowIndex }
* @returns {string} * @returns {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onRowClassName({ row, rowIndex }: { row: any, rowIndex: any }): string { public onRowClassName({ row, rowIndex }: { row: any, rowIndex: any }): string {
const index = this.selections.findIndex((select: any) => Object.is(select.srfkey, row.srfkey)); const index = this.selections.findIndex((select: any) => Object.is(select.srfkey, row.srfkey));
...@@ -1304,7 +1304,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1304,7 +1304,7 @@ import { FormItemModel } from '@/model/form-detail';
* 合计行绘制 * 合计行绘制
* *
* @param {any} param * @param {any} param
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getSummaries(param:any){ public getSummaries(param:any){
<#if ctrl.getAggMode() == "PAGE"> <#if ctrl.getAggMode() == "PAGE">
...@@ -1430,7 +1430,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1430,7 +1430,7 @@ import { FormItemModel } from '@/model/form-detail';
/** /**
* 远程获取合计行数据 * 远程获取合计行数据
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getAggData(){ public getAggData(){
this.service.getAggData(this.aggAction,JSON.parse(JSON.stringify(this.context)),this.showBusyIndicator).then((response:any) =>{ this.service.getAggData(this.aggAction,JSON.parse(JSON.stringify(this.context)),this.showBusyIndicator).then((response:any) =>{
...@@ -1459,7 +1459,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1459,7 +1459,7 @@ import { FormItemModel } from '@/model/form-detail';
* @param {*} row * @param {*} row
* @param {*} tag * @param {*} tag
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public uiAction(row: any, tag: any, $event: any) { public uiAction(row: any, tag: any, $event: any) {
// this.rowClick(row, true); // this.rowClick(row, true);
...@@ -1479,7 +1479,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1479,7 +1479,7 @@ import { FormItemModel } from '@/model/form-detail';
/** /**
* 设置列状态 * 设置列状态
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public setColState() { public setColState() {
const _data: any = localStorage.getItem('${ctrl.getPSAppDataEntity().getName()?lower_case}_${ctrl.getCodeName()?lower_case}_${ctrl.name}'); const _data: any = localStorage.getItem('${ctrl.getPSAppDataEntity().getName()?lower_case}_${ctrl.getCodeName()?lower_case}_${ctrl.name}');
...@@ -1497,7 +1497,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1497,7 +1497,7 @@ import { FormItemModel } from '@/model/form-detail';
/** /**
* 列变化 * 列变化
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onColChange() { public onColChange() {
localStorage.setItem('${ctrl.getPSAppDataEntity().getName()?lower_case}_${ctrl.getCodeName()?lower_case}_${ctrl.name}', JSON.stringify(this.allColumns)); localStorage.setItem('${ctrl.getPSAppDataEntity().getName()?lower_case}_${ctrl.getCodeName()?lower_case}_${ctrl.name}', JSON.stringify(this.allColumns));
...@@ -1508,7 +1508,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1508,7 +1508,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {string} name * @param {string} name
* @returns {boolean} * @returns {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getColumnState(name: string): boolean { public getColumnState(name: string): boolean {
let column = this.allColumns.find((col: any) => let column = this.allColumns.find((col: any) =>
...@@ -1522,7 +1522,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1522,7 +1522,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @readonly * @readonly
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
get adaptiveState(): boolean { get adaptiveState(): boolean {
return !this.allColumns.find((column: any) => column.show && Object.is(column.util, 'STAR')); return !this.allColumns.find((column: any) => column.show && Object.is(column.util, 'STAR'));
...@@ -1533,7 +1533,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1533,7 +1533,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {*} $event * @param {*} $event
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async save(args: any[], params?: any, $event?: any, xData?: any){ public async save(args: any[], params?: any, $event?: any, xData?: any){
let _this = this; let _this = this;
...@@ -1591,7 +1591,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1591,7 +1591,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {*} $event * @param {*} $event
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public newRow(args: any[], params?: any, $event?: any, xData?: any): void { public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
...@@ -1630,7 +1630,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1630,7 +1630,7 @@ import { FormItemModel } from '@/model/form-detail';
* @param row 行数据 * @param row 行数据
* @param {{ name: string, value: any }} $event * @param {{ name: string, value: any }} $event
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onGridItemValueChange(row: any,$event: { name: string, value: any },rowIndex: number): void { public onGridItemValueChange(row: any,$event: { name: string, value: any },rowIndex: number): void {
if (!$event) { if (!$event) {
...@@ -1651,7 +1651,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1651,7 +1651,7 @@ import { FormItemModel } from '@/model/form-detail';
* @param property 列编辑项名 * @param property 列编辑项名
* @param row 列编辑项值 * @param row 列编辑项值
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){ public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){
row.rowDataState = row.rowDataState ? row.rowDataState : "update" ; row.rowDataState = row.rowDataState ? row.rowDataState : "update" ;
...@@ -1677,7 +1677,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1677,7 +1677,7 @@ import { FormItemModel } from '@/model/form-detail';
* @param {string[]} updateDetails 更新项 * @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态 * @param {boolean} [showloading] 是否显示加载状态
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public updateGridEditItem(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void { public updateGridEditItem(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) { if (!mode || (mode && Object.is(mode, ''))) {
...@@ -1717,7 +1717,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1717,7 +1717,7 @@ import { FormItemModel } from '@/model/form-detail';
* *
* @param {*} $args row 行数据,rowIndex 行索引 * @param {*} $args row 行数据,rowIndex 行索引
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getRowClassName(args:{row: any,rowIndex: number}){ public getRowClassName(args:{row: any,rowIndex: number}){
let isSelected = this.selections.some((item:any)=>{ let isSelected = this.selections.some((item:any)=>{
...@@ -1729,7 +1729,7 @@ import { FormItemModel } from '@/model/form-detail'; ...@@ -1729,7 +1729,7 @@ import { FormItemModel } from '@/model/form-detail';
/** /**
* 新建默认值 * 新建默认值
* @param {*} row 行数据 * @param {*} row 行数据
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public createDefault(row: any){ public createDefault(row: any){
<#list ctrl.getPSDEGridEditItems() as editItem><#t> <#list ctrl.getPSDEGridEditItems() as editItem><#t>
......
...@@ -32,7 +32,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -32,7 +32,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 选中数据字符串 * 选中数据字符串
* *
* @type {string} * @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public selectedData?: string; @Prop() public selectedData?: string;
...@@ -40,7 +40,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -40,7 +40,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 获取多项数据 * 获取多项数据
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getDatas(): any[] { public getDatas(): any[] {
return []; return [];
...@@ -50,7 +50,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -50,7 +50,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 获取单项树 * 获取单项树
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getData(): any { public getData(): any {
return {}; return {};
...@@ -60,7 +60,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -60,7 +60,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 视图名称 * 视图名称
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public view: any = { public view: any = {
viewname: '<#if ctrl.getPSAppDEView()??>${srffilepath2(ctrl.getPSAppDEView().getCodeName())}</#if>', viewname: '<#if ctrl.getPSAppDEView()??>${srffilepath2(ctrl.getPSAppDEView().getCodeName())}</#if>',
...@@ -71,7 +71,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -71,7 +71,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 局部上下文 * 局部上下文
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public localContext: any = <#if ctrl.getPSNavigateContexts?? && ctrl.getPSNavigateContexts()??><@getNavigateContext ctrl /><#else>null</#if>; public localContext: any = <#if ctrl.getPSNavigateContexts?? && ctrl.getPSNavigateContexts()??><@getNavigateContext ctrl /><#else>null</#if>;
...@@ -87,7 +87,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -87,7 +87,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 视图数据 * 视图数据
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewdata: string = JSON.stringify(this.context); public viewdata: string = JSON.stringify(this.context);
...@@ -103,7 +103,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -103,7 +103,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 是否显示按钮 * 是否显示按钮
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({default: true}) public isShowButton!: boolean; @Prop({default: true}) public isShowButton!: boolean;
...@@ -111,7 +111,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -111,7 +111,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 是否单选 * 是否单选
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public isSingleSelect?: boolean; @Prop() public isSingleSelect?: boolean;
...@@ -119,7 +119,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -119,7 +119,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 初始化完成 * 初始化完成
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public inited: boolean = false; public inited: boolean = false;
...@@ -127,7 +127,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -127,7 +127,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 视图数据变化 * 视图数据变化
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onViewDatasChange($event: any): void { public onViewDatasChange($event: any): void {
if($event.length>0){ if($event.length>0){
...@@ -145,7 +145,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -145,7 +145,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 视图数据被激活 * 视图数据被激活
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public viewDatasActivated($event: any): void { public viewDatasActivated($event: any): void {
this.$emit('activated', $event); this.$emit('activated', $event);
...@@ -155,7 +155,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -155,7 +155,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
* 视图加载完成 * 视图加载完成
* *
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onViewLoad($event: any): void { public onViewLoad($event: any): void {
this.$emit('load', $event); this.$emit('load', $event);
...@@ -164,7 +164,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -164,7 +164,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public created() { public created() {
this.afterCreated(); this.afterCreated();
...@@ -173,7 +173,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -173,7 +173,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* 执行created后的逻辑 * 执行created后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterCreated(){ public afterCreated(){
this.initNavParam(); this.initNavParam();
...@@ -194,7 +194,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -194,7 +194,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* 初始化导航参数 * 初始化导航参数
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public initNavParam(){ public initNavParam(){
if(this.localContext && Object.keys(this.localContext).length >0){ if(this.localContext && Object.keys(this.localContext).length >0){
...@@ -213,7 +213,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -213,7 +213,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* vue 生命周期 * vue 生命周期
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public destroyed() { public destroyed() {
this.afterDestroy(); this.afterDestroy();
...@@ -222,7 +222,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code ...@@ -222,7 +222,7 @@ import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.code
/** /**
* 执行destroyed后的逻辑 * 执行destroyed后的逻辑
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public afterDestroy() { public afterDestroy() {
if (this.viewStateEvent) { if (this.viewStateEvent) {
......
...@@ -166,7 +166,7 @@ import { Environment } from '@/environments/environment'; ...@@ -166,7 +166,7 @@ import { Environment } from '@/environments/environment';
* 长度 * 长度
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public height?: number; @Prop() public height?: number;
...@@ -174,7 +174,7 @@ import { Environment } from '@/environments/environment'; ...@@ -174,7 +174,7 @@ import { Environment } from '@/environments/environment';
* 宽度 * 宽度
* *
* @type {number} * @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public width?: number; @Prop() public width?: number;
......
...@@ -14,7 +14,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -14,7 +14,7 @@ import CodeListService from "@service/app/codelist-service";
* 接口实现 * 接口实现
* *
* @returns {any[]} * @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
getDatas(): any[] { getDatas(): any[] {
if (!this.panelData) { if (!this.panelData) {
...@@ -27,7 +27,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -27,7 +27,7 @@ import CodeListService from "@service/app/codelist-service";
* 接口实现 * 接口实现
* *
* @returns {*} * @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
getData() { getData() {
return this.data; return this.data;
...@@ -37,7 +37,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -37,7 +37,7 @@ import CodeListService from "@service/app/codelist-service";
* 父级部件引用 * 父级部件引用
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public parentRef?: any; @Prop() public parentRef?: any;
...@@ -45,7 +45,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -45,7 +45,7 @@ import CodeListService from "@service/app/codelist-service";
* 面板数据对象 * 面板数据对象
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public inputData?: any; @Prop() public inputData?: any;
...@@ -53,7 +53,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -53,7 +53,7 @@ import CodeListService from "@service/app/codelist-service";
* 代码表服务对象 * 代码表服务对象
* *
* @type {CodeListService} * @type {CodeListService}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public codeListService:CodeListService = new CodeListService({ $store:this.$store }); public codeListService:CodeListService = new CodeListService({ $store:this.$store });
...@@ -61,7 +61,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -61,7 +61,7 @@ import CodeListService from "@service/app/codelist-service";
* 详情模型集合 * 详情模型集合
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public detailsModel: any = { public detailsModel: any = {
<#list ctrl.getAllPSPanelItems() as panelItems> <#list ctrl.getAllPSPanelItems() as panelItems>
...@@ -74,7 +74,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -74,7 +74,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @public * @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public panelLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public panelLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
<#if P.getPartCode(item,'PANEL_LOGIC').code?length gt 0> <#if P.getPartCode(item,'PANEL_LOGIC').code?length gt 0>
...@@ -86,7 +86,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -86,7 +86,7 @@ import CodeListService from "@service/app/codelist-service";
* 数据模型对象 * 数据模型对象
* *
* @type {${srfclassname('${ctrl.codeName}')}Model} * @type {${srfclassname('${ctrl.codeName}')}Model}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public dataModel:${srfclassname('${ctrl.codeName}')}Model = new ${srfclassname('${ctrl.codeName}')}Model(); public dataModel:${srfclassname('${ctrl.codeName}')}Model = new ${srfclassname('${ctrl.codeName}')}Model();
...@@ -94,7 +94,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -94,7 +94,7 @@ import CodeListService from "@service/app/codelist-service";
* UI数据对象 * UI数据对象
* *
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public data:any = {}; public data:any = {};
...@@ -109,7 +109,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -109,7 +109,7 @@ import CodeListService from "@service/app/codelist-service";
/** /**
* 监听数据对象 * 监听数据对象
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Watch('inputData',{immediate:true,deep: true}) @Watch('inputData',{immediate:true,deep: true})
public onInputDataChange(newVal: any, oldVal: any){ public onInputDataChange(newVal: any, oldVal: any){
...@@ -124,7 +124,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -124,7 +124,7 @@ import CodeListService from "@service/app/codelist-service";
* 计算UI展示数据 * 计算UI展示数据
* *
* @param codelistArray 代码表模型数组 * @param codelistArray 代码表模型数组
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public computedUIData(newVal:any){ public computedUIData(newVal:any){
if((this.dataModel.getDataItems instanceof Function) && this.dataModel.getDataItems().length >0){ if((this.dataModel.getDataItems instanceof Function) && this.dataModel.getDataItems().length >0){
...@@ -155,7 +155,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -155,7 +155,7 @@ import CodeListService from "@service/app/codelist-service";
* @param {*} row * @param {*} row
* @param {*} tag * @param {*} tag
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async uiAction(row: any, tag: any, $event: any) { public async uiAction(row: any, tag: any, $event: any) {
await this.computeOutputData(); await this.computeOutputData();
...@@ -175,7 +175,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -175,7 +175,7 @@ import CodeListService from "@service/app/codelist-service";
* 打开编辑数据视图 * 打开编辑数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public opendata(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any){ public opendata(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any){
if (this.parentRef.opendata && this.parentRef.opendata instanceof Function) { if (this.parentRef.opendata && this.parentRef.opendata instanceof Function) {
...@@ -187,7 +187,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -187,7 +187,7 @@ import CodeListService from "@service/app/codelist-service";
* 打开新建数据视图 * 打开新建数据视图
* *
* @type {any} * @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) { public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
if (this.parentRef.newdata && this.parentRef.newdata instanceof Function) { if (this.parentRef.newdata && this.parentRef.newdata instanceof Function) {
...@@ -200,7 +200,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -200,7 +200,7 @@ import CodeListService from "@service/app/codelist-service";
* *
* @param {any[]} datas * @param {any[]} datas
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if (this.parentRef.remove && this.parentRef.remove instanceof Function) { if (this.parentRef.remove && this.parentRef.remove instanceof Function) {
...@@ -227,7 +227,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -227,7 +227,7 @@ import CodeListService from "@service/app/codelist-service";
* @param data 面板数据 * @param data 面板数据
* @param {{ name: string, value: any }} $event * @param {{ name: string, value: any }} $event
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onPanelItemValueChange(data: any,$event: { name: string, value: any }): void { public onPanelItemValueChange(data: any,$event: { name: string, value: any }): void {
if (!$event) { if (!$event) {
...@@ -248,7 +248,7 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -248,7 +248,7 @@ import CodeListService from "@service/app/codelist-service";
* @param property 编辑项名 * @param property 编辑项名
* @param value 编辑项值 * @param value 编辑项值
* @returns {void} * @returns {void}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public panelEditItemChange(data: any, property: string, value: any){ public panelEditItemChange(data: any, property: string, value: any){
// 面板数据变化事件 // 面板数据变化事件
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册