Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdict
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdict
提交
9085f3a4
提交
9085f3a4
编写于
6月 23, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 部署微服务应用
上级
2459f6d5
变更
36
隐藏空白字符变更
内嵌
并排
正在显示
36 个修改的文件
包含
751 行增加
和
97 行删除
+751
-97
package.json
app_web/package.json
+1
-0
view-config.json
app_web/public/assets/json/view-config.json
+2
-2
app-register.ts
app_web/src/app-register.ts
+5
-8
app-breadcrumb.vue
app_web/src/components/app-breadcrumb/app-breadcrumb.vue
+10
-1
app-department-select.vue
...omponents/app-department-select/app-department-select.vue
+2
-1
app-group-picker.vue
app_web/src/components/app-group-picker/app-group-picker.vue
+306
-0
app-group-select.vue
app_web/src/components/app-group-select/app-group-select.vue
+309
-0
app-org-select.vue
app_web/src/components/app-org-select/app-org-select.vue
+2
-0
app-user.less
app_web/src/components/app-user/app-user.less
+3
-0
app-user.vue
app_web/src/components/app-user/app-user.vue
+2
-2
context-menu-drag.vue
...eb/src/components/context-menu-drag/context-menu-drag.vue
+26
-7
edit-view-engine.ts
app_web/src/engine/view/edit-view-engine.ts
+4
-4
en-US.ts
app_web/src/locale/lang/en-US.ts
+2
-2
zh-CN.ts
app_web/src/locale/lang/zh-CN.ts
+2
-2
app-index-view-appmenu.ts
...mock/app/app-index-view-appmenu/app-index-view-appmenu.ts
+2
-2
viewconfig.ts
app_web/src/mock/viewconfig/viewconfig.ts
+2
-2
app-index-view-base.vue
...web/src/pages/dict/app-index-view/app-index-view-base.vue
+3
-3
main.ts
app_web/src/pages/dict/app-index-view/main.ts
+0
-3
dict-catalog-edit-view-base.vue
...ct/dict-catalog-edit-view/dict-catalog-edit-view-base.vue
+2
-2
dict-catalog-grid-view-base.vue
...ct/dict-catalog-grid-view/dict-catalog-grid-view-base.vue
+2
-2
dict-catalog-pickup-grid-view-base.vue
...g-pickup-grid-view/dict-catalog-pickup-grid-view-base.vue
+2
-2
dict-catalog-pickup-view-base.vue
...ict-catalog-pickup-view/dict-catalog-pickup-view-base.vue
+2
-2
dict-option-edit-view-base.vue
...dict/dict-option-edit-view/dict-option-edit-view-base.vue
+2
-2
dict-option-grid-edit-view-base.vue
...option-grid-edit-view/dict-option-grid-edit-view-base.vue
+2
-2
dict-option-grid-view-base.vue
...dict/dict-option-grid-view/dict-option-grid-view-base.vue
+2
-2
dict-catalog-service-base.ts
...web/src/service/dict-catalog/dict-catalog-service-base.ts
+0
-2
dict-option-service-base.ts
app_web/src/service/dict-option/dict-option-service-base.ts
+22
-8
default.less
app_web/src/styles/default.less
+0
-1
app-index-view-appmenu-base.vue
...pp/app-index-view-appmenu/app-index-view-appmenu-base.vue
+6
-6
app-index-view-appmenu-model.ts
...pp/app-index-view-appmenu/app-index-view-appmenu-model.ts
+2
-2
vue.config.js
app_web/vue.config.js
+2
-3
config.xml
config.xml
+5
-5
Dockerfile
ibzdict-app/ibzdict-app-web/src/main/docker/Dockerfile
+1
-1
ibzdict-app-web.yaml
...-app/ibzdict-app-web/src/main/docker/ibzdict-app-web.yaml
+14
-1
Dockerfile
...-provider/ibzdict-provider-api/src/main/docker/Dockerfile
+1
-1
ibzdict-provider-api.yaml
...ct-provider-api/src/main/docker/ibzdict-provider-api.yaml
+1
-14
未找到文件。
app_web/package.json
浏览文件 @
9085f3a4
...
...
@@ -58,6 +58,7 @@
"@vue/cli-service"
:
"^4.1.0"
,
"@vue/test-utils"
:
"1.0.0-beta.29"
,
"axios-mock-adapter"
:
"^1.17.0"
,
"compression-webpack-plugin"
:
"^4.0.0"
,
"less"
:
"^3.0.4"
,
"less-loader"
:
"^5.0.0"
,
"mockjs"
:
"^1.1.0"
,
...
...
app_web/public/assets/json/view-config.json
浏览文件 @
9085f3a4
...
...
@@ -40,8 +40,8 @@
"viewtag"
:
"8ad70084b5f98a26370b74da612d3f49"
},
"appindexview"
:
{
"title"
:
"
ibizlab-dict
"
,
"caption"
:
"ibizlab
-dict
"
,
"title"
:
"
dictionary
"
,
"caption"
:
"ibizlab"
,
"viewtype"
:
"APPINDEXVIEW"
,
"viewmodule"
:
"dict"
,
"viewname"
:
"AppIndexView"
,
...
...
app_web/src/app-register.ts
浏览文件 @
9085f3a4
...
...
@@ -68,10 +68,7 @@ import AppUploadFileInfo from './components/app-upload-file-info/app-upload-file
import
ContextMenu
from
'./components/context-menu/context-menu'
import
AppColumnFormat
from
'./components/app-column-format/app-column-format.vue'
import
AppQuickGroup
from
'./components/app-quick-group/app-quick-group.vue'
import
AppOrgSelect
from
'./components/app-org-select/app-org-select.vue'
import
AppDepartmentSelect
from
'./components/app-department-select/app-department-select.vue'
import
IBizGroupSelect
from
'./components/ibiz-group-select/ibiz-group-select.vue'
import
IBizGroupPicker
from
'./components/ibiz-group-picker/ibiz-group-picker.vue'
import
AppGroupPicker
from
'./components/app-group-picker/app-group-picker.vue'
import
AppWFApproval
from
'./components/app-wf-approval/app-wf-approval.vue'
import
Breadcrumb
from
'./components/app-breadcrumb/app-breadcrumb.vue'
import
AppTransfer
from
'./components/app-transfer/app-transfer.vue'
...
...
@@ -156,10 +153,10 @@ export const AppComponents = {
v
.
component
(
'context-menu'
,
ContextMenu
);
v
.
component
(
'app-column-format'
,
AppColumnFormat
);
v
.
component
(
'app-quick-group'
,
AppQuickGroup
);
v
.
component
(
'app-org-select'
,
AppOrgSelect
);
v
.
component
(
'app-department-select'
,
AppDepartmentSelect
);
v
.
component
(
'
ibiz-group-select'
,
IBizGroupSelect
);
v
.
component
(
'
ibiz-group-picker'
,
IBizGroupPicker
);
v
.
component
(
'app-org-select'
,
()
=>
import
(
'./components/app-org-select/app-org-select.vue'
)
);
v
.
component
(
'app-department-select'
,
()
=>
import
(
'./components/app-department-select/app-department-select.vue'
)
);
v
.
component
(
'
app-group-select'
,()
=>
import
(
'./components/app-group-select/app-group-select.vue'
)
);
v
.
component
(
'
app-group-picker'
,()
=>
import
(
'./components/app-group-picker/app-group-picker.vue'
)
);
v
.
component
(
'app-wf-approval'
,
AppWFApproval
);
v
.
component
(
'app-breadcrumb'
,
Breadcrumb
);
v
.
component
(
'app-transfer'
,
AppTransfer
);
...
...
app_web/src/components/app-breadcrumb/app-breadcrumb.vue
浏览文件 @
9085f3a4
...
...
@@ -4,7 +4,7 @@
<template
v-if=
"Object.is(this.navModel,'route')"
>
<el-breadcrumb-item
v-for=
"(item, index) in breadcrumbs"
:key=
"item.id"
>
<span
v-if=
"index === breadcrumbs.length-1"
class=
"no-redirect"
>
{{
item
.
title
}}
<span
v-if=
"item.isselected === true
"
>
<span
v-if=
"isShowSelected(item)
"
>
<dropdown
trigger=
'click'
@
on-click=
"selectNavData($event,item)"
>
<span
class=
"app-breadcrumb-selected"
>
<i
class=
"el-icon-caret-bottom"
></i>
...
...
@@ -195,6 +195,15 @@ export default class Breadcrumb extends Vue {
}
}
/**
* 是否显示下拉列表
*
* @memberof Breadcrumb
*/
public
isShowSelected
(
item
:
any
){
return
item
.
isselected
&&
!
this
.
$util
.
isEmpty
(
item
.
srfkey
);
}
}
</
script
>
...
...
app_web/src/components/app-department-select/app-department-select.vue
浏览文件 @
9085f3a4
...
...
@@ -6,7 +6,8 @@
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Watch
,
Prop
,
Model
}
from
'vue-property-decorator'
;
import
'ibiz-vue-lib/lib/ibiz-vue-lib.css'
;
import
{
IBizSelectTree
}
from
'ibiz-vue-lib'
;
@
Component
({
})
export
default
class
AppDepartmentSelect
extends
Vue
{
...
...
app_web/src/components/app-group-picker/app-group-picker.vue
0 → 100644
浏览文件 @
9085f3a4
<
template
>
<div
class=
"ibiz-group-picker"
>
<div
class=
"ibiz-group-container"
>
<div
v-if=
"showTree"
class=
"ibiz-group-tree"
>
<ibiz-select-tree
:NodesData=
"treeItems"
v-model=
"treeSelectVal"
:treeOnly=
"true"
:defaultChecked=
"true"
@
select=
"treeSelect"
></ibiz-select-tree>
</div>
<div
class=
"ibiz-group-content"
>
<ibiz-group-card
:data=
"cardItems"
text=
"label"
value=
"id"
groupName=
"group"
:multiple=
"multiple"
:defaultSelect=
"cardSelctVal"
@
select=
"groupSelect"
></ibiz-group-card>
</div>
</div>
<div
class=
"ibiz-group-footer"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"onOK"
>
确认
</el-button>
<el-button
size=
"small"
@
click=
"onCancel"
>
取消
</el-button>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
,
Prop
,
Watch
}
from
'vue-property-decorator'
;
import
{
Subject
}
from
'rxjs'
;
import
{
Http
}
from
'../../utils'
;
import
'ibiz-vue-lib/lib/ibiz-vue-lib.css'
;
import
{
IBizSelectTree
}
from
'ibiz-vue-lib'
;
import
{
IBizGroupCard
}
from
'ibiz-vue-lib'
;
@
Component
({})
export
default
class
IBizGroupPicker
extends
Vue
{
/**
* 视图上下文参数
*
* @type {*}
* @memberof IBizGroupPicker
*/
@
Prop
()
viewdata
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof IBizGroupPicker
*/
@
Prop
()
viewparam
:
any
;
/**
* 多选
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
multiple
:
boolean
=
false
;
/**
* 加载树url
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
treeurl
:
any
;
/**
* 加载人员url
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
url
:
any
;
/**
* 树数据集
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
treeItems
:
any
[]
=
[];
/**
* 分组表数据集
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
cardItems
:
any
[]
=
[];
/**
* 视图上下文参数对象
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
viewData
:
any
;
/**
* 视图参数对象
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
viewParam
:
any
;
/**
* 树选中值
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
treeSelectVal
:
string
=
''
;
/**
* 分组表选中集合
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
cardSelctVal
:
any
=
[];
/**
* 数据选中集合
*
* @type {*}
* @memberof IBizGroupPicker
*/
protected
selects
:
any
[]
=
[];
/**
* 是否显示树
*
* @type {*}
* @memberof IBizGroupPicker
*/
get
showTree
()
{
if
(
this
.
viewParam
)
{
return
this
.
viewParam
.
showtree
;
}
}
/**
* 生命周期
*
* @type {*}
* @memberof IBizGroupPicker
*/
public
created
()
{
if
(
!
this
.
viewdata
||
!
this
.
viewparam
)
{
return
;
}
this
.
viewData
=
JSON
.
parse
(
this
.
viewdata
);
this
.
viewParam
=
JSON
.
parse
(
this
.
viewparam
);
this
.
multiple
=
this
.
viewParam
.
multiple
;
this
.
treeurl
=
this
.
viewParam
.
treeurl
;
this
.
url
=
this
.
viewParam
.
url
;
if
(
this
.
viewParam
.
selects
)
{
this
.
viewParam
.
selects
.
forEach
((
select
:
any
)
=>
{
this
.
selects
.
push
(
select
);
this
.
cardSelctVal
.
push
(
select
.
id
)
})
}
this
.
load
();
}
/**
* 加载数据
*
* @type {*}
* @memberof IBizGroupPicker
*/
public
load
()
{
if
(
this
.
showTree
)
{
this
.
loadTree
();
}
else
{
this
.
loadGroupData
(
this
.
viewParam
.
filtervalue
);
}
}
/**
* 加载树数据
*
* @type {*}
* @memberof IBizGroupPicker
*/
public
loadTree
()
{
let
orgid
=
this
.
viewParam
.
filtervalue
;
let
tempTreeUrl
:
string
=
this
.
treeurl
.
replace
(
'${orgid}'
,
orgid
);
let
get
=
Http
.
getInstance
().
get
(
tempTreeUrl
,
true
);
get
.
then
((
response
:
any
)
=>
{
if
(
response
.
status
===
200
)
{
this
.
treeItems
=
response
.
data
;
}
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
error
)
})
}
/**
* 加载分组表数据
*
* @type {*}
* @memberof IBizGroupPicker
*/
public
loadGroupData
(
key
:
string
)
{
let
tempUrl
=
this
.
url
.
replace
(
'${selected-orgid}'
,
key
);
let
get
=
Http
.
getInstance
().
get
(
tempUrl
,
true
);
get
.
then
((
response
:
any
)
=>
{
if
(
response
.
status
===
200
)
{
this
.
cardItems
=
response
.
data
;
}
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
error
)
})
}
/**
* 树选中
*
* @type {*}
* @memberof IBizGroupPicker
*/
public
treeSelect
(
event
:
any
)
{
if
(
!
event
||
JSON
.
parse
(
event
).
length
==
0
)
{
return
;
}
const
items
:
any
=
JSON
.
parse
(
event
);
this
.
loadGroupData
(
items
[
0
].
id
);
}
/**
* 分组表选中
*
* @type {*}
* @memberof IBizGroupPicker
*/
public
groupSelect
(
event
:
any
)
{
if
(
!
event
||
!
event
.
select
)
{
return
;
}
if
(
!
this
.
multiple
)
{
this
.
selects
=
[];
}
if
(
event
.
rselect
)
{
let
index
:
number
=
this
.
selects
.
findIndex
((
item
:
any
)
=>
Object
.
is
(
event
.
rselect
,
item
.
id
));
if
(
index
>=
0
)
{
this
.
selects
.
splice
(
index
,
1
);
}
}
else
{
event
.
select
.
forEach
((
key
:
string
)
=>
{
let
index
:
number
=
this
.
selects
.
findIndex
((
item
:
any
)
=>
Object
.
is
(
key
,
item
.
id
));
if
(
index
>=
0
)
{
return
;
}
let
item
:
any
=
this
.
cardItems
.
find
((
item
:
any
)
=>
Object
.
is
(
key
,
item
.
id
));
if
(
item
)
{
this
.
selects
.
push
(
item
);
}
});
}
}
/**
* 确认
*
* @type {*}
* @memberof IBizGroupPicker
*/
public
onOK
()
{
this
.
$emit
(
'close'
,
this
.
selects
);
}
/**
* 取消
*
* @type {*}
* @memberof IBizGroupPicker
*/
public
onCancel
()
{
this
.
$emit
(
'close'
);
}
}
</
script
>
<
style
lang=
"less"
>
.ibiz-group-picker{
width: 100%;
height: 100%;
.ibiz-group-container {
display: flex;
height: calc(100% - 65px);
.ibiz-group-tree {
min-width: 200px;
border-right: 1px solid #ddd;
padding: 0 34px 0 10px;
overflow: auto;
height: 100%;
}
.ibiz-group-content {
flex-grow: 1;
padding: 0 10px;
overflow: auto;
height: 100%;
}
}
.ibiz-group-footer {
padding: 16px;
text-align: right;
border-top: 1px solid #ddd;
}
}
</
style
>
\ No newline at end of file
app_web/src/components/app-group-select/app-group-select.vue
0 → 100644
浏览文件 @
9085f3a4
<
template
>
<div
class=
"ibiz-group-select"
>
<div
class=
"ibiz-group-content"
>
<span
v-if=
"!multiple"
>
{{
selectName
}}
</span>
<template
v-else
v-for=
"(select, index) of selects"
>
<div
:key=
"index"
class=
"ibiz-group-item"
>
{{
select
.
label
}}
<i
v-if=
"!disabled"
class=
"el-icon-close"
@
click=
"remove(select)"
></i>
</div>
</
template
>
</div>
<div
v-if=
"!disabled"
class=
"ibiz-group-open"
>
<i
v-if=
"!disabled && !multiple && selects.length > 0"
class=
"el-icon-close"
@
click=
"remove(selects[0])"
></i>
<i
class=
"el-icon-search"
@
click=
"openView"
></i>
</div>
</div>
</template>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
,
Prop
,
Watch
}
from
'vue-property-decorator'
;
import
{
Subject
}
from
'rxjs'
;
@
Component
({})
export
default
class
IBizGroupSelect
extends
Vue
{
/**
* 名称标识
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
name
!
:
string
;
/**
* 树加载地址
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
treeurl
?:
boolean
;
/**
* 数据接口地址
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
url
!
:
string
;
/**
* 多选
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
({
default
:
false
})
multiple
?:
boolean
;
/**
* 数据对象
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
data
:
any
;
/**
* 过滤属性标识
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
filter
?:
string
;
/**
* 是否启用
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
disabled
?:
boolean
;
/**
* 值
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
value
:
any
;
/**
* 上下文参数
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
context
:
any
;
/**
* 关联属性
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
valueitem
:
any
;
/**
* 填充属性
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Prop
()
fillmap
:
any
;
/**
* 选中项集合
*
* @type {*}
* @memberof IBizGroupSelect
*/
protected
selects
:
any
[]
=
[];
/**
* 值变化
*
* @type {*}
* @memberof IBizGroupSelect
*/
@
Watch
(
'value'
)
onValueChange
(
newVal
:
any
)
{
this
.
selects
=
[];
if
(
newVal
)
{
let
item
:
any
=
{};
item
.
label
=
newVal
.
split
(
','
);
if
(
this
.
valueitem
)
{
item
.
id
=
this
.
data
[
this
.
valueitem
]
?
this
.
data
[
this
.
valueitem
].
split
(
','
)
:
[];
}
if
(
this
.
fillmap
)
{
for
(
let
key
in
this
.
fillmap
)
{
item
[
this
.
fillmap
[
key
]]
=
this
.
data
[
key
]
?
this
.
data
[
key
].
split
(
','
)
:
[];
}
}
item
.
label
.
forEach
((
val
:
string
,
index
:
number
)
=>
{
let
_item
:
any
=
{};
for
(
let
key
in
item
)
{
_item
[
key
]
=
item
[
key
][
index
]
?
item
[
key
][
index
]
:
null
;
}
this
.
selects
.
push
(
_item
)
})
}
}
/**
* 单选时选中名称
*
* @type {*}
* @memberof IBizGroupSelect
*/
get
selectName
()
{
if
(
this
.
selects
.
length
>
0
)
{
return
this
.
selects
[
0
].
label
;
}
}
/**
* 打开选择视图
*
* @type {*}
* @memberof IBizGroupSelect
*/
public
openView
()
{
const
view
:
any
=
{
viewname
:
'ibiz-group-picker'
,
title
:
'分组选择'
};
const
context
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
let
filtervalue
:
string
=
""
;
if
(
this
.
filter
){
if
(
this
.
data
[
this
.
filter
]){
filtervalue
=
this
.
data
[
this
.
filter
];
}
else
if
(
context
[
this
.
filter
]){
filtervalue
=
context
[
this
.
filter
];
}
else
{
filtervalue
=
context
.
srforgid
;
}
}
else
{
filtervalue
=
context
.
srforgid
;
}
const
param
:
any
=
{};
Object
.
assign
(
param
,
{
showtree
:
this
.
treeurl
?
true
:
false
,
url
:
this
.
url
,
treeurl
:
this
.
treeurl
,
filtervalue
:
filtervalue
,
multiple
:
this
.
multiple
,
selects
:
this
.
selects
});
let
container
:
Subject
<
any
>
=
this
.
$appmodal
.
openModal
(
view
,
context
,
param
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
this
.
openViewClose
(
result
);
});
}
/**
* 选择视图关闭
*
* @type {*}
* @memberof IBizGroupSelect
*/
public
openViewClose
(
result
:
any
)
{
this
.
selects
=
[];
if
(
result
.
datas
&&
result
.
datas
.
length
>
0
)
{
this
.
selects
=
result
.
datas
}
this
.
setValue
()
}
/**
* 数据删除
*
* @type {*}
* @memberof IBizGroupSelect
*/
public
remove
(
item
:
any
)
{
this
.
selects
.
splice
(
this
.
selects
.
indexOf
(
item
),
1
);
this
.
setValue
()
}
/**
* 设置值
*
* @type {*}
* @memberof IBizGroupSelect
*/
public
setValue
()
{
let
item
:
any
=
{};
item
[
this
.
name
]
=
null
;
if
(
this
.
valueitem
)
{
item
[
this
.
valueitem
]
=
null
;
}
if
(
this
.
fillmap
)
{
for
(
let
key
in
this
.
fillmap
)
{
item
[
key
]
=
null
;
}
}
if
(
this
.
multiple
)
{
this
.
selects
.
forEach
((
select
:
any
)
=>
{
item
[
this
.
name
]
=
item
[
this
.
name
]
?
`
${
item
[
this
.
name
]}
,
${
select
.
label
}
`
:
select
.
label
;
if
(
this
.
valueitem
)
{
item
[
this
.
valueitem
]
=
item
[
this
.
valueitem
]
?
`
${
item
[
this
.
valueitem
]}
,
${
select
.
id
}
`
:
select
.
id
;
}
if
(
this
.
fillmap
)
{
for
(
let
key
in
this
.
fillmap
)
{
item
[
key
]
=
item
[
key
]
?
`
${
item
[
key
]}
,
${
select
[
this
.
fillmap
[
key
]]}
`
:
select
[
this
.
fillmap
[
key
]];
}
}
});
}
else
{
item
=
this
.
selects
.
length
>
0
?
this
.
selects
[
0
]
:
{};
item
[
this
.
name
]
=
this
.
selects
.
length
>
0
?
this
.
selects
[
0
].
label
:
null
;
if
(
this
.
valueitem
)
{
item
[
this
.
valueitem
]
=
this
.
selects
.
length
>
0
?
this
.
selects
[
0
].
id
:
null
;
}
if
(
this
.
fillmap
)
{
for
(
let
key
in
this
.
fillmap
)
{
item
[
key
]
=
this
.
selects
.
length
>
0
?
this
.
selects
[
0
][
this
.
fillmap
[
key
]]
:
null
;
}
}
}
for
(
let
key
in
item
)
{
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
key
,
value
:
item
[
key
]
});
}
}
}
</
script
>
<
style
lang=
"less"
>
.ibiz-group-select {
width: 100%;
display: flex;
border: 1px solid #DCDFE6;
min-height: 32px;
border-radius: 4px;
.ibiz-group-content {
flex-grow: 1;
padding: 0 16px;
.ibiz-group-item {
display: inline-block;
border: 1px solid #bbb;
line-height: 24px;
border-radius: 5px;
margin-right: 5px;
padding: 0 5px;
}
}
.ibiz-group-open {
display: flex;
text-align: center;
align-items: center;
padding: 0 5px;
}
}
.ibiz-group-select:hover {
border-color: #108cee;
}
</
style
>
\ No newline at end of file
app_web/src/components/app-org-select/app-org-select.vue
浏览文件 @
9085f3a4
...
...
@@ -6,6 +6,8 @@
<
script
lang =
'ts'
>
import
{
Vue
,
Component
,
Prop
,
Watch
}
from
"vue-property-decorator"
;
import
{
Http
}
from
'@/utils'
;
import
'ibiz-vue-lib/lib/ibiz-vue-lib.css'
;
import
{
IBizSelectTree
}
from
'ibiz-vue-lib'
;
@
Component
({})
export
default
class
AppOrgSelect
extends
Vue
{
...
...
app_web/src/components/app-user/app-user.less
浏览文件 @
9085f3a4
...
...
@@ -5,4 +5,7 @@
margin-right: 10px;
padding: 0 5px;
}
}
.user-dropdownMenu{
margin-top: 9px;
}
\ No newline at end of file
app_web/src/components/app-user/app-user.vue
浏览文件 @
9085f3a4
<
template
>
<div
class=
'app-header-user'
>
<dropdown
@
on-click=
"userSelect"
:transfer=
"true"
>
<dropdown
transfer-class-name=
"user-dropdownMenu"
@
on-click=
"userSelect"
:transfer=
"true"
>
<div
class=
'user'
>
<span>
{{
user
.
name
?
user
.
name
:
$t
(
'components.appUser.name'
)
}}
</span>
<avatar
:src=
"user.avatar"
/>
</div>
<dropdown-menu
class=
'menu'
slot=
'list'
style=
'font-size: 15px !important;'
>
<dropdown-item
name=
'logout'
style=
'font-size: 15px !important;'
>
<span><i
aria-hidden=
'true'
class=
'
fa fa-cogs
'
style=
'margin-right: 8px;'
></i></span>
<span><i
aria-hidden=
'true'
class=
'
ivu-icon ivu-icon-md-power
'
style=
'margin-right: 8px;'
></i></span>
<span>
{{
$t
(
'components.appUser.logout'
)
}}
</span>
</dropdown-item>
</dropdown-menu>
...
...
app_web/src/components/context-menu-drag/context-menu-drag.vue
浏览文件 @
9085f3a4
...
...
@@ -2,12 +2,12 @@
<Drawer
class-name=
"sider-drawer"
placement=
"left"
:closable=
"false"
:mask=
"false"
width=
"200"
v-model=
"leftDrawerVisiable"
>
<div
class=
"context-menu-drag"
>
<div
class=
"menu-list"
>
<div
class=
"menu-header"
@
mouseover=
"showMenuDrawer"
@
click=
"rightDrawerVisiable=!rightDrawerVisiable"
>
<div
class=
"menu-header"
@
click=
"rightDrawerVisiable=!rightDrawerVisiable"
>
<div
class=
"menuicon"
>
<Icon
type=
"md-apps"
/>
</div>
<div
class=
"content"
>
<span>
服务
</span>
<span>
全部应用
</span>
</div>
<div
class=
"forward"
>
<Icon
type=
"ios-arrow-forward"
/>
...
...
@@ -16,7 +16,7 @@
<div
style=
"padding:8px 0px;"
class=
"col-6"
>
<draggable
class=
"list-group"
tag=
"ul"
v-model=
"selectlist"
v-bind=
"dragOptionsVal"
@
start=
"drag=true"
@
end=
"drag=false"
:animation=
"250"
handle=
".handle"
ghost-class=
"ghost"
>
<transition-group
type=
"transition"
:name=
"!drag ? 'flip-list' : null"
>
<li
class=
"list-group-item"
v-for=
"(item,index) in selectlist"
:key=
"item.id"
>
<li
@
click=
"skipTo(item)"
class=
"list-group-item"
v-for=
"(item,index) in selectlist"
:key=
"item.id"
>
<el-row>
<el-col
class=
"menuicon"
:span=
"4"
>
<span>
...
...
@@ -30,7 +30,7 @@
<el-col
:span=
"6"
>
<div
class=
"bar"
>
<div>
<Icon
type=
"ios-close"
@
click=
"removeAt(index)"
/>
<Icon
type=
"ios-close"
@
click
.
stop
=
"removeAt(index)"
/>
</div>
<div>
<Icon
type=
"ios-move handle"
/>
...
...
@@ -45,12 +45,12 @@
</div>
<Drawer
class-name=
"menu-drawer"
width=
"60"
:closable=
"true"
:mask=
"false"
placement=
"left"
v-model=
"rightDrawerVisiable"
>
<div
class=
"menuItems"
>
<div
class=
"item"
v-for=
"(item) in list"
:key=
"item.id"
>
<div
@
click=
"skipTo(item)"
class=
"item"
v-for=
"(item) in list"
:key=
"item.id"
>
<span
class=
"title"
>
{{
item
.
label
}}
</span>
<span
v-if=
"isStar(item.id)"
class=
"star"
@
click=
"outStar(item)"
>
<span
v-if=
"isStar(item.id)"
class=
"star"
@
click
.
stop
=
"outStar(item)"
>
<Icon
type=
"ios-star"
/>
</span>
<span
v-else
class=
"star"
@
click=
"onStar(item)"
>
<span
v-else
class=
"star"
@
click
.
stop
=
"onStar(item)"
>
<Icon
type=
"ios-star-outline"
/>
</span>
</div>
...
...
@@ -73,6 +73,8 @@ import { Vue,Component,Provide,Watch,Prop,Model } from "vue-property-decorator";
})
export
default
class
ContextMenuDrag
extends
Vue
{
public
panelShow
:
boolean
=
true
;
/**
* 抽屉菜单状态
*
...
...
@@ -206,6 +208,23 @@ export default class ContextMenuDrag extends Vue {
return
istar
;
}
/**
* 跳转到应用
*
* @returns
* @memberof ContextMenuDrag
*/
public
skipTo
(
item
:
any
){
if
(
item
.
addr
){
let
params
:
any
=
{};
params
.
model
=
this
.
selectlist
;
const
put
:
Promise
<
any
>
=
this
.
entityService
.
updateChooseApp
(
null
,
params
);
window
.
location
.
href
=
item
.
addr
;
}
else
{
this
.
$message
.
info
(
"未找到该应用"
);
}
}
/**
* 加入列表
*
...
...
app_web/src/engine/view/edit-view-engine.ts
浏览文件 @
9085f3a4
...
...
@@ -103,7 +103,7 @@ export default class EditViewEngine extends ViewEngine {
public
onFormLoad
(
arg
:
any
):
void
{
this
.
view
.
model
.
dataInfo
=
Object
.
is
(
arg
.
srfuf
,
'1'
)
?
(
this
.
majorPSDEField
?
arg
[
this
.
majorPSDEField
]:
arg
.
srfmajortext
)
:
this
.
view
.
$t
(
'app.local.new'
);
this
.
setTabCaption
(
this
.
view
.
model
.
dataInfo
);
this
.
setTabCaption
(
this
.
view
.
model
.
dataInfo
,
Object
.
is
(
arg
.
srfuf
,
'0'
)
);
const
newdata
:
boolean
=
!
Object
.
is
(
arg
.
srfuf
,
'1'
);
this
.
calcToolbarItemState
(
newdata
);
}
...
...
@@ -117,7 +117,7 @@ export default class EditViewEngine extends ViewEngine {
public
onFormSave
(
arg
:
any
):
void
{
this
.
view
.
model
.
dataInfo
=
Object
.
is
(
arg
.
srfuf
,
'1'
)
?
(
this
.
majorPSDEField
?
arg
[
this
.
majorPSDEField
]:
arg
.
srfmajortext
)
:
this
.
view
.
$t
(
'app.local.new'
);
this
.
setTabCaption
(
this
.
view
.
model
.
dataInfo
);
this
.
setTabCaption
(
this
.
view
.
model
.
dataInfo
,
Object
.
is
(
arg
.
srfuf
,
'0'
)
);
const
newdata
:
boolean
=
!
Object
.
is
(
arg
.
srfuf
,
'1'
);
this
.
calcToolbarItemState
(
newdata
);
this
.
view
.
$emit
(
'save'
,
arg
);
...
...
@@ -245,7 +245,7 @@ export default class EditViewEngine extends ViewEngine {
*
* @memberof EditViewEngine
*/
public
setTabCaption
(
info
:
string
):
void
{
public
setTabCaption
(
info
:
string
,
isNew
:
boolean
):
void
{
let
viewdata
:
any
=
this
.
view
.
model
;
let
index
:
number
=
viewdata
.
srfTitle
.
indexOf
(
"-"
);
if
(
viewdata
&&
info
&&
!
Object
.
is
(
info
,
''
))
{
...
...
@@ -259,7 +259,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
.
initNavDataWithRoute
();
this
.
view
.
initNavDataWithRoute
(
null
,
isNew
);
}
}
...
...
app_web/src/locale/lang/en-US.ts
浏览文件 @
9085f3a4
...
...
@@ -49,8 +49,8 @@ export default {
// 非实体视图
views
:
{
appindexview
:
{
caption
:
"ibizlab
-dict
"
,
title
:
"
ibizlab-dict
"
,
caption
:
"ibizlab"
,
title
:
"
dictionary
"
,
},
},
utilview
:{
...
...
app_web/src/locale/lang/zh-CN.ts
浏览文件 @
9085f3a4
...
...
@@ -49,8 +49,8 @@ export default {
// 非实体视图
views
:
{
appindexview
:
{
caption
:
"ibizlab
-dict
"
,
title
:
"
ibizlab-dict
"
,
caption
:
"ibizlab"
,
title
:
"
dictionary
"
,
},
},
utilview
:{
...
...
app_web/src/mock/app/app-index-view-appmenu/app-index-view-appmenu.ts
浏览文件 @
9085f3a4
...
...
@@ -25,7 +25,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls
:
'fa fa-folder-open-o'
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'
_2
'
,
appfunctag
:
'
Auto1
'
,
resourcetag
:
''
,
},
{
...
...
@@ -43,7 +43,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls
:
'fa fa-stack-exchange'
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'
_3
'
,
appfunctag
:
'
Auto2
'
,
resourcetag
:
''
,
},
],
...
...
app_web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
9085f3a4
...
...
@@ -48,8 +48,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"8ad70084b5f98a26370b74da612d3f49"
},
"appindexview"
:
{
"title"
:
"
ibizlab-dict
"
,
"caption"
:
"ibizlab
-dict
"
,
"title"
:
"
dictionary
"
,
"caption"
:
"ibizlab"
,
"viewtype"
:
"APPINDEXVIEW"
,
"viewmodule"
:
"dict"
,
"viewname"
:
"AppIndexView"
,
...
...
app_web/src/pages/dict/app-index-view/app-index-view-base.vue
浏览文件 @
9085f3a4
...
...
@@ -45,7 +45,7 @@
<app-theme
style=
"width:45px;display: flex;justify-content: center;"
></app-theme>
</div>
</header>
<content
:class=
"
{'index_content':true,'index_tab_content':Object.is(navModel,'tab')?true:false,'index_route_content':Object.is(navModel,'route')?true:false}" :style="{'width':this.collapseChange ? 'calc(100vw - 64px)' : 'calc(100vw - 200px)' }">
<content
:class=
"
{'index_content':true,'index_tab_content':Object.is(navModel,'tab')?true:false,'index_route_content':Object.is(navModel,'route')?true:false}" :style="{'width':this.collapseChange ? 'calc(100vw - 64px)' : 'calc(100vw - 200px)' }"
@click="contextMenuDragVisiable=false"
>
<tab-page-exp
v-if=
"Object.is(navModel,'tab')"
></tab-page-exp>
<app-keep-alive
:routerList=
"getRouterList"
>
<router-view
:key=
"getRouterViewKey"
></router-view>
...
...
@@ -408,9 +408,9 @@ export default class AppIndexViewBase extends Vue {
*
* @memberof AppIndexViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
){
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
){
if
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
navDataService
.
addNavData
({
id
:
'app-index-view'
,
tag
:
this
.
viewtag
,
srfkey
:
null
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
this
.
navDataService
.
addNavData
({
id
:
'app-index-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
null
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
...
...
app_web/src/pages/dict/app-index-view/main.ts
浏览文件 @
9085f3a4
...
...
@@ -4,14 +4,12 @@ import VueRouter from 'vue-router';
import
App
from
'@/App.vue'
;
import
ElementUi
from
'element-ui'
;
import
ViewUI
from
'view-design'
;
import
ibizLab
from
'ibiz-vue-lib'
;
import
{
Interceptors
}
from
'@/utils'
;
import
{
Print
}
from
'@/utils/print'
;
import
i18n
from
'@/locale'
import
'element-ui/lib/theme-chalk/index.css'
;
import
'view-design/dist/styles/iview.css'
;
import
'ibiz-vue-lib/lib/ibiz-vue-lib.css'
;
import
'@/styles/default.less'
;
...
...
@@ -33,7 +31,6 @@ Vue.config.errorHandler = function (err: any, vm: any, info: any) {
}
Vue
.
config
.
productionTip
=
false
;
Vue
.
use
(
Print
);
Vue
.
use
(
ibizLab
);
Vue
.
use
(
Vuex
);
Vue
.
use
(
VueRouter
);;
Vue
.
use
(
ElementUi
,
{
...
...
app_web/src/pages/dict/dict-catalog-edit-view/dict-catalog-edit-view-base.vue
浏览文件 @
9085f3a4
...
...
@@ -544,9 +544,9 @@ export default class DictCatalogEditViewBase extends Vue {
*
* @memberof DictCatalogEditViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
){
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
){
if
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
navDataService
.
addNavData
({
id
:
'dict-catalog-edit-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
dictcatalog
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
this
.
navDataService
.
addNavData
({
id
:
'dict-catalog-edit-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
dictcatalog
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
...
...
app_web/src/pages/dict/dict-catalog-grid-view/dict-catalog-grid-view-base.vue
浏览文件 @
9085f3a4
...
...
@@ -569,9 +569,9 @@ export default class DictCatalogGridViewBase extends Vue {
*
* @memberof DictCatalogGridViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
){
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
){
if
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
navDataService
.
addNavData
({
id
:
'dict-catalog-grid-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
dictcatalog
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
this
.
navDataService
.
addNavData
({
id
:
'dict-catalog-grid-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
dictcatalog
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
...
...
app_web/src/pages/dict/dict-catalog-pickup-grid-view/dict-catalog-pickup-grid-view-base.vue
浏览文件 @
9085f3a4
...
...
@@ -434,9 +434,9 @@ export default class DictCatalogPickupGridViewBase extends Vue {
*
* @memberof DictCatalogPickupGridViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
){
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
){
if
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
navDataService
.
addNavData
({
id
:
'dict-catalog-pickup-grid-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
dictcatalog
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
this
.
navDataService
.
addNavData
({
id
:
'dict-catalog-pickup-grid-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
dictcatalog
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
...
...
app_web/src/pages/dict/dict-catalog-pickup-view/dict-catalog-pickup-view-base.vue
浏览文件 @
9085f3a4
...
...
@@ -427,9 +427,9 @@ export default class DictCatalogPickupViewBase extends Vue {
*
* @memberof DictCatalogPickupViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
){
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
){
if
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
navDataService
.
addNavData
({
id
:
'dict-catalog-pickup-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
dictcatalog
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
this
.
navDataService
.
addNavData
({
id
:
'dict-catalog-pickup-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
dictcatalog
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
...
...
app_web/src/pages/dict/dict-option-edit-view/dict-option-edit-view-base.vue
浏览文件 @
9085f3a4
...
...
@@ -458,9 +458,9 @@ export default class DictOptionEditViewBase extends Vue {
*
* @memberof DictOptionEditViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
){
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
){
if
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
navDataService
.
addNavData
({
id
:
'dict-option-edit-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
dictoption
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
this
.
navDataService
.
addNavData
({
id
:
'dict-option-edit-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
dictoption
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
...
...
app_web/src/pages/dict/dict-option-grid-edit-view/dict-option-grid-edit-view-base.vue
浏览文件 @
9085f3a4
...
...
@@ -556,9 +556,9 @@ export default class DictOptionGridEditViewBase extends Vue {
*
* @memberof DictOptionGridEditViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
){
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
){
if
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
navDataService
.
addNavData
({
id
:
'dict-option-grid-edit-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
dictoption
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
this
.
navDataService
.
addNavData
({
id
:
'dict-option-grid-edit-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
dictoption
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
...
...
app_web/src/pages/dict/dict-option-grid-view/dict-option-grid-view-base.vue
浏览文件 @
9085f3a4
...
...
@@ -556,9 +556,9 @@ export default class DictOptionGridViewBase extends Vue {
*
* @memberof DictOptionGridViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
){
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
){
if
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
navDataService
.
addNavData
({
id
:
'dict-option-grid-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
dictoption
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
this
.
navDataService
.
addNavData
({
id
:
'dict-option-grid-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
dictoption
,
title
:
this
.
$t
(
this
.
model
.
srfTitle
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
...
...
app_web/src/service/dict-catalog/dict-catalog-service-base.ts
浏览文件 @
9085f3a4
...
...
@@ -167,7 +167,6 @@ export default class DictCatalogServiceBase extends EntityService {
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/dictcatalogs/
${
context
.
dictcatalog
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_dictoptions'
,
JSON
.
stringify
(
res
.
data
.
dictoptions
));
return
res
;
}
/**
...
...
@@ -197,7 +196,6 @@ export default class DictCatalogServiceBase extends EntityService {
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
Http
.
getInstance
().
delete
(
`/dictcatalogs/
${
context
.
dictcatalog
}
`
,
isloading
);
}
/**
...
...
app_web/src/service/dict-option/dict-option-service-base.ts
浏览文件 @
9085f3a4
...
...
@@ -65,7 +65,10 @@ export default class DictOptionServiceBase extends EntityService {
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
dictcatalog
&&
context
.
dictoption
){
return
Http
.
getInstance
().
put
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/
${
context
.
dictoption
}
`
,
data
,
isloading
);
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/
${
context
.
dictoption
}
`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
...
...
@@ -87,7 +90,6 @@ export default class DictOptionServiceBase extends EntityService {
return
Http
.
getInstance
().
delete
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/
${
context
.
dictoption
}
`
,
isloading
);
}
return
Http
.
getInstance
().
delete
(
`/dictoptions/
${
context
.
dictoption
}
`
,
isloading
);
}
/**
...
...
@@ -101,7 +103,10 @@ export default class DictOptionServiceBase extends EntityService {
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
dictcatalog
&&
context
.
dictoption
){
return
Http
.
getInstance
().
post
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/
${
context
.
dictoption
}
/checkkey`
,
data
,
isloading
);
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/
${
context
.
dictoption
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
return
Http
.
getInstance
().
post
(
`/dictoptions/
${
context
.
dictoption
}
/checkkey`
,
data
,
isloading
);
}
...
...
@@ -117,7 +122,9 @@ export default class DictOptionServiceBase extends EntityService {
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
dictcatalog
&&
true
){
return
Http
.
getInstance
().
get
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/getdraft`
,
isloading
);
res
.
data
.
dictoption
=
data
.
dictoption
;
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/dictoptions/getdraft`
,
isloading
);
res
.
data
.
dictoption
=
data
.
dictoption
;
...
...
@@ -135,11 +142,11 @@ export default class DictOptionServiceBase extends EntityService {
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
dictcatalog
&&
context
.
dictoption
){
return
Http
.
getInstance
().
get
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/
${
context
.
dictoption
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/
${
context
.
dictoption
}
`
,
isloading
);
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/dictoptions/
${
context
.
dictoption
}
`
,
isloading
);
return
res
;
}
/**
...
...
@@ -153,13 +160,17 @@ export default class DictOptionServiceBase extends EntityService {
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
dictcatalog
&&
true
){
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
return
Http
.
getInstance
().
post
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions`
,
data
,
isloading
);
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
...
...
@@ -185,7 +196,10 @@ export default class DictOptionServiceBase extends EntityService {
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
dictcatalog
&&
context
.
dictoption
){
return
Http
.
getInstance
().
post
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/
${
context
.
dictoption
}
/save`
,
data
,
isloading
);
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/dictcatalogs/
${
context
.
dictcatalog
}
/dictoptions/
${
context
.
dictoption
}
/save`
,
data
,
isloading
);
return
res
;
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
...
...
app_web/src/styles/default.less
浏览文件 @
9085f3a4
...
...
@@ -107,7 +107,6 @@
}
> .toolbar-container{
margin-left: auto;
display: inline-block;
display: flex;
flex-wrap: wrap;
align-items: center;
...
...
app_web/src/widgets/app/app-index-view-appmenu/app-index-view-appmenu-base.vue
浏览文件 @
9085f3a4
...
...
@@ -502,11 +502,11 @@ export default class AppIndexViewBase extends Vue implements ControlInterface {
navDataService
.
removeNavData
(
this
.
viewtag
);
}
switch
(
item
.
appfunctag
)
{
case
'
_2
'
:
this
.
click
_2
(
item
);
case
'
Auto1
'
:
this
.
click
Auto1
(
item
);
return
;
case
'
_3
'
:
this
.
click
_3
(
item
);
case
'
Auto2
'
:
this
.
click
Auto2
(
item
);
return
;
default
:
console
.
warn
(
'未指定应用功能'
);
...
...
@@ -521,7 +521,7 @@ export default class AppIndexViewBase extends Vue implements ControlInterface {
* @param {*} [item={}]
* @memberof AppIndexView
*/
public
click
_2
(
item
:
any
=
{})
{
public
click
Auto1
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
...
...
@@ -544,7 +544,7 @@ export default class AppIndexViewBase extends Vue implements ControlInterface {
* @param {*} [item={}]
* @memberof AppIndexView
*/
public
click
_3
(
item
:
any
=
{})
{
public
click
Auto2
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
...
...
app_web/src/widgets/app/app-index-view-appmenu/app-index-view-appmenu-model.ts
浏览文件 @
9085f3a4
...
...
@@ -29,7 +29,7 @@ export default class AppIndexViewModel {
iconcls
:
'fa fa-folder-open-o'
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'
_2
'
,
appfunctag
:
'
Auto1
'
,
resourcetag
:
''
,
authtag
:
'web-AppIndexView-menuitem1'
,
},
...
...
@@ -48,7 +48,7 @@ export default class AppIndexViewModel {
iconcls
:
'fa fa-stack-exchange'
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'
_3
'
,
appfunctag
:
'
Auto2
'
,
resourcetag
:
''
,
authtag
:
'web-AppIndexView-menuitem2'
,
},
...
...
app_web/vue.config.js
浏览文件 @
9085f3a4
const
path
=
require
(
'path'
);
const
os
=
require
(
'os'
);
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
}
...
...
@@ -33,7 +32,7 @@ module.exports = {
filename
:
'index.html'
,
// 当使用 title 选项时,
// template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
title
:
'
ibizlab-dict
'
,
title
:
'
dictionary
'
,
// 在这个页面中包含的块,默认情况下会包含
// 提取出来的通用 chunk 和 vendor chunk。
// chunks: ['chunk-vendors', 'chunk-common', 'index']
...
...
@@ -47,7 +46,7 @@ module.exports = {
filename
:
'appindexview.html'
,
// 当使用 title 选项时,
// template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
title
:
'
ibizlab-dict
'
,
title
:
'
dictionary
'
,
// 在这个页面中包含的块,默认情况下会包含
// 提取出来的通用 chunk 和 vendor chunk。
// chunks: ['chunk-vendors', 'chunk-common', 'index']
...
...
config.xml
浏览文件 @
9085f3a4
...
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibzdict/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzdict/
mvn clean package -P
api
cd ibzdict-
provider/ibzdict-provider-api
mvn -P
api
docker:build
mvn -P
api
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzdict-
provider-api.yaml ibzlab-rt --with-registry-auth
mvn clean package -P
web
cd ibzdict-
app/ibzdict-app-web
mvn -P
web
docker:build
mvn -P
web
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzdict-
app-web.yaml ibzlab-rt --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
ibzdict-app/ibzdict-app-web/src/main/docker/Dockerfile
浏览文件 @
9085f3a4
...
...
@@ -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 /ibzdict-app-web.jar
EXPOSE
8080
EXPOSE
30004
ADD
ibzdict-app-web.jar /ibzdict-app-web.jar
ibzdict-app/ibzdict-app-web/src/main/docker/ibzdict-app-web.yaml
浏览文件 @
9085f3a4
...
...
@@ -3,9 +3,22 @@ services:
ibzdict-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzdict-app-web:latest
ports
:
-
"
8080:8080
"
-
"
30004:30004
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=30004
-
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
-
NACOS=172.16.102.211:8848
deploy
:
resources
:
limits
:
...
...
ibzdict-provider/ibzdict-provider-api/src/main/docker/Dockerfile
浏览文件 @
9085f3a4
...
...
@@ -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 /ibzdict-provider-api.jar
EXPOSE
40004
EXPOSE
8081
ADD
ibzdict-provider-api.jar /ibzdict-provider-api.jar
ibzdict-provider/ibzdict-provider-api/src/main/docker/ibzdict-provider-api.yaml
浏览文件 @
9085f3a4
...
...
@@ -3,22 +3,9 @@ services:
ibzdict-provider-api
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzdict-provider-api:latest
ports
:
-
"
40004:40004
"
-
"
8081:8081
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=40004
-
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
-
NACOS=172.16.102.211:8848
deploy
:
resources
:
limits
:
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录