提交 3a1c845e 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码

上级 a6aab548
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import OptionViewEngine from '@engine/view/option-view-engine';
/**
* 账户信息视图基类
*
* @export
* @class AccountEdit_AccountInfoBase
* @extends {OptionViewBase}
*/
export class AccountEdit_AccountInfoBase extends OptionViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountEdit_AccountInfoBase
*/
public viewUsage!: 1 | 2 | 4 = 3;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountEdit_AccountInfoBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountEdit_AccountInfoBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountEdit_AccountInfoBase
*/
protected model: any = {
srfCaption: 'entities.account.views.edit_accountinfo.caption',
srfTitle: 'entities.account.views.edit_accountinfo.title',
srfSubTitle: 'entities.account.views.edit_accountinfo.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountEdit_AccountInfoBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '688201ee5642d41628dbf4deba002d17';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountEdit_AccountInfoBase
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountEdit_AccountInfoBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_AccountInfoBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_AccountInfoBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_AccountInfoBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import OptionViewEngine from '@engine/view/option-view-engine';
/**
* 地址信息视图基类
*
* @export
* @class AccountEdit_AddressBase
* @extends {OptionViewBase}
*/
export class AccountEdit_AddressBase extends OptionViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountEdit_AddressBase
*/
public viewUsage!: 1 | 2 | 4 = 3;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountEdit_AddressBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountEdit_AddressBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountEdit_AddressBase
*/
protected model: any = {
srfCaption: 'entities.account.views.edit_address.caption',
srfTitle: 'entities.account.views.edit_address.title',
srfSubTitle: 'entities.account.views.edit_address.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountEdit_AddressBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'e4335da0a7c14a65376eecaabb771fd7';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountEdit_AddressBase
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountEdit_AddressBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_AddressBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_AddressBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_AddressBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import OptionViewEngine from '@engine/view/option-view-engine';
/**
* 简介信息视图基类
*
* @export
* @class AccountEdit_IntroductionBase
* @extends {OptionViewBase}
*/
export class AccountEdit_IntroductionBase extends OptionViewBase {
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountEdit_IntroductionBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountEdit_IntroductionBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountEdit_IntroductionBase
*/
protected model: any = {
srfCaption: 'entities.account.views.edit_introduction.caption',
srfTitle: 'entities.account.views.edit_introduction.title',
srfSubTitle: 'entities.account.views.edit_introduction.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountEdit_IntroductionBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '90cb61421b72cbc76f75360deffde218';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountEdit_IntroductionBase
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountEdit_IntroductionBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_IntroductionBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_IntroductionBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEdit_IntroductionBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import EditViewEngine from '@engine/view/edit-view-engine';
/**
* 客户编辑视图视图基类
*
* @export
* @class AccountEditViewBase
* @extends {EditViewBase}
*/
export class AccountEditViewBase extends EditViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountEditViewBase
*/
public viewUsage!: 1 | 2 | 4 = 3;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountEditViewBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountEditViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountEditViewBase
*/
protected model: any = {
srfCaption: 'entities.account.views.editview.caption',
srfTitle: 'entities.account.views.editview.title',
srfSubTitle: 'entities.account.views.editview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountEditViewBase
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof AccountEditView
*/
public toolBarModels: any = {
tbitem1: { name: 'tbitem1', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem2: { name: 'tbitem2', caption: '关闭','isShowCaption':true,'isShowIcon':true, tooltip: '关闭', iconcls: 'fa fa-sign-out', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Exit', target: '' }, class: '' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '6e18ac74e5685439110f9b4e534ee005';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountEditViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountEditViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEditViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem2_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEditViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEditViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountEditViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Exit(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEditViewBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountEditViewBase
*/
public Exit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.closeView(args);
if(window.parent){
window.parent.postMessage([{ ...args }],'*');
}
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 71, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { TreeExpViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import TreeExpViewEngine from '@engine/view/tree-exp-view-engine';
/**
* 客户关系导航视图基类
*
* @export
* @class AccountGradationBase
* @extends {TreeExpViewBase}
*/
export class AccountGradationBase extends TreeExpViewBase {
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountGradationBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountGradationBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountGradationBase
*/
protected model: any = {
srfCaption: 'entities.account.views.gradation.caption',
srfTitle: 'entities.account.views.gradation.title',
srfSubTitle: 'entities.account.views.gradation.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountGradationBase
*/
protected containerModel: any = {
view_treeexpbar: { name: 'treeexpbar', type: 'TREEEXPBAR' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '6978259896338a7ace85a9fbc5d70395';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountGradationBase
*/
public engine: TreeExpViewEngine = new TreeExpViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountGradationBase
*/
public engineInit(): void {
this.engine.init({
view: this,
treeexpbar: this.$refs.treeexpbar,
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* treeexpbar 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountGradationBase
*/
public treeexpbar_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('treeexpbar', 'selectionchange', $event);
}
/**
* treeexpbar 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountGradationBase
*/
public treeexpbar_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('treeexpbar', 'activated', $event);
}
/**
* treeexpbar 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountGradationBase
*/
public treeexpbar_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('treeexpbar', 'load', $event);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof AccountGradation
*/
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' });
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof AccountGradation
*/
public opendata(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' });
}
/**
* 视图唯一标识
*
* @type {string}
* @memberof AccountGradation
*/
public viewUID: string = 'base-account-gradation';
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import EditViewEngine from '@engine/view/edit-view-engine';
/**
* 客户编辑视图视图基类
*
* @export
* @class AccountInfo_AllBase
* @extends {EditViewBase}
*/
export class AccountInfo_AllBase extends EditViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountInfo_AllBase
*/
public viewUsage!: 1 | 2 | 4 = 5;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountInfo_AllBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountInfo_AllBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountInfo_AllBase
*/
protected model: any = {
srfCaption: 'entities.account.views.info_all.caption',
srfTitle: 'entities.account.views.info_all.title',
srfSubTitle: 'entities.account.views.info_all.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountInfo_AllBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '31f2ad06ced735d250dfa5f309b5aea4';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountInfo_AllBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountInfo_AllBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_AllBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_AllBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_AllBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import EditViewEngine from '@engine/view/edit-view-engine';
/**
* 客户编辑视图视图基类
*
* @export
* @class AccountInfo_MajorContactBase
* @extends {EditViewBase}
*/
export class AccountInfo_MajorContactBase extends EditViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountInfo_MajorContactBase
*/
public viewUsage!: 1 | 2 | 4 = 5;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountInfo_MajorContactBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountInfo_MajorContactBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountInfo_MajorContactBase
*/
protected model: any = {
srfCaption: 'entities.account.views.info_majorcontact.caption',
srfTitle: 'entities.account.views.info_majorcontact.title',
srfSubTitle: 'entities.account.views.info_majorcontact.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountInfo_MajorContactBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'fb06f2c1cea1ac2a5a70c20f4a277ae5';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountInfo_MajorContactBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountInfo_MajorContactBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_MajorContactBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_MajorContactBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_MajorContactBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 75, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
/**
* 客户选择表格视图视图基类
*
* @export
* @class AccountInnerPickupGridViewBase
* @extends {PickupGridViewBase}
*/
export class AccountInnerPickupGridViewBase extends PickupGridViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountInnerPickupGridViewBase
*/
public viewUsage!: 1 | 2 | 4 = 4;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountInnerPickupGridViewBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountInnerPickupGridViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountInnerPickupGridViewBase
*/
protected model: any = {
srfCaption: 'entities.account.views.innerpickupgridview.caption',
srfTitle: 'entities.account.views.innerpickupgridview.title',
srfSubTitle: 'entities.account.views.innerpickupgridview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountInnerPickupGridViewBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '7217511947b8833ba5683e54c06b0271';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountInnerPickupGridViewBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountInnerPickupGridViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInnerPickupGridViewBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInnerPickupGridViewBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInnerPickupGridViewBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInnerPickupGridViewBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof AccountInnerPickupGridViewBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { PickupViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import PickupViewEngine from '@engine/view/pickup-view-engine';
/**
* 客户数据选择视图视图基类
*
* @export
* @class AccountInnerPickupViewBase
* @extends {PickupViewBase}
*/
export class AccountInnerPickupViewBase extends PickupViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountInnerPickupViewBase
*/
public viewUsage!: 1 | 2 | 4 = 2;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountInnerPickupViewBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountInnerPickupViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountInnerPickupViewBase
*/
protected model: any = {
srfCaption: 'entities.account.views.innerpickupview.caption',
srfTitle: 'entities.account.views.innerpickupview.title',
srfSubTitle: 'entities.account.views.innerpickupview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountInnerPickupViewBase
*/
protected containerModel: any = {
view_pickupviewpanel: { name: 'pickupviewpanel', type: 'PICKUPVIEWPANEL' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '054fb10ed157549dc619f06af1c21a31';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountInnerPickupViewBase
*/
public engine: PickupViewEngine = new PickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountInnerPickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInnerPickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInnerPickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInnerPickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 75, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
/**
* 客户选择表格视图视图基类
*
* @export
* @class AccountPickupGridViewBase
* @extends {PickupGridViewBase}
*/
export class AccountPickupGridViewBase extends PickupGridViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountPickupGridViewBase
*/
public viewUsage!: 1 | 2 | 4 = 4;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountPickupGridViewBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountPickupGridViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountPickupGridViewBase
*/
protected model: any = {
srfCaption: 'entities.account.views.pickupgridview.caption',
srfTitle: 'entities.account.views.pickupgridview.title',
srfSubTitle: 'entities.account.views.pickupgridview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountPickupGridViewBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'ef9fea872a6a21e7566033fafcc0ccb5';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountPickupGridViewBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountPickupGridViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupGridViewBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupGridViewBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupGridViewBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupGridViewBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupGridViewBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupGridViewBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupGridViewBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof AccountPickupGridViewBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { PickupViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import PickupViewEngine from '@engine/view/pickup-view-engine';
/**
* 客户数据选择视图视图基类
*
* @export
* @class AccountPickupViewBase
* @extends {PickupViewBase}
*/
export class AccountPickupViewBase extends PickupViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountPickupViewBase
*/
public viewUsage!: 1 | 2 | 4 = 2;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountPickupViewBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountPickupViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountPickupViewBase
*/
protected model: any = {
srfCaption: 'entities.account.views.pickupview.caption',
srfTitle: 'entities.account.views.pickupview.title',
srfSubTitle: 'entities.account.views.pickupview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountPickupViewBase
*/
protected containerModel: any = {
view_pickupviewpanel: { name: 'pickupviewpanel', type: 'PICKUPVIEWPANEL' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '29bfcd628ab25e297248ff0524d12908';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountPickupViewBase
*/
public engine: PickupViewEngine = new PickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountPickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountPickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import OptionViewEngine from '@engine/view/option-view-engine';
/**
* 快速新建视图基类
*
* @export
* @class AccountQuickCreateBase
* @extends {OptionViewBase}
*/
export class AccountQuickCreateBase extends OptionViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountQuickCreateBase
*/
public viewUsage!: 1 | 2 | 4 = 3;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountQuickCreateBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountQuickCreateBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountQuickCreateBase
*/
protected model: any = {
srfCaption: 'entities.account.views.quickcreate.caption',
srfTitle: 'entities.account.views.quickcreate.title',
srfSubTitle: 'entities.account.views.quickcreate.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountQuickCreateBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'a69ba7dd2f8bdac8a3c733dcc79c0ee5';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountQuickCreateBase
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountQuickCreateBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountQuickCreateBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountQuickCreateBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountQuickCreateBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 62, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { DashboardViewBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import PortalViewEngine from '@engine/view/portal-view-engine';
/**
* 客户概览视图基类
*
* @export
* @class AccountSummaryBase
* @extends {DashboardViewBase}
*/
export class AccountSummaryBase extends DashboardViewBase {
/**
* 视图使用模式
*
* @type {(1 | 2 | 4)} 1:路由模式;2:模态模式;4:嵌入模式
* @memberof AccountSummaryBase
*/
public viewUsage!: 1 | 2 | 4 = 5;
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountSummaryBase
*/
protected appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof AccountSummaryBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof AccountSummaryBase
*/
protected customViewNavContexts: any = {
'REGARDINGOBJECTID': { isRawValue: false, value: 'account' },
'REGARDINGOBJECTTYPECODE': { isRawValue: true, value: 'ACCOUNT' }
};
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof AccountSummaryBase
*/
protected model: any = {
srfCaption: 'entities.account.views.summary.caption',
srfTitle: 'entities.account.views.summary.title',
srfSubTitle: 'entities.account.views.summary.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof AccountSummaryBase
*/
protected containerModel: any = {
view_dashboard: { name: 'dashboard', type: 'DASHBOARD' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '016e75bb460270519a0ee9dda57b2c90';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountSummaryBase
*/
public engine: PortalViewEngine = new PortalViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountSummaryBase
*/
public engineInit(): void {
this.engine.init({
view: this,
dashboard: this.$refs.dashboard,
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* dashboard 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountSummaryBase
*/
public dashboard_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('dashboard', 'load', $event);
}
}
\ No newline at end of file
!!!!模版产生代码错误:Syntax error in template "TEMPLCODE_zh_CN" in line 86, column 38:
Encountered "}", but was expecting one of:
<STRING_LITERAL>
<RAW_STRING>
"false"
"true"
<INTEGER>
<DECIMAL>
"."
"+"
"-"
"!"
"["
"("
"{"
<ID>
\ No newline at end of file
import { Subject } from 'rxjs';
import { WizardViewBase } from '@/studio-core';
import ActivityPointerService from '@/service/activity-pointer/activity-pointer-service';
import UIService from '@/uiservice/ui-service';
/**
* 活动数据重定向视图视图基类
*
* @export
* @class ActivityPointerRedirectViewBase
* @extends {WizardViewBase}
*/
export class ActivityPointerRedirectViewBase extends WizardViewBase {
/**
* 实体服务对象
*
* @type {ActivityPointerService}
* @memberof ActivityPointerRedirectViewBase
*/
protected appEntityService: ActivityPointerService = new ActivityPointerService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof ActivityPointerRedirectViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof ActivityPointerRedirectViewBase
*/
protected model: any = {
srfCaption: 'entities.activitypointer.views.redirectview.caption',
srfTitle: 'entities.activitypointer.views.redirectview.title',
srfSubTitle: 'entities.activitypointer.views.redirectview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof ActivityPointerRedirectViewBase
*/
protected containerModel: any = {
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '899dbdcf77250023245eb323c6cdeb05';
/**
* 引擎初始化
*
* @public
* @memberof ActivityPointerRedirectViewBase
*/
public engineInit(): void {
}
/**
* 初始化视图
*
* @memberof ActivityPointerRedirectViewBase
*/
public async viewCreated(){
const {srfkey:srfkey,srfappde:srfappde} = this.viewparams;
const uiService:UIService = new UIService();
const targetService:any = await uiService.getService(srfappde.toLowerCase());
targetService.getRDAppView(srfkey,true).then((res:any) =>{
if(res && res.viewname && res.srfappde){
const path:string =`/${res.srfappde}/${srfkey}/${res.viewname}`;
this.$router.push({path:path});
}else{
console.error("未查找到重定向视图")
}
})
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册