Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
29cf621c
提交
29cf621c
编写于
1月 03, 2022
作者:
ibiz4j
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/master'
上级
59b72871
fc9435ae
变更
16
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
327 行增加
和
3 行删除
+327
-3
i-ui-action.ts
...{{apps}}/src/ibiz-core/interface/app-logic/i-ui-action.ts
+21
-0
index.ts
...7/app_{{apps}}/src/ibiz-core/interface/app-logic/index.ts
+1
-0
index.ts
...es/templ/r7/app_{{apps}}/src/ibiz-core/interface/index.ts
+2
-1
index.ts
.../r7/app_{{apps}}/src/ibiz-core/modules/app-logic/index.ts
+1
-0
app-backend-action.ts
...iz-core/modules/app-logic/ui-action/app-backend-action.ts
+36
-0
app-front-action.ts
...ibiz-core/modules/app-logic/ui-action/app-front-action.ts
+36
-0
app-sys-action.ts
...c/ibiz-core/modules/app-logic/ui-action/app-sys-action.ts
+36
-0
app-ui-action.ts
...rc/ibiz-core/modules/app-logic/ui-action/app-ui-action.ts
+30
-0
index.ts
...apps}}/src/ibiz-core/modules/app-logic/ui-action/index.ts
+1
-0
index.ts
...rces/templ/r7/app_{{apps}}/src/ibiz-core/modules/index.ts
+2
-1
index.ts
...rces/templ/r7/app_{{apps}}/src/ibiz-core/service/index.ts
+2
-1
ui-service-base.ts
...pps}}/src/ibiz-core/service/ui-service/ui-service-base.ts
+34
-0
sys-ui-service-base.ts.hbs
...vice/ui-service/sys-ui-service/sys-ui-service-base.ts.hbs
+31
-0
sys-ui-service.ts.hbs
...c/service/ui-service/sys-ui-service/sys-ui-service.ts.hbs
+31
-0
{{appEntities}}-ui-service-base.ts.hbs
...ce/{{appEntities}}/{{appEntities}}-ui-service-base.ts.hbs
+31
-0
{{appEntities}}-ui-service.ts.hbs
...service/{{appEntities}}/{{appEntities}}-ui-service.ts.hbs
+32
-0
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/interface/app-logic/i-ui-action.ts
0 → 100644
浏览文件 @
29cf621c
/**
* @description 界面行为对象
* @export
* @interface IUIAction
*/
export
interface
IUIAction
{
/**
* 界面行为模式
* @description 值模式 [云实体界面行为类型] {SYS:系统预定义、 FRONT:前台调用、 BACKEND:后台调用、 WFFRONT:工作流前台调用、 WFBACKEND:工作流后台调用 }
* @type {( string | 'SYS' | 'FRONT' | 'BACKEND' | 'WFFRONT' | 'WFBACKEND')}
*/
uIActionMode
:
string
|
'SYS'
|
'FRONT'
|
'BACKEND'
|
'WFFRONT'
|
'WFBACKEND'
;
/**
* 界面行为标记
* @type {string}
*/
uIActionTag
:
string
;
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/interface/app-logic/index.ts
0 → 100644
浏览文件 @
29cf621c
export
*
from
'./i-ui-action'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/interface/index.ts
浏览文件 @
29cf621c
export
*
from
'./common'
\ No newline at end of file
export
*
from
'./common'
export
*
from
'./app-logic'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/app-logic/index.ts
0 → 100644
浏览文件 @
29cf621c
export
*
from
'./ui-action'
;
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/app-logic/ui-action/app-backend-action.ts
0 → 100644
浏览文件 @
29cf621c
import
{
IUIAction
}
from
'@ibiz-core'
;
/**
* 界面行为参数
* @interface UIActionParams
*/
interface
UIActionParams
{
args
:
any
[],
context
:
any
,
params
:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
,
deUIService
?:
any
,
}
export
class
AppBackendAction
{
/**
* 执行界面行为
*
* @param args
* @param context
* @param params
* @param $event
* @param xData
* @param actionContext
* @param srfParentDeName
*
* @memberof AppBackendAction
*/
public
static
async
execute
(
uiAction
:
IUIAction
,
params
:
any
)
{
// TODO 后台调用
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/app-logic/ui-action/app-front-action.ts
0 → 100644
浏览文件 @
29cf621c
import
{
IUIAction
}
from
'@ibiz-core'
;
/**
* 界面行为参数
* @interface UIActionParams
*/
interface
UIActionParams
{
args
:
any
[],
context
:
any
,
params
:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
,
deUIService
?:
any
,
}
export
class
AppFrontAction
{
/**
* 执行界面行为
*
* @param args
* @param context
* @param params
* @param $event
* @param xData
* @param actionContext
* @param srfParentDeName
*
* @memberof AppFrontAction
*/
public
static
async
execute
(
uiAction
:
IUIAction
,
params
:
any
)
{
// TODO 前台调用
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/app-logic/ui-action/app-sys-action.ts
0 → 100644
浏览文件 @
29cf621c
import
{
IUIAction
}
from
'@ibiz-core'
;
/**
* 界面行为参数
* @interface UIActionParams
*/
interface
UIActionParams
{
args
:
any
[],
context
:
any
,
params
:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
,
deUIService
?:
any
,
}
export
class
AppSysAction
{
/**
* 执行界面行为
*
* @param args
* @param context
* @param params
* @param $event
* @param xData
* @param actionContext
* @param srfParentDeName
*
* @memberof AppSysAction
*/
public
static
async
execute
(
uiAction
:
IUIAction
,
params
:
any
)
{
// TODO 系统预置调用
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/app-logic/ui-action/app-ui-action.ts
0 → 100644
浏览文件 @
29cf621c
import
{
AppBackendAction
}
from
'./app-backend-action'
;
import
{
AppFrontAction
}
from
'./app-front-action'
;
import
{
IUIAction
}
from
"@ibiz-core"
;
import
{
AppSysAction
}
from
'./app-sys-action'
;
/**
* 界面行为功能执行
*
* @export
* @class AppUIAction
*/
export
class
AppUIAction
{
/**
* 执行界面行为
*
* @param uiAction 界面行为信息
* @param params 运行参数
*/
public
static
executeUIAction
(
uiAction
:
IUIAction
,
params
:
any
){
if
(
uiAction
.
uIActionMode
==
'FRONT'
){
AppFrontAction
.
execute
(
uiAction
,
params
);
}
else
if
(
uiAction
.
uIActionMode
==
'BACKEND'
){
AppBackendAction
.
execute
(
uiAction
,
params
);
}
else
if
(
uiAction
.
uIActionMode
==
'SYS'
){
AppSysAction
.
execute
(
uiAction
,
params
);
}
else
{
// TODO 工作流界面行为
}
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/app-logic/ui-action/index.ts
0 → 100644
浏览文件 @
29cf621c
export
*
from
'./app-ui-action'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/index.ts
浏览文件 @
29cf621c
export
*
from
'./common'
export
*
from
'./views'
export
*
from
'./widgets'
export
*
from
'./editor'
\ No newline at end of file
export
*
from
'./editor'
export
*
from
'./app-logic'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/service/index.ts
浏览文件 @
29cf621c
export
*
from
'./control-service'
export
*
from
'./entity'
\ No newline at end of file
export
*
from
'./entity'
export
*
from
'./ui-service/ui-service-base'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/service/ui-service/ui-service-base.ts
0 → 100644
浏览文件 @
29cf621c
/**
* 界面服务基类
*
* @export
* @class UIServiceBase
*/
export
class
UIServiceBase
{
/**
* 执行界面行为统一入口
*
* @param {string} uIActionTag 界面行为tag
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
*
* @memberof UIServiceBase
*/
protected
async
excuteAction
(
uIActionTag
:
string
,
args
:
any
[],
context
:
any
=
{},
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
,
)
{
// TODO 执行UI服务
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/service/ui-service/sys-ui-service/sys-ui-service-base.ts.hbs
0 → 100644
浏览文件 @
29cf621c
import { Http, UIServiceBase } from '@ibiz-core';
/**
* 系统UI服务对象基类
*
* @export
* @class SysUIServiceBase
* @extends {UIServiceBase}
*/
export class SysUIServiceBase extends UIServiceBase {
/**
* Creates an instance of SysUIServiceBase
*
* @param {*} [opts={}]
* @memberof SysUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化界面行为数据
*
* @memberof SysUIServiceBase
*/
protected async initActionMap(): Promise
<void>
{
// TODO 初始化界面行为需要的配置参数
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/service/ui-service/sys-ui-service/sys-ui-service.ts.hbs
0 → 100644
浏览文件 @
29cf621c
import { SysUIServiceBase } from './calculator-ui-service-base';
/**
* 系统UI服务
*
* @export
* @class SysUIService
* @extends SysUIServiceBase
*/
export class SysUIService extends SysUIServiceBase {
/**
* Creates an instance of SysUIService.
* @memberof SysUIService
*/
constructor(opts?: any) {
super(opts);
}
/**
* 获取实例
*
* @static
* @param 应用上下文
* @return {*} { SysUIService }
* @memberof SysUIService
*/
static getInstance(context?: any): SysUIService {
return new SysUIService({ context: context });
}
}
export default SysUIService;
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/service/ui-service/{{appEntities}}/{{appEntities}}-ui-service-base.ts.hbs
0 → 100644
浏览文件 @
29cf621c
import { Http, UIServiceBase } from '@ibiz-core';
/**
*
{{
appEntity
.
logicName
}}
UI服务对象基类
*
* @export
* @class
{{
pascalCase
appEntity
.
codeName
}}
UIServiceBase
* @extends {UIServiceBase}
*/
export class
{{
pascalCase
appEntity
.
codeName
}}
UIServiceBase extends UIServiceBase {
/**
* Creates an instance of
{{
pascalCase
appEntity
.
codeName
}}
UIServiceBase
*
* @param {*} [opts={}]
* @memberof
{{
pascalCase
appEntity
.
codeName
}}
UIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化界面行为数据
*
* @memberof
{{
pascalCase
appEntity
.
codeName
}}
UIServiceBase
*/
protected async initActionMap(): Promise
<void>
{
// TODO 初始化界面行为需要的配置参数
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/service/ui-service/{{appEntities}}/{{appEntities}}-ui-service.ts.hbs
0 → 100644
浏览文件 @
29cf621c
import {
{{
pascalCase
appEntity
.
codeName
}}
UIServiceBase } from './
{{
spinalCase
appEntity
.
codeName
}}
-ui-service-base';
/**
*
{{
appEntity
.
logicName
}}
UI服务
*
* @export
* @class
{{
pascalCase
appEntity
.
codeName
}}
UIService
* @extends
{{
pascalCase
appEntity
.
codeName
}}
UIServiceBase
*/
export class
{{
pascalCase
appEntity
.
codeName
}}
UIService extends
{{
pascalCase
appEntity
.
codeName
}}
UIServiceBase {
/**
* Creates an instance of
{{
pascalCase
appEntity
.
codeName
}}
UIService.
* @memberof
{{
pascalCase
appEntity
.
codeName
}}
UIService
*/
constructor(opts?: any) {
{{!-- const { context: context, tag: cacheKey } = opts; --}}
super(opts);
}
/**
* 获取实例
*
* @static
* @param 应用上下文
* @return {*} {
{{
pascalCase
appEntity
.
codeName
}}
UIService }
* @memberof
{{
pascalCase
appEntity
.
codeName
}}
UIService
*/
static getInstance(context?: any):
{{
pascalCase
appEntity
.
codeName
}}
UIService {
return new
{{
pascalCase
appEntity
.
codeName
}}
UIService({ context: context });
}
}
export default
{{
pascalCase
appEntity
.
codeName
}}
UIService;
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录