Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzrt
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzrt
提交
fd34c657
提交
fd34c657
编写于
6月 09, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 部署微服务应用
上级
ee01c320
变更
12
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
116 行增加
和
69 行删除
+116
-69
app-form-druipart.vue
...eb/src/components/app-form-druipart/app-form-druipart.vue
+37
-9
app-picker-select-view.vue
...ponents/app-picker-select-view/app-picker-select-view.vue
+5
-5
app-span.vue
app_Web/src/components/app-span/app-span.vue
+1
-1
app-transfer.vue
app_Web/src/components/app-transfer/app-transfer.vue
+38
-52
main-form-base.vue
app_Web/src/widgets/ibzemployee/main-form/main-form-base.vue
+2
-0
main-form-base.vue
app_Web/src/widgets/sys-role/main-form/main-form-base.vue
+4
-0
main-form-base.vue
app_Web/src/widgets/wfgroup/main-form/main-form-base.vue
+2
-0
config.xml
config.xml
+5
-0
Dockerfile
ibzrt-app/ibzrt-app-web/src/main/docker/Dockerfile
+1
-1
ibzrt-app-web.yaml
ibzrt-app/ibzrt-app-web/src/main/docker/ibzrt-app-web.yaml
+13
-1
application-web-prod.yml
...ibzrt-app-web/src/main/resources/application-web-prod.yml
+4
-0
application-dev.yml
ibzrt-boot/src/main/resources/application-dev.yml
+4
-0
未找到文件。
app_Web/src/components/app-form-druipart/app-form-druipart.vue
浏览文件 @
fd34c657
...
...
@@ -3,7 +3,8 @@
<component
:is=
"viewname"
class=
"viewcontainer2"
:viewdata =
"viewdata"
:viewdata =
"viewdata"
:viewparam=
"viewparam"
:viewDefaultUsage=
"false"
:formDruipart=
"formDruipart"
:isformDruipart=
"true"
...
...
@@ -119,6 +120,22 @@ export default class AppFormDRUIPart extends Vue {
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 局部上下文
*
* @type {*}
* @memberof AppFormDRUIPart
*/
@
Prop
()
public
localContext
!
:
any
;
/**
* 局部参数
*
* @type {*}
* @memberof AppFormDRUIPart
*/
@
Prop
()
public
localParam
!
:
any
;
/**
* 应用实体参数名称
*
...
...
@@ -240,21 +257,32 @@ export default class AppFormDRUIPart extends Vue {
}
const
formData
:
any
=
data
?
data
:
JSON
.
parse
(
this
.
data
);
const
_paramitem
=
formData
[
this
.
paramItem
];
let
viewdata
=
{};
Object
.
assign
(
viewdata
,
this
.
$viewTool
.
getIndexViewParam
());
let
tempContext
:
any
=
{};
let
tempParam
:
any
=
{};
Object
.
assign
(
tempContext
,
this
.
$viewTool
.
getIndexViewParam
());
const
_parameters
:
any
[]
=
[...
this
.
$viewTool
.
getIndexParameters
(),
...
this
.
parameters
];
_parameters
.
forEach
((
parameter
:
any
)
=>
{
const
{
pathName
,
parameterName
}:
{
pathName
:
string
,
parameterName
:
string
}
=
parameter
;
if
(
formData
[
parameterName
]
&&
!
Object
.
is
(
formData
[
parameterName
],
''
))
{
Object
.
assign
(
viewdata
,
{
[
parameterName
]:
formData
[
parameterName
]
});
Object
.
assign
(
tempContext
,
{
[
parameterName
]:
formData
[
parameterName
]
});
}
});
Object
.
assign
(
viewdata
,
{
[
this
.
paramItem
]:
_paramitem
});
Object
.
assign
(
tempContext
,
{
[
this
.
paramItem
]:
_paramitem
});
//设置顶层视图唯一标识
Object
.
assign
(
viewdata
,
this
.
context
);
Object
.
assign
(
viewdata
,{
srfparentdename
:
this
.
parentName
,
srfparentkey
:
_paramitem
});
this
.
viewdata
=
JSON
.
stringify
(
viewdata
);
this
.
viewparam
=
JSON
.
stringify
(
this
.
viewparams
);
Object
.
assign
(
tempContext
,
this
.
context
);
Object
.
assign
(
tempContext
,{
srfparentdename
:
this
.
parentName
,
srfparentkey
:
_paramitem
});
// 设置局部上下文
if
(
this
.
localContext
&&
Object
.
keys
(
this
.
localContext
).
length
>
0
){
let
_context
:
any
=
this
.
$util
.
computedNavData
(
formData
,
tempContext
,
this
.
viewparams
,
this
.
localContext
);
Object
.
assign
(
tempContext
,
_context
);
}
this
.
viewdata
=
JSON
.
stringify
(
tempContext
);
// 设置局部参数
if
(
this
.
localParam
&&
Object
.
keys
(
this
.
localParam
).
length
>
0
){
let
_param
:
any
=
this
.
$util
.
computedNavData
(
formData
,
tempContext
,
this
.
viewparams
,
this
.
localParam
);
Object
.
assign
(
tempParam
,
_param
);
}
this
.
viewparam
=
JSON
.
stringify
(
tempParam
);
if
(
this
.
isRelationalData
)
{
if
(
!
_paramitem
||
_paramitem
==
null
||
Object
.
is
(
_paramitem
,
''
))
{
this
.
blockUIStart
();
...
...
app_Web/src/components/app-picker-select-view/app-picker-select-view.vue
浏览文件 @
fd34c657
<
template
>
<div
class=
"app-picker-select-view"
>
<Dropdown
:visible=
"visible"
trigger=
"custom"
style=
"left:0px;width: 100%"
@
on-clickoutside=
"() =>
{triggerMenu(false);}" >
<Input
v-if=
"isSingleSelect"
v-model=
"queryValue"
class=
"tree-input"
type=
"text"
:placeholder=
"placeholder ? placeholder : $t('components.
AppPickerSelectView
SelectView.placeholder')"
:disabled=
"disabled"
@
on-change=
"OnInputChange"
@
on-focus=
"()=>
{triggerMenu(true);}" >
<Input
v-if=
"isSingleSelect"
v-model=
"queryValue"
class=
"tree-input"
type=
"text"
:placeholder=
"placeholder ? placeholder : $t('components.
appPicker
SelectView.placeholder')"
:disabled=
"disabled"
@
on-change=
"OnInputChange"
@
on-focus=
"()=>
{triggerMenu(true);}" >
<template
v-slot:suffix
>
<i
v-if=
"queryValue && !disabled"
class=
'el-icon-circle-close'
@
click=
"onClear"
></i>
<Icon
:type=
"visible ? 'ios-arrow-up' : 'ios-arrow-down'"
class=
"icon-arrow"
@
click=
"() =>
{triggerMenu();}">
</Icon>
...
...
@@ -34,7 +34,7 @@ import { ViewTool } from '@/utils/view-tool/view-tool';
@
Component
({
})
export
default
class
AppPickerSelectView
SelectView
extends
Vue
{
export
default
class
AppPickerSelectView
extends
Vue
{
/**
* 视图上下文
*
...
...
@@ -256,7 +256,7 @@ export default class AppPickerSelectViewSelectView extends Vue {
*/
public
handlePublicParams
(
arg
:
any
):
boolean
{
if
(
!
this
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'components.
AppPickerSelectViewSelectView.error'
)
as
any
),
desc
:
(
this
.
$t
(
'components.AppPickerSelectView
SelectView.formdataException'
)
as
any
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'components.
appPickerSelectView.error'
)
as
any
),
desc
:
(
this
.
$t
(
'components.appPicker
SelectView.formdataException'
)
as
any
)
});
return
false
;
}
// 合并表单参数
...
...
@@ -306,7 +306,7 @@ export default class AppPickerSelectViewSelectView extends Vue {
if
(
this
.
isSingleSelect
){
this
.
queryValue
=
newVal
;
if
(
!
this
.
data
||
!
this
.
valueitem
||
!
this
.
data
[
this
.
valueitem
])
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'components.
AppPickerSelectViewSelectView.error'
)
as
any
),
desc
:
(
this
.
$t
(
'components.AppPickerSelectViewSelectView.editor'
)
as
any
)
+
this
.
name
+
(
this
.
$t
(
'components.AppPickerSelectView
SelectView.valueitemException'
)
as
any
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'components.
appPickerSelectView.error'
)
as
any
),
desc
:
(
this
.
$t
(
'components.appPickerSelectView.editor'
)
as
any
)
+
this
.
name
+
(
this
.
$t
(
'components.appPicker
SelectView.valueitemException'
)
as
any
)
});
}
else
{
let
_viewparam
=
JSON
.
parse
(
this
.
viewparam
);
_viewparam
.
selectedData
=
[{
srfkey
:
this
.
data
[
this
.
valueitem
],
srfmajortext
:
this
.
value
}];
...
...
@@ -418,7 +418,7 @@ export default class AppPickerSelectViewSelectView extends Vue {
*/
public
openLinkView
(
$event
:
any
):
void
{
if
(
!
this
.
data
||
!
this
.
valueitem
||
!
this
.
data
[
this
.
valueitem
])
{
console
.
error
({
title
:
(
this
.
$t
(
'components.
AppPickerSelectViewSelectView.error'
)
as
any
),
desc
:
(
this
.
$t
(
'components.AppPickerSelectViewSelectView.editor'
)
as
any
)
+
this
.
name
+
(
this
.
$t
(
'components.AppPickerSelectView
SelectView.valueitemException'
)
as
any
)
});
console
.
error
({
title
:
(
this
.
$t
(
'components.
appPickerSelectView.error'
)
as
any
),
desc
:
(
this
.
$t
(
'components.appPickerSelectView.editor'
)
as
any
)
+
this
.
name
+
(
this
.
$t
(
'components.appPicker
SelectView.valueitemException'
)
as
any
)
});
return
;
}
// 公共参数处理
...
...
app_Web/src/components/app-span/app-span.vue
浏览文件 @
fd34c657
<
template
>
<codelist
v-if=
"tag"
:tag=
"tag"
:value=
"value"
:codelistType=
"codelistType"
:renderMode=
"renderMode"
:valueSeparator=
"valueSeparator"
:textSeparator=
"textSeparator"
:data=
"data"
:
itemParam=
"item
Param"
:context=
"context"
:viewparams=
"viewparams"
></codelist>
<codelist
v-if=
"tag"
:tag=
"tag"
:value=
"value"
:codelistType=
"codelistType"
:renderMode=
"renderMode"
:valueSeparator=
"valueSeparator"
:textSeparator=
"textSeparator"
:data=
"data"
:
localContext=
"localContext"
:localParam=
"local
Param"
:context=
"context"
:viewparams=
"viewparams"
></codelist>
<app-upload-file-info
v-else-if=
"Object.is(this.editorType,'PICTURE') || Object.is(this.editorType,'PICTURE_ONE') || Object.is(this.editorType,'FILEUPLOADER')"
:value=
"value"
:name=
"name"
></app-upload-file-info>
<span
class=
"app-span"
v-else
>
{{
text
}}
</span>
</
template
>
...
...
app_Web/src/components/app-transfer/app-transfer.vue
浏览文件 @
fd34c657
...
...
@@ -6,7 +6,7 @@
v-for=
"(item,i) in dataRight"
:key=
"i"
>
{{
dataLeft
[
item
-
1
].
label
}}
</Option>
<el-transfer
v-model=
"dataRight"
:data=
"dataLeft"
@
change=
dataChange
></el-transfer>
<el-transfer
v-model=
"dataRight"
:data=
"dataLeft"
@
change=
"dataChange"
></el-transfer>
</Select>
</
template
>
<
script
lang=
"ts"
>
...
...
@@ -14,11 +14,11 @@ import { Vue, Component, Watch, Prop, Model } from "vue-property-decorator";
import
CodeListService
from
"@service/app/codelist-service"
;
@
Component
({})
export
default
class
From
Transfer
extends
Vue
{
export
default
class
App
Transfer
extends
Vue
{
/**
* 表单传递右侧框中的数据
*/
@
Prop
()
public
data
:
any
;
@
Prop
()
public
data
?
:
any
;
/**
* 左侧框数据
*/
...
...
@@ -31,7 +31,7 @@ export default class FromTransfer extends Vue {
* 代码表服务对象
*
* @type {CodeListService}
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
public
codeListService
:
CodeListService
=
new
CodeListService
({
...
...
@@ -42,21 +42,21 @@ export default class FromTransfer extends Vue {
* 额外参数
*
* @type {*}
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
public
otherParam
:
any
;
/**
* 查询参数
* @type {*}
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
public
queryParam
:
any
;
/**
* 当前选中值
* @type {any}
* @memberof
Drop
* @memberof
AppTransfer
*/
@
Model
(
"change"
)
readonly
itemValue
!
:
any
;
...
...
@@ -64,7 +64,7 @@ export default class FromTransfer extends Vue {
* 代码表标识
*
* @type {string}
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
@
Prop
()
public
tag
?:
string
;
...
...
@@ -72,15 +72,14 @@ export default class FromTransfer extends Vue {
* 代码表类型
*
* @type {string}
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
@
Prop
()
public
codelistType
?:
string
;
/**
* 监听表单数据
*
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
@
Watch
(
"data"
,
{
deep
:
true
})
...
...
@@ -90,27 +89,27 @@ export default class FromTransfer extends Vue {
}
/**
* 组件change事件,右侧框数据变化时
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
dataChange
(
e
:
any
)
{
dataChange
(
e
:
any
)
{
console
.
log
(
e
);
let
val
:
any
[]
=
[];
let
newVal
:
any
;
let
val
:
any
[]
=
[];
let
newVal
:
any
;
this
.
dataLeft
.
forEach
((
elem
:
any
)
=>
{
e
.
forEach
((
item
:
any
)
=>
{
if
(
elem
.
key
===
item
)
val
.
push
(
elem
.
value
);
});
});
newVal
=
val
.
join
(
','
);
console
.
log
(
newVal
);
this
.
$emit
(
"change"
,
newVal
);
newVal
=
val
.
join
(
","
);
console
.
log
(
newVal
,
typeof
newVal
);
if
(
newVal
)
this
.
$emit
(
"change"
,
newVal
);
}
/**
* 传入额外参数
*
* @type {*}
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
@
Prop
()
public
itemParam
?:
any
;
...
...
@@ -133,7 +132,7 @@ export default class FromTransfer extends Vue {
/**
* 是否禁用
* @type {any}
* @memberof
From
Transfer
* @memberof
App
Transfer
*
*/
@
Prop
()
public
disabled
?:
any
;
...
...
@@ -141,43 +140,22 @@ export default class FromTransfer extends Vue {
/**
* 是否支持过滤
* @type {boolean}
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
@
Prop
()
public
filterable
?:
boolean
;
/**
* 下拉选提示内容
* @type {string}
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
@
Prop
()
public
placeholder
?:
string
;
/**
* 计算属性(当前值)
* @type {any}
* @memberof FromTransfer
*/
set
currentVal
(
val
:
any
)
{
// const type: string = this.$util.typeOf(val);
// val =
// Object.is(type, "null") || Object.is(type, "undefined") ? undefined : val;
// this.dataLeft.forEach((elem: any) => {
// this.dataRight.forEach((item: any) => {
// if (elem.key === item) val.push(elem.value);
// });
// });
// val=val.join(',');
// this.$emit("change", val);
}
/**
* 获取值对象
*
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
// get currentVal() {
// return this.itemValue;
// }
get
currentVal
()
{
return
this
.
itemValue
;
}
...
...
@@ -186,7 +164,7 @@ export default class FromTransfer extends Vue {
* 代码表
*
* @type {any[]}
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
// public items: any[] = [];
...
...
@@ -195,7 +173,7 @@ export default class FromTransfer extends Vue {
*
* @param {*} arg
* @returns
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
public
handlePublicParams
(
arg
:
any
)
{
// 合并表单参数
...
...
@@ -225,11 +203,10 @@ export default class FromTransfer extends Vue {
/**
* vue 生命周期
*
* @memberof
From
Transfer
* @memberof
App
Transfer
*/
public
created
()
{
this
.
dataHandle
();
this
.
initRight
();
}
/**
...
...
@@ -241,7 +218,9 @@ export default class FromTransfer extends Vue {
if
(
codelist
)
{
this
.
dataLeft
=
[...
JSON
.
parse
(
JSON
.
stringify
(
codelist
.
items
))];
this
.
initLeft
();
this
.
initRight
();
console
.
log
(
this
.
dataLeft
);
console
.
log
(
this
.
dataRight
);
}
else
{
console
.
log
(
`----
${
this
.
tag
}
----代码表不存在`
);
}
...
...
@@ -257,8 +236,8 @@ export default class FromTransfer extends Vue {
.
then
((
res
:
any
)
=>
{
this
.
dataLeft
=
res
;
console
.
log
(
this
.
dataLeft
);
this
.
initLeft
();
this
.
initRight
();
})
.
catch
((
error
:
any
)
=>
{
console
.
log
(
`----
${
this
.
tag
}
----代码表不存在`
);
...
...
@@ -286,9 +265,16 @@ export default class FromTransfer extends Vue {
* 初始化右侧框数据
*/
public
initRight
()
{
if
(
this
.
data
)
{
this
.
data
.
forEach
((
elem
:
any
)
=>
{
this
.
dataRight
.
push
(
elem
);
let
_data
:
string
=
this
.
data
;
console
.
log
(
_data
);
if
(
_data
)
{
let
newData
:
any
[]
=
_data
.
split
(
","
);
this
.
dataLeft
.
forEach
((
elem
:
any
)
=>
{
newData
.
forEach
((
item
:
any
)
=>
{
if
(
item
===
elem
.
value
)
{
this
.
dataRight
.
push
(
elem
.
key
);
}
});
});
}
}
...
...
app_Web/src/widgets/ibzemployee/main-form/main-form-base.vue
浏览文件 @
fd34c657
...
...
@@ -178,6 +178,8 @@
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='ibzemployee'
parentName="IBZEmployee"
refviewtype='DEGRIDVIEW'
...
...
app_Web/src/widgets/sys-role/main-form/main-form-base.vue
浏览文件 @
fd34c657
...
...
@@ -47,6 +47,8 @@
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='sysrole'
parentName="SysRole"
refviewtype='DECUSTOMVIEW'
...
...
@@ -83,6 +85,8 @@
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='sysrole'
parentName="SysRole"
refviewtype='DEGRIDVIEW'
...
...
app_Web/src/widgets/wfgroup/main-form/main-form-base.vue
浏览文件 @
fd34c657
...
...
@@ -30,6 +30,8 @@
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='wfgroup'
parentName="WFGroup"
refviewtype='DEGRIDVIEW'
...
...
config.xml
浏览文件 @
fd34c657
...
...
@@ -37,6 +37,11 @@
git clone -b master $para2 ibzrt/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzrt/
mvn clean package -Pweb
cd ibzrt-app/ibzrt-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzrt-app-web.yaml ibzlab-rt --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
ibzrt-app/ibzrt-app-web/src/main/docker/Dockerfile
浏览文件 @
fd34c657
...
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzrt-app-web.jar
EXPOSE
808
0
EXPOSE
3000
0
ADD
ibzrt-app-web.jar /ibzrt-app-web.jar
ibzrt-app/ibzrt-app-web/src/main/docker/ibzrt-app-web.yaml
浏览文件 @
fd34c657
...
...
@@ -3,9 +3,21 @@ services:
ibzrt-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzrt-app-web:latest
ports
:
-
"
8080:808
0"
-
"
30000:3000
0"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=30000
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
deploy
:
resources
:
limits
:
...
...
ibzrt-app/ibzrt-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
fd34c657
...
...
@@ -67,5 +67,9 @@ zuul:
path
:
/v7/login
serviceId
:
ibzuaa-api
stripPrefix
:
false
uaa
:
path
:
/uaa/**
serviceId
:
ibzuaa-api
stripPrefix
:
false
sensitive-headers
:
-
Cookie,Set-Cookie,Authorization
ibzrt-boot/src/main/resources/application-dev.yml
浏览文件 @
fd34c657
...
...
@@ -100,5 +100,9 @@ zuul:
path
:
/v7/login
serviceId
:
ibzuaa-api
stripPrefix
:
false
uaa
:
path
:
/uaa/**
serviceId
:
ibzuaa-api
stripPrefix
:
false
sensitive-headers
:
-
Cookie,Set-Cookie,Authorization
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录