提交 63f26f44 编写于 作者: ibizdev's avatar ibizdev

Mosher 发布系统代码 [后台服务,演示应用]

上级 2450369b
import { UIActionContext } from "@/logic/ui-logic";
/**
* 自定义表格数据加载
*
......@@ -176,7 +177,7 @@ export default class GridViewLoadUILogicBase {
async execute(args: any[], context:any = {} ,params: any = {}, $event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
try {
const actionContext = this.beforeExecute(args, context, params, $event, xData, actioncontext, srfParentDeName);
await this.execute_Begin_node(actionContext);
await this.execute_begin_node(actionContext);
return actionContext.getResult();
} catch (error: any) {
throw new Error(`${error && error.message ? error.message : '发生未知错误!'}`);
......@@ -188,54 +189,54 @@ export default class GridViewLoadUILogicBase {
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected async execute_begin_node(actionContext: UIActionContext) {
// 自定义表格数据加载
protected async execute_begin_node(actionContext: UIActionContext) {
// 自定义表格数据加载
actionContext.setResult(actionContext.defaultParam.getReal());
console.log('已完成执行 开始 节点');
await this.execute_bindparam1_node(actionContext);
}
}
/**
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected async execute_bindparam1_node(actionContext: UIActionContext) {
// 自定义表格数据加载
protected async execute_bindparam1_node(actionContext: UIActionContext) {
// 自定义表格数据加载
// TODO 等待补充
console.log('已完成执行 绑定当前搜索表单 节点');
await this.execute_viewctrlinvoke1_node(actionContext);
}
}
/**
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected async execute_viewctrlinvoke1_node(actionContext: UIActionContext) {
// 自定义表格数据加载
protected async execute_viewctrlinvoke1_node(actionContext: UIActionContext) {
// 自定义表格数据加载
// TODO 等待补充
console.log('已完成执行 视图部件调用 节点');
await this.execute_viewctrlinvoke2_node(actionContext);
}
}
/**
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected async execute_end1_node(actionContext: UIActionContext) {
// 自定义表格数据加载
protected async execute_end1_node(actionContext: UIActionContext) {
// 自定义表格数据加载
// TODO 等待补充
console.log('已完成执行 结束 节点');
}
}
/**
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected async execute_viewctrlinvoke2_node(actionContext: UIActionContext) {
// 自定义表格数据加载
protected async execute_viewctrlinvoke2_node(actionContext: UIActionContext) {
// 自定义表格数据加载
// TODO 等待补充
console.log('已完成执行 视图部件调用 节点');
await this.execute_end1_node(actionContext);
}
}
}
\ No newline at end of file
import { UIActionContext } from "@/logic/ui-logic";
/**
* 打开语雀文档
*
......@@ -88,7 +89,7 @@ export default class OpenYuQueUILogicBase {
async execute(args: any[], context:any = {} ,params: any = {}, $event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
try {
const actionContext = this.beforeExecute(args, context, params, $event, xData, actioncontext, srfParentDeName);
await this.execute_Begin_node(actionContext);
await this.execute_begin_node(actionContext);
return actionContext.getResult();
} catch (error: any) {
throw new Error(`${error && error.message ? error.message : '发生未知错误!'}`);
......@@ -100,32 +101,32 @@ export default class OpenYuQueUILogicBase {
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected async execute_begin_node(actionContext: UIActionContext) {
// 打开语雀文档
protected async execute_begin_node(actionContext: UIActionContext) {
// 打开语雀文档
actionContext.setResult(actionContext.defaultParam.getReal());
console.log('已完成执行 开始 节点');
await this.execute_deuiaction1_node(actionContext);
}
}
/**
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected async execute_end1_node(actionContext: UIActionContext) {
// 打开语雀文档
protected async execute_end1_node(actionContext: UIActionContext) {
// 打开语雀文档
// TODO 等待补充
console.log('已完成执行 结束 节点');
}
}
/**
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected async execute_deuiaction1_node(actionContext: UIActionContext) {
// 打开语雀文档
protected async execute_deuiaction1_node(actionContext: UIActionContext) {
// 打开语雀文档
// TODO 等待补充
console.log('已完成执行 界面行为 节点');
await this.execute_end1_node(actionContext);
}
}
}
\ No newline at end of file
......@@ -1800,7 +1800,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1835,7 +1835,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1897,7 +1897,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -2005,7 +2005,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册