Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdict
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdict
提交
60df0e53
提交
60df0e53
编写于
6月 21, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
259c28c1
变更
21
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
263 行增加
和
258 行删除
+263
-258
dict-catalog_en_US.ts
...locale/lanres/entities/dict-catalog/dict-catalog_en_US.ts
+7
-9
dict-catalog_zh_CN.ts
...locale/lanres/entities/dict-catalog/dict-catalog_zh_CN.ts
+7
-9
dict-option_en_US.ts
...c/locale/lanres/entities/dict-option/dict-option_en_US.ts
+5
-5
dict-option_zh_CN.ts
...c/locale/lanres/entities/dict-option/dict-option_zh_CN.ts
+5
-5
dict-catalog-grid-view-base.vue
...ct/dict-catalog-grid-view/dict-catalog-grid-view-base.vue
+0
-54
dict-option-grid-view-base.vue
...dict/dict-option-grid-view/dict-option-grid-view-base.vue
+15
-12
default-searchform-base.vue
...ct-catalog/default-searchform/default-searchform-base.vue
+24
-24
default-searchform-model.ts
...ct-catalog/default-searchform/default-searchform-model.ts
+2
-7
default-searchform-service.ts
...-catalog/default-searchform/default-searchform-service.ts
+0
-1
main-form-base.vue
...web/src/widgets/dict-catalog/main-form/main-form-base.vue
+40
-18
main-form-model.ts
...web/src/widgets/dict-catalog/main-form/main-form-model.ts
+7
-2
main-form-service.ts
...b/src/widgets/dict-catalog/main-form/main-form-service.ts
+0
-1
main-grid-base.vue
...web/src/widgets/dict-catalog/main-grid/main-grid-base.vue
+8
-8
main-grid-model.ts
...web/src/widgets/dict-catalog/main-grid/main-grid-model.ts
+7
-12
pickup-viewpickupviewpanel-pickupviewpanel-model.ts
...panel/pickup-viewpickupviewpanel-pickupviewpanel-model.ts
+3
-0
main-grid-base.vue
app_web/src/widgets/dict-option/main-grid/main-grid-base.vue
+84
-84
DictCatalog.java
...rc/main/java/cn/ibizlab/core/dict/domain/DictCatalog.java
+17
-1
DictCatalogSearchContext.java
...cn/ibizlab/core/dict/filter/DictCatalogSearchContext.java
+7
-0
h2_table.xml
ibzdict-core/src/main/resources/liquibase/h2_table.xml
+5
-3
DictCatalogMapper.xml
...n/resources/mapper/dict/dictcatalog/DictCatalogMapper.xml
+4
-3
DictCatalogDTO.java
...-api/src/main/java/cn/ibizlab/api/dto/DictCatalogDTO.java
+16
-0
未找到文件。
app_web/src/locale/lanres/entities/dict-catalog/dict-catalog_en_US.ts
浏览文件 @
60df0e53
...
...
@@ -2,6 +2,7 @@
export
default
{
fields
:
{
id
:
"标识"
,
code
:
"代码"
,
name
:
"名称"
,
group
:
"分组"
,
memo
:
"备注"
,
...
...
@@ -39,17 +40,18 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
c
id
:
"标识
"
,
c
code
:
"代码
"
,
cname
:
"名称"
,
cgroup
:
"分组"
,
memo
:
"备注"
,
cid
:
"标识"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
c
id
:
"标识
"
,
c
code
:
"代码
"
,
cname
:
"名称"
,
cgroup
:
"分组"
,
memo
:
"备注"
,
...
...
@@ -61,9 +63,9 @@ export default {
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
n_c
id_like
:
"标识(文本包含(%))
"
,
n_cname_like
:
"名称
(文本包含(%))
"
,
n_cgroup_like
:
"分组
(文本包含(%))
"
,
n_c
code_like
:
"代码
"
,
n_cname_like
:
"名称"
,
n_cgroup_like
:
"分组"
,
},
uiactions
:
{
},
...
...
@@ -121,10 +123,6 @@ export default {
caption
:
"Filter"
,
tip
:
"Filter"
,
},
tbitem18
:
{
caption
:
"Help"
,
tip
:
"Help"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem1
:
{
...
...
app_web/src/locale/lanres/entities/dict-catalog/dict-catalog_zh_CN.ts
浏览文件 @
60df0e53
export
default
{
fields
:
{
id
:
"标识"
,
code
:
"代码"
,
name
:
"名称"
,
group
:
"分组"
,
memo
:
"备注"
,
...
...
@@ -38,17 +39,18 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
c
id
:
"标识
"
,
c
code
:
"代码
"
,
cname
:
"名称"
,
cgroup
:
"分组"
,
memo
:
"备注"
,
cid
:
"标识"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
c
id
:
"标识
"
,
c
code
:
"代码
"
,
cname
:
"名称"
,
cgroup
:
"分组"
,
memo
:
"备注"
,
...
...
@@ -60,9 +62,9 @@ export default {
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
n_c
id_like
:
"标识(文本包含(%))
"
,
n_cname_like
:
"名称
(文本包含(%))
"
,
n_cgroup_like
:
"分组
(文本包含(%))
"
,
n_c
code_like
:
"代码
"
,
n_cname_like
:
"名称"
,
n_cgroup_like
:
"分组"
,
},
uiactions
:
{
},
...
...
@@ -120,10 +122,6 @@ export default {
caption
:
"过滤"
,
tip
:
"过滤"
,
},
tbitem18
:
{
caption
:
"帮助"
,
tip
:
"帮助"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem1
:
{
...
...
app_web/src/locale/lanres/entities/dict-option/dict-option_en_US.ts
浏览文件 @
60df0e53
...
...
@@ -58,16 +58,16 @@ export default {
main_grid
:
{
columns
:
{
cid
:
"目录代码"
,
cname
:
"目录"
,
val
:
"代码值"
,
label
:
"名称"
,
pval
:
"父代码值"
,
showorder
:
"排序"
,
cname
:
"目录"
,
cls
:
"栏目样式"
,
iconcls
:
"图标"
,
vfilter
:
"过滤项"
,
disabled
:
"是否禁用"
,
expired
:
"过期/失效"
,
showorder
:
"排序"
,
extension
:
"扩展"
,
updatedate
:
"最后修改时间"
,
},
...
...
@@ -133,9 +133,9 @@ export default {
caption
:
"-"
,
tip
:
""
,
},
tbitem18
:
{
caption
:
"
Help
"
,
tip
:
"
Help
"
,
deuiaction2
:
{
caption
:
"
Filter
"
,
tip
:
"
Filter
"
,
},
},
editviewtoolbar_toolbar
:
{
...
...
app_web/src/locale/lanres/entities/dict-option/dict-option_zh_CN.ts
浏览文件 @
60df0e53
...
...
@@ -57,16 +57,16 @@ export default {
main_grid
:
{
columns
:
{
cid
:
"目录代码"
,
cname
:
"目录"
,
val
:
"代码值"
,
label
:
"名称"
,
pval
:
"父代码值"
,
showorder
:
"排序"
,
cname
:
"目录"
,
cls
:
"栏目样式"
,
iconcls
:
"图标"
,
vfilter
:
"过滤项"
,
disabled
:
"是否禁用"
,
expired
:
"过期/失效"
,
showorder
:
"排序"
,
extension
:
"扩展"
,
updatedate
:
"最后修改时间"
,
},
...
...
@@ -132,9 +132,9 @@ export default {
caption
:
"-"
,
tip
:
""
,
},
tbitem18
:
{
caption
:
"
帮助
"
,
tip
:
"
帮助
"
,
deuiaction2
:
{
caption
:
"
过滤
"
,
tip
:
"
过滤
"
,
},
},
editviewtoolbar_toolbar
:
{
...
...
app_web/src/pages/dict/dict-catalog-grid-view/dict-catalog-grid-view-base.vue
浏览文件 @
60df0e53
...
...
@@ -85,13 +85,6 @@
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.dictcatalog.gridviewtoolbar_toolbar.tbitem19.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem18.visabled"
:disabled=
"toolBarModels.tbitem18.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem18' }, $event)">
<i
class=
'fa fa-question'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.dictcatalog.gridviewtoolbar_toolbar.tbitem18.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.dictcatalog.gridviewtoolbar_toolbar.tbitem18.tip'
)
}}
</div>
</tooltip>
</div>
</div>
</div>
...
...
@@ -367,8 +360,6 @@ export default class DictCatalogGridViewBase extends Vue {
tbitem17
:
{
name
:
'tbitem17'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem19
:
{
name
:
'tbitem19'
,
caption
:
'过滤'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ToggleFilter'
,
target
:
''
}
},
tbitem18
:
{
name
:
'tbitem18'
,
caption
:
'帮助'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Help'
,
target
:
''
}
},
};
...
...
@@ -721,9 +712,6 @@ export default class DictCatalogGridViewBase extends Vue {
if
(
Object
.
is
(
$event
.
tag
,
'tbitem19'
))
{
this
.
toolbar_tbitem19_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem18'
))
{
this
.
toolbar_tbitem18_click
(
null
,
''
,
$event2
);
}
}
...
...
@@ -1160,34 +1148,6 @@ export default class DictCatalogGridViewBase extends Vue {
this
.
ToggleFilter
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"DictCatalog"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem18_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
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Help
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"DictCatalog"
);
}
/**
* 打开新建数据视图
*
...
...
@@ -1502,20 +1462,6 @@ export default class DictCatalogGridViewBase extends Vue {
_this
.
isExpandSearchForm
=
!
_this
.
isExpandSearchForm
;
}
}
/**
* 帮助
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof DictCatalogGridViewBase
*/
public
Help
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'帮助未支持'
});
}
/**
* 关闭视图
...
...
app_web/src/pages/dict/dict-option-grid-view/dict-option-grid-view-base.vue
浏览文件 @
60df0e53
...
...
@@ -66,11 +66,11 @@
<div
slot=
'content'
>
{{
$t
(
'entities.dictoption.gridviewtoolbar_toolbar.tbitem13.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.
tbitem18.visabled"
:disabled=
"toolBarModels.tbitem18.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem18
' }, $event)">
<i
class=
'fa fa-
question
'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.dictoption.gridviewtoolbar_toolbar.
tbitem18
.caption'
)
}}
</span>
<i-button
v-show=
"toolBarModels.
deuiaction2.visabled"
:disabled=
"toolBarModels.deuiaction2.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'deuiaction2
' }, $event)">
<i
class=
'fa fa-
filter
'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.dictoption.gridviewtoolbar_toolbar.
deuiaction2
.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.dictoption.gridviewtoolbar_toolbar.
tbitem18
.tip'
)
}}
</div>
<div
slot=
'content'
>
{{
$t
(
'entities.dictoption.gridviewtoolbar_toolbar.
deuiaction2
.tip'
)
}}
</div>
</tooltip>
</div>
</div>
...
...
@@ -345,7 +345,7 @@ export default class DictOptionGridViewBase extends Vue {
tbitem13
:
{
name
:
'tbitem13'
,
caption
:
'导出'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ExportExcel'
,
target
:
''
},
MaxRowCount
:
1000
},
tbitem10
:
{
name
:
'tbitem10'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem18
:
{
name
:
'tbitem18'
,
caption
:
'帮助'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Help
'
,
target
:
''
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
caption
:
'过滤'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ToggleFilter
'
,
target
:
''
}
},
};
...
...
@@ -693,8 +693,8 @@ export default class DictOptionGridViewBase extends Vue {
if
(
Object
.
is
(
$event
.
tag
,
'tbitem11'
))
{
this
.
toolbar_tbitem11_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'
tbitem18
'
))
{
this
.
toolbar_
tbitem18
_click
(
null
,
''
,
$event2
);
if
(
Object
.
is
(
$event
.
tag
,
'
deuiaction2
'
))
{
this
.
toolbar_
deuiaction2
_click
(
null
,
''
,
$event2
);
}
}
...
...
@@ -1084,7 +1084,7 @@ export default class DictOptionGridViewBase extends Vue {
* @param {*} [$event]
* @memberof
*/
public
toolbar_
tbitem18
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_
deuiaction2
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -1101,7 +1101,7 @@ export default class DictOptionGridViewBase extends Vue {
datas
=
[
params
];
}
// 界面行为
this
.
Help
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"DictOption"
);
this
.
ToggleFilter
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"DictOption"
);
}
/**
...
...
@@ -1426,7 +1426,7 @@ export default class DictOptionGridViewBase extends Vue {
xData
.
print
();
}
/**
*
帮助
*
过滤
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
...
...
@@ -1436,8 +1436,11 @@ export default class DictOptionGridViewBase extends Vue {
* @param {*} [actionContext] 执行行为上下文
* @memberof DictOptionGridViewBase
*/
public
Help
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'帮助未支持'
});
public
ToggleFilter
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
hasOwnProperty
(
'isExpandSearchForm'
))
{
_this
.
isExpandSearchForm
=
!
_this
.
isExpandSearchForm
;
}
}
/**
...
...
app_web/src/widgets/dict-catalog/default-searchform/default-searchform-base.vue
浏览文件 @
60df0e53
...
...
@@ -4,9 +4,9 @@
<row>
<i-col
span=
"20"
class=
"form-content"
>
<row>
<i-col
v-show=
"detailsModel.n_c
id
_like.visible"
:style=
"
{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item
name=
'n_c
id_like'
:itemRules=
"this.rules.n_cid_like"
class=
''
:caption=
"$t('entities.dictcatalog.default_searchform.details.n_cid_like')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.n_cid
_like.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.n_c
id_like"
@
enter=
"onEnter($event)"
:disabled=
"detailsModel.n_cid
_like.disabled"
type=
'text'
style=
"width:100px;"
></input-box>
<i-col
v-show=
"detailsModel.n_c
code
_like.visible"
:style=
"
{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item
name=
'n_c
code_like'
:itemRules=
"this.rules.n_ccode_like"
class=
''
:caption=
"$t('entities.dictcatalog.default_searchform.details.n_ccode_like')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.n_ccode
_like.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.n_c
code_like"
@
enter=
"onEnter($event)"
:disabled=
"detailsModel.n_ccode
_like.disabled"
type=
'text'
style=
"width:100px;"
></input-box>
</app-form-item>
</i-col>
...
...
@@ -263,7 +263,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
*/
public
data
:
any
=
{
n_c
id
_like
:
null
,
n_c
code
_like
:
null
,
n_cname_like
:
null
,
n_cgroup_like
:
null
,
};
...
...
@@ -275,23 +275,23 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
*/
public
rules
:
any
=
{
n_c
id
_like
:
[
{
type
:
'string'
,
message
:
'
标识(文本包含(%))
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
标识(文本包含(%))
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
标识(文本包含(%))
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
标识(文本包含(%))
值不能为空'
,
trigger
:
'blur'
},
n_c
code
_like
:
[
{
type
:
'string'
,
message
:
'
代码
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
代码
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
代码
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
代码
值不能为空'
,
trigger
:
'blur'
},
],
n_cname_like
:
[
{
type
:
'string'
,
message
:
'名称
(文本包含(%))
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'名称
(文本包含(%))
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'名称
(文本包含(%))
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'名称
(文本包含(%))
值不能为空'
,
trigger
:
'blur'
},
{
type
:
'string'
,
message
:
'名称 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'名称 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'名称 值不能为空'
,
trigger
:
'blur'
},
],
n_cgroup_like
:
[
{
type
:
'string'
,
message
:
'分组
(文本包含(%))
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'分组
(文本包含(%))
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'分组
(文本包含(%))
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'分组
(文本包含(%))
值不能为空'
,
trigger
:
'blur'
},
{
type
:
'string'
,
message
:
'分组 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'分组 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'分组 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'分组 值不能为空'
,
trigger
:
'blur'
},
],
}
...
...
@@ -304,24 +304,24 @@ export default class DefaultBase extends Vue implements ControlInterface {
public
detailsModel
:
any
=
{
formpage1
:
new
FormPageModel
({
caption
:
'常规条件'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
,
n_c
id_like
:
new
FormItemModel
({
caption
:
'标识(文本包含(%))'
,
detailType
:
'FORMITEM'
,
name
:
'n_cid
_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
n_c
code_like
:
new
FormItemModel
({
caption
:
'代码'
,
detailType
:
'FORMITEM'
,
name
:
'n_ccode
_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
n_cname_like
:
new
FormItemModel
({
caption
:
'名称
(文本包含(%))
'
,
detailType
:
'FORMITEM'
,
name
:
'n_cname_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
n_cname_like
:
new
FormItemModel
({
caption
:
'名称'
,
detailType
:
'FORMITEM'
,
name
:
'n_cname_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
n_cgroup_like
:
new
FormItemModel
({
caption
:
'分组
(文本包含(%))
'
,
detailType
:
'FORMITEM'
,
name
:
'n_cgroup_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
n_cgroup_like
:
new
FormItemModel
({
caption
:
'分组'
,
detailType
:
'FORMITEM'
,
name
:
'n_cgroup_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
};
/**
* 监控表单属性 n_c
id
_like 值
* 监控表单属性 n_c
code
_like 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DefaultBase
*/
@
Watch
(
'data.n_c
id
_like'
)
onN_c
id
_likeChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'n_c
id
_like'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
@
Watch
(
'data.n_c
code
_like'
)
onN_c
code
_likeChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'n_c
code
_like'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
...
...
app_web/src/widgets/dict-catalog/default-searchform/default-searchform-model.ts
浏览文件 @
60df0e53
...
...
@@ -26,8 +26,8 @@ export default class DefaultModel {
dataType
:
'TEXT'
,
},
{
name
:
'n_c
id
_like'
,
prop
:
'
id
'
,
name
:
'n_c
code
_like'
,
prop
:
'
code
'
,
dataType
:
'TEXT'
,
},
{
...
...
@@ -40,11 +40,6 @@ export default class DefaultModel {
prop
:
'group'
,
dataType
:
'TEXT'
,
},
{
name
:
'dictcatalog'
,
prop
:
'id'
,
dataType
:
'FONTKEY'
,
},
]
}
...
...
app_web/src/widgets/dict-catalog/default-searchform/default-searchform-service.ts
浏览文件 @
60df0e53
...
...
@@ -162,7 +162,6 @@ export default class DefaultService extends ControlService {
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
Object
.
assign
(
Data
,{
id
:
data
.
id
,
srffrontuf
:
'1'
});
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
...
app_web/src/widgets/dict-catalog/main-form/main-form-base.vue
浏览文件 @
60df0e53
...
...
@@ -4,11 +4,11 @@
<row
>
<i-col
v-show=
"detailsModel.group1.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-group
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.dictcatalog.main_form.details.group1')"
:isShowCaption=
"
tru
e"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.dictcatalog.main_form.details.group1')"
:isShowCaption=
"
fals
e"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<row>
<i-col
v-show=
"detailsModel.c
id
.visible"
:style=
"
{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item
name=
'c
id'
:itemRules=
"this.rules.cid"
class=
''
:caption=
"$t('entities.dictcatalog.main_form.details.cid')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.cid
.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.c
id"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.cid
.disabled"
type=
'text'
style=
""
></input-box>
<i-col
v-show=
"detailsModel.c
code
.visible"
:style=
"
{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item
name=
'c
code'
:itemRules=
"this.rules.ccode"
class=
''
:caption=
"$t('entities.dictcatalog.main_form.details.ccode')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ccode
.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.c
code"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.ccode
.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
...
...
@@ -377,10 +377,11 @@ export default class MainBase extends Vue implements ControlInterface {
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
c
id
:
null
,
c
code
:
null
,
cname
:
null
,
cgroup
:
null
,
memo
:
null
,
cid
:
null
,
dictcatalog
:
null
,
};
...
...
@@ -471,17 +472,17 @@ export default class MainBase extends Vue implements ControlInterface {
{
required
:
false
,
type
:
'string'
,
message
:
' 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
' 值不能为空'
,
trigger
:
'blur'
},
],
c
id
:
[
{
type
:
'string'
,
message
:
'
标识
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
标识
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'标识
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'标识
值不能为空'
,
trigger
:
'blur'
},
c
code
:
[
{
type
:
'string'
,
message
:
'
代码
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
代码
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
true
,
type
:
'string'
,
message
:
'代码
值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'代码
值不能为空'
,
trigger
:
'blur'
},
],
cname
:
[
{
type
:
'string'
,
message
:
'名称 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'名称 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
fals
e
,
type
:
'string'
,
message
:
'名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
fals
e
,
type
:
'string'
,
message
:
'名称 值不能为空'
,
trigger
:
'blur'
},
{
required
:
tru
e
,
type
:
'string'
,
message
:
'名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
tru
e
,
type
:
'string'
,
message
:
'名称 值不能为空'
,
trigger
:
'blur'
},
],
cgroup
:
[
{
type
:
'string'
,
message
:
'分组 值必须为字符串类型'
,
trigger
:
'change'
},
...
...
@@ -495,6 +496,12 @@ export default class MainBase extends Vue implements ControlInterface {
{
required
:
false
,
type
:
'string'
,
message
:
'备注 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'备注 值不能为空'
,
trigger
:
'blur'
},
],
cid
:
[
{
type
:
'string'
,
message
:
'标识 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'标识 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'标识 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'标识 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
...
...
@@ -504,7 +511,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'字典基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
tru
e
,
form
:
this
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.dictcatalog.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
})
group1
:
new
FormGroupPanelModel
({
caption
:
'字典基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
fals
e
,
form
:
this
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.dictcatalog.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
})
,
druipart1
:
new
FormDRUIPartModel
({
caption
:
'字典项'
,
detailType
:
'DRUIPART'
,
name
:
'druipart1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
,
...
...
@@ -526,13 +533,15 @@ export default class MainBase extends Vue implements ControlInterface {
,
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
c
id
:
new
FormItemModel
({
caption
:
'标识'
,
detailType
:
'FORMITEM'
,
name
:
'cid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
c
code
:
new
FormItemModel
({
caption
:
'代码'
,
detailType
:
'FORMITEM'
,
name
:
'ccode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
1
})
,
cname
:
new
FormItemModel
({
caption
:
'名称'
,
detailType
:
'FORMITEM'
,
name
:
'cname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
cgroup
:
new
FormItemModel
({
caption
:
'分组'
,
detailType
:
'FORMITEM'
,
name
:
'cgroup'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
memo
:
new
FormItemModel
({
caption
:
'备注'
,
detailType
:
'FORMITEM'
,
name
:
'memo'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
cid
:
new
FormItemModel
({
caption
:
'标识'
,
detailType
:
'FORMITEM'
,
name
:
'cid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
};
...
...
@@ -633,15 +642,15 @@ export default class MainBase extends Vue implements ControlInterface {
}
/**
* 监控表单属性 c
id
值
* 监控表单属性 c
code
值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@
Watch
(
'data.c
id
'
)
onC
id
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'c
id
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
@
Watch
(
'data.c
code
'
)
onC
code
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'c
code
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
...
...
@@ -680,6 +689,18 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
formDataChange
({
name
:
'memo'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 cid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@
Watch
(
'data.cid'
)
onCidChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'cid'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 重置表单项值
...
...
@@ -731,6 +752,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
/**
...
...
app_web/src/widgets/dict-catalog/main-form/main-form-model.ts
浏览文件 @
60df0e53
...
...
@@ -56,8 +56,8 @@ export default class MainModel {
name
:
'srfsourcekey'
,
},
{
name
:
'c
id
'
,
prop
:
'
id
'
,
name
:
'c
code
'
,
prop
:
'
code
'
,
dataType
:
'TEXT'
,
},
{
...
...
@@ -75,6 +75,11 @@ export default class MainModel {
prop
:
'memo'
,
dataType
:
'TEXT'
,
},
{
name
:
'cid'
,
prop
:
'id'
,
dataType
:
'TEXT'
,
},
{
name
:
'dictcatalog'
,
prop
:
'id'
,
...
...
app_web/src/widgets/dict-catalog/main-form/main-form-service.ts
浏览文件 @
60df0e53
...
...
@@ -162,7 +162,6 @@ export default class MainService extends ControlService {
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
Object
.
assign
(
Data
,{
id
:
data
.
id
,
srffrontuf
:
'1'
});
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
...
app_web/src/widgets/dict-catalog/main-grid/main-grid-base.vue
浏览文件 @
60df0e53
...
...
@@ -21,15 +21,15 @@
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
<
template
v-if=
"getColumnState('c
id
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'c
id'"
:label=
"$t('entities.dictcatalog.main_grid.columns.cid
')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<
template
v-if=
"getColumnState('c
code
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'c
code'"
:label=
"$t('entities.dictcatalog.main_grid.columns.ccode
')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictcatalog.main_grid.columns.c
id
'
)
}}
{{
$t
(
'entities.dictcatalog.main_grid.columns.c
code
'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
c
id
}}
</span>
<span>
{{
row
.
c
code
}}
</span>
</
template
>
</el-table-column>
</template>
...
...
@@ -559,9 +559,9 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
allColumns
:
any
[]
=
[
{
name
:
'c
id
'
,
label
:
'
标识
'
,
langtag
:
'entities.dictcatalog.main_grid.columns.c
id
'
,
name
:
'c
code
'
,
label
:
'
代码
'
,
langtag
:
'entities.dictcatalog.main_grid.columns.c
code
'
,
show
:
true
,
util
:
'PX'
},
...
...
@@ -1573,7 +1573,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
getCellClassName
(
args
:{
row
:
any
,
column
:
any
,
rowIndex
:
number
,
columnIndex
:
number
}){
let
hasRowEdit
:
any
=
{
'c
id
'
:
false
,
'c
code
'
:
false
,
'cname'
:
false
,
'cgroup'
:
false
,
'memo'
:
false
,
...
...
app_web/src/widgets/dict-catalog/main-grid/main-grid-model.ts
浏览文件 @
60df0e53
...
...
@@ -26,6 +26,11 @@ export default class MainModel {
]
}
else
{
return
[
{
name
:
'ccode'
,
prop
:
'code'
,
dataType
:
'TEXT'
,
},
{
name
:
'cgroup'
,
prop
:
'group'
,
...
...
@@ -41,11 +46,6 @@ export default class MainModel {
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'cid'
,
prop
:
'id'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfmajortext'
,
prop
:
'name'
,
...
...
@@ -71,8 +71,8 @@ export default class MainModel {
prop
:
'id'
,
},
{
name
:
'n_c
id
_like'
,
prop
:
'n_c
id
_like'
,
name
:
'n_c
code
_like'
,
prop
:
'n_c
code
_like'
,
dataType
:
'TEXT'
,
},
{
...
...
@@ -85,11 +85,6 @@ export default class MainModel {
prop
:
'n_cgroup_like'
,
dataType
:
'TEXT'
,
},
{
name
:
'dictcatalog'
,
prop
:
'id'
,
dataType
:
'FONTKEY'
,
},
{
name
:
'size'
,
...
...
app_web/src/widgets/dict-catalog/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel-model.ts
浏览文件 @
60df0e53
...
...
@@ -18,6 +18,9 @@ export default class PickupViewpickupviewpanelModel {
name
:
'dictcatalog'
,
prop
:
'id'
,
},
{
name
:
'code'
,
},
{
name
:
'name'
,
},
...
...
app_web/src/widgets/dict-option/main-grid/main-grid-base.vue
浏览文件 @
60df0e53
...
...
@@ -48,51 +48,38 @@
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('
cname
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
cname'"
:label=
"$t('entities.dictoption.main_grid.columns.cname')"
:width=
"2
50"
:align=
"'left'"
:sortable=
"'custom'"
>
<
template
v-if=
"getColumnState('
val
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
val'"
:label=
"$t('entities.dictoption.main_grid.columns.val')"
:width=
"1
50"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.
cname
'
)
}}
{{
$t
(
'entities.dictoption.main_grid.columns.
val
'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<app-picker
:formState=
"viewState"
:data=
"row"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }'
:localParam ='{ }'
<input-box
:disabled=
"row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1"
name='cname'
deMajorField='name'
deKeyField='dictcatalog'
:service="service"
:acParams="{ serviceName: 'DictCatalogService', interfaceName: 'FetchDefault'}"
valueitem='cid'
:value="row[column.property]"
editortype=""
:pickupView="{ viewname: 'dict-catalog-pickup-view', title: $t('entities.dictcatalog.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'dictcatalogs', parameterName: 'dictcatalog' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}">
</app-picker>
v-model=
"row[column.property]"
style=
""
type=
"text"
@
change=
"($event)=>
{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'
cname'
editorType=
"PICKER"
:value=
"row.cname
"
></app-span>
<app-span
name=
'
val'
editorType=
"TEXTBOX"
:value=
"row.val
"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('
va
l')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
val'"
:label=
"$t('entities.dictoption.main_grid.columns.val')"
:width=
"25
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<
template
v-if=
"getColumnState('
labe
l')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
label'"
:label=
"$t('entities.dictoption.main_grid.columns.label')"
:width=
"20
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.
va
l'
)
}}
{{
$t
(
'entities.dictoption.main_grid.columns.
labe
l'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
...
...
@@ -110,16 +97,16 @@
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'
val'
editorType=
"TEXTBOX"
:value=
"row.va
l"
></app-span>
<app-span
name=
'
label'
editorType=
"TEXTBOX"
:value=
"row.labe
l"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('
labe
l')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
label'"
:label=
"$t('entities.dictoption.main_grid.columns.label')"
:width=
"2
50"
:align=
"'left'"
:sortable=
"'custom'"
>
<
template
v-if=
"getColumnState('
pva
l')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
pval'"
:label=
"$t('entities.dictoption.main_grid.columns.pval')"
:width=
"1
50"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.
labe
l'
)
}}
{{
$t
(
'entities.dictoption.main_grid.columns.
pva
l'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
...
...
@@ -137,16 +124,16 @@
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'
label'
editorType=
"TEXTBOX"
:value=
"row.labe
l"
></app-span>
<app-span
name=
'
pval'
editorType=
"TEXTBOX"
:value=
"row.pva
l"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('
pval
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
pval'"
:label=
"$t('entities.dictoption.main_grid.columns.pval')"
:width=
"25
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<
template
v-if=
"getColumnState('
showorder
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
showorder'"
:label=
"$t('entities.dictoption.main_grid.columns.showorder')"
:width=
"10
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.
pval
'
)
}}
{{
$t
(
'entities.dictoption.main_grid.columns.
showorder
'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
...
...
@@ -164,13 +151,53 @@
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'pval'
editorType=
"TEXTBOX"
:value=
"row.pval"
></app-span>
<app-span
name=
'showorder'
editorType=
"TEXTBOX"
:value=
"row.showorder"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('cname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'cname'"
:label=
"$t('entities.dictoption.main_grid.columns.cname')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.cname'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<app-picker
:formState=
"viewState"
:data=
"row"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }'
:localParam ='{ }'
:disabled="row.srfuf === 1 ? (3
&
2) !== 2 : (3
&
1) !== 1"
name='cname'
deMajorField='name'
deKeyField='dictcatalog'
:service="service"
:acParams="{ serviceName: 'DictCatalogService', interfaceName: 'FetchDefault'}"
valueitem='cid'
:value="row[column.property]"
editortype=""
:pickupView="{ viewname: 'dict-catalog-pickup-view', title: $t('entities.dictcatalog.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'dictcatalogs', parameterName: 'dictcatalog' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}">
</app-picker>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'cname'
editorType=
"PICKER"
:value=
"row.cname"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('cls')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'cls'"
:label=
"$t('entities.dictoption.main_grid.columns.cls')"
:width=
"
2
50"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'cls'"
:label=
"$t('entities.dictoption.main_grid.columns.cls')"
:width=
"
1
50"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.cls'
)
}}
...
...
@@ -197,7 +224,7 @@
</el-table-column>
</template>
<
template
v-if=
"getColumnState('iconcls')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'iconcls'"
:label=
"$t('entities.dictoption.main_grid.columns.iconcls')"
:width=
"
2
50"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'iconcls'"
:label=
"$t('entities.dictoption.main_grid.columns.iconcls')"
:width=
"
1
50"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.iconcls'
)
}}
...
...
@@ -251,7 +278,7 @@
</el-table-column>
</template>
<
template
v-if=
"getColumnState('disabled')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'disabled'"
:label=
"$t('entities.dictoption.main_grid.columns.disabled')"
:width=
"2
0
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'disabled'"
:label=
"$t('entities.dictoption.main_grid.columns.disabled')"
:width=
"2
2
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.disabled'
)
}}
...
...
@@ -285,7 +312,7 @@
</el-table-column>
</template>
<
template
v-if=
"getColumnState('expired')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'expired'"
:label=
"$t('entities.dictoption.main_grid.columns.expired')"
:width=
"2
0
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'expired'"
:label=
"$t('entities.dictoption.main_grid.columns.expired')"
:width=
"2
2
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.expired'
)
}}
...
...
@@ -318,33 +345,6 @@
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('showorder')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'showorder'"
:label=
"$t('entities.dictoption.main_grid.columns.showorder')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.dictoption.main_grid.columns.showorder'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<input-box
:disabled=
"row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1"
v-model=
"row[column.property]"
style=
""
type=
"text"
@
change=
"($event)=>
{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'showorder'
editorType=
"TEXTBOX"
:value=
"row.showorder"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('extension')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'extension'"
:label=
"$t('entities.dictoption.main_grid.columns.extension')"
:width=
"250"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
...
...
@@ -868,13 +868,6 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
false
,
util
:
'PX'
},
{
name
:
'cname'
,
label
:
'目录'
,
langtag
:
'entities.dictoption.main_grid.columns.cname'
,
show
:
true
,
util
:
'PX'
},
{
name
:
'val'
,
label
:
'代码值'
,
...
...
@@ -896,6 +889,20 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
util
:
'PX'
},
{
name
:
'showorder'
,
label
:
'排序'
,
langtag
:
'entities.dictoption.main_grid.columns.showorder'
,
show
:
true
,
util
:
'PX'
},
{
name
:
'cname'
,
label
:
'目录'
,
langtag
:
'entities.dictoption.main_grid.columns.cname'
,
show
:
true
,
util
:
'PX'
},
{
name
:
'cls'
,
label
:
'栏目样式'
,
...
...
@@ -931,13 +938,6 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
util
:
'PX'
},
{
name
:
'showorder'
,
label
:
'排序'
,
langtag
:
'entities.dictoption.main_grid.columns.showorder'
,
show
:
true
,
util
:
'PX'
},
{
name
:
'extension'
,
label
:
'扩展'
,
...
...
@@ -2009,16 +2009,16 @@ export default class MainBase extends Vue implements ControlInterface {
public
getCellClassName
(
args
:{
row
:
any
,
column
:
any
,
rowIndex
:
number
,
columnIndex
:
number
}){
let
hasRowEdit
:
any
=
{
'cid'
:
true
,
'cname'
:
true
,
'val'
:
true
,
'label'
:
true
,
'pval'
:
true
,
'showorder'
:
true
,
'cname'
:
true
,
'cls'
:
true
,
'iconcls'
:
true
,
'vfilter'
:
true
,
'disabled'
:
true
,
'expired'
:
true
,
'showorder'
:
true
,
'extension'
:
true
,
'updatedate'
:
false
,
}
...
...
ibzdict-core/src/main/java/cn/ibizlab/core/dict/domain/DictCatalog.java
浏览文件 @
60df0e53
...
...
@@ -42,11 +42,19 @@ public class DictCatalog extends EntityMP implements Serializable {
/**
* 标识
*/
@DEField
(
name
=
"cid"
,
isKeyField
=
true
)
@DEField
(
defaultValue
=
"code"
,
defaultValueType
=
DEFieldDefaultValueType
.
PARAM
,
isKeyField
=
true
)
@TableId
(
value
=
"cid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"id"
)
@JsonProperty
(
"id"
)
private
String
id
;
/**
* 代码
*/
@DEField
(
name
=
"ccode"
)
@TableField
(
value
=
"ccode"
)
@JSONField
(
name
=
"code"
)
@JsonProperty
(
"code"
)
private
String
code
;
/**
* 名称
*/
...
...
@@ -91,6 +99,14 @@ public class DictCatalog extends EntityMP implements Serializable {
/**
* 设置 [代码]
*/
public
void
setCode
(
String
code
){
this
.
code
=
code
;
this
.
modify
(
"ccode"
,
code
);
}
/**
* 设置 [名称]
*/
...
...
ibzdict-core/src/main/java/cn/ibizlab/core/dict/filter/DictCatalogSearchContext.java
浏览文件 @
60df0e53
...
...
@@ -33,6 +33,13 @@ public class DictCatalogSearchContext extends QueryWrapperContext<DictCatalog> {
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_cid_like
)){
this
.
getSearchCond
().
like
(
"cid"
,
n_cid_like
);
}
}
private
String
n_ccode_like
;
//[代码]
public
void
setN_ccode_like
(
String
n_ccode_like
)
{
this
.
n_ccode_like
=
n_ccode_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_ccode_like
)){
this
.
getSearchCond
().
like
(
"ccode"
,
n_ccode_like
);
}
}
private
String
n_cname_like
;
//[名称]
public
void
setN_cname_like
(
String
n_cname_like
)
{
...
...
ibzdict-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
60df0e53
...
...
@@ -4,7 +4,7 @@
<!--输出实体[DICT_OPTION]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-dict_option-8
5
-1"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-dict_option-8
7
-1"
>
<createTable
tableName=
"IBZDICTOPTION"
>
<column
name=
"VKEY"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DICT_OPTION_VKEY"
/>
...
...
@@ -40,11 +40,13 @@
<!--输出实体[DICT_CATALOG]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-dict_catalog-
51
-2"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-dict_catalog-
62
-2"
>
<createTable
tableName=
"IBZDICTCATALOG"
>
<column
name=
"CID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DICT_CATALOG_CID"
/>
</column>
<column
name=
"CCODE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"CNAME"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"CGROUP"
remarks=
""
type=
"VARCHAR(100)"
>
...
...
@@ -59,7 +61,7 @@
</changeSet>
<!--输出实体[DICT_OPTION]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-dict_option-8
5
-3"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-dict_option-8
7
-3"
>
<addForeignKeyConstraint
baseColumnNames=
"CID"
baseTableName=
"IBZDICTOPTION"
constraintName=
"DER1N_DICT_OPTION_DICT_CATALOG"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CID"
referencedTableName=
"IBZDICTCATALOG"
validate=
"true"
/>
</changeSet>
<!--输出实体[DICT_CATALOG]外键关系 -->
...
...
ibzdict-core/src/main/resources/mapper/dict/dictcatalog/DictCatalogMapper.xml
浏览文件 @
60df0e53
...
...
@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"DictCatalogResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CGROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1 ) t1 where cid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`C
CODE`, t1.`C
GROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1 ) t1 where cid=#{id}]]>
</select>
<select
id=
"selectById"
resultMap=
"DictCatalogResultMap"
databaseId=
"oracle"
>
<![CDATA[select t1.* from (SELECT t1.CGROUP, t1.CID, t1.CNAME, t1.ENABLE, t1.MEMO, t1.UPDATEDATE FROM IBZDICTCATALOG t1 ) t1 where cid=#{id}]]>
...
...
@@ -17,6 +17,7 @@
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"DictCatalogResultMap"
type=
"cn.ibizlab.core.dict.domain.DictCatalog"
autoMapping=
"true"
>
<id
property=
"id"
column=
"cid"
/>
<!--主键字段映射-->
<result
property=
"code"
column=
"ccode"
/>
<result
property=
"name"
column=
"cname"
/>
<result
property=
"group"
column=
"cgroup"
/>
...
...
@@ -35,7 +36,7 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CGROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1
<![CDATA[ SELECT t1.`C
CODE`, t1.`C
GROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1
WHERE t1.ENABLE = 1
]]>
</sql>
...
...
@@ -53,7 +54,7 @@
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CGROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1
<![CDATA[ SELECT t1.`C
CODE`, t1.`C
GROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1
WHERE t1.ENABLE = 1
]]>
</sql>
...
...
ibzdict-provider/ibzdict-provider-api/src/main/java/cn/ibizlab/api/dto/DictCatalogDTO.java
浏览文件 @
60df0e53
...
...
@@ -31,6 +31,14 @@ public class DictCatalogDTO extends DTOBase implements Serializable {
@JsonProperty
(
"id"
)
private
String
id
;
/**
* 属性 [CCODE]
*
*/
@JSONField
(
name
=
"code"
)
@JsonProperty
(
"code"
)
private
String
code
;
/**
* 属性 [CNAME]
*
...
...
@@ -73,6 +81,14 @@ public class DictCatalogDTO extends DTOBase implements Serializable {
private
Timestamp
updatedate
;
/**
* 设置 [CCODE]
*/
public
void
setCode
(
String
code
){
this
.
code
=
code
;
this
.
modify
(
"ccode"
,
code
);
}
/**
* 设置 [CNAME]
*/
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录