Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
daad1c0a
提交
daad1c0a
编写于
6月 15, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 部署微服务应用
上级
2b047ed1
变更
18
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
379 行增加
和
293 行删除
+379
-293
app-form-group.less
...Central/src/components/app-form-group/app-form-group.less
+11
-3
app-form-group.vue
...sCentral/src/components/app-form-group/app-form-group.vue
+12
-12
app-form-item.less
...ssCentral/src/components/app-form-item/app-form-item.less
+35
-17
app-form-item.vue
...essCentral/src/components/app-form-item/app-form-item.vue
+249
-222
login.vue
app_BusinessCentral/src/components/login/login.vue
+7
-4
edit-view-engine.ts
app_BusinessCentral/src/engine/view/edit-view-engine.ts
+1
-0
html-container.vue
.../studio-core/components/html-container/html-container.vue
+23
-2
index.ts
app_BusinessCentral/src/studio-core/index.ts
+2
-1
UIStateService.ts
...BusinessCentral/src/studio-core/service/UIStateService.ts
+5
-2
studio-drawer.tsx
...ral/src/studio-core/utils/studio-drawer/studio-drawer.tsx
+3
-0
user-default-register.ts
app_BusinessCentral/src/user-default-register.ts
+5
-0
user-register.ts
app_BusinessCentral/src/user-register.ts
+0
-4
view-tool.ts
app_BusinessCentral/src/utils/view-tool/view-tool.ts
+3
-3
Dockerfile
...esscentral-app-businesscentral/src/main/docker/Dockerfile
+1
-1
businesscentral-app-businesscentral.yaml
.../src/main/docker/businesscentral-app-businesscentral.yaml
+15
-1
Dockerfile
...esscentral-provider-centralapi/src/main/docker/Dockerfile
+1
-1
businesscentral-provider-centralapi.yaml
.../src/main/docker/businesscentral-provider-centralapi.yaml
+1
-15
config.xml
config.xml
+5
-5
未找到文件。
app_BusinessCentral/src/components/app-form-group/app-form-group.less
浏览文件 @
daad1c0a
.app-form-group {
>.ivu-card-head {
>p {
>i {
...
...
@@ -7,9 +8,12 @@
}
}
}
>.ivu-card-extra {
.item-extract-mode {
display: flex;
.item {
margin-left: 12px;
}
...
...
@@ -18,6 +22,7 @@
}
.app-form-group.app-group-collapse-contant {
.ivu-card-body {
display: none;
}
...
...
@@ -25,9 +30,12 @@
.app-group-flex {
height: 100%;
overflow: auto;
> .ivu-card-body {
overflow-y: auto;
overflow-x: hidden;
>.ivu-card-body {
height: calc(100% - 51px);
overflow: auto;
overflow-y: auto;
overflow-x: hidden;
}
}
\ No newline at end of file
app_BusinessCentral/src/components/app-form-group/app-form-group.vue
浏览文件 @
daad1c0a
<
template
>
<div
class=
"app-form-group
"
>
<
div
v-if=
"uiStyle=='STYLE2'"
>
<div
:class=
"classes
"
>
<
template
v-if=
"uiStyle=='STYLE2'"
>
<app-form-group2
:caption=
"caption"
:uiStyle=
"uiStyle"
...
...
@@ -10,8 +10,8 @@
:titleBarCloseMode=
"titleBarCloseMode"
>
<slot></slot>
</app-form-group2>
</
div
>
<
div
v-else
>
</
template
>
<
template
v-else
>
<card
v-if=
"isShowCaption === true"
:bordered=
"false"
:dis-hover=
"true"
:class=
"classes"
>
<p
class=
''
slot=
'title'
>
<icon
v-if=
"titleBarCloseMode !== 0"
:type=
"collapseContant ? 'ios-arrow-dropright-circle' : 'ios-arrow-dropdown-circle'"
...
...
@@ -87,17 +87,17 @@
<
/template
>
<
/a
>
<
/template
>
<
div
v
-
if
=
"Object.is(layoutType, 'FLEX')"
>
<
template
v
-
if
=
"Object.is(layoutType, 'FLEX')"
>
<
slot
><
/slot
>
<
/
div
>
<
div
v
-
if
=
"!Object.is(layoutType, 'FLEX')"
>
<
/
template
>
<
template
v
-
if
=
"!Object.is(layoutType, 'FLEX')"
>
<
row
:
gutter
=
"10"
><
slot
><
/slot></
row
>
<
/
div
>
<
/
template
>
<
/card
>
<
row
v
-
if
=
"isShowCaption === false"
:
class
=
"classes
"
>
<
slot
><
/slot
>
<
/
row
>
<
/
div
>
<
template
v
-
if
=
"isShowCaption === false
"
>
<
slot
><
/slot
>
<
/
template
>
<
/
template
>
<
/div
>
<
/template
>
...
...
app_BusinessCentral/src/components/app-form-item/app-form-item.less
浏览文件 @
daad1c0a
.app-form-item-wrapper {
height: 100%;
}
.app-form-item {
height: 100%;
>.ivu-form-item-label {
text-decoration: none;
...
...
@@ -8,45 +13,58 @@
}
>.ivu-form-item-content {
height: 100%;
min-height: 36px;
>.editor {
height: 100%;
}
}
}
.app-form-item
-label-top
{
.app-form-item
.label-top, .app-form-item.label-bottom
{
>.ivu-form-item-label {
float: none;
display: inline-block;
padding: 0 0 10px;
.app-form-item-label {
height: 16px;
}
.editor {
height: calc(100% - 16px);
}
}
.app-form-item-label-left {
.app-form-item.label-left, .app-form-item.label-right {
.app-form-item-label, .editor {
height: 100%;
}
}
.app-form-item.label-left {
.app-form-item-label {
float: left;
text-align: right;
padding-right: 1
2
px;
padding-right: 1
0
px;
}
}
.app-form-item-label-right {
.app-form-item.label-right {
.app-form-item-label {
float: right;
text-align: left;
padding-left: 1
2
px;
padding-left: 1
0
px;
}
}
.app-form-item-label-top {
.app-form-item.label-none {
.app-form-item-label {
display: block;
padding-bottom: 10px;
display: none !important;
}
}
.app-form-item-label-bottom {
.app-form-item-label {
display: block;
padding-top: 10px;
.editor {
height: 100%;
}
}
\ No newline at end of file
app_BusinessCentral/src/components/app-form-item/app-form-item.vue
浏览文件 @
daad1c0a
此差异已折叠。
点击以展开。
app_BusinessCentral/src/components/login/login.vue
浏览文件 @
daad1c0a
...
...
@@ -40,7 +40,7 @@
class=
"login_reset"
>
重置
</i-button>
</form-item>
<!--
<form-item>
<div
style=
"text-align: center"
>
<span
class=
"form_tipinfo"
>
其他登录方式
</span>
...
...
@@ -53,7 +53,7 @@
<img
src=
"/assets/img/weixin.svg"
class=
"wx-svg-container"
draggable=
"false"
>
</div>
</div>
</form-item>
</form-item>
-->
</i-form>
<p
class=
'login-tip'
>
...
...
@@ -87,7 +87,7 @@ export default class Login extends Vue {
* @type {*}
* @memberof Login
*/
public
form
:
any
=
{
loginname
:
'
guest'
,
password
:
'guest
'
};
public
form
:
any
=
{
loginname
:
'
pms_guest'
,
password
:
'guest@123
'
};
/**
* 登录提示语
...
...
@@ -166,6 +166,9 @@ export default class Login extends Vue {
* @memberof Login
*/
public
handleSubmit
():
void
{
let
leftTime
=
new
Date
();
leftTime
.
setTime
(
leftTime
.
getSeconds
()
-
1000
);
document
.
cookie
=
"ibzuaa-token=;expires="
+
leftTime
.
toUTCString
();
const
form
:
any
=
this
.
$refs
.
loginForm
;
let
validatestate
:
boolean
=
true
;
form
.
validate
((
valid
:
boolean
)
=>
{
...
...
@@ -219,7 +222,7 @@ export default class Login extends Vue {
*/
public
goReset
():
void
{
const
_this
=
this
;
_this
.
form
=
{
loginname
:
'
guest'
,
password
:
'guest
'
}
_this
.
form
=
{
loginname
:
'
pms_guest'
,
password
:
'guest@123
'
}
}
/**
...
...
app_BusinessCentral/src/engine/view/edit-view-engine.ts
浏览文件 @
daad1c0a
...
...
@@ -253,6 +253,7 @@ export default class EditViewEngine extends ViewEngine {
this
.
view
.
$route
.
meta
.
info
=
info
;
}
this
.
view
.
model
.
srfTitle
=
`
${
this
.
view
.
$t
(
viewdata
.
srfTitle
)}
-
${
viewdata
.
dataInfo
}
`
;
this
.
view
.
$emit
(
'viewModelChange'
,
this
.
view
.
model
.
srfTitle
);
}
}
...
...
app_BusinessCentral/src/studio-core/components/html-container/html-container.vue
浏览文件 @
daad1c0a
<
template
>
<div
class=
"html-container"
v-html=
"
content
"
></div>
<div
class=
"html-container"
v-html=
"
rHtml
"
></div>
</
template
>
<
script
lang=
"tsx"
>
import
{
Vue
,
Component
,
Prop
,
Watch
}
from
'vue-property-decorator'
;
import
{
Environment
}
from
'../../../environments/environment'
;
/**
* 操作历史记录
...
...
@@ -14,14 +15,34 @@ import { Vue, Component, Prop, Watch } from 'vue-property-decorator';
@
Component
({})
export
default
class
HtmlContainer
extends
Vue
{
/**
* 替换后html内容
*
* @type string
* @memberof HtmlContainer
*/
protected
rHtml
:
string
=
''
;
/**
* 呈现的Html内容
*
* @type string
* @memberof HtmlContainer
*/
@
Prop
({
default
:
''
})
@
Prop
({
default
:
``
})
public
content
!
:
string
;
/**
* 监控html变化
*
* @memberof HtmlContainer
*/
@
Watch
(
'content'
,
{
immediate
:
true
})
public
watchContent
():
void
{
if
(
this
.
content
&&
!
Object
.
is
(
this
.
content
,
''
))
{
this
.
rHtml
=
this
.
content
.
replace
(
/
\{(\d
+
)\.(
bmp|jpg|jpeg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp
)\}
/g
,
`
${
Environment
.
BaseUrl
}${
Environment
.
ExportFile
}
/$1`
);
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
app_BusinessCentral/src/studio-core/index.ts
浏览文件 @
daad1c0a
...
...
@@ -44,7 +44,8 @@ export const StudioCore = {
v
.
component
(
'studio-view'
,
StudioView
);
v
.
component
(
'studio-embed-view'
,
StudioEmbedView
);
v
.
component
(
'view-config-actions'
,
ViewConfigActions
);
v
.
component
(
'html-container'
,
HtmlContainer
);
// 注册指令
v
.
directive
(
'notification-signal'
,
NotificationSignal
);
v
.
directive
(
'html-container'
,
HtmlContainer
);
}
};
\ No newline at end of file
app_BusinessCentral/src/studio-core/service/UIStateService.ts
浏览文件 @
daad1c0a
...
...
@@ -37,11 +37,14 @@ export class UIStateService {
const
data
:
any
=
localStorage
.
getItem
(
this
.
localStoreKey
);
if
(
data
)
{
this
.
fillLayoutState
(
JSON
.
parse
(
data
));
}
else
{
this
.
fillLayoutState
({});
}
}
catch
(
error
)
{
}
}
catch
(
error
)
{
this
.
fillLayoutState
({});
}
let
z
=
this
;
on
(
window
,
'beforeunload'
,
()
=>
{
console
.
log
(
z
.
layoutState
)
localStorage
.
setItem
(
this
.
localStoreKey
,
JSON
.
stringify
(
this
.
layoutState
));
});
}
...
...
app_BusinessCentral/src/studio-core/utils/studio-drawer/studio-drawer.tsx
浏览文件 @
daad1c0a
...
...
@@ -219,6 +219,9 @@ export class StudioDrawer extends Vue {
{
this
.
showViewList
.
map
((
item
,
i
)
=>
{
const
ref
:
any
=
this
.
$refs
[
item
.
viewname
+
i
];
if
(
!
ref
)
{
setTimeout
(()
=>
{
this
.
$forceUpdate
();
},
300
);
return
;
}
return
<
span
key=
{
i
}
>
...
...
app_BusinessCentral/src/user-default-register.ts
浏览文件 @
daad1c0a
import
Vue
from
'vue'
;
import
{
StudioCore
}
from
'./studio-core'
;
import
IBizStudioComponentsVue
from
'ibiz-studio-components-vue'
;
import
AppVuePivotTable
from
'./components/app-vue-pivottable/app-vue-pivottable.vue'
;
// 注册Vue插件
export
const
UserDefaultComponent
=
{
install
(
v
:
any
,
opt
:
any
)
{
Vue
.
use
(
StudioCore
);
Vue
.
use
(
IBizStudioComponentsVue
);
v
.
component
(
'app-vue-pivottable'
,
AppVuePivotTable
);
}
};
\ No newline at end of file
app_BusinessCentral/src/user-register.ts
浏览文件 @
daad1c0a
import
Vue
from
'vue'
;
import
IBizStudioComponentsVue
from
'ibiz-studio-components-vue'
;
import
{
UserDefaultComponent
}
from
'./user-default-register'
;
import
AppVuePivotTable
from
'./components/app-vue-pivottable/app-vue-pivottable.vue'
;
// 注册Vue插件
export
const
UserComponent
=
{
install
(
v
:
any
,
opt
:
any
)
{
Vue
.
use
(
UserDefaultComponent
);
Vue
.
use
(
IBizStudioComponentsVue
);
v
.
component
(
'app-vue-pivottable'
,
AppVuePivotTable
);
}
};
\ No newline at end of file
app_BusinessCentral/src/utils/view-tool/view-tool.ts
浏览文件 @
daad1c0a
...
...
@@ -82,7 +82,7 @@ export class ViewTool {
if
(
param
&&
!
Object
.
is
(
param
,
''
))
{
return
`/
${
_pathName
}
/
${
param
}
`
;
}
return
`/
${
_pathName
}
/null
`
;
return
`/
${
_pathName
}
`
;
}
/**
...
...
@@ -100,13 +100,13 @@ export class ViewTool {
let
[
arg
]
=
args
;
arg
=
arg
?
arg
:
{};
deResParameters
.
forEach
(({
pathName
,
parameterName
}:
{
pathName
:
string
,
parameterName
:
string
})
=>
{
let
value
:
any
=
null
;
let
value
:
any
=
null
;
if
(
viewParam
[
parameterName
]
&&
!
Object
.
is
(
viewParam
[
parameterName
],
''
)
&&
!
Object
.
is
(
viewParam
[
parameterName
],
'null'
))
{
value
=
viewParam
[
parameterName
];
}
else
if
(
arg
[
parameterName
]
&&
!
Object
.
is
(
arg
[
parameterName
],
''
)
&&
!
Object
.
is
(
arg
[
parameterName
],
'null'
))
{
value
=
arg
[
parameterName
];
}
routePath
=
`
${
routePath
}
/
${
pathName
}
/
${
value
}
`
;
routePath
=
`
${
routePath
}
/
${
pathName
}
`
+
value
!==
null
?
`/
${
value
}
`
:
''
;
});
return
routePath
;
}
...
...
businesscentral-app/businesscentral-app-businesscentral/src/main/docker/Dockerfile
浏览文件 @
daad1c0a
...
...
@@ -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 /businesscentral-app-businesscentral.jar
EXPOSE
808
0
EXPOSE
1032
0
ADD
businesscentral-app-businesscentral.jar /businesscentral-app-businesscentral.jar
businesscentral-app/businesscentral-app-businesscentral/src/main/docker/businesscentral-app-businesscentral.yaml
浏览文件 @
daad1c0a
...
...
@@ -3,9 +3,23 @@ services:
businesscentral-app-businesscentral
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-businesscentral:latest
ports
:
-
"
8080:808
0"
-
"
10320:1032
0"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10320
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
deploy
:
resources
:
limits
:
...
...
businesscentral-provider/businesscentral-provider-centralapi/src/main/docker/Dockerfile
浏览文件 @
daad1c0a
...
...
@@ -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 /businesscentral-provider-centralapi.jar
EXPOSE
10310
EXPOSE
8081
ADD
businesscentral-provider-centralapi.jar /businesscentral-provider-centralapi.jar
businesscentral-provider/businesscentral-provider-centralapi/src/main/docker/businesscentral-provider-centralapi.yaml
浏览文件 @
daad1c0a
...
...
@@ -3,23 +3,9 @@ services:
businesscentral-provider-centralapi
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-provider-centralapi:latest
ports
:
-
"
10310:10310
"
-
"
8081:8081
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10310
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
deploy
:
resources
:
limits
:
...
...
config.xml
浏览文件 @
daad1c0a
...
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibizbusinesscentral/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizbusinesscentral/
mvn clean package -P
centralapi
cd businesscentral-
provider/businesscentral-provider-centralapi
mvn -P
centralapi
docker:build
mvn -P
centralapi
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-
provider-centralapi.yaml iBizEE --with-registry-auth
mvn clean package -P
businesscentral
cd businesscentral-
app/businesscentral-app-businesscentral
mvn -P
businesscentral
docker:build
mvn -P
businesscentral
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-
app-businesscentral.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录