Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
ab3bc58f
提交
ab3bc58f
编写于
11月 07, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
8a972a20
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
359 行增加
和
49 行删除
+359
-49
.gitignore
.gitignore
+1
-1
grid-view-load-ui-logic-base.ts
...b/src/uiservice/ibizorder/grid-view-load-ui-logic-base.ts
+129
-0
open-yu-que-ui-logic-base.ts
app_Web/src/uiservice/ibizorder/open-yu-que-ui-logic-base.ts
+54
-0
default-searchform-base.vue
...s/ibizbook/default-searchform/default-searchform-base.vue
+2
-2
card-navigation-dataview-base.vue
...ard-navigation-dataview/card-navigation-dataview-base.vue
+4
-4
config.xml
config.xml
+0
-17
Dockerfile
demo-boot/src/main/docker/Dockerfile
+1
-1
BootApplication.java
demo-boot/src/main/java/cn/ibizlab/BootApplication.java
+1
-1
pom.xml
demo-core/pom.xml
+3
-11
RuntimeDict.json
demo-core/src/main/resources/sysmodel/RuntimeDict.json
+160
-8
pom.xml
pom.xml
+4
-4
未找到文件。
.gitignore
浏览文件 @
ab3bc58f
...
...
@@ -12,4 +12,4 @@
**.iml
*.jar
*.log
.DS_Store
\ No newline at end of file
.DS_Store
app_Web/src/uiservice/ibizorder/grid-view-load-ui-logic-base.ts
浏览文件 @
ab3bc58f
...
...
@@ -102,5 +102,134 @@ export default class GridViewLoadUILogicBase {
}
}
/**
* 开始
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
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
)
{
// 自定义表格数据加载
try
{
// 源数据
const
srcParam
=
actionContext
.
getParam
(
'view'
);
// 目标数据
const
dstParam
=
actionContext
.
getParam
(
'searchForm'
);
// 源属性
const
srcFieldName
:
string
=
'searchform'
;
if
(
srcFieldName
)
{
dstParam
.
bind
(
srcParam
.
get
(
srcFieldName
));
}
else
{
dstParam
.
bind
(
srcParam
.
getReal
());
}
actionContext
.
bindLastReturnParam
(
null
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`逻辑参数当前搜索表单
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
}
console
.
log
(
'已完成执行 绑定当前搜索表单 节点'
);
await
this
.
execute_viewctrlinvoke1_node
(
actionContext
);
}
/**
* 视图部件调用
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected
async
execute_viewctrlinvoke1_node
(
actionContext
:
UIActionContext
)
{
// 自定义表格数据加载
const
invokeCtrl
=
'searchForm'
;
const
invokeMethod
=
'loadDraft'
;
const
invokeParam
=
'viewParam'
;
if
(
!
invokeCtrl
||
!
invokeMethod
)
{
throw
new
Error
(
`界面对象或者调用方法缺失`
);
}
const
invokeUICtrl
=
actionContext
.
getParam
(
invokeCtrl
).
getReal
();
if
(
invokeUICtrl
[
invokeMethod
]
&&
invokeUICtrl
[
invokeMethod
]
instanceof
Function
)
{
try
{
const
result
=
await
invokeUICtrl
[
invokeMethod
]();
if
(
invokeParam
)
{
actionContext
.
getParam
(
invokeParam
).
bind
(
result
);
}
actionContext
.
bindLastReturnParam
(
result
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`
${
invokeCtrl
}
界面对象调用
${
invokeMethod
}
方法发生异常`
);
}
}
else
{
throw
new
Error
(
`
${
invokeCtrl
}
界面对象不存在
${
invokeMethod
}
方法`
);
}
console
.
log
(
'已完成执行 视图部件调用 节点'
);
await
this
.
execute_viewctrlinvoke2_node
(
actionContext
);
}
/**
* 视图部件调用
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected
async
execute_viewctrlinvoke2_node
(
actionContext
:
UIActionContext
)
{
// 自定义表格数据加载
const
invokeCtrl
=
'grid'
;
const
invokeMethod
=
'load'
;
const
invokeParam
=
'viewParam'
;
if
(
!
invokeCtrl
||
!
invokeMethod
)
{
throw
new
Error
(
`界面对象或者调用方法缺失`
);
}
const
invokeUICtrl
=
actionContext
.
getParam
(
invokeCtrl
).
getReal
();
if
(
invokeUICtrl
[
invokeMethod
]
&&
invokeUICtrl
[
invokeMethod
]
instanceof
Function
)
{
try
{
const
result
=
await
invokeUICtrl
[
invokeMethod
]();
if
(
invokeParam
)
{
actionContext
.
getParam
(
invokeParam
).
bind
(
result
);
}
actionContext
.
bindLastReturnParam
(
result
);
}
catch
(
error
:
any
)
{
throw
new
Error
(
`
${
invokeCtrl
}
界面对象调用
${
invokeMethod
}
方法发生异常`
);
}
}
else
{
throw
new
Error
(
`
${
invokeCtrl
}
界面对象不存在
${
invokeMethod
}
方法`
);
}
console
.
log
(
'已完成执行 视图部件调用 节点'
);
await
this
.
execute_end1_node
(
actionContext
);
}
/**
* 结束
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected
async
execute_end1_node
(
actionContext
:
UIActionContext
)
{
// 自定义表格数据加载
const
strReturnType
:
string
=
'NONEVALUE'
;
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
NONEVALUE
)
||
Object
.
is
(
strReturnType
,
LogicReturnType
.
NULLVALUE
))
{
actionContext
.
setResult
(
null
);
}
else
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
SRCVALUE
))
{
actionContext
.
setResult
(
''
);
}
else
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
BREAK
))
{
actionContext
.
setResult
(
LogicReturnType
.
BREAK
);
}
else
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
LOGICPARAM
)
||
Object
.
is
(
strReturnType
,
LogicReturnType
.
LOGICPARAMFIELD
))
{
const
returnParam
=
actionContext
.
getParam
(
''
);
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
LOGICPARAM
))
{
actionContext
.
setResult
(
returnParam
.
getReal
());
}
else
{
actionContext
.
setResult
(
returnParam
.
get
(
''
));
}
}
else
{
throw
new
Error
(
`无法识别的返回值类型
${
strReturnType
}
`
);
}
console
.
log
(
'已完成执行 结束 节点'
);
console
.
log
(
'已完成执行 结束 节点'
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizorder/open-yu-que-ui-logic-base.ts
浏览文件 @
ab3bc58f
...
...
@@ -81,5 +81,59 @@ export default class OpenYuQueUILogicBase {
}
}
/**
* 开始
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
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
)
{
// 打开语雀文档
const
strReturnType
:
string
=
'NONEVALUE'
;
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
NONEVALUE
)
||
Object
.
is
(
strReturnType
,
LogicReturnType
.
NULLVALUE
))
{
actionContext
.
setResult
(
null
);
}
else
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
SRCVALUE
))
{
actionContext
.
setResult
(
''
);
}
else
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
BREAK
))
{
actionContext
.
setResult
(
LogicReturnType
.
BREAK
);
}
else
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
LOGICPARAM
)
||
Object
.
is
(
strReturnType
,
LogicReturnType
.
LOGICPARAMFIELD
))
{
const
returnParam
=
actionContext
.
getParam
(
''
);
if
(
Object
.
is
(
strReturnType
,
LogicReturnType
.
LOGICPARAM
))
{
actionContext
.
setResult
(
returnParam
.
getReal
());
}
else
{
actionContext
.
setResult
(
returnParam
.
get
(
''
));
}
}
else
{
throw
new
Error
(
`无法识别的返回值类型
${
strReturnType
}
`
);
}
console
.
log
(
'已完成执行 结束 节点'
);
console
.
log
(
'已完成执行 结束 节点'
);
}
/**
* 界面行为
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected
async
execute_deuiaction1_node
(
actionContext
:
UIActionContext
)
{
// 打开语雀文档
const
data
=
actionContext
.
defaultParam
.
getReal
();
const
{
context
,
viewparams
}
=
actionContext
;
// TODO 调用实体界面行为节点
console
.
log
(
'已完成执行 界面行为 节点'
);
await
this
.
execute_end1_node
(
actionContext
);
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/default-searchform/default-searchform-base.vue
浏览文件 @
ab3bc58f
...
...
@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
5Data
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
5Data
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizorder/card-navigation-dataview/card-navigation-dataview-base.vue
浏览文件 @
ab3bc58f
...
...
@@ -657,7 +657,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
*/
public
load
(
opt
:
any
=
{},
isReset
:
boolean
=
false
):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{...
opt
};
...
...
@@ -736,7 +736,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView
_layout
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
}
let
_datas
:
any
[]
=
[];
...
...
@@ -845,7 +845,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
...
...
@@ -853,7 +853,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizorder
){
...
...
config.xml
浏览文件 @
ab3bc58f
...
...
@@ -55,23 +55,6 @@
git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/
cd demo-boot
mvn ibizlabcli:code
cd ..
set +e
git config user.name "ibizdev"
git add .
git commit -m "generator before deploy $para5"
git push origin master
git config user.name "root"
set -e
mvn package -Pboot
cd demo-boot
sed -i "s#dstimage#$para5#g" pom.xml
sed -i "s#dstimage#$para5#g" src/main/docker/demo-boot-demoapi.yaml
mvn -Pboot docker:build
mvn -Pboot docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/demo-boot-demoapi.yaml iBizDemo --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
demo-boot/src/main/docker/Dockerfile
浏览文件 @
ab3bc58f
...
...
@@ -10,6 +10,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Duser.timezone=$TZ -Djava.security.egd=file:/dev/./urandom -jar /demo-boot.jar
EXPOSE
52000
EXPOSE
8081
ADD
demo-boot.jar /demo-boot.jar
demo-boot/src/main/java/cn/ibizlab/BootApplication.java
浏览文件 @
ab3bc58f
...
...
@@ -50,4 +50,4 @@ public class BootApplication extends WebMvcConfigurerAdapter {
super
.
addArgumentResolvers
(
argumentResolvers
);
argumentResolvers
.
add
(
resolver
);
}
}
\ No newline at end of file
}
demo-core/pom.xml
浏览文件 @
ab3bc58f
...
...
@@ -10,8 +10,8 @@
</parent>
<artifactId>
demo-core
</artifactId>
<name>
Demo
Core
</name>
<description>
后台服务 Core
,模板生成代码,再次发布会覆盖,建议不要直接修改,修改请在demo-boot项目中继承或覆盖重写
</description>
<name>
后台服务
Core
</name>
<description>
后台服务 Core
</description>
<dependencies>
...
...
@@ -20,14 +20,6 @@
<artifactId>
ibizlab-boot-starter-data
</artifactId>
<version>
2.4.0-SNAPSHOT
</version>
</dependency>
<!-- MySQL驱动包 -->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
</dependencies>
<properties>
...
...
@@ -101,4 +93,4 @@
</profile>
</profiles>
</project>
\ No newline at end of file
</project>
demo-core/src/main/resources/sysmodel/RuntimeDict.json
浏览文件 @
ab3bc58f
[
{
"name"
:
"年度"
,
"code"
:
"Years"
,
"group"
:
""
,
"memo"
:
""
,
}
]
\ No newline at end of file
[
{
"name"
:
"年度"
,
"code"
:
"Years"
,
"group"
:
""
,
"memo"
:
""
,
"enable"
:
""
,
}
]
pom.xml
浏览文件 @
ab3bc58f
...
...
@@ -6,8 +6,8 @@
<artifactId>
demo
</artifactId>
<groupId>
cn.ibizlab
</groupId>
<version>
1.0.0.0
</version>
<name>
Demo
</name>
<description>
后台服务
</description>
<name>
后台服务
</name>
<description></description>
<packaging>
pom
</packaging>
<parent>
...
...
@@ -105,7 +105,7 @@
<generateBackupPoms>
false
</generateBackupPoms>
</configuration>
</plugin>
<plugin>
<plugin>
<groupId>
cn.ibizlab
</groupId>
<artifactId>
ibizlab-generator-plugin
</artifactId>
<version>
1.0-SNAPSHOT
</version>
...
...
@@ -137,4 +137,4 @@
</plugins>
</build>
</project>
\ No newline at end of file
</project>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录