Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdict
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdict
提交
eea12a94
提交
eea12a94
编写于
4月 28, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
692729a5
变更
34
展开全部
显示空白字符变更
内嵌
并排
正在显示
34 个修改的文件
包含
7208 行增加
和
59 行删除
+7208
-59
en-US.ts
app_web/src/locale/lang/en-US.ts
+1
-1
zh-CN.ts
app_web/src/locale/lang/zh-CN.ts
+1
-1
ibzdict-item_en_US.ts
app_web/src/locale/lanres/ibzdict-item/ibzdict-item_en_US.ts
+185
-0
ibzdict-item_zh_CN.ts
app_web/src/locale/lanres/ibzdict-item/ibzdict-item_zh_CN.ts
+184
-0
ibzdict-items.ts
app_web/src/mock/entity/ibzdict-items/ibzdict-items.ts
+571
-0
index.ts
app_web/src/mock/index.ts
+1
-1
ibzdict-item-edit-view-base.vue
...ct/ibzdict-item-edit-view/ibzdict-item-edit-view-base.vue
+44
-17
ibzdict-item-edit-view.vue
...es/dict/ibzdict-item-edit-view/ibzdict-item-edit-view.vue
+1
-1
ibzdict-item-grid-view-base.vue
...ct/ibzdict-item-grid-view/ibzdict-item-grid-view-base.vue
+51
-20
ibzdict-item-grid-view.vue
...es/dict/ibzdict-item-grid-view/ibzdict-item-grid-view.vue
+2
-2
entity-service-register.ts
app_web/src/service/entity-service-register.ts
+1
-1
ibzdict-item-service-base.ts
...web/src/service/ibzdict-item/ibzdict-item-service-base.ts
+211
-0
ibzdict-item-service.ts
app_web/src/service/ibzdict-item/ibzdict-item-service.ts
+25
-0
ibzdict-item-ui-service-base.ts
...rc/uiservice/ibzdict-item/ibzdict-item-ui-service-base.ts
+212
-0
ibzdict-item-ui-service.ts
...web/src/uiservice/ibzdict-item/ibzdict-item-ui-service.ts
+21
-0
ui-service-register.ts
app_web/src/uiservice/ui-service-register.ts
+1
-1
default-searchform-base.vue
...zdict-item/default-searchform/default-searchform-base.vue
+759
-0
default-searchform-model.ts
...zdict-item/default-searchform/default-searchform-model.ts
+41
-0
default-searchform-service.ts
...ict-item/default-searchform/default-searchform-service.ts
+367
-0
default-searchform.less
...s/ibzdict-item/default-searchform/default-searchform.less
+44
-0
default-searchform.vue
...ts/ibzdict-item/default-searchform/default-searchform.vue
+14
-0
main-form-base.vue
...web/src/widgets/ibzdict-item/main-form/main-form-base.vue
+1698
-0
main-form-model.ts
...web/src/widgets/ibzdict-item/main-form/main-form-model.ts
+111
-0
main-form-service.ts
...b/src/widgets/ibzdict-item/main-form/main-form-service.ts
+367
-0
main-form.less
app_web/src/widgets/ibzdict-item/main-form/main-form.less
+49
-0
main-form.vue
app_web/src/widgets/ibzdict-item/main-form/main-form.vue
+14
-0
main-grid-base.vue
...web/src/widgets/ibzdict-item/main-grid/main-grid-base.vue
+1375
-0
main-grid-model.ts
...web/src/widgets/ibzdict-item/main-grid/main-grid-model.ts
+134
-0
main-grid-service.ts
...b/src/widgets/ibzdict-item/main-grid/main-grid-service.ts
+318
-0
main-grid.less
app_web/src/widgets/ibzdict-item/main-grid/main-grid.less
+71
-0
main-grid.vue
app_web/src/widgets/ibzdict-item/main-grid/main-grid.vue
+14
-0
IBZDictDTO.java
...tapi/src/main/java/cn/ibizlab/dictapi/dto/IBZDictDTO.java
+0
-7
IBZDictItemResource.java
...ain/java/cn/ibizlab/dictapi/rest/IBZDictItemResource.java
+320
-0
IBZDictResource.java
...rc/main/java/cn/ibizlab/dictapi/rest/IBZDictResource.java
+0
-7
未找到文件。
app_web/src/locale/lang/en-US.ts
浏览文件 @
eea12a94
import
ibzdictitem_en_US
from
'@locale/lanres/ibzdict
item/ibzdict
item_en_US'
;
import
ibzdictitem_en_US
from
'@locale/lanres/ibzdict
-item/ibzdict-
item_en_US'
;
import
ibzdict_en_US
from
'@locale/lanres/ibzdict/ibzdict_en_US'
;
import
components_en_US
from
'@locale/lanres/components/components_en_US'
;
import
codelist_en_US
from
'@locale/lanres/codelist/codelist_en_US'
;
...
...
app_web/src/locale/lang/zh-CN.ts
浏览文件 @
eea12a94
import
ibzdictitem_zh_CN
from
'@locale/lanres/ibzdict
item/ibzdict
item_zh_CN'
;
import
ibzdictitem_zh_CN
from
'@locale/lanres/ibzdict
-item/ibzdict-
item_zh_CN'
;
import
ibzdict_zh_CN
from
'@locale/lanres/ibzdict/ibzdict_zh_CN'
;
import
components_zh_CN
from
'@locale/lanres/components/components_zh_CN'
;
import
codelist_zh_CN
from
'@locale/lanres/codelist/codelist_zh_CN'
;
...
...
app_web/src/locale/lanres/ibzdict-item/ibzdict-item_en_US.ts
0 → 100644
浏览文件 @
eea12a94
export
default
{
views
:
{
gridview
:
{
caption
:
"字典项目"
,
title
:
'字典项目'
,
},
editview
:
{
caption
:
"字典项目"
,
title
:
'字典项目'
,
},
},
main_form
:
{
details
:
{
group1
:
"字典项目基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"字典项目标识"
,
srfmajortext
:
"栏目显示值"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
dictid
:
"字典标识"
,
ibzdictitemname
:
"栏目显示值"
,
dictitemval
:
"栏目值"
,
pitemval
:
"父栏目值"
,
itemfilter
:
"过滤项"
,
itemcls
:
"栏目样式"
,
itemicon
:
"图标"
,
showorder
:
"排序"
,
ibzdictitemid
:
"字典项目标识"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
ibzdictitemname
:
"栏目显示值"
,
dictitemval
:
"栏目值"
,
pitemval
:
"父栏目值"
,
itemfilter
:
"过滤项"
,
itemcls
:
"栏目样式"
,
itemicon
:
"图标"
,
showorder
:
"排序"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
n_ibzdictitemname_like
:
"栏目显示值(文本包含(%))"
,
n_dictitemval_like
:
"栏目值(文本包含(%))"
,
},
uiactions
:
{
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"Export"
,
tip
:
"Export {0} Data To Excel"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem16
:
{
caption
:
"其它"
,
tip
:
"其它"
,
},
tbitem21
:
{
caption
:
"Export Data Model"
,
tip
:
"导出数据模型"
,
},
tbitem23
:
{
caption
:
"数据导入"
,
tip
:
"数据导入"
,
},
tbitem17
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
caption
:
"Filter"
,
tip
:
"Filter"
,
},
tbitem18
:
{
caption
:
"Help"
,
tip
:
"Help"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem4
:
{
caption
:
"Save And New"
,
tip
:
"Save And New"
,
},
tbitem5
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem7
:
{
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
},
tbitem8
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem12
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem13
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem14
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem16
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem23
:
{
caption
:
"第一个记录"
,
tip
:
"第一个记录"
,
},
tbitem24
:
{
caption
:
"上一个记录"
,
tip
:
"上一个记录"
,
},
tbitem25
:
{
caption
:
"下一个记录"
,
tip
:
"下一个记录"
,
},
tbitem26
:
{
caption
:
"最后一个记录"
,
tip
:
"最后一个记录"
,
},
tbitem21
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"Help"
,
tip
:
"Help"
,
},
},
};
\ No newline at end of file
app_web/src/locale/lanres/ibzdict-item/ibzdict-item_zh_CN.ts
0 → 100644
浏览文件 @
eea12a94
export
default
{
views
:
{
gridview
:
{
caption
:
'字典项目'
,
title
:
'字典项目'
,
},
editview
:
{
caption
:
'字典项目'
,
title
:
'字典项目'
,
},
},
main_form
:
{
details
:
{
group1
:
'字典项目基本信息'
,
formpage1
:
'基本信息'
,
srfupdatedate
:
'更新时间'
,
srforikey
:
''
,
srfkey
:
'字典项目标识'
,
srfmajortext
:
'栏目显示值'
,
srftempmode
:
''
,
srfuf
:
''
,
srfdeid
:
''
,
srfsourcekey
:
''
,
dictid
:
'字典标识'
,
ibzdictitemname
:
'栏目显示值'
,
dictitemval
:
'栏目值'
,
pitemval
:
'父栏目值'
,
itemfilter
:
'过滤项'
,
itemcls
:
'栏目样式'
,
itemicon
:
'图标'
,
showorder
:
'排序'
,
ibzdictitemid
:
'字典项目标识'
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
ibzdictitemname
:
'栏目显示值'
,
dictitemval
:
'栏目值'
,
pitemval
:
'父栏目值'
,
itemfilter
:
'过滤项'
,
itemcls
:
'栏目样式'
,
itemicon
:
'图标'
,
showorder
:
'排序'
,
updatedate
:
'更新时间'
,
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
'常规条件'
,
n_ibzdictitemname_like
:
'栏目显示值(文本包含(%))'
,
n_dictitemval_like
:
'栏目值(文本包含(%))'
,
},
uiactions
:
{
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
'新建'
,
tip
:
'新建'
,
},
tbitem4
:
{
caption
:
'编辑'
,
tip
:
'编辑'
,
},
tbitem6
:
{
caption
:
'拷贝'
,
tip
:
'拷贝'
,
},
tbitem7
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem8
:
{
caption
:
'删除'
,
tip
:
'删除'
,
},
tbitem9
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem13
:
{
caption
:
'导出'
,
tip
:
'导出'
,
},
tbitem10
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem16
:
{
caption
:
'其它'
,
tip
:
'其它'
,
},
tbitem21
:
{
caption
:
'导出数据模型'
,
tip
:
'导出数据模型'
,
},
tbitem23
:
{
caption
:
'数据导入'
,
tip
:
'数据导入'
,
},
tbitem17
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem19
:
{
caption
:
'过滤'
,
tip
:
'过滤'
,
},
tbitem18
:
{
caption
:
'帮助'
,
tip
:
'帮助'
,
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
'保存'
,
tip
:
'保存'
,
},
tbitem4
:
{
caption
:
'保存并新建'
,
tip
:
'保存并新建'
,
},
tbitem5
:
{
caption
:
'保存并关闭'
,
tip
:
'保存并关闭'
,
},
tbitem6
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem7
:
{
caption
:
'删除并关闭'
,
tip
:
'删除并关闭'
,
},
tbitem8
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem12
:
{
caption
:
'新建'
,
tip
:
'新建'
,
},
tbitem13
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem14
:
{
caption
:
'拷贝'
,
tip
:
'拷贝'
,
},
tbitem16
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem23
:
{
caption
:
'第一个记录'
,
tip
:
'第一个记录'
,
},
tbitem24
:
{
caption
:
'上一个记录'
,
tip
:
'上一个记录'
,
},
tbitem25
:
{
caption
:
'下一个记录'
,
tip
:
'下一个记录'
,
},
tbitem26
:
{
caption
:
'最后一个记录'
,
tip
:
'最后一个记录'
,
},
tbitem21
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem22
:
{
caption
:
'帮助'
,
tip
:
'帮助'
,
},
},
};
\ No newline at end of file
app_web/src/mock/entity/ibzdict-items/ibzdict-items.ts
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
app_web/src/mock/index.ts
浏览文件 @
eea12a94
...
...
@@ -7,5 +7,5 @@ import './login/login';
import
'./upload/upload'
;
// 实体级接口对象
import
'./entity/ibzdict
items/ibzdict
items'
;
import
'./entity/ibzdict
-items/ibzdict-
items'
;
import
'./entity/ibzdicts/ibzdicts'
;
app_web/src/pages/dict/ibzdict-item-edit-view/ibzdict-item-edit-view-base.vue
浏览文件 @
eea12a94
...
...
@@ -125,7 +125,7 @@
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
{
Subject
}
from
'rxjs'
;
import
IBZD
ICTITEMService
from
'@/service/ibzdictitem/ibzdict
item-service'
;
import
IBZD
ictItemService
from
'@/service/ibzdict-item/ibzdict-
item-service'
;
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
...
...
@@ -140,10 +140,10 @@ export default class IBZDictItemEditViewBase extends Vue {
/**
* 实体服务对象
*
* @type {IBZD
ICTITEM
Service}
* @type {IBZD
ictItem
Service}
* @memberof IBZDictItemEditViewBase
*/
protected
appEntityService
:
IBZD
ICTITEMService
=
new
IBZDICTITEM
Service
;
protected
appEntityService
:
IBZD
ictItemService
=
new
IBZDictItem
Service
;
/**
...
...
@@ -667,7 +667,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -693,7 +693,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
SaveAndNew
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
SaveAndNew
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -719,7 +719,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -745,7 +745,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
RemoveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
RemoveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -771,7 +771,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -797,7 +797,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
ViewWFStep
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
ViewWFStep
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -823,7 +823,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -849,7 +849,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -875,7 +875,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -901,7 +901,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
FirstRecord
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
FirstRecord
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -927,7 +927,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
PrevRecord
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
PrevRecord
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -953,7 +953,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
NextRecord
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
NextRecord
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -979,7 +979,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
LastRecord
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
LastRecord
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -1005,7 +1005,7 @@ export default class IBZDictItemEditViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Help
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Help
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -1346,6 +1346,33 @@ export default class IBZDictItemEditViewBase extends Vue {
}
}
/**
* 销毁视图回调
*
* @memberof IBZDictItemEditViewBase
*/
protected
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBZDictItemEditViewBase
*/
protected
afterDestroyed
(){
if
(
this
.
viewDefaultUsage
){
let
localStoreLength
=
Object
.
keys
(
localStorage
);
if
(
localStoreLength
.
length
>
0
){
localStoreLength
.
forEach
((
item
:
string
)
=>
{
if
(
item
.
startsWith
(
this
.
context
.
srfsessionid
)){
localStorage
.
removeItem
(
item
);
}
})
}
}
}
}
</
script
>
...
...
app_web/src/pages/dict/ibzdict-item-edit-view/ibzdict-item-edit-view.vue
浏览文件 @
eea12a94
...
...
@@ -2,7 +2,7 @@
import
{
Component
}
from
'vue-property-decorator'
;
import
IBZDictItemEditViewBase
from
'./ibzdict-item-edit-view-base.vue'
;
import
view_form
from
'@widgets/ibzdictitem/main-form/main-form.vue'
;
import
view_form
from
'@widgets/ibzdict
-
item/main-form/main-form.vue'
;
@
Component
({
components
:
{
view_form
,
...
...
app_web/src/pages/dict/ibzdict-item-grid-view/ibzdict-item-grid-view-base.vue
浏览文件 @
eea12a94
...
...
@@ -147,7 +147,7 @@
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
{
Subject
}
from
'rxjs'
;
import
IBZD
ICTITEMService
from
'@/service/ibzdictitem/ibzdict
item-service'
;
import
IBZD
ictItemService
from
'@/service/ibzdict-item/ibzdict-
item-service'
;
import
GridViewEngine
from
'@engine/view/grid-view-engine'
;
...
...
@@ -162,10 +162,10 @@ export default class IBZDictItemGridViewBase extends Vue {
/**
* 实体服务对象
*
* @type {IBZD
ICTITEM
Service}
* @type {IBZD
ictItem
Service}
* @memberof IBZDictItemGridViewBase
*/
protected
appEntityService
:
IBZD
ICTITEMService
=
new
IBZDICTITEM
Service
;
protected
appEntityService
:
IBZD
ictItemService
=
new
IBZDictItem
Service
;
/**
...
...
@@ -761,7 +761,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -787,7 +787,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -813,7 +813,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
View
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
View
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -839,7 +839,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -865,7 +865,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -891,7 +891,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -917,7 +917,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -943,7 +943,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
ExportExcel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
ExportExcel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -969,7 +969,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -995,7 +995,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
ExportModel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
ExportModel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -1021,7 +1021,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Import
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Import
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -1047,7 +1047,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
ToggleFilter
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
ToggleFilter
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -1073,7 +1073,7 @@ export default class IBZDictItemGridViewBase extends Vue {
datas
=
[...
xData
.
getDatas
()];
}
// 界面行为
this
.
Help
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ICTITEM
"
);
this
.
Help
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBZD
ictItem
"
);
}
/**
...
...
@@ -1093,9 +1093,11 @@ export default class IBZDictItemGridViewBase extends Vue {
Object
.
assign
(
curViewParam
,
args
[
0
]);
}
let
deResParameters
:
any
[]
=
[];
if
(
curViewParam
.
ibzdict
&&
true
){
deResParameters
=
[
{
pathName
:
'ibzdicts'
,
parameterName
:
'ibzdict'
},
];
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'ibzdictitems'
,
parameterName
:
'ibzdictitem'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -1128,9 +1130,11 @@ export default class IBZDictItemGridViewBase extends Vue {
Object
.
assign
(
curViewParam
,
args
[
0
]);
}
let
deResParameters
:
any
[]
=
[];
if
(
curViewParam
.
ibzdict
&&
true
){
deResParameters
=
[
{
pathName
:
'ibzdicts'
,
parameterName
:
'ibzdict'
},
];
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'ibzdictitems'
,
parameterName
:
'ibzdictitem'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -1419,6 +1423,33 @@ export default class IBZDictItemGridViewBase extends Vue {
}
}
/**
* 销毁视图回调
*
* @memberof IBZDictItemGridViewBase
*/
protected
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBZDictItemGridViewBase
*/
protected
afterDestroyed
(){
if
(
this
.
viewDefaultUsage
){
let
localStoreLength
=
Object
.
keys
(
localStorage
);
if
(
localStoreLength
.
length
>
0
){
localStoreLength
.
forEach
((
item
:
string
)
=>
{
if
(
item
.
startsWith
(
this
.
context
.
srfsessionid
)){
localStorage
.
removeItem
(
item
);
}
})
}
}
}
/**
* 是否单选
*
...
...
app_web/src/pages/dict/ibzdict-item-grid-view/ibzdict-item-grid-view.vue
浏览文件 @
eea12a94
...
...
@@ -2,8 +2,8 @@
import
{
Component
}
from
'vue-property-decorator'
;
import
IBZDictItemGridViewBase
from
'./ibzdict-item-grid-view-base.vue'
;
import
view_grid
from
'@widgets/ibzdictitem/main-grid/main-grid.vue'
;
import
view_searchform
from
'@widgets/ibzdictitem/default-searchform/default-searchform.vue'
;
import
view_grid
from
'@widgets/ibzdict
-
item/main-grid/main-grid.vue'
;
import
view_searchform
from
'@widgets/ibzdict
-
item/default-searchform/default-searchform.vue'
;
@
Component
({
components
:
{
view_grid
,
...
...
app_web/src/service/entity-service-register.ts
浏览文件 @
eea12a94
...
...
@@ -39,7 +39,7 @@ export class EntityServiceRegister {
* @memberof EntityServiceRegister
*/
protected
init
():
void
{
this
.
allEntityService
.
set
(
'ibzdictitem'
,
()
=>
import
(
'@/service/ibzdict
item/ibzdict
item-service'
));
this
.
allEntityService
.
set
(
'ibzdictitem'
,
()
=>
import
(
'@/service/ibzdict
-item/ibzdict-
item-service'
));
this
.
allEntityService
.
set
(
'ibzdict'
,
()
=>
import
(
'@/service/ibzdict/ibzdict-service'
));
}
...
...
app_web/src/service/ibzdict-item/ibzdict-item-service-base.ts
0 → 100644
浏览文件 @
eea12a94
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
/**
* 字典项目服务对象基类
*
* @export
* @class IBZDictItemServiceBase
* @extends {EntityServie}
*/
export
default
class
IBZDictItemServiceBase
extends
EntityService
{
/**
* Creates an instance of IBZDictItemServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZDictItemServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础数据
*
* @memberof IBZDictItemServiceBase
*/
public
initBasicData
(){
this
.
APPLYDEKEY
=
'ibzdictitem'
;
this
.
APPDEKEY
=
'itemid'
;
this
.
APPDENAME
=
'ibzdictitems'
;
this
.
APPDETEXT
=
'itemname'
;
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZDictItemServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibzdict
&&
context
.
ibzdictitem
){
return
Http
.
getInstance
().
get
(
`/ibzdicts/
${
context
.
ibzdict
}
/ibzdictitems/
${
context
.
ibzdictitem
}
/select`
,
isloading
);
}
return
Http
.
getInstance
().
get
(
`/ibzdictitems/
${
context
.
ibzdictitem
}
/select`
,
isloading
);
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZDictItemServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibzdict
&&
context
.
ibzdictitem
){
return
Http
.
getInstance
().
get
(
`/ibzdicts/
${
context
.
ibzdict
}
/ibzdictitems/
${
context
.
ibzdictitem
}
`
,
isloading
);
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibzdictitems/
${
context
.
ibzdictitem
}
`
,
isloading
);
return
res
;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZDictItemServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibzdict
&&
true
){
return
Http
.
getInstance
().
get
(
`/ibzdicts/
${
context
.
ibzdict
}
/ibzdictitems/getdraft`
,
isloading
);
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibzdictitems/getdraft`
,
isloading
);
res
.
data
.
ibzdictitem
=
data
.
ibzdictitem
;
return
res
;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZDictItemServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibzdict
&&
context
.
ibzdictitem
){
return
Http
.
getInstance
().
post
(
`/ibzdicts/
${
context
.
ibzdict
}
/ibzdictitems/
${
context
.
ibzdictitem
}
/save`
,
data
,
isloading
);
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibzdictitems/
${
context
.
ibzdictitem
}
/save`
,
data
,
isloading
);
return
res
;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZDictItemServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibzdict
&&
context
.
ibzdictitem
){
return
Http
.
getInstance
().
post
(
`/ibzdicts/
${
context
.
ibzdict
}
/ibzdictitems/
${
context
.
ibzdictitem
}
/checkkey`
,
data
,
isloading
);
}
return
Http
.
getInstance
().
post
(
`/ibzdictitems/
${
context
.
ibzdictitem
}
/checkkey`
,
data
,
isloading
);
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZDictItemServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibzdict
&&
context
.
ibzdictitem
){
return
Http
.
getInstance
().
delete
(
`/ibzdicts/
${
context
.
ibzdict
}
/ibzdictitems/
${
context
.
ibzdictitem
}
`
,
isloading
);
}
return
Http
.
getInstance
().
delete
(
`/ibzdictitems/
${
context
.
ibzdictitem
}
`
,
isloading
);
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZDictItemServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibzdict
&&
true
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
return
Http
.
getInstance
().
post
(
`/ibzdicts/
${
context
.
ibzdict
}
/ibzdictitems`
,
data
,
isloading
);
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibzdictitems`
,
data
,
isloading
);
return
res
;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZDictItemServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibzdict
&&
context
.
ibzdictitem
){
return
Http
.
getInstance
().
put
(
`/ibzdicts/
${
context
.
ibzdict
}
/ibzdictitems/
${
context
.
ibzdictitem
}
`
,
data
,
isloading
);
}
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibzdictitems/
${
context
.
ibzdictitem
}
`
,
data
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZDictItemServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
ibzdict
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
Http
.
getInstance
().
get
(
`/ibzdicts/
${
context
.
ibzdict
}
/ibzdictitems/fetchdefault`
,
tempData
,
isloading
);
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
Http
.
getInstance
().
get
(
`/ibzdictitems/fetchdefault`
,
tempData
,
isloading
);
}
}
\ No newline at end of file
app_web/src/service/ibzdict-item/ibzdict-item-service.ts
0 → 100644
浏览文件 @
eea12a94
import
{
Http
,
Util
}
from
'@/utils'
;
import
IBZDictItemServiceBase
from
'./ibzdict-item-service-base'
;
/**
* 字典项目服务对象
*
* @export
* @class IBZDictItemService
* @extends {IBZDictItemServiceBase}
*/
export
default
class
IBZDictItemService
extends
IBZDictItemServiceBase
{
/**
* Creates an instance of IBZDictItemService.
*
* @param {*} [opts={}]
* @memberof IBZDictItemService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_web/src/uiservice/ibzdict-item/ibzdict-item-ui-service-base.ts
0 → 100644
浏览文件 @
eea12a94
import
{
Environment
}
from
'@/environments/environment'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
UIService
from
'../ui-service'
;
import
{
Subject
}
from
'rxjs'
;
import
IBZDictItemService
from
'@/service/ibzdict-item/ibzdict-item-service'
;
/**
* 字典项目UI服务对象基类
*
* @export
* @class IBZDictItemUIServiceBase
*/
export
default
class
IBZDictItemUIServiceBase
extends
UIService
{
/**
* 是否支持工作流
*
* @memberof IBZDictItemUIServiceBase
*/
protected
isEnableWorkflow
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBZDictItemUIServiceBase
*/
protected
dataService
:
IBZDictItemService
=
new
IBZDictItemService
();
/**
* 所有关联视图
*
* @memberof IBZDictItemUIServiceBase
*/
protected
allViewMap
:
Map
<
string
,
Object
>
=
new
Map
();
/**
* 状态值
*
* @memberof IBZDictItemUIServiceBase
*/
protected
stateValue
:
number
=
0
;
/**
* 状态属性
*
* @memberof IBZDictItemUIServiceBase
*/
protected
stateField
:
string
=
""
;
/**
* 主状态属性集合
*
* @memberof IBZDictItemUIServiceBase
*/
protected
mainStateFields
:
Array
<
any
>
=
[];
/**
* 主状态集合Map
*
* @memberof IBZDictItemUIServiceBase
*/
protected
allDeMainStateMap
:
Map
<
string
,
string
>
=
new
Map
();
/**
* Creates an instance of IBZDictItemUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZDictItemUIServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
initViewMap
();
this
.
initDeMainStateMap
();
}
/**
* 初始化视图Map
*
* @memberof IBZDictItemUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'ibzdictitems'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'ibzdictitems'
});
}
/**
* 初始化主状态集合
*
* @memberof IBZDictItemUIServiceBase
*/
public
initDeMainStateMap
(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBZDictItemUIServiceBase
*/
public
async
getRDAppView
(
srfkey
:
string
,
isEnableWorkflow
:
boolean
){
this
.
isEnableWorkflow
=
isEnableWorkflow
;
// 进行数据查询
let
result
:
any
=
await
this
.
dataService
.
Get
({
ibzdictitem
:
srfkey
});
const
curData
:
any
=
result
.
data
;
//判断当前数据模式,默认为true,todo
const
iRealDEModel
:
boolean
=
true
;
let
bDataInWF
:
boolean
=
false
;
let
bWFMode
:
any
=
false
;
// 计算数据模式
if
(
this
.
isEnableWorkflow
)
{
bDataInWF
=
await
this
.
dataService
.
testDataInWF
({
stateValue
:
this
.
stateValue
,
stateField
:
this
.
stateField
},
curData
);
if
(
bDataInWF
)
{
bDataInWF
=
true
;
bWFMode
=
await
this
.
dataService
.
testUserExistWorklist
(
null
,
curData
);
}
}
let
strPDTViewParam
:
string
=
await
this
.
getDESDDEViewPDTParam
(
curData
,
bDataInWF
,
bWFMode
);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return
this
.
allViewMap
.
get
(
strPDTViewParam
);
}
/**
* 获取实际的数据类型
*
* @memberof IBZDictItemUIServiceBase
*/
protected
getRealDEType
(
entity
:
any
){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBZDictItemUIServiceBase
*/
protected
async
getDESDDEViewPDTParam
(
curData
:
any
,
bDataInWF
:
boolean
,
bWFMode
:
boolean
){
let
strPDTParam
:
string
=
''
;
if
(
bDataInWF
)
{
// 判断数据是否在流程中
}
//多表单,todo
const
isEnableMultiForm
:
boolean
=
false
;
const
multiFormDEField
:
string
|
null
=
null
;
if
(
isEnableMultiForm
&&
multiFormDEField
)
{
const
objFormValue
:
string
=
curData
[
multiFormDEField
];
if
(
!
Environment
.
isAppMode
){
return
'MOBEDITVIEW'
+
objFormValue
;
}
return
'EDITVIEW'
+
objFormValue
;
}
if
(
!
Environment
.
isAppMode
){
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`MOBEDITVIEW:MSTAG:
${
await
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'MOBEDITVIEW:'
;
}
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`EDITVIEW:MSTAG:
${
await
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'EDITVIEW:'
;
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof IBZDictItemUIServiceBase
*/
protected
async
getDEMainStateTag
(
curData
:
any
){
if
(
this
.
mainStateFields
.
length
===
0
)
return
null
;
this
.
mainStateFields
.
forEach
((
singleMainField
:
any
)
=>
{
if
(
!
(
singleMainField
in
curData
)){
console
.
error
(
`当前数据对象不包含属性singleMainField,可能会发生错误`
);
}
})
let
strTag
:
String
=
""
;
for
(
let
i
=
0
;
i
<=
1
;
i
++
)
{
let
strTag
:
string
=
(
curData
[
this
.
mainStateFields
[
0
]])?(
i
==
0
)
?
curData
[
this
.
mainStateFields
[
0
]]
:
""
:
""
;
if
(
this
.
mainStateFields
.
length
>=
2
)
{
for
(
let
j
=
0
;
j
<=
1
;
j
++
)
{
let
strTag2
:
string
=
(
curData
[
this
.
mainStateFields
[
1
]])?
`
${
strTag
}
__
${(
j
==
0
)
?
curData
[
this
.
mainStateFields
[
1
]]
:
""
}
`
:
strTag
;
if
(
this
.
mainStateFields
.
length
>=
3
)
{
for
(
let
k
=
0
;
k
<=
1
;
k
++
)
{
let
strTag3
:
string
=
(
curData
[
this
.
mainStateFields
[
2
]])?
`
${
strTag2
}
__
${(
k
==
0
)
?
curData
[
this
.
mainStateFields
[
2
]]
:
""
}
`
:
strTag2
;
// 判断是否存在
return
this
.
allDeMainStateMap
.
get
(
strTag3
);
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag2
);
}
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag
);
}
}
return
null
;
}
}
\ No newline at end of file
app_web/src/uiservice/ibzdict-item/ibzdict-item-ui-service.ts
0 → 100644
浏览文件 @
eea12a94
import
IBZDictItemUIServiceBase
from
'./ibzdict-item-ui-service-base'
;
/**
* 字典项目UI服务对象
*
* @export
* @class IBZDictItemUIService
*/
export
default
class
IBZDictItemUIService
extends
IBZDictItemUIServiceBase
{
/**
* Creates an instance of IBZDictItemUIService.
*
* @param {*} [opts={}]
* @memberof IBZDictItemUIService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_web/src/uiservice/ui-service-register.ts
浏览文件 @
eea12a94
...
...
@@ -39,7 +39,7 @@ export class UIServiceRegister {
* @memberof UIServiceRegister
*/
protected
init
():
void
{
this
.
allUIService
.
set
(
'ibzdictitem'
,
()
=>
import
(
'@/uiservice/ibzdict
item/ibzdict
item-ui-service'
));
this
.
allUIService
.
set
(
'ibzdictitem'
,
()
=>
import
(
'@/uiservice/ibzdict
-item/ibzdict-
item-ui-service'
));
this
.
allUIService
.
set
(
'ibzdict'
,
()
=>
import
(
'@/uiservice/ibzdict/ibzdict-ui-service'
));
}
...
...
app_web/src/widgets/ibzdict-item/default-searchform/default-searchform-base.vue
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
app_web/src/widgets/ibzdict-item/default-searchform/default-searchform-model.ts
0 → 100644
浏览文件 @
eea12a94
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export
default
class
DefaultModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
{
name
:
'n_ibzdictitemname_like'
,
prop
:
'itemname'
,
dataType
:
'TEXT'
,
},
{
name
:
'n_dictitemval_like'
,
prop
:
'itemval'
,
dataType
:
'TEXT'
,
},
]
}
}
\ No newline at end of file
app_web/src/widgets/ibzdict-item/default-searchform/default-searchform-service.ts
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
app_web/src/widgets/ibzdict-item/default-searchform/default-searchform.less
0 → 100644
浏览文件 @
eea12a94
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-search-form {
padding: 8px 14px 0;
.ivu-form-item{
margin-bottom: 8px;
}
.search_reset {
margin-right: 12px;
margin-bottom: 8px;
}
}
.app-search-form-flex {
height: 100%;
> .ivu-row {
height: 100%;
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
// this is less
app_web/src/widgets/ibzdict-item/default-searchform/default-searchform.vue
0 → 100644
浏览文件 @
eea12a94
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
DefaultBase
from
'./default-searchform-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
Default
extends
DefaultBase
{
}
</
script
>
\ No newline at end of file
app_web/src/widgets/ibzdict-item/main-form/main-form-base.vue
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
app_web/src/widgets/ibzdict-item/main-form/main-form-model.ts
0 → 100644
浏览文件 @
eea12a94
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export
default
class
MainModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfupdatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'srforikey'
,
},
{
name
:
'srfkey'
,
prop
:
'itemid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'itemname'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'dictid'
,
prop
:
'dictid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'ibzdictitemname'
,
prop
:
'itemname'
,
dataType
:
'TEXT'
,
},
{
name
:
'dictitemval'
,
prop
:
'itemval'
,
dataType
:
'TEXT'
,
},
{
name
:
'pitemval'
,
prop
:
'pitemval'
,
dataType
:
'TEXT'
,
},
{
name
:
'itemfilter'
,
prop
:
'itemfilter'
,
dataType
:
'TEXT'
,
},
{
name
:
'itemcls'
,
prop
:
'itemcls'
,
dataType
:
'TEXT'
,
},
{
name
:
'itemicon'
,
prop
:
'itemicon'
,
dataType
:
'TEXT'
,
},
{
name
:
'showorder'
,
prop
:
'showorder'
,
dataType
:
'INT'
,
},
{
name
:
'ibzdictitemid'
,
prop
:
'itemid'
,
dataType
:
'GUID'
,
},
{
name
:
'ibzdictitem'
,
prop
:
'itemid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_web/src/widgets/ibzdict-item/main-form/main-form-service.ts
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
app_web/src/widgets/ibzdict-item/main-form/main-form.less
0 → 100644
浏览文件 @
eea12a94
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-form {
overflow: auto;
> .ivu-row {
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
.app-form {
>.ivu-row:nth-child(2) {
>.ivu-col:nth-child(1) {
>.ivu-row.app-form-group.app-group-hiddden-caption:nth-child(1) {
margin-top: 12px;
}
}
}
}
// 表单行间距
.app-form{
.app-form-item{
margin-bottom: 20px;
}
}
// this is less
app_web/src/widgets/ibzdict-item/main-form/main-form.vue
0 → 100644
浏览文件 @
eea12a94
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
MainBase
from
'./main-form-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
Main
extends
MainBase
{
}
</
script
>
\ No newline at end of file
app_web/src/widgets/ibzdict-item/main-grid/main-grid-base.vue
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
app_web/src/widgets/ibzdict-item/main-grid/main-grid-model.ts
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
app_web/src/widgets/ibzdict-item/main-grid/main-grid-service.ts
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
app_web/src/widgets/ibzdict-item/main-grid/main-grid.less
0 → 100644
浏览文件 @
eea12a94
.grid {
flex-grow: 1;
height: 100%;
overflow: auto;
.el-table__body-wrapper::-webkit-scrollbar {
/*滚动条整体样式*/
width : 10px !important; /*高宽分别对应横竖滚动条的尺寸*/
height: 10px !important;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
/*滚动条颜色*/
border-radius : 10px !important;
background-color: #cecece !important;
}
.el-table__body-wrapper::-webkit-scrollbar-track {
/*滚动条里面轨道*/
box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
background : #ededed !important;
border-radius: 10px !important;
}
/*表格文字过长省略*/
.el-table th>.cell, .el-table td>.cell{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}
.app-column-link, .app-format-data{
display: inline;
}
.el-table {
.el-tooltip{
.ivu-form-item{
margin-bottom: unset !important;
}
}
}
.grid-pagination {
height: 50px;
padding: 6px 0px;
.page-button {
button {
padding: 0;
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
}
}
.page-column {
position: absolute;
left: 0;
}
}
.el-table__body-wrapper{
height: calc(100% - 43px) !important;
}
.el-table__empty-block{
height: auto !important;
}
}
.ivu-modal-content{
.footer{
.ivu-row{
text-align: right;
}
}
}
// this is less
app_web/src/widgets/ibzdict-item/main-grid/main-grid.vue
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
ibzdict-provider/ibzdict-provider-dictapi/src/main/java/cn/ibizlab/dictapi/dto/IBZDictDTO.java
浏览文件 @
eea12a94
...
...
@@ -91,12 +91,5 @@ public class IBZDictDTO extends DTOBase implements Serializable {
}
/**
* [IBZDICTITEM]
*/
@JsonProperty
(
"ibzdictitems"
)
@JSONField
(
name
=
"ibzdictitems"
)
private
List
<
IBZDictItemDTO
>
items
;
}
ibzdict-provider/ibzdict-provider-dictapi/src/main/java/cn/ibizlab/dictapi/rest/IBZDictItemResource.java
0 → 100644
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
ibzdict-provider/ibzdict-provider-dictapi/src/main/java/cn/ibizlab/dictapi/rest/IBZDictResource.java
浏览文件 @
eea12a94
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录