Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
资
资产管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
资产管理
提交
a74b394c
提交
a74b394c
编写于
8月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_gzf 部署微服务应用
上级
f0306b40
变更
25
显示空白字符变更
内嵌
并排
正在显示
25 个修改的文件
包含
205 行增加
和
72 行删除
+205
-72
app-range-editor.vue
...ment/src/components/app-range-editor/app-range-editor.vue
+10
-0
codelist.vue
app_AssetManagement/src/components/codelist/codelist.vue
+1
-1
dropdown-list.less
...anagement/src/components/dropdown-list/dropdown-list.less
+15
-3
dropdown-list.vue
...Management/src/components/dropdown-list/dropdown-list.vue
+27
-11
eamlocation-state_en_US.ts
...res/entities/eamlocation-state/eamlocation-state_en_US.ts
+8
-0
eamlocation-state_zh_CN.ts
...res/entities/eamlocation-state/eamlocation-state_zh_CN.ts
+8
-0
eamasset-grid-view.html
...rc/pages/asset/eamasset-grid-view/eamasset-grid-view.html
+0
-3
eamlocation-state-list-exp-view-base.tsx
...te-list-exp-view/eamlocation-state-list-exp-view-base.tsx
+59
-0
ViewBase.tsx
app_AssetManagement/src/studio-core/view/ViewBase.tsx
+2
-1
default.less
app_AssetManagement/src/styles/default.less
+16
-0
eamasset-ui-service-base.ts
...gement/src/uiservice/eamasset/eamasset-ui-service-base.ts
+0
-2
view-tool.ts
app_AssetManagement/src/utils/view-tool/view-tool.ts
+26
-26
info-viewtabviewpanel-tabviewpanel.html
...anel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
+1
-0
info-viewtabviewpanel2-tabviewpanel.html
...el2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
+1
-0
info-viewtabviewpanel-tabviewpanel.html
...anel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
+1
-0
info-viewtabviewpanel2-tabviewpanel.html
...el2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
+1
-0
info-viewtabviewpanel3-tabviewpanel.html
...el3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel.html
+1
-0
info-viewtabviewpanel-tabviewpanel.html
...anel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
+1
-0
info-viewtabviewpanel2-tabviewpanel.html
...el2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
+1
-0
info-viewtabviewpanel3-tabviewpanel.html
...el3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel.html
+1
-0
Dockerfile
...management-app-assetmanagement/src/main/docker/Dockerfile
+1
-1
assetmanagement-app-assetmanagement.yaml
.../src/main/docker/assetmanagement-app-assetmanagement.yaml
+17
-1
Dockerfile
...etmanagement-provider-assetapi/src/main/docker/Dockerfile
+1
-1
assetmanagement-provider-assetapi.yaml
...pi/src/main/docker/assetmanagement-provider-assetapi.yaml
+1
-17
config.xml
config.xml
+5
-5
未找到文件。
app_AssetManagement/src/components/app-range-editor/app-range-editor.vue
浏览文件 @
a74b394c
...
...
@@ -171,6 +171,16 @@ export default class AppRangeEditor extends Vue {
*/
public
onValueChange
(
name
:
string
,
value
:
any
)
{
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
name
,
value
:
value
});
let
count
=
0
;
if
(
this
.
refFormItem
)
{
this
.
refFormItem
.
forEach
((
item
:
any
)
=>
{
if
(
this
.
activeData
[
item
]
!=
null
&&
!
Object
.
is
(
this
.
activeData
[
item
],
''
))
{
count
++
;
}
})
}
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
name
,
value
:
count
===
this
.
refFormItem
.
length
?
"not null"
:
null
});
}
}
...
...
app_AssetManagement/src/components/codelist/codelist.vue
浏览文件 @
a74b394c
...
...
@@ -175,7 +175,7 @@ export default class CodeList extends Vue {
this
.
isUseLangres
=
false
;
let
_this
=
this
;
// 空值判断
if
(
Object
.
is
(
this
.
$util
.
typeOf
(
this
.
value
),
'undefined'
)
||
Object
.
is
(
this
.
$util
.
typeOf
(
this
.
value
),
'null'
)
)
{
if
(
Object
.
is
(
this
.
$util
.
typeOf
(
this
.
value
),
'undefined'
)
||
Object
.
is
(
this
.
$util
.
typeOf
(
this
.
value
),
'null'
)
||
Object
.
is
(
this
.
value
,
''
))
{
this
.
ifEmpty
=
true
;
return
;
}
...
...
app_AssetManagement/src/components/dropdown-list/dropdown-list.less
浏览文件 @
a74b394c
.dropdown-list{
.dropdown-list-container {
.dropdown-list{
display: inline-block;
}
.icon-circle {
display: none;
position: absolute;
right: 24px;
padding-top: 10px;
}
}
.dropdown-list-container:hover {
.icon-circle {
display: unset;
}
}
app_AssetManagement/src/components/dropdown-list/dropdown-list.vue
浏览文件 @
a74b394c
<
template
>
<div
class=
'dropdown-list-container'
>
<i-select
class=
'dropdown-list'
:transfer=
"true"
class=
'dropdown-list'
v-model=
"currentVal"
:disabled=
"disabled === true ? true : false"
:clearable=
"true"
:filterable=
"filterable === true ? true : false"
@
on-open-change=
"onClick"
:placeholder=
"$t('components.dropDownList.placeholder')"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.value"
>
{{
(
$t
(
'codelist.'
+
tag
+
'.'
+
item
.
value
)
!==
(
'codelist.'
+
tag
+
'.'
+
item
.
value
))?
$t
(
'codelist.'
+
tag
+
'.'
+
item
.
value
)
:
item
.
text
}}
</i-option>
</i-select>
<icon
v-if=
"currentVal == null || currentVal == '' ? false :true"
@
click=
"clear"
type=
"md-close"
class=
"icon-circle"
/>
</div>
</
template
>
<
script
lang=
"ts"
>
...
...
@@ -173,6 +175,9 @@ export default class DropDownList extends Vue {
if
(
isExistAndNotEmpty
(
val
))
{
this
.
$emit
(
'change'
,
val
);
}
else
{
if
(
this
.
value
&&
!
this
.
items
.
find
((
item
:
any
)
=>
Object
.
is
(
this
.
value
,
item
.
value
)))
{
return
;
}
this
.
$emit
(
'change'
,
undefined
);
}
}
...
...
@@ -337,6 +342,17 @@ export default class DropDownList extends Vue {
}
}
/**
* 清除事件
*
* @param {*} $event
* @memberof DropDownList
*/
public
clear
(
$event
:
any
){
if
(
this
.
currentVal
)
{
this
.
currentVal
=
null
;
}
}
}
</
script
>
<
style
lang=
'less'
>
...
...
app_AssetManagement/src/locale/lanres/entities/eamlocation-state/eamlocation-state_en_US.ts
浏览文件 @
a74b394c
...
...
@@ -83,6 +83,14 @@ export default {
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
seperator1
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction1
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem23
:
{
caption
:
"-"
,
tip
:
""
,
...
...
app_AssetManagement/src/locale/lanres/entities/eamlocation-state/eamlocation-state_zh_CN.ts
浏览文件 @
a74b394c
...
...
@@ -82,6 +82,14 @@ export default {
caption
:
"编辑"
,
tip
:
"编辑"
,
},
seperator1
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction1
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem23
:
{
caption
:
"-"
,
tip
:
""
,
...
...
app_AssetManagement/src/pages/asset/eamasset-grid-view/eamasset-grid-view.html
浏览文件 @
a74b394c
<studio-view-style2
viewName=
"eamassetgridview"
viewTitle=
"资产信息"
class=
'degridview eamasset-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"资产名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
...
...
app_AssetManagement/src/pages/location/eamlocation-state-list-exp-view/eamlocation-state-list-exp-view-base.tsx
浏览文件 @
a74b394c
...
...
@@ -104,6 +104,9 @@ export class EAMLocationStateListExpViewBase extends ListExpViewBase {
tbitem15
:
{
name
:
'tbitem15'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem2
:
{
name
:
'tbitem2'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
seperator1
:
{
name
:
'seperator1'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
deuiaction1
:
{
name
:
'deuiaction1'
,
caption
:
'保存'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存'
,
iconcls
:
'fa fa-save'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
,
class
:
''
}
},
tbitem23
:
{
name
:
'tbitem23'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem8
:
{
name
:
'tbitem8'
,
caption
:
'删除'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
,
class
:
''
}
},
...
...
@@ -160,6 +163,9 @@ export class EAMLocationStateListExpViewBase extends ListExpViewBase {
if
(
Object
.
is
(
$event
.
tag
,
'tbitem2'
))
{
this
.
toolbar_tbitem2_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
...
...
@@ -255,6 +261,33 @@ export class EAMLocationStateListExpViewBase extends ListExpViewBase {
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"EAMLocationState"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"EAMLocationState"
);
}
/**
* 逻辑事件
*
...
...
@@ -387,6 +420,32 @@ export class EAMLocationStateListExpViewBase extends ListExpViewBase {
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof EAMLocationStateListExpViewBase
*/
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 删除
*
...
...
app_AssetManagement/src/studio-core/view/ViewBase.tsx
浏览文件 @
a74b394c
...
...
@@ -560,7 +560,8 @@ export class ViewBase extends Vue {
this
.
$emit
(
'viewdataschange'
,
[
args
]);
this
.
$emit
(
'close'
,
[
args
]);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
const
item
=
this
.
$appService
.
navHistory
.
findHistoryByTag
(
this
.
viewtag
);
this
.
$tabPageExp
.
onClose
(
item
);
}
else
{
this
.
$router
.
back
();
this
.
$appService
.
navHistory
.
pop
();
...
...
app_AssetManagement/src/styles/default.less
浏览文件 @
a74b394c
...
...
@@ -751,6 +751,11 @@ div::-webkit-scrollbar-thumb {
.ivu-input-number:hover {
border-color: var(--form-editor-active-color);
}
.ivu-input-number-disabled {
.ivu-input-number-input {
background-color: var(--form-disable-editor-background-color);
}
}
}
}
}
...
...
@@ -1262,4 +1267,15 @@ div::-webkit-scrollbar-thumb {
}
}
// 数据选择样式
.app-picker {
.el-select {
.el-select__caret {
color: var(--form-editor-font-color);
}
}
.el-icon-arrow-up,.el-icon-arrow-down {
color: var(--form-editor-font-color);
}
}
@import './user.less';
\ No newline at end of file
app_AssetManagement/src/uiservice/eamasset/eamasset-ui-service-base.ts
浏览文件 @
a74b394c
...
...
@@ -180,7 +180,6 @@ export default class EAMAssetUIServiceBase extends UIService {
viewname
:
'eamasset-edit-view'
,
height
:
0
,
width
:
0
,
title
:
actionContext
.
$t
(
'entities.eamasset.views.editview.title'
),
};
openPopupModal
(
view
,
data
);
}
...
...
@@ -368,7 +367,6 @@ export default class EAMAssetUIServiceBase extends UIService {
viewname
:
'eamasset-quick-create-view'
,
height
:
0
,
width
:
0
,
title
:
actionContext
.
$t
(
'entities.eamasset.views.quickcreateview.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
...
...
app_AssetManagement/src/utils/view-tool/view-tool.ts
浏览文件 @
a74b394c
...
...
@@ -43,7 +43,7 @@ export class ViewTool {
// 视图常规参数
Object
.
assign
(
viewdata
,
data
);
// 传入父视图的srfsessionid
Object
.
assign
(
viewdata
,
{
srfsessionid
:
viewParam
[
'srfsessionid'
]
});
Object
.
assign
(
viewdata
,
{
srfsessionid
:
viewParam
[
'srfsessionid'
]
});
return
viewdata
;
}
...
...
@@ -63,7 +63,7 @@ export class ViewTool {
public
static
buildUpRoutePath
(
route
:
Route
,
viewParam
:
any
=
{},
deResParameters
:
any
[],
parameters
:
any
[],
args
:
any
[],
data
:
any
):
string
{
const
indexRoutePath
=
this
.
getIndexRoutePath
(
route
);
const
deResRoutePath
=
this
.
getDeResRoutePath
(
viewParam
,
deResParameters
,
args
);
const
deRoutePath
=
this
.
getActiveRoutePath
(
parameters
,
args
,
data
,
viewParam
);
const
deRoutePath
=
this
.
getActiveRoutePath
(
parameters
,
args
,
data
,
viewParam
);
return
`
${
indexRoutePath
}${
deResRoutePath
}${
deRoutePath
}
`
;
}
...
...
@@ -79,10 +79,10 @@ export class ViewTool {
const
{
parameters
:
_parameters
}:
{
parameters
:
any
[]
}
=
route
.
meta
;
const
{
pathName
:
_pathName
,
parameterName
:
_parameterName
}:
{
pathName
:
string
,
parameterName
:
string
}
=
_parameters
[
0
];
const
param
=
route
.
params
[
_parameterName
];
if
(
param
&&
!
Object
.
is
(
param
,
''
))
{
if
(
isExistAndNotEmpty
(
param
))
{
return
`/
${
_pathName
}
/
${
param
}
`
;
}
return
`/
${
_pathName
}
/null
`
;
return
`/
${
_pathName
}
`
;
}
/**
...
...
@@ -99,15 +99,15 @@ export class ViewTool {
let
routePath
:
string
=
''
;
let
[
arg
]
=
args
;
arg
=
arg
?
arg
:
{};
if
(
deResParameters
&&
deResParameters
.
length
>
0
)
{
if
(
deResParameters
&&
deResParameters
.
length
>
0
)
{
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
}
`
+
(
isExistAndNotEmpty
(
value
)
?
`/
${
value
}
`
:
''
)
;
});
}
return
routePath
;
...
...
@@ -123,10 +123,10 @@ export class ViewTool {
* @returns {string}
* @memberof ViewTool
*/
public
static
getActiveRoutePath
(
parameters
:
any
[],
args
:
any
[],
data
:
any
,
viewParam
:
any
=
{}):
string
{
public
static
getActiveRoutePath
(
parameters
:
any
[],
args
:
any
[],
data
:
any
,
viewParam
:
any
=
{}):
string
{
let
routePath
:
string
=
''
;
// 不存在应用实体
if
(
parameters
&&
parameters
.
length
>
0
)
{
if
(
parameters
&&
parameters
.
length
>
0
)
{
if
(
parameters
.
length
===
1
)
{
const
[{
pathName
,
parameterName
}]
=
parameters
;
routePath
=
`/
${
pathName
}
`
;
...
...
@@ -138,7 +138,7 @@ export class ViewTool {
arg
=
arg
?
arg
:
{};
const
[{
pathName
:
_pathName
,
parameterName
:
_parameterName
},
{
pathName
:
_pathName2
,
parameterName
:
_parameterName2
}]
=
parameters
;
const
_value
:
any
=
arg
[
_parameterName
]
||
viewParam
[
_parameterName
]
||
null
;
routePath
=
`/
${
_pathName
}
/
${
_value
}
/
${
_pathName2
}
`
;
routePath
=
`/
${
_pathName
}
${
isExistAndNotEmpty
(
_value
)
?
`/
${
_value
}
`
:
''
}
/
${
_pathName2
}
`
;
if
(
Object
.
keys
(
data
).
length
>
0
)
{
routePath
=
`
${
routePath
}
?
${
qs
.
stringify
(
data
,
{
delimiter
:
';'
})}
`
;
}
...
...
@@ -155,8 +155,8 @@ export class ViewTool {
* @returns {*}
* @memberof ViewTool
*/
public
static
formatRouteParams
(
params
:
any
,
route
:
any
,
context
:
any
,
viewparams
:
any
):
void
{
Object
.
keys
(
params
).
forEach
((
key
:
string
,
index
:
number
)
=>
{
public
static
formatRouteParams
(
params
:
any
,
route
:
any
,
context
:
any
,
viewparams
:
any
):
void
{
Object
.
keys
(
params
).
forEach
((
key
:
string
,
index
:
number
)
=>
{
const
param
:
string
|
null
|
undefined
=
params
[
key
];
if
(
!
param
||
Object
.
is
(
param
,
''
)
||
Object
.
is
(
param
,
'null'
))
{
return
;
...
...
@@ -168,11 +168,11 @@ export class ViewTool {
Object
.
assign
(
context
,
{
[
key
]:
param
});
}
});
if
(
route
&&
route
.
fullPath
&&
route
.
fullPath
.
indexOf
(
"?"
)
>
-
1
)
{
const
_viewparams
:
any
=
route
.
fullPath
.
slice
(
route
.
fullPath
.
indexOf
(
"?"
)
+
1
);
const
_viewparamArray
:
Array
<
string
>
=
decodeURIComponent
(
_viewparams
).
split
(
";"
)
if
(
_viewparamArray
.
length
>
0
)
{
_viewparamArray
.
forEach
((
item
:
any
)
=>
{
if
(
route
&&
route
.
fullPath
&&
route
.
fullPath
.
indexOf
(
"?"
)
>
-
1
)
{
const
_viewparams
:
any
=
route
.
fullPath
.
slice
(
route
.
fullPath
.
indexOf
(
"?"
)
+
1
);
const
_viewparamArray
:
Array
<
string
>
=
decodeURIComponent
(
_viewparams
).
split
(
";"
)
if
(
_viewparamArray
.
length
>
0
)
{
_viewparamArray
.
forEach
((
item
:
any
)
=>
{
Object
.
assign
(
viewparams
,
qs
.
parse
(
item
));
})
}
...
...
@@ -251,27 +251,27 @@ export class ViewTool {
* @param {*} [UIService] 界面行为服务
* @memberof ViewTool
*/
public
static
calcActionItemAuthState
(
data
:
any
,
ActionModel
:
any
,
UIService
:
any
)
{
public
static
calcActionItemAuthState
(
data
:
any
,
ActionModel
:
any
,
UIService
:
any
)
{
for
(
const
key
in
ActionModel
)
{
if
(
!
ActionModel
.
hasOwnProperty
(
key
))
{
return
;
}
const
_item
=
ActionModel
[
key
];
if
(
_item
&&
_item
[
'dataaccaction'
]
&&
UIService
&&
data
&&
Object
.
keys
(
data
).
length
>
0
)
{
let
dataActionResult
:
any
=
UIService
.
getAllOPPrivs
(
data
)[
_item
[
'dataaccaction'
]];
if
(
_item
&&
_item
[
'dataaccaction'
]
&&
UIService
&&
data
&&
Object
.
keys
(
data
).
length
>
0
)
{
let
dataActionResult
:
any
=
UIService
.
getAllOPPrivs
(
data
)[
_item
[
'dataaccaction'
]];
// 无权限:0;有权限:1
if
(
dataActionResult
===
0
)
{
if
(
dataActionResult
===
0
)
{
// 禁用:1;隐藏:2;隐藏且默认隐藏:6
if
(
_item
.
noprivdisplaymode
===
1
)
{
if
(
_item
.
noprivdisplaymode
===
1
)
{
_item
.
disabled
=
true
;
}
if
((
_item
.
noprivdisplaymode
===
2
)
||
(
_item
.
noprivdisplaymode
===
6
))
{
if
((
_item
.
noprivdisplaymode
===
2
)
||
(
_item
.
noprivdisplaymode
===
6
))
{
_item
.
visabled
=
false
;
}
else
{
}
else
{
_item
.
visabled
=
true
;
}
}
if
(
dataActionResult
===
1
)
{
if
(
dataActionResult
===
1
)
{
_item
.
visabled
=
true
;
_item
.
disabled
=
false
;
}
...
...
app_AssetManagement/src/widgets/eamasset/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
浏览文件 @
a74b394c
...
...
@@ -7,5 +7,6 @@
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:expActive=
"expActive"
@
closeview=
"closeView($event)"
/>
</div>
\ No newline at end of file
app_AssetManagement/src/widgets/eamasset/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
浏览文件 @
a74b394c
...
...
@@ -7,5 +7,6 @@
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:expActive=
"expActive"
@
closeview=
"closeView($event)"
/>
</div>
\ No newline at end of file
app_AssetManagement/src/widgets/eamlocation/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
浏览文件 @
a74b394c
...
...
@@ -7,5 +7,6 @@
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:expActive=
"expActive"
@
closeview=
"closeView($event)"
/>
</div>
\ No newline at end of file
app_AssetManagement/src/widgets/eamlocation/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
浏览文件 @
a74b394c
...
...
@@ -7,5 +7,6 @@
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:expActive=
"expActive"
@
closeview=
"closeView($event)"
/>
</div>
\ No newline at end of file
app_AssetManagement/src/widgets/eamlocation/info-viewtabviewpanel3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel.html
浏览文件 @
a74b394c
...
...
@@ -7,5 +7,6 @@
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:expActive=
"expActive"
@
closeview=
"closeView($event)"
/>
</div>
\ No newline at end of file
app_AssetManagement/src/widgets/eamspare-parts-group/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
浏览文件 @
a74b394c
...
...
@@ -7,5 +7,6 @@
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:expActive=
"expActive"
@
closeview=
"closeView($event)"
/>
</div>
\ No newline at end of file
app_AssetManagement/src/widgets/eamspare-parts-group/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
浏览文件 @
a74b394c
...
...
@@ -7,5 +7,6 @@
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:expActive=
"expActive"
@
closeview=
"closeView($event)"
/>
</div>
\ No newline at end of file
app_AssetManagement/src/widgets/eamspare-parts-group/info-viewtabviewpanel3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel.html
浏览文件 @
a74b394c
...
...
@@ -7,5 +7,6 @@
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:expActive=
"expActive"
@
closeview=
"closeView($event)"
/>
</div>
\ No newline at end of file
assetmanagement-app/assetmanagement-app-assetmanagement/src/main/docker/Dockerfile
浏览文件 @
a74b394c
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /assetmanagement-app-assetmanagement.jar
EXPOSE
8080
EXPOSE
10325
ADD
assetmanagement-app-assetmanagement.jar /assetmanagement-app-assetmanagement.jar
assetmanagement-app/assetmanagement-app-assetmanagement/src/main/docker/assetmanagement-app-assetmanagement.yaml
浏览文件 @
a74b394c
...
...
@@ -3,9 +3,25 @@ services:
assetmanagement-app-assetmanagement
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/assetmanagement-app-assetmanagement:latest
ports
:
-
"
8080:8080
"
-
"
10325:10325
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10325
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
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&allowMultiQueries=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
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
assetmanagement-provider/assetmanagement-provider-assetapi/src/main/docker/Dockerfile
浏览文件 @
a74b394c
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /assetmanagement-provider-assetapi.jar
EXPOSE
10315
EXPOSE
8081
ADD
assetmanagement-provider-assetapi.jar /assetmanagement-provider-assetapi.jar
assetmanagement-provider/assetmanagement-provider-assetapi/src/main/docker/assetmanagement-provider-assetapi.yaml
浏览文件 @
a74b394c
...
...
@@ -3,25 +3,9 @@ services:
assetmanagement-provider-assetapi
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/assetmanagement-provider-assetapi:latest
ports
:
-
"
10315:10315
"
-
"
8081:8081
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10315
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
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&allowMultiQueries=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
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
config.xml
浏览文件 @
a74b394c
...
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibizassetmanagement/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizassetmanagement/
mvn clean package -Passet
api
cd assetmanagement-
provider/assetmanagement-provider-assetapi
mvn -Passet
api
docker:build
mvn -Passet
api
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/assetmanagement-
provider-assetapi.yaml iBizEE --with-registry-auth
mvn clean package -Passet
management
cd assetmanagement-
app/assetmanagement-app-assetmanagement
mvn -Passet
management
docker:build
mvn -Passet
management
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/assetmanagement-
app-assetmanagement.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录