Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzrt
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzrt
提交
7e63971b
提交
7e63971b
编写于
6月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_qyk 发布系统代码
上级
ad3bc930
变更
38
显示空白字符变更
内嵌
并排
正在显示
38 个修改的文件
包含
336 行增加
和
123 行删除
+336
-123
app-autocomplete.vue
app_Web/src/components/app-autocomplete/app-autocomplete.vue
+4
-4
app-checkbox-list.vue
...eb/src/components/app-checkbox-list/app-checkbox-list.vue
+28
-5
app-column-link.vue
app_Web/src/components/app-column-link/app-column-link.vue
+2
-2
app-mpicker.vue
app_Web/src/components/app-mpicker/app-mpicker.vue
+4
-4
app-picker-select-view.less
...onents/app-picker-select-view/app-picker-select-view.less
+8
-0
app-picker-select-view.vue
...ponents/app-picker-select-view/app-picker-select-view.vue
+2
-2
app-picker.vue
app_Web/src/components/app-picker/app-picker.vue
+8
-8
app-radio-group.vue
app_Web/src/components/app-radio-group/app-radio-group.vue
+32
-7
app-rich-text-editor.vue
.../components/app-rich-text-editor/app-rich-text-editor.vue
+1
-1
app-span.vue
app_Web/src/components/app-span/app-span.vue
+33
-2
codelist.vue
app_Web/src/components/codelist/codelist.vue
+78
-7
dropdown-list-dynamic.vue
...omponents/dropdown-list-dynamic/dropdown-list-dynamic.vue
+2
-2
dropdown-list-mpicker.vue
...omponents/dropdown-list-mpicker/dropdown-list-mpicker.vue
+2
-2
dropdown-list.vue
app_Web/src/components/dropdown-list/dropdown-list.vue
+4
-4
chart-series.ts
app_Web/src/model/chart-detail/chart-series.ts
+19
-0
ibzdepartment-option-view.less
.../ibzdepartment-option-view/ibzdepartment-option-view.less
+9
-7
ibzdepartment-pickup-grid-view.less
...ment-pickup-grid-view/ibzdepartment-pickup-grid-view.less
+1
-1
ibzemployee-option-view.less
...s/ou/ibzemployee-option-view/ibzemployee-option-view.less
+9
-7
ibzemployee-pickup-grid-view.less
...ployee-pickup-grid-view/ibzemployee-pickup-grid-view.less
+1
-1
ibzorganization-option-view.less
...organization-option-view/ibzorganization-option-view.less
+9
-7
ibzorganization-pickup-grid-view.less
...on-pickup-grid-view/ibzorganization-pickup-grid-view.less
+1
-1
index.less
app_Web/src/pages/rt/index/index.less
+3
-5
sys-permission-pickup-grid-view.less
...ion-pickup-grid-view/sys-permission-pickup-grid-view.less
+1
-1
sys-role-pickup-grid-view.less
.../sys-role-pickup-grid-view/sys-role-pickup-grid-view.less
+1
-1
sys-user-pickup-grid-view.less
.../sys-user-pickup-grid-view/sys-user-pickup-grid-view.less
+1
-1
wfgroup-pickup-grid-view.less
...ow/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view.less
+1
-1
wfuser-pickup-grid-view.less
...flow/wfuser-pickup-grid-view/wfuser-pickup-grid-view.less
+1
-1
codelist-service.ts
app_Web/src/service/app/codelist-service.ts
+22
-23
blue.theme.less
app_Web/src/theme/blue.theme.less
+4
-1
dark-blue.theme.less
app_Web/src/theme/dark-blue.theme.less
+4
-1
default.theme.less
app_Web/src/theme/default.theme.less
+3
-0
index-appmenu.less
app_Web/src/widgets/app/index-appmenu/index-appmenu.less
+4
-4
dept-tree-treeview.less
.../ibzdepartment/dept-tree-treeview/dept-tree-treeview.less
+2
-2
main-form-base.vue
...eb/src/widgets/ibzdepartment/main-form/main-form-base.vue
+10
-2
main-form-base.vue
.../src/widgets/ibzorganization/main-form/main-form-base.vue
+10
-2
org-tree-treeview.less
.../ibzorganization/org-tree-treeview/org-tree-treeview.less
+2
-2
main-form-base.vue
...eb/src/widgets/sys-user-role/main-form/main-form-base.vue
+5
-1
DEPredefinedFieldType.java
...ain/java/cn/ibizlab/util/enums/DEPredefinedFieldType.java
+5
-1
未找到文件。
app_Web/src/components/app-autocomplete/app-autocomplete.vue
浏览文件 @
7e63971b
...
...
@@ -281,14 +281,14 @@ export default class AppAutocomplete extends Vue {
return
false
;
}
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
// 附加参数处理
if
(
this
.
itemParam
.
context
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
context
,
this
.
itemParam
.
context
);
Object
.
assign
(
arg
.
context
,
_context
);
}
if
(
this
.
itemParam
.
param
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
param
)
{
let
_param
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
param
,
this
.
itemParam
.
param
);
Object
.
assign
(
arg
.
param
,
_param
);
}
...
...
app_Web/src/components/app-checkbox-list/app-checkbox-list.vue
浏览文件 @
7e63971b
...
...
@@ -7,7 +7,7 @@
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
,
Prop
,
Model
}
from
'vue-property-decorator'
;
import
{
Component
,
Vue
,
Prop
,
Model
,
Watch
}
from
'vue-property-decorator'
;
import
CodeListService
from
"@service/app/codelist-service"
;
@
Component
({
...
...
@@ -207,14 +207,14 @@ export default class AppCheckBox extends Vue {
*/
public
handlePublicParams
(
arg
:
any
)
{
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
// 附加参数处理
if
(
this
.
itemParam
.
context
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
context
,
this
.
itemParam
.
context
);
Object
.
assign
(
arg
.
context
,
_context
);
}
if
(
this
.
itemParam
.
param
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
param
)
{
let
_param
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
param
,
this
.
itemParam
.
param
);
Object
.
assign
(
arg
.
param
,
_param
);
}
...
...
@@ -250,6 +250,29 @@ export default class AppCheckBox extends Vue {
}
}
/**
* 监听表单数据变化
*
* @memberof AppOrgSelect
*/
@
Watch
(
'data'
,{
immediate
:
true
,
deep
:
true
})
onDataChange
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
if
(
this
.
tag
&&
this
.
codelistType
==
'DYNAMIC'
){
// 公共参数处理
let
data
:
any
=
{};
this
.
handlePublicParams
(
data
);
// 参数处理
let
_context
=
data
.
context
;
let
_param
=
data
.
param
;
this
.
codeListService
.
getItems
(
this
.
tag
,
_context
,
_param
).
then
((
res
:
any
)
=>
{
this
.
items
=
res
;
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
`----
${
this
.
tag
}
----代码表不存在!`
);
})
}
}
}
}
</
script
>
...
...
app_Web/src/components/app-column-link/app-column-link.vue
浏览文件 @
7e63971b
...
...
@@ -279,8 +279,8 @@ export default class AppColumnLink extends Vue {
return
false
;
}
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
return
true
;
}
...
...
app_Web/src/components/app-mpicker/app-mpicker.vue
浏览文件 @
7e63971b
...
...
@@ -246,14 +246,14 @@ export default class AppMpicker extends Vue {
return
false
;
}
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
// 附加参数处理
if
(
this
.
itemParam
.
context
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
activeData
,
arg
.
context
,
this
.
itemParam
.
context
);
Object
.
assign
(
arg
.
context
,
_context
);
}
if
(
this
.
itemParam
.
param
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
param
)
{
let
_param
=
this
.
$util
.
formatData
(
this
.
activeData
,
arg
.
param
,
this
.
itemParam
.
param
);
Object
.
assign
(
arg
.
param
,
_param
);
}
...
...
app_Web/src/components/app-picker-select-view/app-picker-select-view.less
浏览文件 @
7e63971b
...
...
@@ -22,6 +22,14 @@
.ivu-select-dropdown{
max-height: 200px;
overflow: scroll;
margin: 0;
padding: 0;
.ivu-dropdown-menu{
.view-container{
margin: 0;
padding: 0;
}
}
.tree-contant{
overflow:inherit;
}
...
...
app_Web/src/components/app-picker-select-view/app-picker-select-view.vue
浏览文件 @
7e63971b
...
...
@@ -255,8 +255,8 @@ export default class AppPickerSelectView extends Vue {
return
false
;
}
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
// 附加参数处理
if
(
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
context
,
this
.
itemParam
.
context
);
...
...
app_Web/src/components/app-picker/app-picker.vue
浏览文件 @
7e63971b
...
...
@@ -410,9 +410,9 @@ export default class AppPicker extends Vue {
// 判断打开方式
if
(
view
.
placement
&&
!
Object
.
is
(
view
.
placement
,
''
))
{
if
(
Object
.
is
(
view
.
placement
,
'POPOVER'
))
{
this
.
openPopOver
(
$event
,
view
,
_context
,
data
);
this
.
openPopOver
(
$event
,
view
,
_context
,
_param
);
}
else
{
this
.
openDrawer
(
view
,
_context
,
data
);
this
.
openDrawer
(
view
,
_context
,
_param
);
}
}
else
{
this
.
openPopupModal
(
view
,
_context
,
_param
);
...
...
@@ -647,14 +647,14 @@ export default class AppPicker extends Vue {
return
false
;
}
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
// 附加参数处理
if
(
this
.
itemParam
.
context
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
context
,
this
.
itemParam
.
context
);
Object
.
assign
(
arg
.
context
,
_context
);
}
if
(
this
.
itemParam
.
param
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
param
)
{
let
_param
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
param
,
this
.
itemParam
.
param
);
Object
.
assign
(
arg
.
param
,
_param
);
}
...
...
@@ -687,9 +687,9 @@ export default class AppPicker extends Vue {
// 判断打开方式
if
(
view
.
placement
&&
!
Object
.
is
(
view
.
placement
,
''
))
{
if
(
Object
.
is
(
view
.
placement
,
'POPOVER'
))
{
this
.
openPopOver
(
$event
,
view
,
_context
,
data
);
this
.
openPopOver
(
$event
,
view
,
_context
,
_param
);
}
else
{
this
.
openDrawer
(
view
,
_context
,
data
);
this
.
openDrawer
(
view
,
_context
,
_param
);
}
}
else
{
this
.
openPopupModal
(
view
,
_context
,
_param
);
...
...
app_Web/src/components/app-radio-group/app-radio-group.vue
浏览文件 @
7e63971b
...
...
@@ -6,7 +6,7 @@
</radio-group>
</
template
>
<
script
lang =
'ts'
>
import
{
Component
,
Vue
,
Prop
,
Model
}
from
'vue-property-decorator'
;
import
{
Component
,
Vue
,
Prop
,
Model
,
Watch
}
from
'vue-property-decorator'
;
import
CodeListService
from
"@service/app/codelist-service"
;
@
Component
({})
...
...
@@ -69,6 +69,31 @@ export default class AppRadioGroup extends Vue {
*/
@
Prop
()
public
data
?:
any
;
/**
* 监听表单数据变化
*
* @memberof AppOrgSelect
*/
@
Watch
(
'data'
,{
immediate
:
true
,
deep
:
true
})
onDataChange
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
if
(
this
.
tag
&&
this
.
codelistType
==
'DYNAMIC'
){
// 公共参数处理
let
data
:
any
=
{};
this
.
handlePublicParams
(
data
);
// 参数处理
let
_context
=
data
.
context
;
let
_param
=
data
.
param
;
console
.
log
(
"app-radio-group"
)
this
.
codeListService
.
getItems
(
this
.
tag
,
_context
,
_param
).
then
((
res
:
any
)
=>
{
this
.
items
=
res
;
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
`----
${
this
.
tag
}
----代码表不存在!`
);
})
}
}
}
/**
* 是否禁用
*
...
...
@@ -140,14 +165,14 @@ export default class AppRadioGroup extends Vue {
*/
public
handlePublicParams
(
arg
:
any
)
{
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
// 附加参数处理
if
(
this
.
itemParam
.
context
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
context
,
this
.
itemParam
.
context
);
Object
.
assign
(
arg
.
context
,
_context
);
}
if
(
this
.
itemParam
.
param
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
param
)
{
let
_param
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
param
,
this
.
itemParam
.
param
);
Object
.
assign
(
arg
.
param
,
_param
);
}
...
...
@@ -169,8 +194,8 @@ export default class AppRadioGroup extends Vue {
let
_context
=
data
.
context
;
let
_param
=
data
.
param
;
this
.
codeListService
.
getItems
(
this
.
tag
,
_context
,
_param
).
then
((
res
:
any
)
=>
{
this
.
items
=
data
;
}).
catch
((
data
:
any
)
=>
{
this
.
items
=
res
;
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
`----
${
this
.
tag
}
----代码表不存在!`
);
})
}
...
...
app_Web/src/components/app-rich-text-editor/app-rich-text-editor.vue
浏览文件 @
7e63971b
...
...
@@ -104,7 +104,7 @@ export default class AppRichTextEditor extends Vue {
* @type {*}
* @memberof AppRichTextEditor
*/
public
langu
:
any
=
localStorage
.
getItem
(
'local'
)
?
localStorage
.
getItem
(
'local'
)
:
'zh
_
CN'
;
public
langu
:
any
=
localStorage
.
getItem
(
'local'
)
?
localStorage
.
getItem
(
'local'
)
:
'zh
-
CN'
;
/**
* 语言映射文件
...
...
app_Web/src/components/app-span/app-span.vue
浏览文件 @
7e63971b
<
template
>
<codelist
v-if=
"tag"
:tag=
"tag"
:value=
"value"
:codelistType=
"codelistType"
:renderMode=
"renderMode"
:valueSeparator=
"valueSeparator"
:textSeparator=
"textSeparator"
></codelist>
<codelist
v-if=
"tag"
:tag=
"tag"
:value=
"value"
:codelistType=
"codelistType"
:renderMode=
"renderMode"
:valueSeparator=
"valueSeparator"
:textSeparator=
"textSeparator"
:data=
"data"
:itemParam=
"itemParam"
: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
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Prop
,
Watch
,
Model
}
from
'vue-property-decorator'
;
import
CodeListService
from
"@service/app/codelist-service"
;
@
Component
({})
export
default
class
AppSpan
extends
Vue
{
...
...
@@ -64,6 +63,38 @@ export default class AppSpan extends Vue {
*/
@
Prop
({
default
:
','
})
public
valueSeparator
?:
string
;
/**
* 传入表单数据
*
* @type {*}
* @memberof AppSpan
*/
@
Prop
()
public
data
?:
any
;
/**
* 传入额外参数
*
* @type {*}
* @memberof AppSpan
*/
@
Prop
()
public
itemParam
?:
any
;
/**
* 视图上下文
*
* @type {*}
* @memberof AppSpan
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof AppSpan
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 监控表单属性 data 值
*
...
...
app_Web/src/components/codelist/codelist.vue
浏览文件 @
7e63971b
...
...
@@ -37,14 +37,14 @@ export default class CodeList extends Vue {
* 代码表类型
*
* @type {string}
* @memberof
AppCheckBox
* @memberof
CodeList
*/
@
Prop
()
public
codelistType
?:
string
;
/**
* 当前值
* @type {any}
* @memberof
SelectPicker
* @memberof
CodeList
*
*/
@
Prop
()
public
value
?:
string
;
...
...
@@ -52,24 +52,56 @@ export default class CodeList extends Vue {
/**
* 获取或模式
* @type {boolean}
* @memberof
SelectPicker
* @memberof
CodeList
*/
@
Prop
({
default
:
"STR"
})
public
renderMode
?:
string
;
/**
* 文本分隔符
* @type {boolean}
* @memberof
SelectPicker
* @memberof
CodeList
*/
@
Prop
({
default
:
'、'
})
public
textSeparator
?:
string
;
/**
* 值分隔符
* @type {boolean}
* @memberof
SelectPicker
* @memberof
CodeList
*/
@
Prop
({
default
:
','
})
public
valueSeparator
?:
string
;
/**
* 传入表单数据
*
* @type {*}
* @memberof CodeList
*/
@
Prop
()
public
data
?:
any
;
/**
* 传入额外参数
*
* @type {*}
* @memberof CodeList
*/
@
Prop
()
public
itemParam
?:
any
;
/**
* 视图上下文
*
* @type {*}
* @memberof CodeList
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof CodeList
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 是否为空
*
...
...
@@ -112,7 +144,18 @@ export default class CodeList extends Vue {
@
Watch
(
'value'
)
public
onValueChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
dataHandle
();
}
/**
* 监听表单数据变化
*
* @memberof CodeList
*/
@
Watch
(
'data'
,{
immediate
:
true
,
deep
:
true
})
onDataChange
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
this
.
dataHandle
();
}
}
/**
...
...
@@ -131,7 +174,13 @@ export default class CodeList extends Vue {
this
.
ifEmpty
=
false
;
// 动态代码表处理
if
(
Object
.
is
(
this
.
codelistType
,
"DYNAMIC"
))
{
this
.
codeListService
.
getItems
(
this
.
tag
).
then
((
res
:
any
)
=>
{
// 公共参数处理
let
data
:
any
=
{};
this
.
handlePublicParams
(
data
);
// 参数处理
let
_context
=
data
.
context
;
let
_param
=
data
.
param
;
this
.
codeListService
.
getItems
(
this
.
tag
,
_context
,
_param
).
then
((
res
:
any
)
=>
{
let
items
=
res
;
_this
.
setItems
(
items
,
_this
);
}).
catch
((
error
:
any
)
=>
{
...
...
@@ -209,6 +258,28 @@ export default class CodeList extends Vue {
}
}
/**
* 公共参数处理
*
* @param {*} arg
* @returns
* @memberof CodeList
*/
public
handlePublicParams
(
arg
:
any
)
{
// 合并表单参数
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{};
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{};
// 附加参数处理
if
(
this
.
itemParam
&&
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
context
,
this
.
itemParam
.
context
);
Object
.
assign
(
arg
.
context
,
_context
);
}
if
(
this
.
itemParam
&&
this
.
itemParam
.
param
)
{
let
_param
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
param
,
this
.
itemParam
.
param
);
Object
.
assign
(
arg
.
param
,
_param
);
}
}
}
</
script
>
...
...
app_Web/src/components/dropdown-list-dynamic/dropdown-list-dynamic.vue
浏览文件 @
7e63971b
...
...
@@ -169,8 +169,8 @@ export default class DropDownListDynamic extends Vue {
*/
public
handlePublicParams
(
arg
:
any
)
{
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
// 附加参数处理
if
(
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
context
,
this
.
itemParam
.
context
);
...
...
app_Web/src/components/dropdown-list-mpicker/dropdown-list-mpicker.vue
浏览文件 @
7e63971b
...
...
@@ -154,8 +154,8 @@ export default class DropDownListMpicker extends Vue {
*/
public
handlePublicParams
(
arg
:
any
)
{
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
// 附加参数处理
if
(
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
context
,
this
.
itemParam
.
context
);
...
...
app_Web/src/components/dropdown-list/dropdown-list.vue
浏览文件 @
7e63971b
...
...
@@ -169,14 +169,14 @@ export default class DropDownList extends Vue {
*/
public
handlePublicParams
(
arg
:
any
)
{
// 合并表单参数
arg
.
param
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
;
arg
.
context
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
;
arg
.
param
=
this
.
viewparams
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
))
:
{}
;
arg
.
context
=
this
.
context
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
:
{}
;
// 附加参数处理
if
(
this
.
itemParam
.
context
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
context
)
{
let
_context
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
context
,
this
.
itemParam
.
context
);
Object
.
assign
(
arg
.
context
,
_context
);
}
if
(
this
.
itemParam
.
param
)
{
if
(
this
.
itemParam
&&
this
.
itemParam
.
param
)
{
let
_param
=
this
.
$util
.
formatData
(
this
.
data
,
arg
.
param
,
this
.
itemParam
.
param
);
Object
.
assign
(
arg
.
param
,
_param
);
}
...
...
app_Web/src/model/chart-detail/chart-series.ts
浏览文件 @
7e63971b
...
...
@@ -122,6 +122,14 @@ export class ChartSeries {
*/
public
seriesLayoutBy
:
string
=
"column"
;
/**
* 序列代码表
*
* @type {*}
* @memberof ChartSeries
*/
public
seriesCodeList
:
any
;
/**
* Creates an instance of ChartSeries.
* ChartSeries 实例
...
...
@@ -144,6 +152,7 @@ export class ChartSeries {
this
.
dataSetFields
=
opts
.
dataSetFields
?
opts
.
dataSetFields
:[];
this
.
seriesMap
=
opts
.
seriesMap
?
opts
.
seriesMap
:
null
;
this
.
seriesIndex
=
opts
.
seriesIndex
?
opts
.
seriesIndex
:
0
;
this
.
seriesCodeList
=
opts
.
seriesCodeList
?
opts
.
seriesCodeList
:
null
;
}
/**
...
...
@@ -285,4 +294,14 @@ export class ChartSeries {
public
setSeriesIndex
(
state
:
number
):
void
{
this
.
seriesIndex
=
state
;
}
/**
* 设置序列代码表
*
* @param {any} state
* @memberof ChartSeries
*/
public
setSeriesCodeList
(
state
:
any
):
void
{
this
.
seriesCodeList
=
state
;
}
}
\ No newline at end of file
app_Web/src/pages/ou/ibzdepartment-option-view/ibzdepartment-option-view.less
浏览文件 @
7e63971b
...
...
@@ -3,7 +3,8 @@
}
.view-container {
.app-modal{
.view-container {
.view-card {
.ivu-card-body {
.content-container{
...
...
@@ -11,4 +12,5 @@
}
}
}
}
}
\ No newline at end of file
app_Web/src/pages/ou/ibzdepartment-pickup-grid-view/ibzdepartment-pickup-grid-view.less
浏览文件 @
7e63971b
...
...
@@ -4,5 +4,5 @@
.ibzdepartment-pickup-grid-view{
width:100%
;
display: block
;
}
\ No newline at end of file
app_Web/src/pages/ou/ibzemployee-option-view/ibzemployee-option-view.less
浏览文件 @
7e63971b
...
...
@@ -3,7 +3,8 @@
}
.view-container {
.app-modal{
.view-container {
.view-card {
.ivu-card-body {
.content-container{
...
...
@@ -11,4 +12,5 @@
}
}
}
}
}
\ No newline at end of file
app_Web/src/pages/ou/ibzemployee-pickup-grid-view/ibzemployee-pickup-grid-view.less
浏览文件 @
7e63971b
...
...
@@ -4,5 +4,5 @@
.ibzemployee-pickup-grid-view{
width:100%
;
display: block
;
}
\ No newline at end of file
app_Web/src/pages/ou/ibzorganization-option-view/ibzorganization-option-view.less
浏览文件 @
7e63971b
...
...
@@ -3,7 +3,8 @@
}
.view-container {
.app-modal{
.view-container {
.view-card {
.ivu-card-body {
.content-container{
...
...
@@ -11,4 +12,5 @@
}
}
}
}
}
\ No newline at end of file
app_Web/src/pages/ou/ibzorganization-pickup-grid-view/ibzorganization-pickup-grid-view.less
浏览文件 @
7e63971b
...
...
@@ -4,5 +4,5 @@
.ibzorganization-pickup-grid-view{
width:100%
;
display: block
;
}
\ No newline at end of file
app_Web/src/pages/rt/index/index.less
浏览文件 @
7e63971b
...
...
@@ -9,6 +9,7 @@
height: 100%;
padding: 0;
margin: 0;
overflow: hidden;
.index_header{
height:65px;
padding:0 20px;
...
...
@@ -52,14 +53,11 @@
}
}
.ivu-layout .ivu-layout-sider .ivu-layout-sider-children .sider-top{
padding: 4px;
margin-top: -2px;
line-height: 58px;
text-align: center;
padding-right: 18px;
}
.ivu-layout .ivu-layout-sider .ivu-layout-sider-children .sider-top{
font-size: 20px;
padding: 4px;
margin-top: -2px;
cursor: pointer;
}
.sider-top{
...
...
app_Web/src/pages/uaa/sys-permission-pickup-grid-view/sys-permission-pickup-grid-view.less
浏览文件 @
7e63971b
...
...
@@ -4,5 +4,5 @@
.sys-permission-pickup-grid-view{
width:100%
;
display: block
;
}
\ No newline at end of file
app_Web/src/pages/uaa/sys-role-pickup-grid-view/sys-role-pickup-grid-view.less
浏览文件 @
7e63971b
...
...
@@ -4,5 +4,5 @@
.sys-role-pickup-grid-view{
width:100%
;
display: block
;
}
\ No newline at end of file
app_Web/src/pages/uaa/sys-user-pickup-grid-view/sys-user-pickup-grid-view.less
浏览文件 @
7e63971b
...
...
@@ -4,5 +4,5 @@
.sys-user-pickup-grid-view{
width:100%
;
display: block
;
}
\ No newline at end of file
app_Web/src/pages/workflow/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view.less
浏览文件 @
7e63971b
...
...
@@ -4,5 +4,5 @@
.wfgroup-pickup-grid-view{
width:100%
;
display: block
;
}
\ No newline at end of file
app_Web/src/pages/workflow/wfuser-pickup-grid-view/wfuser-pickup-grid-view.less
浏览文件 @
7e63971b
...
...
@@ -4,5 +4,5 @@
.wfuser-pickup-grid-view{
width:100%
;
display: block
;
}
\ No newline at end of file
app_Web/src/service/app/codelist-service.ts
浏览文件 @
7e63971b
...
...
@@ -40,6 +40,14 @@ export default class CodeListService {
*/
public
static
codelistCache
:
Map
<
string
,
any
>
=
new
Map
();
/**
* 动态代码表缓存(已完成)
*
* @type {Map<string,any>}
* @memberof CodeListService
*/
public
static
codelistCached
:
Map
<
string
,
any
>
=
new
Map
();
/**
* 获取动态代码表
...
...
@@ -51,31 +59,22 @@ export default class CodeListService {
*/
public
getItems
(
tag
:
string
,
context
:
any
=
{},
data
?:
any
,
isloading
?:
boolean
,):
Promise
<
any
[]
>
{
let
_this
:
any
=
this
;
if
(
context
&&
context
.
srfsessionid
){
delete
context
.
srfsessionid
;
}
let
isEnableCache
:
boolean
=
_this
[
tag
].
isEnableCache
;
let
cacheTimeout
:
any
=
_this
[
tag
].
cacheTimeout
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
// 如有查询参数传递过来,需直接加载,不能使用缓存
if
(
data
&&
Object
.
keys
(
data
).
length
>
0
){
if
(
_this
[
tag
])
{
_this
[
tag
].
getItems
(
context
,
JSON
.
parse
(
JSON
.
stringify
(
data
)),
isloading
).
then
((
result
:
any
)
=>
{
resolve
(
result
);
}).
catch
((
error
:
any
)
=>
{
Promise
.
reject
([]);
})
}
else
{
return
Promise
.
reject
([]);
}
}
else
{
// 启用缓存
if
(
isEnableCache
){
// 加载完成,从
store
获取
if
(
this
.
$store
&&
_this
.
$store
.
getters
){
let
items
:
any
=
_this
.
$store
.
getters
.
getCodeListItems
(
tag
);
// 加载完成,从
本地缓存
获取
if
(
CodeListService
.
codelistCached
.
get
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
)
){
let
items
:
any
=
CodeListService
.
codelistCached
.
get
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
);
if
(
items
.
length
>
0
){
if
(
cacheTimeout
!==
-
1
){
if
(
new
Date
().
getTime
()
>
_this
[
tag
].
expirationTime
){
_this
[
tag
].
getItems
(
context
,
data
,
isloading
).
then
((
result
:
any
)
=>
{
_this
.
$store
.
commit
(
'updateCodeList'
,{
srfkey
:
tag
,
items
:
result
});
CodeListService
.
codelistCached
.
set
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
,{
items
:
result
});
_this
[
tag
].
expirationTime
=
new
Date
().
getTime
()
+
cacheTimeout
;
resolve
(
result
);
}).
catch
((
error
:
any
)
=>
{
...
...
@@ -90,10 +89,11 @@ export default class CodeListService {
}
}
if
(
_this
[
tag
])
{
const
callback
:
Function
=
(
tag
:
string
,
promise
:
Promise
<
any
>
)
=>
{
const
callback
:
Function
=
(
context
:
any
=
{},
data
:
any
=
{},
tag
:
string
,
promise
:
Promise
<
any
>
)
=>
{
promise
.
then
((
result
:
any
)
=>
{
console
.
log
()
if
(
result
.
length
>
0
){
_this
.
$store
.
commit
(
'updateCodeList'
,{
srfkey
:
tag
,
items
:
result
});
CodeListService
.
codelistCached
.
set
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
,{
items
:
result
});
return
resolve
(
result
);
}
else
{
return
resolve
([]);
...
...
@@ -103,15 +103,15 @@ export default class CodeListService {
})
}
// 加载中,UI又需要数据,解决连续加载同一代码表问题
if
(
CodeListService
.
codelistCache
.
get
(
tag
)){
callback
(
tag
,
CodeListService
.
codelistCache
.
get
(
tag
));
if
(
CodeListService
.
codelistCache
.
get
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
)){
callback
(
context
,
data
,
tag
,
CodeListService
.
codelistCache
.
get
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
));
}
else
{
let
result
:
Promise
<
any
>
=
_this
[
tag
].
getItems
(
context
,
data
,
isloading
);
CodeListService
.
codelistCache
.
set
(
tag
,
result
);
CodeListService
.
codelistCache
.
set
(
`
${
JSON
.
stringify
(
context
)}
-
${
JSON
.
stringify
(
data
)}
-
${
tag
}
`
,
result
);
if
(
cacheTimeout
!==
-
1
){
_this
[
tag
].
expirationTime
=
new
Date
().
getTime
()
+
cacheTimeout
;
}
callback
(
tag
,
result
);
callback
(
context
,
data
,
tag
,
result
);
}
}
}
else
{
...
...
@@ -125,7 +125,6 @@ export default class CodeListService {
return
Promise
.
reject
([]);
}
}
}
})
}
}
\ No newline at end of file
app_Web/src/theme/blue.theme.less
浏览文件 @
7e63971b
...
...
@@ -18,7 +18,7 @@
i:hover{
color:#fff;
}
>
.app-breadcrumb{
.app-breadcrumb{
> span .el-breadcrumb__item .el-breadcrumb__inner{
a{
color:#b4bcc8 !important;
...
...
@@ -125,5 +125,8 @@
.sider-top{
color:#fff;
}
div.ivu-divider{
background-color: #c9dff5;
}
}
/*** END:默认蓝色主题 ***/
\ No newline at end of file
app_Web/src/theme/dark-blue.theme.less
浏览文件 @
7e63971b
...
...
@@ -18,7 +18,7 @@
i:hover{
color:#fff;
}
>
.app-breadcrumb{
.app-breadcrumb{
> span .el-breadcrumb__item .el-breadcrumb__inner{
a{
color:#b4bcc8 !important;
...
...
@@ -120,5 +120,8 @@
.sider-top{
color:#fff;
}
div.ivu-divider{
background-color: #b4bcc8;
}
}
/*** END:默认Dark Blue主题 ***/
\ No newline at end of file
app_Web/src/theme/default.theme.less
浏览文件 @
7e63971b
...
...
@@ -99,5 +99,8 @@
.sider-top{
color:#000;
}
div.ivu-divider{
background-color: #b3b3b3;
}
}
/*** END:默认亮色主题 ***/
\ No newline at end of file
app_Web/src/widgets/app/index-appmenu/index-appmenu.less
浏览文件 @
7e63971b
...
...
@@ -74,8 +74,8 @@
}
}
.ivu-divider-horizontal {
width:
calc(100% - 32px)
;
min-width:
calc(100% - 32px)
;
width:
100%
;
min-width:
100%
;
margin: 4px auto;
margin-bottom: 1px;
}
...
...
@@ -103,8 +103,8 @@
}
}
.ivu-divider-horizontal {
width:
calc(100% - 12px)
;
min-width:
calc(100% - 12px)
;
width:
100%
;
min-width:
100%
;
margin: 4px auto;
margin-bottom: 1px;
}
...
...
app_Web/src/widgets/ibzdepartment/dept-tree-treeview/dept-tree-treeview.less
浏览文件 @
7e63971b
.tree-right-menu {
.ivu-divider-horizontal {
width:
calc(100% - 32px)
;
min-width:
calc(100% - 32px)
;
width:
100%
;
min-width:
100%
;
margin: 0 auto;
}
.ivu-dropdown-item {
...
...
app_Web/src/widgets/ibzdepartment/main-form/main-form-base.vue
浏览文件 @
7e63971b
...
...
@@ -74,14 +74,22 @@
<i-col
v-show=
"detailsModel.createdate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'createdate'
:itemRules=
"this.rules.createdate"
class=
''
:caption=
"$t('entities.ibzdepartment.main_form.details.createdate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createdate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createdate'
:value=
"data.createdate"
style=
""
></app-span>
:value=
"data.createdate"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:itemParam=
"
{}"
style="">
</app-span>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.updatedate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'updatedate'
:itemRules=
"this.rules.updatedate"
class=
''
:caption=
"$t('entities.ibzdepartment.main_form.details.updatedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updatedate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updatedate'
:value=
"data.updatedate"
style=
""
></app-span>
:value=
"data.updatedate"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:itemParam=
"
{}"
style="">
</app-span>
</app-form-item>
</i-col>
...
...
app_Web/src/widgets/ibzorganization/main-form/main-form-base.vue
浏览文件 @
7e63971b
...
...
@@ -42,14 +42,22 @@
<i-col
v-show=
"detailsModel.createdate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'createdate'
:itemRules=
"this.rules.createdate"
class=
''
:caption=
"$t('entities.ibzorganization.main_form.details.createdate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createdate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createdate'
:value=
"data.createdate"
style=
""
></app-span>
:value=
"data.createdate"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:itemParam=
"
{}"
style="">
</app-span>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.updatedate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'updatedate'
:itemRules=
"this.rules.updatedate"
class=
''
:caption=
"$t('entities.ibzorganization.main_form.details.updatedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updatedate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updatedate'
:value=
"data.updatedate"
style=
""
></app-span>
:value=
"data.updatedate"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:itemParam=
"
{}"
style="">
</app-span>
</app-form-item>
</i-col>
...
...
app_Web/src/widgets/ibzorganization/org-tree-treeview/org-tree-treeview.less
浏览文件 @
7e63971b
.tree-right-menu {
.ivu-divider-horizontal {
width:
calc(100% - 32px)
;
min-width:
calc(100% - 32px)
;
width:
100%
;
min-width:
100%
;
margin: 0 auto;
}
.ivu-dropdown-item {
...
...
app_Web/src/widgets/sys-user-role/main-form/main-form-base.vue
浏览文件 @
7e63971b
...
...
@@ -15,7 +15,11 @@
<i-col
v-show=
"detailsModel.sys_user_roleid.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'sys_user_roleid'
:itemRules=
"this.rules.sys_user_roleid"
class=
''
:caption=
"$t('entities.sysuserrole.main_form.details.sys_user_roleid')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.sys_user_roleid.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'sys_user_roleid'
:value=
"data.sys_user_roleid"
style=
""
></app-span>
:value=
"data.sys_user_roleid"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:itemParam=
"
{}"
style="">
</app-span>
</app-form-item>
</i-col>
...
...
ibzrt-util/src/main/java/cn/ibizlab/util/enums/DEPredefinedFieldType.java
浏览文件 @
7e63971b
...
...
@@ -51,5 +51,9 @@ public enum DEPredefinedFieldType {
/**
* 不处理
*/
NONE
NONE
,
/**
* 其它
*/
ORDERVALUE
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录