Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdict
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdict
提交
3f743a36
提交
3f743a36
编写于
7月 20, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
004d1a3d
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
56 行增加
和
13 行删除
+56
-13
app-form-druipart.vue
...eb/src/components/app-form-druipart/app-form-druipart.vue
+28
-6
app-picker.vue
app_web/src/components/app-picker/app-picker.vue
+12
-0
main-form-base.vue
...web/src/widgets/dict-catalog/main-form/main-form-base.vue
+4
-2
main-form-base.vue
app_web/src/widgets/dict-option/main-form/main-form-base.vue
+2
-1
Dockerfile
ibzdict-app/ibzdict-app-web/src/main/docker/Dockerfile
+4
-1
Dockerfile
...-provider/ibzdict-provider-api/src/main/docker/Dockerfile
+4
-1
DictCatalogMapping.java
.../main/java/cn/ibizlab/api/mapping/DictCatalogMapping.java
+1
-1
DictOptionMapping.java
...c/main/java/cn/ibizlab/api/mapping/DictOptionMapping.java
+1
-1
未找到文件。
app_web/src/components/app-form-druipart/app-form-druipart.vue
浏览文件 @
3f743a36
...
...
@@ -40,6 +40,14 @@ export default class AppFormDRUIPart extends Vue {
*/
@
Prop
()
public
viewname
?:
string
;
/**
* 临时数据模式:从数据模式:"2"、主数据模式:"1"、无临时数据模式:"0"
*
* @type {string}
* @memberof AppFormDRUIPart
*/
@
Prop
({
default
:
"0"
})
public
tempMode
?:
string
;
/**
* 刷新关系项
*
...
...
@@ -285,11 +293,16 @@ export default class AppFormDRUIPart extends Vue {
}
this
.
viewparam
=
JSON
.
stringify
(
tempParam
);
if
(
this
.
isRelationalData
)
{
if
(
!
_paramitem
||
_paramitem
==
null
||
Object
.
is
(
_paramitem
,
''
))
{
this
.
blockUIStart
();
return
;
}
else
{
// 从数据模式无遮罩层
if
(
this
.
tempMode
&&
Object
.
is
(
this
.
tempMode
,
"2"
)){
this
.
blockUIStop
();
}
else
{
if
(
!
_paramitem
||
_paramitem
==
null
||
Object
.
is
(
_paramitem
,
''
))
{
this
.
blockUIStart
();
return
;
}
else
{
this
.
blockUIStop
();
}
}
}
if
(
!
this
.
isForbidLoad
){
...
...
@@ -319,8 +332,17 @@ export default class AppFormDRUIPart extends Vue {
}
// 表单保存之前
if
(
Object
.
is
(
$event
.
type
,
'beforesave'
))
{
if
(
Object
.
is
(
this
.
refviewtype
,
'DEMEDITVIEW9'
)
||
Object
.
is
(
this
.
refviewtype
,
'DEGRIDVIEW9'
)){
this
.
formDruipart
.
next
({
action
:
'save'
,
data
:
$event
.
data
});
if
(
Object
.
is
(
this
.
refviewtype
,
'DEMEDITVIEW9'
)
||
Object
.
is
(
this
.
refviewtype
,
'DEGRIDVIEW9'
)
||
Object
.
is
(
this
.
refviewtype
,
'DEGRIDVIEW'
)){
// 从数据模式直接通知保存
if
(
this
.
tempMode
&&
Object
.
is
(
this
.
tempMode
,
"2"
)){
this
.
formDruipart
.
next
({
action
:
'save'
,
data
:
$event
.
data
});
}
else
{
if
(
$event
.
data
&&
!
Object
.
is
(
$event
.
data
.
srfuf
,
"0"
)){
this
.
formDruipart
.
next
({
action
:
'save'
,
data
:
$event
.
data
});
}
else
{
this
.
$emit
(
'drdatasaved'
,
$event
);
}
}
}
else
{
// 不需要保存的界面也要抛出事件,供计数器计算
this
.
$emit
(
'drdatasaved'
,
$event
);
...
...
app_web/src/components/app-picker/app-picker.vue
浏览文件 @
3f743a36
...
...
@@ -176,6 +176,15 @@ export default class AppPicker extends Vue {
*/
@
Prop
()
public
valueitem
!
:
string
;
/**
* 排序
*
* @type {string}
* @memberof AppPicker
*/
@
Prop
()
public
sort
?:
string
;
/**
* 值
*
...
...
@@ -320,6 +329,9 @@ export default class AppPicker extends Vue {
query
=
''
;
}
this
.
inputState
=
false
;
if
(
this
.
sort
&&
!
Object
.
is
(
this
.
sort
,
""
))
{
Object
.
assign
(
_param
,
{
sort
:
this
.
sort
});
}
Object
.
assign
(
_param
,
{
query
:
query
});
// 错误信息国际化
let
error
:
string
=
(
this
.
$t
(
'components.appPicker.error'
)
as
any
);
...
...
app_web/src/widgets/dict-catalog/main-form/main-form-base.vue
浏览文件 @
3f743a36
...
...
@@ -58,7 +58,8 @@
refviewtype='DEGRIDVIEW'
refreshitems=''
:ignorefieldvaluechange="ignorefieldvaluechange"
viewname='dict-option-grid-edit-view'
viewname='dict-option-grid-edit-view'
tempMode='0'
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
style=";overflow: auto;">
...
...
@@ -1288,6 +1289,7 @@ export default class MainBase extends Vue implements ControlInterface {
const
data
=
response
.
data
;
this
.
resetDraftFormStates
();
this
.
onFormLoad
(
data
,
'loadDraft'
);
data
.
dictcatalog
=
null
;
this
.
$emit
(
'load'
,
data
);
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
data
});
...
...
@@ -1391,8 +1393,8 @@ export default class MainBase extends Vue implements ControlInterface {
}
const
arg
:
any
=
{
...
opt
};
const
data
=
this
.
getValues
();
Object
.
assign
(
arg
,
data
);
Object
.
assign
(
arg
,
this
.
context
);
Object
.
assign
(
arg
,
data
);
if
(
ifStateNext
)
{
this
.
drcounter
=
1
;
if
(
this
.
drcounter
!==
0
){
...
...
app_web/src/widgets/dict-option/main-form/main-form-base.vue
浏览文件 @
3f743a36
...
...
@@ -1530,6 +1530,7 @@ export default class MainBase extends Vue implements ControlInterface {
const
data
=
response
.
data
;
this
.
resetDraftFormStates
();
this
.
onFormLoad
(
data
,
'loadDraft'
);
data
.
dictoption
=
null
;
this
.
$emit
(
'load'
,
data
);
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
data
});
...
...
@@ -1633,8 +1634,8 @@ export default class MainBase extends Vue implements ControlInterface {
}
const
arg
:
any
=
{
...
opt
};
const
data
=
this
.
getValues
();
Object
.
assign
(
arg
,
data
);
Object
.
assign
(
arg
,
this
.
context
);
Object
.
assign
(
arg
,
data
);
if
(
ifStateNext
)
{
this
.
drcounter
=
0
;
if
(
this
.
drcounter
!==
0
){
...
...
ibzdict-app/ibzdict-app-web/src/main/docker/Dockerfile
浏览文件 @
3f743a36
FROM
openjdk:8-jre-alpine
ENV
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
ENV
TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
IBIZ_SLEEP=0 \
JAVA_OPTS=""
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
CMD
echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzdict-app-web.jar
...
...
ibzdict-provider/ibzdict-provider-api/src/main/docker/Dockerfile
浏览文件 @
3f743a36
FROM
openjdk:8-jre-alpine
ENV
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
ENV
TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
IBIZ_SLEEP=0 \
JAVA_OPTS=""
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
CMD
echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzdict-provider-api.jar
...
...
ibzdict-provider/ibzdict-provider-api/src/main/java/cn/ibizlab/api/mapping/DictCatalogMapping.java
浏览文件 @
3f743a36
...
...
@@ -6,7 +6,7 @@ import cn.ibizlab.api.dto.DictCatalogDTO;
import
cn.ibizlab.util.domain.MappingBase
;
import
org.mapstruct.factory.Mappers
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
implementationName
=
"apiDictCatalogMapping"
,
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
DictCatalogMapping
extends
MappingBase
<
DictCatalogDTO
,
DictCatalog
>
{
...
...
ibzdict-provider/ibzdict-provider-api/src/main/java/cn/ibizlab/api/mapping/DictOptionMapping.java
浏览文件 @
3f743a36
...
...
@@ -6,7 +6,7 @@ import cn.ibizlab.api.dto.DictOptionDTO;
import
cn.ibizlab.util.domain.MappingBase
;
import
org.mapstruct.factory.Mappers
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
implementationName
=
"apiDictOptionMapping"
,
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
DictOptionMapping
extends
MappingBase
<
DictOptionDTO
,
DictOption
>
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录