Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
6f242301
提交
6f242301
编写于
12月 01, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
c7c9e3ba
变更
25
隐藏空白字符变更
内嵌
并排
正在显示
25 个修改的文件
包含
2311 行增加
和
631 行删除
+2311
-631
view-config.json
app_Web/public/assets/json/view-config.json
+8
-0
en-US.ts
app_Web/src/locale/lang/en-US.ts
+1
-0
zh-CN.ts
app_Web/src/locale/lang/zh-CN.ts
+1
-0
ibizbook_en_US.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
+45
-41
ibizbook_zh_CN.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
+45
-41
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+18
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+8
-0
ibizbookstate-wizard-view-base.vue
...zbookstate-wizard-view/ibizbookstate-wizard-view-base.vue
+627
-0
ibizbookstate-wizard-view.less
.../ibizbookstate-wizard-view/ibizbookstate-wizard-view.less
+11
-0
ibizbookstate-wizard-view.vue
...e/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue
+22
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+1
-0
router.ts
app_Web/src/pages/sample/index/router.ts
+27
-0
state.ts
app_Web/src/store/modules/view-action/state.ts
+10
-0
ibizbook-ui-service-base.ts
app_Web/src/uiservice/ibizbook/ibizbook-ui-service-base.ts
+1
-0
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+537
-511
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+19
-0
row-edit-grid-base.vue
...src/widgets/ibizbook/row-edit-grid/row-edit-grid-base.vue
+7
-33
row-edit-grid-model.ts
...src/widgets/ibizbook/row-edit-grid/row-edit-grid-model.ts
+0
-2
state-guide-wizardpanel-base.vue
.../state-guide-wizardpanel/state-guide-wizardpanel-base.vue
+671
-0
state-guide-wizardpanel-model.ts
.../state-guide-wizardpanel/state-guide-wizardpanel-model.ts
+89
-0
state-guide-wizardpanel-service.ts
...tate-guide-wizardpanel/state-guide-wizardpanel-service.ts
+105
-0
state-guide-wizardpanel.less
...book/state-guide-wizardpanel/state-guide-wizardpanel.less
+36
-0
state-guide-wizardpanel.vue
...zbook/state-guide-wizardpanel/state-guide-wizardpanel.vue
+20
-0
main5-form-base.vue
...src/widgets/ibizsample0001/main5-form/main5-form-base.vue
+1
-2
systemResource.json
demo-core/src/main/resources/permission/systemResource.json
+1
-1
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
6f242301
...
...
@@ -39,6 +39,14 @@
"viewname"
:
"IBIZSample0001SF5EditView"
,
"viewtag"
:
"09663b7a4e3dce70524d1b64e02b5e2d"
},
"ibizbookstatewizardview"
:
{
"title"
:
"图书状态向导视图"
,
"caption"
:
"图书"
,
"viewtype"
:
"DEWIZARDVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZBOOKStateWizardView"
,
"viewtag"
:
"0b8c0a8b7a5b8b73595b23fc502652fc"
},
"ibizsample0001sf4editview"
:
{
"title"
:
"默认数据类型"
,
"caption"
:
"默认数据类型"
,
...
...
app_Web/src/locale/lang/en-US.ts
浏览文件 @
6f242301
...
...
@@ -221,6 +221,7 @@ export default {
menuitem42
:
"雷达图"
,
menuitem17
:
"向导"
,
menuitem134
:
"向导视图"
,
menuitem135
:
"状态向导"
,
menuitem18
:
"界面行为"
,
menuitem65
:
"前端界面行为"
,
menuitem66
:
"后台界面行为"
,
...
...
app_Web/src/locale/lang/zh-CN.ts
浏览文件 @
6f242301
...
...
@@ -221,6 +221,7 @@ export default {
menuitem42
:
"雷达图"
,
menuitem17
:
"向导"
,
menuitem134
:
"向导视图"
,
menuitem135
:
"状态向导"
,
menuitem18
:
"界面行为"
,
menuitem65
:
"前端界面行为"
,
menuitem66
:
"后台界面行为"
,
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
浏览文件 @
6f242301
...
...
@@ -20,6 +20,10 @@ export default {
borrowstatus
:
"图书借阅状态"
,
},
views
:
{
statewizardview
:
{
caption
:
"图书"
,
title
:
"图书状态向导视图"
,
},
editview3
:
{
caption
:
"图书"
,
title
:
"图书编辑视图"
,
...
...
@@ -181,12 +185,10 @@ export default {
title
:
"新建默认值"
,
},
},
main
_form
:
{
guideviewform
_form
:
{
details
:
{
group1
:
"图书基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"图书标识"
,
...
...
@@ -195,32 +197,20 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookid
:
"图书标识"
,
ibizbookname
:
"图书名称"
,
ibizbookid
:
"图书标识"
,
author
:
"图书作者"
,
booknumber
:
"图书数量"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
type
:
"图书类型"
,
booknumber
:
"图书数量"
,
icon
:
"图标"
,
sailstate
:
"图书销售状态"
,
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
subtext
:
"图书描述"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
},
interfunc
form_form
:
{
guideborrow
form_form
:
{
details
:
{
group1
:
"
编辑表单内置功能
"
,
group1
:
"
图书基本信息
"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"图书标识"
,
...
...
@@ -230,25 +220,12 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookid
:
"图书标识"
,
ibizbookname
:
"图书名称"
,
author
:
"图书作者"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
type
:
"图书类型"
,
booknumber
:
"图书数量"
,
icon
:
"图标"
,
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
subtext
:
"图书描述"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
},
guide
view
form_form
:
{
guide
return
form_form
:
{
details
:
{
group1
:
"图书基本信息"
,
formpage1
:
"基本信息"
,
...
...
@@ -260,20 +237,18 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookname
:
"图书名称"
,
ibizbookid
:
"图书标识"
,
author
:
"图书作者"
,
booknumber
:
"图书数量"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
returntime
:
"归还日期"
,
},
uiactions
:
{
},
},
guideborrowform
_form
:
{
main
_form
:
{
details
:
{
group1
:
"图书基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"图书标识"
,
...
...
@@ -283,15 +258,31 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookid
:
"图书标识"
,
ibizbookname
:
"图书名称"
,
author
:
"图书作者"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
type
:
"图书类型"
,
booknumber
:
"图书数量"
,
icon
:
"图标"
,
sailstate
:
"图书销售状态"
,
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
subtext
:
"图书描述"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
},
guidereturn
form_form
:
{
interfunc
form_form
:
{
details
:
{
group1
:
"
图书基本信息
"
,
group1
:
"
编辑表单内置功能
"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"图书标识"
,
...
...
@@ -301,7 +292,20 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookid
:
"图书标识"
,
ibizbookname
:
"图书名称"
,
author
:
"图书作者"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
type
:
"图书类型"
,
booknumber
:
"图书数量"
,
icon
:
"图标"
,
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
subtext
:
"图书描述"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
浏览文件 @
6f242301
...
...
@@ -19,6 +19,10 @@ export default {
borrowstatus
:
"图书借阅状态"
,
},
views
:
{
statewizardview
:
{
caption
:
"图书"
,
title
:
"图书状态向导视图"
,
},
editview3
:
{
caption
:
"图书"
,
title
:
"图书编辑视图"
,
...
...
@@ -180,12 +184,10 @@ export default {
title
:
"新建默认值"
,
},
},
main
_form
:
{
guideviewform
_form
:
{
details
:
{
group1
:
"图书基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"图书标识"
,
...
...
@@ -194,32 +196,20 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookid
:
"图书标识"
,
ibizbookname
:
"图书名称"
,
ibizbookid
:
"图书标识"
,
author
:
"图书作者"
,
booknumber
:
"图书数量"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
type
:
"图书类型"
,
booknumber
:
"图书数量"
,
icon
:
"图标"
,
sailstate
:
"图书销售状态"
,
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
subtext
:
"图书描述"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
},
interfunc
form_form
:
{
guideborrow
form_form
:
{
details
:
{
group1
:
"
编辑表单内置功能
"
,
group1
:
"
图书基本信息
"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"图书标识"
,
...
...
@@ -229,25 +219,12 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookid
:
"图书标识"
,
ibizbookname
:
"图书名称"
,
author
:
"图书作者"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
type
:
"图书类型"
,
booknumber
:
"图书数量"
,
icon
:
"图标"
,
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
subtext
:
"图书描述"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
},
guide
view
form_form
:
{
guide
return
form_form
:
{
details
:
{
group1
:
"图书基本信息"
,
formpage1
:
"基本信息"
,
...
...
@@ -259,20 +236,18 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookname
:
"图书名称"
,
ibizbookid
:
"图书标识"
,
author
:
"图书作者"
,
booknumber
:
"图书数量"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
returntime
:
"归还日期"
,
},
uiactions
:
{
},
},
guideborrowform
_form
:
{
main
_form
:
{
details
:
{
group1
:
"图书基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"图书标识"
,
...
...
@@ -282,15 +257,31 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookid
:
"图书标识"
,
ibizbookname
:
"图书名称"
,
author
:
"图书作者"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
type
:
"图书类型"
,
booknumber
:
"图书数量"
,
icon
:
"图标"
,
sailstate
:
"图书销售状态"
,
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
subtext
:
"图书描述"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
},
guidereturn
form_form
:
{
interfunc
form_form
:
{
details
:
{
group1
:
"
图书基本信息
"
,
group1
:
"
编辑表单内置功能
"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"图书标识"
,
...
...
@@ -300,7 +291,20 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizbookid
:
"图书标识"
,
ibizbookname
:
"图书名称"
,
author
:
"图书作者"
,
press
:
"图书出版社"
,
price
:
"图书价格"
,
type
:
"图书类型"
,
booknumber
:
"图书数量"
,
icon
:
"图标"
,
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
subtext
:
"图书描述"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
...
...
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
6f242301
...
...
@@ -1065,6 +1065,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls
:
''
,
appfunctag
:
'AppFunc49'
,
resourcetag
:
''
,
},
{
id
:
'B3F9066E-1177-4613-9D0B-5AF3EDCC850C'
,
name
:
'menuitem135'
,
text
:
'状态向导'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'状态向导'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc51'
,
resourcetag
:
''
,
},
],
},
...
...
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
6f242301
...
...
@@ -47,6 +47,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZSample0001SF5EditView"
,
"viewtag"
:
"09663b7a4e3dce70524d1b64e02b5e2d"
},
"ibizbookstatewizardview"
:
{
"title"
:
"图书状态向导视图"
,
"caption"
:
"图书"
,
"viewtype"
:
"DEWIZARDVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZBOOKStateWizardView"
,
"viewtag"
:
"0b8c0a8b7a5b8b73595b23fc502652fc"
},
"ibizsample0001sf4editview"
:
{
"title"
:
"默认数据类型"
,
"caption"
:
"默认数据类型"
,
...
...
app_Web/src/pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view-base.vue
0 → 100644
浏览文件 @
6f242301
<
template
>
<div
class=
"view-container dewizardview ibizbookstate-wizard-view"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizbookstatewizardview"
></app-studioaction>
<card
class=
'view-card view-no-toolbar'
:dis-hover=
'true'
:padding=
'0'
:bordered=
'false'
>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
</div>
<div
class=
'view-top-messages'
>
</div>
<div
class=
"content-container"
>
<div
class=
'view-body-messages'
>
</div>
<view
_wizardpanel
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:showBusyIndicator=
"true"
finishAction=
'Update'
initAction=
'Get'
name=
"wizardpanel"
ref=
'wizardpanel'
@
finish=
"wizardpanel_finish($event)"
@
closeview=
"closeView($event)"
>
</view
_wizardpanel
>
</div>
<div
class=
'view-bottom-messages'
>
</div>
</card>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Inject
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
IBIZBOOKAuthService
from
'@/authservice/ibizbook/ibizbook-auth-service'
;
import
WizardViewEngine
from
'@engine/view/wizard-view-engine'
;
import
IBIZBOOKUIService
from
'@/uiservice/ibizbook/ibizbook-ui-service'
;
@
Component
({
components
:
{
},
})
export
default
class
IBIZBOOKStateWizardViewBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {IBIZBOOKService}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
;
/**
* 实体UI服务对象
*
* @type IBIZBOOKUIService
* @memberof IBIZBOOKStateWizardViewBase
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
(
this
.
$store
);
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZBOOKStateWizardViewBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZBOOKStateWizardViewBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZBOOKStateWizardViewBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZBOOKStateWizardViewBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
viewtag
:
string
=
'0b8c0a8b7a5b8b73595b23fc502652fc'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
model
:
any
=
{
srfCaption
:
'entities.ibizbook.views.statewizardview.caption'
,
srfTitle
:
'entities.ibizbook.views.statewizardview.title'
,
srfSubTitle
:
'entities.ibizbook.views.statewizardview.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZBOOKStateWizardViewBase
*/
@
Watch
(
'viewparam'
,{
immediate
:
true
,
deep
:
true
})
onParamData
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
this
.
viewparams
=
{};
if
(
typeof
newVal
==
'string'
)
{
Object
.
assign
(
this
.
viewparams
,
JSON
.
parse
(
this
.
viewparam
));
}
else
{
this
.
viewparams
=
Util
.
deepCopy
(
this
.
viewparam
);
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZBOOKStateWizardViewBase
*/
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
}
}
/**
* 容器模型
*
* @type {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
containerModel
:
any
=
{
view_wizardpanel
:
{
name
:
'wizardpanel'
,
type
:
'WIZARDPANEL'
},
};
/**
* 计数器刷新
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
engine
:
WizardViewEngine
=
new
WizardViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof IBIZBOOKStateWizardViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
wizardpanel
:
this
.
$refs
.
wizardpanel
,
keyPSDEField
:
'ibizbook'
,
majorPSDEField
:
'ibizbookname'
,
isLoadDefault
:
true
,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
navDataService
=
NavDataService
.
getInstance
(
this
.
$store
);
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZBOOKStateWizardViewBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof IBIZBOOKStateWizardViewBase
*/
public
parseViewParam
(
inputvalue
:
any
=
null
):
void
{
for
(
let
key
in
this
.
context
){
delete
this
.
context
[
key
];
}
if
(
this
.
$store
.
getters
.
getAppData
()
&&
this
.
$store
.
getters
.
getAppData
().
context
){
Object
.
assign
(
this
.
context
,
this
.
$store
.
getters
.
getAppData
().
context
);
}
if
(
!
this
.
viewDefaultUsage
&&
this
.
viewdata
&&
!
Object
.
is
(
this
.
viewdata
,
''
))
{
if
(
typeof
this
.
viewdata
==
'string'
)
{
Object
.
assign
(
this
.
context
,
JSON
.
parse
(
this
.
viewdata
));
}
if
(
this
.
context
&&
this
.
context
.
srfparentdename
){
Object
.
assign
(
this
.
viewparams
,{
srfparentdename
:
this
.
context
.
srfparentdename
});
}
if
(
this
.
context
&&
this
.
context
.
srfparentkey
){
Object
.
assign
(
this
.
viewparams
,{
srfparentkey
:
this
.
context
.
srfparentkey
});
}
this
.
handleCustomViewData
();
return
;
}
const
path
=
(
this
.
$route
.
matched
[
this
.
$route
.
matched
.
length
-
1
]).
path
;
const
keys
:
Array
<
any
>
=
[];
const
curReg
=
this
.
$pathToRegExp
.
pathToRegexp
(
path
,
keys
);
const
matchArray
=
curReg
.
exec
(
this
.
$route
.
path
);
let
tempValue
:
Object
=
{};
keys
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
.
name
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
this
.
$viewTool
.
formatRouteParams
(
tempValue
,
this
.
$route
,
this
.
context
,
this
.
viewparams
);
if
(
inputvalue
){
Object
.
assign
(
this
.
context
,{
'ibizbook'
:
inputvalue
});
}
//初始化视图唯一标识
Object
.
assign
(
this
.
context
,{
srfsessionid
:
this
.
$util
.
createUUID
()});
this
.
handleCustomViewData
();
//初始化导航数据
this
.
initNavDataWithRoute
();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
handleCustomViewData
(){
if
(
Object
.
keys
(
this
.
customViewNavContexts
).
length
>
0
){
Object
.
keys
(
this
.
customViewNavContexts
).
forEach
((
item
:
any
)
=>
{
let
tempContext
:
any
=
{};
let
curNavContext
:
any
=
this
.
customViewNavContexts
[
item
];
this
.
handleCustomDataLogic
(
curNavContext
,
tempContext
,
item
);
Object
.
assign
(
this
.
context
,
tempContext
);
})
}
if
(
Object
.
keys
(
this
.
customViewParams
).
length
>
0
){
Object
.
keys
(
this
.
customViewParams
).
forEach
((
item
:
any
)
=>
{
let
tempParam
:
any
=
{};
let
curNavParam
:
any
=
this
.
customViewParams
[
item
];
this
.
handleCustomDataLogic
(
curNavParam
,
tempParam
,
item
);
Object
.
assign
(
this
.
viewparams
,
tempParam
);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
handleCustomDataLogic
(
curNavData
:
any
,
tempData
:
any
,
item
:
string
){
// 直接值直接赋值
if
(
curNavData
.
isRawValue
){
if
(
Object
.
is
(
curNavData
.
value
,
"null"
)
||
Object
.
is
(
curNavData
.
value
,
""
)){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
curNavData
.
value
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
else
{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if
(
this
.
context
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
context
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
if
(
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
}
}
/**
* 初始化导航数据(路由模式)
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavData
({
id
:
'ibizbookstate-wizard-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
ibizbook
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
initNavDataWithTab
(
data
:
any
=
null
,
isOnlyAdd
:
boolean
=
true
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
!
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavDataByOnly
({
id
:
'ibizbookstate-wizard-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
ibizbook
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
},
isOnlyAdd
);
}
}
/**
* Vue声明周期
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
afterCreated
(){
let
_this
:
any
=
this
;
const
secondtag
=
_this
.
$util
.
createUUID
();
_this
.
$store
.
commit
(
'viewaction/createdView'
,
{
viewtag
:
_this
.
viewtag
,
secondtag
:
secondtag
});
_this
.
viewtag
=
secondtag
;
_this
.
parseViewParam
();
_this
.
serviceStateEvent
=
_this
.
navDataService
.
serviceState
.
subscribe
(({
action
,
name
,
data
}:{
action
:
string
,
name
:
any
,
data
:
any
})
=>
{
if
(
!
Object
.
is
(
name
,
'ibizbookstate-wizard-view'
)){
return
;
}
if
(
Object
.
is
(
action
,
'viewrefresh'
))
{
_this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
(
data
);
if
(
_this
.
engine
){
_this
.
engine
.
load
();
}
});
}
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'IBIZBOOKStateWizardView'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
}
/**
* 销毁之前
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
beforeDestroy
()
{
this
.
$store
.
commit
(
'viewaction/removeView'
,
this
.
viewtag
);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* wizardpanel 部件 finish 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKStateWizardViewBase
*/
public
wizardpanel_finish
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'wizardpanel'
,
'finish'
,
$event
);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZBOOKStateWizardViewBase
*/
public
closeView
(
args
:
any
[]):
void
{
let
_view
:
any
=
this
;
if
(
_view
.
viewdata
)
{
_view
.
$emit
(
'viewdataschange'
,
[
args
]);
_view
.
$emit
(
'close'
,
[
args
]);
}
else
if
(
_view
.
$tabPageExp
)
{
_view
.
$tabPageExp
.
onClose
(
_view
.
$route
.
fullPath
);
}
}
/**
* 销毁视图回调
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZBOOKStateWizardViewBase
*/
public
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
);
}
})
}
if
(
Object
.
is
(
this
.
navModel
,
"tab"
)){
this
.
navDataService
.
removeNavDataByTag
(
this
.
viewtag
);
}
if
(
this
.
serviceStateEvent
)
{
this
.
serviceStateEvent
.
unsubscribe
();
}
}
// 销毁计数器定时器
if
(
this
.
counterServiceArray
&&
this
.
counterServiceArray
.
length
>
0
){
this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
destroyCounter
&&
item
.
destroyCounter
instanceof
Function
){
item
.
destroyCounter
();
}
})
}
if
(
this
.
portletStateEvent
){
this
.
portletStateEvent
.
unsubscribe
();
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './ibizbookstate-wizard-view.less';
</
style
>
\ No newline at end of file
app_Web/src/pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view.less
0 → 100644
浏览文件 @
6f242301
.ibizbookstate-wizard-view{
position: relative;
}
.ibizbookstate-wizard-view{
> .view-card > .ivu-card-body > .content-container > .app-wizard {
overflow: auto;
}
}
\ No newline at end of file
app_Web/src/pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue
0 → 100644
浏览文件 @
6f242301
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZBOOKStateWizardViewBase
from
'./ibizbookstate-wizard-view-base.vue'
;
import
view_wizardpanel
from
'@widgets/ibizbook/state-guide-wizardpanel/state-guide-wizardpanel.vue'
;
@
Component
({
components
:
{
view_wizardpanel
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
if
(
!
Object
.
is
(
vm
.
navModel
,
"route"
)){
vm
.
initNavDataWithTab
(
vm
.
viewCacheData
);
}
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
IBIZBOOKStateWizardView
extends
IBIZBOOKStateWizardViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
6f242301
...
...
@@ -39,6 +39,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizsample0003-pickup-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-pickup-view/ibizsample0003-pickup-view.vue'
));
Vue
.
component
(
'ibizsample0001-usr2-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsample0001-usr2-edit-view/ibizsample0001-usr2-edit-view.vue'
));
Vue
.
component
(
'ibizhardware-sgrid-view'
,
()
=>
import
(
'@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'
));
Vue
.
component
(
'ibizbookstate-wizard-view'
,
()
=>
import
(
'@pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue'
));
Vue
.
component
(
'ibizsample0017-form-pickup-data-view'
,
()
=>
import
(
'@pages/sample/ibizsample0017-form-pickup-data-view/ibizsample0017-form-pickup-data-view.vue'
));
Vue
.
component
(
'ibizorder-sf5-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf5-grid-view/ibizorder-sf5-grid-view.vue'
));
Vue
.
component
(
'ibizbookmedit-view9'
,
()
=>
import
(
'@pages/sample/ibizbookmedit-view9/ibizbookmedit-view9.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
6f242301
...
...
@@ -656,6 +656,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/statewizardview/:statewizardview?'
,
meta
:
{
caption
:
'entities.ibizbook.views.statewizardview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'statewizardview'
,
parameterName
:
'statewizardview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue'
),
},
{
path
:
'ibizsample0017s/:ibizsample0017?/formpickupdataview/:formpickupdataview?'
,
meta
:
{
...
...
@@ -2422,6 +2436,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/statewizardview/:statewizardview?'
,
meta
:
{
caption
:
'entities.ibizbook.views.statewizardview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'statewizardview'
,
parameterName
:
'statewizardview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue'
),
},
{
path
:
'/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf4editview/:sf4editview?'
,
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
6f242301
...
...
@@ -47,6 +47,15 @@ export const viewstate: any = {
'ba34a828f898eefac5a98e7b25d9aef4'
,
],
},
{
viewtag
:
'0b8c0a8b7a5b8b73595b23fc502652fc'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKStateWizardView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'0c1093afa96df2832f707495afec541e'
,
viewmodule
:
'Sample'
,
...
...
@@ -239,6 +248,7 @@ export const viewstate: any = {
'3bbf72a3e5b59fed0dee362a9b1384a8'
,
'fdb8ed39fbfea00f65416b9aaebd64e7'
,
'f73da4cb47a88d3fe5b92716e0137741'
,
'0b8c0a8b7a5b8b73595b23fc502652fc'
,
'59500fe075fdae44c35c88b95e64d9c8'
,
'b7c0a73eb248d41eb750bbf095fa5505'
,
'd99f9680b535dcf3ad0d0f853a8b89d9'
,
...
...
app_Web/src/uiservice/ibizbook/ibizbook-ui-service-base.ts
浏览文件 @
6f242301
...
...
@@ -96,6 +96,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
* @memberof IBIZBOOKUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'statewizardview'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookstate-wizard-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'editview3'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookedit-view3'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'autogrouplistview'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookauto-group-list-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'ruleseditview'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookrules-edit-view'
});
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
6f242301
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
浏览文件 @
6f242301
...
...
@@ -1127,6 +1127,25 @@ export default class MainMenuModel {
appfunctag
:
'AppFunc49'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem134'
,
},
{
id
:
'B3F9066E-1177-4613-9D0B-5AF3EDCC850C'
,
name
:
'menuitem135'
,
text
:
'状态向导'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'状态向导'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc51'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem135'
,
},
],
},
...
...
app_Web/src/widgets/ibizbook/row-edit-grid/row-edit-grid-base.vue
浏览文件 @
6f242301
...
...
@@ -188,42 +188,26 @@
</el-table-column>
</template>
<
template
v-if=
"getColumnState('lendouttime')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'lendouttime'"
:label=
"$t('entities.ibizbook.rowedit_grid.columns.lendouttime')"
:width=
"
15
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'lendouttime'"
:label=
"$t('entities.ibizbook.rowedit_grid.columns.lendouttime')"
:width=
"
20
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibizbook.rowedit_grid.columns.lendouttime'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
v-if=
"actualIsOpenEdit && !row.children"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
:disabled=
"getColumnDisabled(row,column.property)"
:value=
"row[column.property]"
style=
""
@
on-change=
"(val1, val2) =>
{ row[column.property] = val1; gridEditItemChange(row, column.property, val1, $index)}">
</date-picker>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'lendouttime'
editorType=
"DATEPICKER"
:value=
"row.lendouttime"
dataType=
"DATE"
precision=
"0"
></app-span>
</
template
>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.lendouttime"
></app-format-data>
</
template
>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('returntime')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'returntime'"
:label=
"$t('entities.ibizbook.rowedit_grid.columns.returntime')"
:width=
"
15
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'returntime'"
:label=
"$t('entities.ibizbook.rowedit_grid.columns.returntime')"
:width=
"
20
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibizbook.rowedit_grid.columns.returntime'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
v-if=
"actualIsOpenEdit && !row.children"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
:disabled=
"getColumnDisabled(row,column.property)"
:value=
"row[column.property]"
style=
""
@
on-change=
"(val1, val2) =>
{ row[column.property] = val1; gridEditItemChange(row, column.property, val1, $index)}">
</date-picker>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'returntime'
editorType=
"DATEPICKER"
:value=
"row.returntime"
dataType=
"DATE"
precision=
"0"
></app-span>
</
template
>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.returntime"
></app-format-data>
</
template
>
</el-table-column>
</template>
...
...
@@ -706,7 +690,7 @@ export default class RowEditBase extends Vue implements ControlInterface {
*
* @memberof RowEditBase
*/
public
defaultUpdateItems
:
Array
<
any
>
=
[,,,,,,
,,
];
public
defaultUpdateItems
:
Array
<
any
>
=
[,,,,,,];
/**
* 选中行数据
...
...
@@ -844,7 +828,7 @@ export default class RowEditBase extends Vue implements ControlInterface {
langtag
:
'entities.ibizbook.rowedit_grid.columns.lendouttime'
,
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
tru
e
,
isEnableRowEdit
:
fals
e
,
enableCond
:
3
,
},
{
...
...
@@ -853,7 +837,7 @@ export default class RowEditBase extends Vue implements ControlInterface {
langtag
:
'entities.ibizbook.rowedit_grid.columns.returntime'
,
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
tru
e
,
isEnableRowEdit
:
fals
e
,
enableCond
:
3
,
},
]
...
...
@@ -942,13 +926,11 @@ export default class RowEditBase extends Vue implements ControlInterface {
*/
public
getGridRowModel
(){
return
{
lendouttime
:
new
FormItemModel
(),
author
:
new
FormItemModel
(),
press
:
new
FormItemModel
(),
ibizbookname
:
new
FormItemModel
(),
price
:
new
FormItemModel
(),
booknumber
:
new
FormItemModel
(),
returntime
:
new
FormItemModel
(),
type
:
new
FormItemModel
(),
srfkey
:
new
FormItemModel
(),
}
...
...
@@ -970,10 +952,6 @@ export default class RowEditBase extends Vue implements ControlInterface {
* @memberof RowEditBase
*/
public
rules
:
any
=
{
lendouttime
:
[
{
required
:
true
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'借出日期 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'借出日期 值不能为空'
,
trigger
:
'blur'
},
],
author
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'图书作者 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'图书作者 值不能为空'
,
trigger
:
'blur'
},
...
...
@@ -994,10 +972,6 @@ export default class RowEditBase extends Vue implements ControlInterface {
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'图书数量 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'图书数量 值不能为空'
,
trigger
:
'blur'
},
],
returntime
:
[
{
required
:
true
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'归还日期 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'归还日期 值不能为空'
,
trigger
:
'blur'
},
],
type
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'图书类型 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'图书类型 值不能为空'
,
trigger
:
'blur'
},
...
...
app_Web/src/widgets/ibizbook/row-edit-grid/row-edit-grid-model.ts
浏览文件 @
6f242301
...
...
@@ -30,7 +30,6 @@ export default class RowEditModel {
name
:
'lendouttime'
,
prop
:
'lendouttime'
,
dataType
:
'DATE'
,
isEditable
:
true
},
{
name
:
'author'
,
...
...
@@ -71,7 +70,6 @@ export default class RowEditModel {
name
:
'returntime'
,
prop
:
'returntime'
,
dataType
:
'DATE'
,
isEditable
:
true
},
{
name
:
'type'
,
...
...
app_Web/src/widgets/ibizbook/state-guide-wizardpanel/state-guide-wizardpanel-base.vue
0 → 100644
浏览文件 @
6f242301
<
template
>
<layout
class=
"app-wizard"
>
<el-steps
class=
"wizard-steps"
:active=
"wizardForms.indexOf(activeForm)"
finish-status=
"success"
align-center
>
<el-step
title=
"查看图书"
></el-step>
<el-step
title=
"借阅图书"
></el-step>
<el-step
title=
"归还图书"
></el-step>
</el-steps>
<i-content
class=
"app-wizard-content"
>
<view
_wizardpanel_form_FirstForm
v-show=
"activeForm == 'wizardpanel_form_FirstForm'"
:key=
"'wizardpanel_form_FirstForm'"
:viewState=
'wizardState'
:context=
"context"
:viewparams=
"viewparams"
updateAction=
"Update"
removeAction=
""
loadAction=
"Get"
@
save=
"wizardpanel_form_FirstForm_save"
@
load=
"wizardpanel_form_FirstForm_load"
name=
'wizardpanel_form_FirstForm'
ref=
'wizardpanel_form_FirstForm'
>
</view
_wizardpanel_form_FirstForm
>
<view
_wizardpanel_form_SecondForm
v-show=
"activeForm == 'wizardpanel_form_SecondForm'"
:key=
"'wizardpanel_form_SecondForm'"
:viewState=
'wizardState'
:context=
"context"
:viewparams=
"viewparams"
updateAction=
"Update"
removeAction=
""
loadAction=
"Get"
@
save=
"wizardpanel_form_SecondForm_save"
@
load=
"wizardpanel_form_SecondForm_load"
name=
'wizardpanel_form_SecondForm'
ref=
'wizardpanel_form_SecondForm'
>
</view
_wizardpanel_form_SecondForm
>
<view
_wizardpanel_form_ThirdForm
v-show=
"activeForm == 'wizardpanel_form_ThirdForm'"
:key=
"'wizardpanel_form_ThirdForm'"
:viewState=
'wizardState'
:context=
"context"
:viewparams=
"viewparams"
updateAction=
"Update"
removeAction=
""
loadAction=
"Get"
@
save=
"wizardpanel_form_ThirdForm_save"
@
load=
"wizardpanel_form_ThirdForm_load"
name=
'wizardpanel_form_ThirdForm'
ref=
'wizardpanel_form_ThirdForm'
>
</view
_wizardpanel_form_ThirdForm
>
</i-content>
<footer
class=
"app-wizard-footer"
>
<i-button
v-show=
"!isHidden('PREV')"
@
click=
"onClickPrev()"
type=
"primary"
>
{{
$t
(
'app.wizardPanel.back'
)
}}
</i-button>
<i-button
v-show=
"!isHidden('NEXT')"
@
click=
"onClickNext()"
type=
"primary"
>
{{
$t
(
'app.wizardPanel.next'
)
}}
</i-button>
<i-button
v-show=
"!isHidden('FINISH')"
@
click=
"onClickFinish()"
type=
"primary"
>
{{
$t
(
'app.wizardPanel.complete'
)
}}
</i-button>
</footer>
</layout>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
AppCenterService
from
"@service/app/app-center-service"
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
StateGuideService
from
'./state-guide-wizardpanel-service'
;
import
IBIZBOOKUIService
from
'@/uiservice/ibizbook/ibizbook-ui-service'
;
@
Component
({
components
:
{
}
})
export
default
class
StateGuideBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof StateGuideBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof StateGuideBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof StateGuideBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof StateGuideBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof StateGuideBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof StateGuideBase
*/
public
getControlType
():
string
{
return
'WIZARDPANEL'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof StateGuideBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {StateGuideService}
* @memberof StateGuideBase
*/
public
service
:
StateGuideService
=
new
StateGuideService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZBOOKService}
* @memberof StateGuideBase
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
({
$store
:
this
.
$store
});
/**
* wizardpanel_form_ThirdForm 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof StateGuideBase
*/
public
wizardpanel_form_ThirdForm_save
(
$event
:
any
,
$event2
?:
any
)
{
this
.
wizardpanel_formsave
(
$event
,
'wizardpanel_form_ThirdForm'
,
$event2
);
}
/**
* wizardpanel_form_ThirdForm 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof StateGuideBase
*/
public
wizardpanel_form_ThirdForm_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
wizardpanel_formload
(
$event
,
'wizardpanel_form_ThirdForm'
,
$event2
);
}
/**
* wizardpanel_form_FirstForm 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof StateGuideBase
*/
public
wizardpanel_form_FirstForm_save
(
$event
:
any
,
$event2
?:
any
)
{
this
.
wizardpanel_formsave
(
$event
,
'wizardpanel_form_FirstForm'
,
$event2
);
}
/**
* wizardpanel_form_FirstForm 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof StateGuideBase
*/
public
wizardpanel_form_FirstForm_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
wizardpanel_formload
(
$event
,
'wizardpanel_form_FirstForm'
,
$event2
);
}
/**
* wizardpanel_form_SecondForm 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof StateGuideBase
*/
public
wizardpanel_form_SecondForm_save
(
$event
:
any
,
$event2
?:
any
)
{
this
.
wizardpanel_formsave
(
$event
,
'wizardpanel_form_SecondForm'
,
$event2
);
}
/**
* wizardpanel_form_SecondForm 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof StateGuideBase
*/
public
wizardpanel_form_SecondForm_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
wizardpanel_formload
(
$event
,
'wizardpanel_form_SecondForm'
,
$event2
);
}
/**
* 转化数据
*
* @param {any} args
* @memberof StateGuideBase
*/
public
transformData
(
args
:
any
)
{
let
_this
:
any
=
this
;
if
(
_this
.
service
&&
_this
.
service
.
handleRequestData
instanceof
Function
&&
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)){
return
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)[
'data'
];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof StateGuideBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof StateGuideBase
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 部件行为--init
*
* @type {string}
* @memberof StateGuideBase
*/
@
Prop
()
public
initAction
!
:
string
;
/**
* 部件行为--finish
*
* @type {string}
* @memberof StateGuideBase
*/
@
Prop
()
public
finishAction
!
:
string
;
/**
* 显示处理提示
*
* @type {boolean}
* @memberof StateGuideBase
*/
@
Prop
({
default
:
true
})
public
showBusyIndicator
?:
boolean
;
/**
* 状态属性
*
* @type {string}
* @memberof StateGuideBase
*/
public
stateField
:
string
=
'borrowstatus'
;
/**
* 步骤标识集合
*
* @type {*}
* @memberof StateGuideBase
*/
public
stepTags
:
any
=
{};
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof StateGuideBase
*/
public
getDatas
():
any
[]
{
return
[
this
.
formParam
];
}
/**
* 获取单项数据
*
* @returns {*}
* @memberof StateGuideBase
*/
public
getData
():
any
{
return
this
.
formParam
;
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof StateGuideBase
*/
public
wizardState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 当前激活表单
*
* @type {string}
* @memberof StateGuideBase
*/
public
activeForm
:
string
=
'wizardpanel_form_FirstForm'
;
/**
* 向导表单参数
*
* @type {*}
* @memberof StateGuideBase
*/
public
formParam
:
any
=
{};
/**
* 执行过的表单
*
* @public
* @type {Array<string>}
* @memberof StateGuideBase
*/
public
historyForms
:
Array
<
string
>
=
[];
/**
* 步骤行为集合
*
* @type {*}
* @memberof StateGuideBase
*/
public
stepActions
:
any
=
{};
/**
* 向导表单集合
*
* @type {Array<any>}
* @memberof StateGuideBase
*/
public
wizardForms
:
Array
<
any
>
=
[];
/**
* 当前状态
*
* @memberof StateGuideBase
*/
public
curState
=
''
;
/**
* Vue声明周期(处理组件的输入属性)
*
* @memberof StateGuideBase
*/
public
created
():
void
{
this
.
regFormActions
();
if
(
this
.
activeForm
&&
!
this
.
stateField
)
{
this
.
historyForms
.
push
(
this
.
activeForm
);
}
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
Object
.
is
(
tag
,
this
.
name
))
{
if
(
Object
.
is
(
'load'
,
action
))
{
this
.
doInit
(
data
);
}
}
});
}
}
/**
* vue 生命周期
*
* @memberof StateGuideBase
*/
public
destroyed
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
/**
* 注册表单步骤行为
*
* @memberof StateGuideBase
*/
public
regFormActions
()
{
this
.
regFormAction
(
'wizardpanel_form_FirstForm'
,{
loadAction
:
"Get"
,
saveAction
:
'Update'
,
actions
:[
'NEXT'
]},
'step1'
);
this
.
regFormAction
(
'wizardpanel_form_SecondForm'
,{
loadAction
:
"Get"
,
saveAction
:
'Update'
,
actions
:[
'PREV'
,
'NEXT'
]},
'step2'
);
this
.
regFormAction
(
'wizardpanel_form_ThirdForm'
,{
loadAction
:
"Get"
,
saveAction
:
'Update'
,
actions
:[
'PREV'
,
'FINISH'
]},
'step3'
);
}
/**
* 注册表单步骤行为
*
* @memberof StateGuideBase
*/
public
regFormAction
(
name
:
string
,
actionParams
:
any
,
stepTag
:
any
)
{
this
.
stepActions
[
name
]
=
actionParams
;
this
.
stepTags
[
name
]
=
stepTag
;
this
.
wizardForms
.
push
(
name
);
}
/**
* 初始化行为
*
* @memberof StateGuideBase
*/
public
doInit
(
opt
:
any
=
{})
{
const
arg
:
any
=
{
...
opt
};
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
init
(
this
.
initAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
);
post
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
this
.
formParam
=
response
.
data
;
if
(
response
.
data
.
ibizbook
){
Object
.
assign
(
this
.
context
,{
ibizbook
:
response
.
data
.
ibizbook
})
}
this
.
formLoad
(
this
.
formParam
);
}
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
info
});
});
}
/**
* 表单加载
*
* @memberof StateGuideBase
*/
public
formLoad
(
data
:
any
)
{
if
(
this
.
stateField
)
this
.
computedActiveForm
(
data
);
if
(
this
.
activeForm
)
{
this
.
wizardState
.
next
({
tag
:
this
.
activeForm
,
action
:
'panelaction'
,
data
:
{
action
:
this
.
stepActions
[
this
.
activeForm
].
loadAction
,
emitAction
:
'load'
,
data
:
this
.
formParam
}
});
}
}
/**
* 根据状态获取当前激活表单
*
* @memberof StateGuideBase
*/
public
computedActiveForm
(
data
:
any
){
if
(
data
&&
data
[
this
.
stateField
]){
if
(
Object
.
keys
(
this
.
stepTags
).
length
>
0
){
Object
.
keys
(
this
.
stepTags
).
forEach
((
name
:
string
)
=>
{
if
(
this
.
stepTags
[
name
]
===
data
[
this
.
stateField
]){
this
.
activeForm
=
name
;
return
;
}
})
}
}
}
/**
* 完成行为
*
* @memberof StateGuideBase
*/
public
doFinish
()
{
let
arg
:
any
=
{};
Object
.
assign
(
arg
,
this
.
formParam
);
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
finish
(
this
.
finishAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
);
post
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
const
data
=
response
.
data
;
this
.
$Notice
.
success
({
title
:
this
.
$t
(
'app.commonWords.success'
)
as
string
,
desc
:
this
.
$t
(
'app.commonWords.startsuccess'
)
as
string
});
this
.
$emit
(
"finish"
,
data
);
AppCenterService
.
notifyMessage
({
name
:
"IBIZBOOK"
,
action
:
'appRefresh'
,
data
:
data
});
}
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
info
});
});
}
/**
* 向导表单加载完成
*
* @param {*} args
* @param {string} name
* @memberof StateGuideBase
*/
public
wizardpanel_formload
(
args
:
any
,
name
:
string
,
$event2
?:
any
)
{
if
(
args
)
{
Object
.
assign
(
this
.
formParam
,
args
);
}
}
/**
* 向导表单保存完成
*
* @param {*} args
* @param {string} name
* @memberof StateGuideBase
*/
public
wizardpanel_formsave
(
args
:
any
,
name
:
string
,
$event2
?:
any
)
{
Object
.
assign
(
this
.
formParam
,
args
);
if
(
Object
.
is
(
this
.
curState
,
'NEXT'
))
{
this
.
historyForms
.
push
(
name
);
if
(
!
this
.
stateField
){
if
(
this
.
getNextForm
())
{
this
.
activeForm
=
this
.
getNextForm
();
setTimeout
(()
=>
{
this
.
formLoad
(
this
.
formParam
);
},
1
);
}
else
{
this
.
doFinish
();
}
}
else
{
setTimeout
(()
=>
{
this
.
formLoad
(
this
.
formParam
);
},
1
);
}
}
else
if
(
Object
.
is
(
this
.
curState
,
'PREV'
))
{
if
(
this
.
stateField
){
setTimeout
(()
=>
{
this
.
formLoad
(
this
.
formParam
);
},
1
);
}
}
else
if
(
Object
.
is
(
this
.
curState
,
'FINISH'
))
{
this
.
doFinish
();
}
}
/**
* 获取下一步向导表单
*
* @memberof StateGuideBase
*/
public
getNextForm
()
{
let
index
=
this
.
wizardForms
.
indexOf
(
this
.
activeForm
);
if
(
index
>=
0
)
{
if
(
this
.
wizardForms
[
index
+
1
])
{
return
this
.
wizardForms
[
index
+
1
];
}
}
return
undefined
;
}
/**
* 上一步
*
* @memberof StateGuideBase
*/
public
onClickPrev
()
{
if
(
!
this
.
stateField
){
const
length
=
this
.
historyForms
.
length
;
if
(
length
>
1
)
{
this
.
curState
=
'PREV'
;
this
.
activeForm
=
this
.
historyForms
[
length
-
1
];
setTimeout
(()
=>
{
this
.
formLoad
(
this
.
formParam
);
},
1
);
this
.
historyForms
.
splice
(
length
-
1
,
1
);
}
}
else
{
if
(
this
.
activeForm
)
{
if
(
this
.
$refs
&&
this
.
$refs
[
this
.
activeForm
]){
let
form
:
any
=
this
.
$refs
[
this
.
activeForm
];
this
.
curState
=
'PREV'
;
if
(
!
this
.
stepActions
[
this
.
activeForm
].
preAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
this
.
$t
(
'app.wizardPanel.preactionmessage'
)
as
string
});
return
;
}
this
.
wizardState
.
next
({
tag
:
this
.
activeForm
,
action
:
'panelaction'
,
data
:
{
action
:
this
.
stepActions
[
this
.
activeForm
].
preAction
,
emitAction
:
'save'
,
data
:
this
.
formParam
}
});
}
}
}
}
/**
* 下一步
*
* @memberof StateGuideBase
*/
public
onClickNext
()
{
if
(
this
.
activeForm
)
{
if
(
this
.
$refs
&&
this
.
$refs
[
this
.
activeForm
]){
let
form
:
any
=
this
.
$refs
[
this
.
activeForm
];
if
(
form
.
formValidateStatus
())
{
this
.
curState
=
'NEXT'
;
this
.
wizardState
.
next
({
tag
:
this
.
activeForm
,
action
:
'panelaction'
,
data
:
{
action
:
this
.
stepActions
[
this
.
activeForm
].
saveAction
,
emitAction
:
'save'
,
data
:
this
.
formParam
}
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
}
}
}
/**
* 完成
*
* @memberof StateGuideBase
*/
public
onClickFinish
()
{
if
(
this
.
activeForm
)
{
if
(
this
.
$refs
&&
this
.
$refs
[
this
.
activeForm
]){
let
form
:
any
=
this
.
$refs
[
this
.
activeForm
];
if
(
form
.
formValidateStatus
())
{
this
.
curState
=
'FINISH'
;
this
.
wizardState
.
next
({
tag
:
this
.
activeForm
,
action
:
'panelaction'
,
data
:
{
action
:
this
.
stepActions
[
this
.
activeForm
].
saveAction
,
emitAction
:
'save'
,
data
:
this
.
formParam
}
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
}
}
}
/**
* 是否隐藏
*
* @param {string} type
* @memberof StateGuideBase
*/
public
isHidden
(
type
:
string
)
{
const
actions
:
Array
<
string
>
=
this
.
stepActions
[
this
.
activeForm
].
actions
;
if
(
actions
&&
actions
.
indexOf
(
type
)
<
0
)
{
return
true
;
}
return
false
;
}
}
</
script
>
<
style
lang=
'less'
>
@import './state-guide-wizardpanel.less';
</
style
>
\ No newline at end of file
app_Web/src/widgets/ibizbook/state-guide-wizardpanel/state-guide-wizardpanel-model.ts
0 → 100644
浏览文件 @
6f242301
/**
* StateGuide 部件模型
*
* @export
* @class StateGuideModel
*/
export
default
class
StateGuideModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof StateGuideModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'createman'
,
prop
:
'createman'
,
},
{
name
:
'ibizbookname'
,
prop
:
'ibizbookname'
,
},
{
name
:
'ibizbook'
,
prop
:
'ibizbookid'
,
},
{
name
:
'createdate'
,
prop
:
'createdate'
,
},
{
name
:
'updateman'
,
prop
:
'updateman'
,
},
{
name
:
'updatedate'
,
prop
:
'updatedate'
,
},
{
name
:
'author'
,
prop
:
'author'
,
},
{
name
:
'price'
,
prop
:
'price'
,
},
{
name
:
'press'
,
prop
:
'press'
,
},
{
name
:
'type'
,
prop
:
'type'
,
},
{
name
:
'booknumber'
,
prop
:
'booknumber'
,
},
{
name
:
'subtext'
,
prop
:
'subtext'
,
},
{
name
:
'lendouttime'
,
prop
:
'lendouttime'
,
},
{
name
:
'returntime'
,
prop
:
'returntime'
,
},
{
name
:
'icon'
,
prop
:
'icon'
,
},
{
name
:
'sailstate'
,
prop
:
'sailstate'
,
},
{
name
:
'borrowstatus'
,
prop
:
'borrowstatus'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/state-guide-wizardpanel/state-guide-wizardpanel-service.ts
0 → 100644
浏览文件 @
6f242301
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
StateGuideModel
from
'./state-guide-wizardpanel-model'
;
/**
* StateGuide 部件服务对象
*
* @export
* @class StateGuideService
*/
export
default
class
StateGuideService
extends
ControlService
{
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof StateGuideService
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof StateGuideService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of StateGuideService.
*
* @param {*} [opts={}]
* @memberof StateGuideService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
StateGuideModel
();
}
/**
* 初始化向导
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof StateGuideService
*/
@
Errorlog
public
init
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 向导结束
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof StateGuideService
*/
@
Errorlog
public
finish
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
// 忽略版本检查
Object
.
assign
(
Data
,{
ignoreversioncheck
:
1
});
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/state-guide-wizardpanel/state-guide-wizardpanel.less
0 → 100644
浏览文件 @
6f242301
.app-wizard {
background: #fff;
height: 100%;
.wizard-steps{
padding: 10px 50px;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
.el-step__head.is-process{
border-color: #7e8187;
color: #7e8187;
}
.el-step__title.is-process{
color: #7e8187;
}
.el-step__head.is-success{
border-color: #1890ff;
color: #1890ff;
}
.el-step__title.is-success{
color: #1890ff;
}
}
.app-wizard-content{
height: 100%;
overflow-y: auto;
}
.app-wizard-footer {
padding: 10px;
text-align: right;
.ivu-btn {
margin: 0 5px;
}
}
}
// this is less
app_Web/src/widgets/ibizbook/state-guide-wizardpanel/state-guide-wizardpanel.vue
0 → 100644
浏览文件 @
6f242301
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
StateGuideBase
from
'./state-guide-wizardpanel-base.vue'
;
import
view_wizardpanel_form_ThirdForm
from
'@widgets/ibizbook/guide-return-form-form/guide-return-form-form.vue'
;
import
view_wizardpanel_form_FirstForm
from
'@widgets/ibizbook/guide-view-form-form/guide-view-form-form.vue'
;
import
view_wizardpanel_form_SecondForm
from
'@widgets/ibizbook/guide-borrow-form-form/guide-borrow-form-form.vue'
;
@
Component
({
components
:
{
view_wizardpanel_form_ThirdForm
,
view_wizardpanel_form_FirstForm
,
view_wizardpanel_form_SecondForm
,
}
})
export
default
class
StateGuide
extends
StateGuideBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/widgets/ibizsample0001/main5-form/main5-form-base.vue
浏览文件 @
6f242301
...
...
@@ -139,8 +139,7 @@ dataType="HTMLTEXT" :precision="0"
<row>
<i-col
v-show=
"detailsModel.formitem.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'formitem'
:itemRules=
"this.rules().formitem"
class=
''
:caption=
"$t('entities.ibizsample0001.main5_form.details.formitem')"
uiStyle=
"DEFAULT"
:labelWidth=
"150"
:isShowCaption=
"true"
:error=
"detailsModel.formitem.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-rich-text-editor
:formState=
"formState"
:value=
"data.formitem"
@
change=
"(val) =>
{this.data.formitem =val}" :disabled="detailsModel.formitem.disabled" :data="JSON.stringify(this.data)" name="formitem" :uploadparams='{}' :exportparams='{}' style="">
</app-rich-text-editor>
<span
v-html=
"data.formitem"
></span>
</app-form-item>
</i-col>
...
...
demo-core/src/main/resources/permission/systemResource.json
浏览文件 @
6f242301
...
...
@@ -302,7 +302,7 @@
{
"appid"
:
"Web"
,
"appname"
:
"演示应用"
,
"appmenu"
:[{
"menuid"
:
"MainMenu"
,
"menuname"
:
"MainMenu"
,
"menuitem"
:[{
"id"
:
"menuitem1"
,
"name"
:
"工作台"
},{
"id"
:
"menuitem3"
,
"name"
:
"控件"
,
"items"
:[{
"id"
:
"menuitem6"
,
"name"
:
"默认数据类型"
},{
"id"
:
"menuitem7"
,
"name"
:
"默认编辑器类型"
},{
"id"
:
"menuitem15"
,
"name"
:
"基础表单项"
},{
"id"
:
"menuitem72"
,
"name"
:
"扩展编辑器"
},{
"id"
:
"menuitem114"
,
"name"
:
"扩展编辑器表格"
}]},{
"id"
:
"menuitem4"
,
"name"
:
"部件"
,
"items"
:[{
"id"
:
"menuitem12"
,
"name"
:
"编辑表单"
,
"items"
:[{
"id"
:
"menuitem107"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem47"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem99"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem48"
,
"name"
:
"输入提示"
},{
"id"
:
"menuitem49"
,
"name"
:
"辅助输入"
},{
"id"
:
"menuitem50"
,
"name"
:
"自动填充"
},{
"id"
:
"menuitem51"
,
"name"
:
"超链接"
},{
"id"
:
"menuitem52"
,
"name"
:
"表单值重置"
},{
"id"
:
"menuitem55"
,
"name"
:
"动态显示"
},{
"id"
:
"menuitem53"
,
"name"
:
"动态启用"
},{
"id"
:
"menuitem54"
,
"name"
:
"动态空输入"
},{
"id"
:
"menuitem56"
,
"name"
:
"表单项更新"
},{
"id"
:
"menuitem108"
,
"name"
:
"表单值规则"
}]},{
"id"
:
"menuitem16"
,
"name"
:
"搜索表单"
},{
"id"
:
"menuitem13"
,
"name"
:
"表格"
,
"items"
:[{
"id"
:
"menuitem57"
,
"name"
:
"禁用排序"
},{
"id"
:
"menuitem59"
,
"name"
:
"行操作"
},{
"id"
:
"menuitem58"
,
"name"
:
"行编辑"
},{
"id"
:
"menuitem73"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem74"
,
"name"
:
"表格行编辑"
},{
"id"
:
"menuitem75"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem76"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem77"
,
"name"
:
"表格值规则"
},{
"id"
:
"menuitem132"
,
"name"
:
"表格项更新"
},{
"id"
:
"menuitem133"
,
"name"
:
"表格项值重置"
},{
"id"
:
"menuitem78"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem80"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem81"
,
"name"
:
"当前页聚合"
},{
"id"
:
"menuitem82"
,
"name"
:
"远程聚合"
}]},{
"id"
:
"menuitem83"
,
"name"
:
"列表"
,
"items"
:[{
"id"
:
"menuitem84"
,
"name"
:
"列表内置功能"
},{
"id"
:
"menuitem85"
,
"name"
:
"列表自动分组"
},{
"id"
:
"menuitem86"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem91"
,
"name"
:
"列表嵌入面板"
}]},{
"id"
:
"menuitem14"
,
"name"
:
"树视图"
,
"items"
:[{
"id"
:
"menuitem60"
,
"name"
:
"静态节点"
},{
"id"
:
"menuitem61"
,
"name"
:
"动态节点(代码表)"
},{
"id"
:
"menuitem62"
,
"name"
:
"动态节点(实体)"
},{
"id"
:
"menuitem63"
,
"name"
:
"右键操作"
},{
"id"
:
"menuitem64"
,
"name"
:
"动态参数过滤"
},{
"id"
:
"menuitem110"
,
"name"
:
"树表格"
}]},{
"id"
:
"menuitem37"
,
"name"
:
"图表"
,
"items"
:[{
"id"
:
"menuitem38"
,
"name"
:
"柱状图"
},{
"id"
:
"menuitem39"
,
"name"
:
"折线图"
},{
"id"
:
"menuitem40"
,
"name"
:
"饼图"
},{
"id"
:
"menuitem41"
,
"name"
:
"区域图"
},{
"id"
:
"menuitem42"
,
"name"
:
"雷达图"
}]},{
"id"
:
"menuitem17"
,
"name"
:
"向导"
,
"items"
:[{
"id"
:
"menuitem134"
,
"name"
:
"向导视图"
}]},{
"id"
:
"menuitem18"
,
"name"
:
"界面行为"
,
"items"
:[{
"id"
:
"menuitem65"
,
"name"
:
"前端界面行为"
},{
"id"
:
"menuitem66"
,
"name"
:
"后台界面行为"
}]},{
"id"
:
"menuitem87"
,
"name"
:
"数据视图"
,
"items"
:[{
"id"
:
"menuitem88"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem89"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem90"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem94"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem95"
,
"name"
:
"日历"
,
"items"
:[{
"id"
:
"menuitem96"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem97"
,
"name"
:
"时间轴样式"
},{
"id"
:
"menuitem109"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem101"
,
"name"
:
"看板"
,
"items"
:[{
"id"
:
"menuitem102"
,
"name"
:
"看板内置功能"
},{
"id"
:
"menuitem104"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem105"
,
"name"
:
"嵌入视图面板"
}]},{
"id"
:
"menuitem111"
,
"name"
:
"甘特图"
,
"items"
:[{
"id"
:
"menuitem112"
,
"name"
:
"甘特图"
}]},{
"id"
:
"menuitem119"
,
"name"
:
"分页视图"
,
"items"
:[{
"id"
:
"menuitem120"
,
"name"
:
"分页导航"
}]},{
"id"
:
"menuitem121"
,
"name"
:
"多编辑视图"
,
"items"
:[{
"id"
:
"menuitem115"
,
"name"
:
"多表单(行记录)"
},{
"id"
:
"menuitem123"
,
"name"
:
"多表单(上分页)"
}]},{
"id"
:
"menuitem122"
,
"name"
:
"数据关系栏"
,
"items"
:[{
"id"
:
"menuitem116"
,
"name"
:
"编辑视图(左右关系)"
},{
"id"
:
"menuitem117"
,
"name"
:
"编辑视图(上下关系)"
},{
"id"
:
"menuitem118"
,
"name"
:
"编辑视图(分页关系)"
}]},{
"id"
:
"menuitem125"
,
"name"
:
"数据看板"
,
"items"
:[{
"id"
:
"menuitem126"
,
"name"
:
"实体数据看板"
}]},{
"id"
:
"menuitem127"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem128"
,
"name"
:
"表格导航"
}]},{
"id"
:
"menuitem129"
,
"name"
:
"选项操作"
,
"items"
:[{
"id"
:
"menuitem130"
,
"name"
:
"选项操作视图"
},{
"id"
:
"menuitem131"
,
"name"
:
"表格选项操作"
}]}]},{
"id"
:
"menuitem5"
,
"name"
:
"视图"
,
"items"
:[{
"id"
:
"menuitem9"
,
"name"
:
"列表视图"
,
"items"
:[{
"id"
:
"menuitem19"
,
"name"
:
"常规表格视图"
},{
"id"
:
"menuitem21"
,
"name"
:
"左右表格视图"
},{
"id"
:
"menuitem20"
,
"name"
:
"嵌入表格视图"
}]},{
"id"
:
"menuitem8"
,
"name"
:
"编辑视图"
,
"items"
:[{
"id"
:
"menuitem22"
,
"name"
:
"常规编辑视图"
},{
"id"
:
"menuitem23"
,
"name"
:
"左右编辑视图"
},{
"id"
:
"menuitem24"
,
"name"
:
"分页编辑视图"
},{
"id"
:
"menuitem25"
,
"name"
:
"嵌入编辑视图"
}]},{
"id"
:
"menuitem26"
,
"name"
:
"选择视图"
,
"items"
:[{
"id"
:
"menuitem27"
,
"name"
:
"单选视图"
},{
"id"
:
"menuitem28"
,
"name"
:
"多选视图"
},{
"id"
:
"menuitem29"
,
"name"
:
"树形选择视图"
},{
"id"
:
"menuitem30"
,
"name"
:
"左右单选视图"
},{
"id"
:
"menuitem31"
,
"name"
:
"左右多选视图"
}]},{
"id"
:
"menuitem10"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem32"
,
"name"
:
"常规导航视图"
},{
"id"
:
"menuitem33"
,
"name"
:
"分页导航视图"
},{
"id"
:
"menuitem34"
,
"name"
:
"嵌入导航视图"
}]},{
"id"
:
"menuitem11"
,
"name"
:
"其他视图"
,
"items"
:[{
"id"
:
"menuitem35"
,
"name"
:
"图表视图"
},{
"id"
:
"menuitem36"
,
"name"
:
"报表视图"
},{
"id"
:
"menuitem98"
,
"name"
:
"自定义视图"
}]},{
"id"
:
"menuitem79"
,
"name"
:
"表格视图"
}]},{
"id"
:
"menuitem69"
,
"name"
:
"工作流"
},{
"id"
:
"menuitem2"
,
"name"
:
"更多"
,
"items"
:[{
"id"
:
"menuitem46"
,
"name"
:
"数据导出导入"
},{
"id"
:
"menuitem45"
,
"name"
:
"数据打印"
},{
"id"
:
"menuitem67"
,
"name"
:
"索引实体"
},{
"id"
:
"menuitem68"
,
"name"
:
"继承实体"
},{
"id"
:
"menuitem70"
,
"name"
:
"主状态"
},{
"id"
:
"menuitem71"
,
"name"
:
"多表单"
}]},{
"id"
:
"menuitem92"
,
"name"
:
"其他"
,
"items"
:[{
"id"
:
"menuitem93"
,
"name"
:
"示例实体02示例数据补充"
},{
"id"
:
"menuitem100"
,
"name"
:
"订单示例数据补充"
},{
"id"
:
"menuitem103"
,
"name"
:
"产品示例数据补充"
},{
"id"
:
"menuitem106"
,
"name"
:
"示例实体03示例数据补充"
},{
"id"
:
"menuitem113"
,
"name"
:
"订单类型添加"
},{
"id"
:
"menuitem124"
,
"name"
:
"示例实体01数据补充"
}]}]
}]
"appmenu"
:[{
"menuid"
:
"MainMenu"
,
"menuname"
:
"MainMenu"
,
"menuitem"
:[{
"id"
:
"menuitem1"
,
"name"
:
"工作台"
},{
"id"
:
"menuitem3"
,
"name"
:
"控件"
,
"items"
:[{
"id"
:
"menuitem6"
,
"name"
:
"默认数据类型"
},{
"id"
:
"menuitem7"
,
"name"
:
"默认编辑器类型"
},{
"id"
:
"menuitem15"
,
"name"
:
"基础表单项"
},{
"id"
:
"menuitem72"
,
"name"
:
"扩展编辑器"
},{
"id"
:
"menuitem114"
,
"name"
:
"扩展编辑器表格"
}]},{
"id"
:
"menuitem4"
,
"name"
:
"部件"
,
"items"
:[{
"id"
:
"menuitem12"
,
"name"
:
"编辑表单"
,
"items"
:[{
"id"
:
"menuitem107"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem47"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem99"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem48"
,
"name"
:
"输入提示"
},{
"id"
:
"menuitem49"
,
"name"
:
"辅助输入"
},{
"id"
:
"menuitem50"
,
"name"
:
"自动填充"
},{
"id"
:
"menuitem51"
,
"name"
:
"超链接"
},{
"id"
:
"menuitem52"
,
"name"
:
"表单值重置"
},{
"id"
:
"menuitem55"
,
"name"
:
"动态显示"
},{
"id"
:
"menuitem53"
,
"name"
:
"动态启用"
},{
"id"
:
"menuitem54"
,
"name"
:
"动态空输入"
},{
"id"
:
"menuitem56"
,
"name"
:
"表单项更新"
},{
"id"
:
"menuitem108"
,
"name"
:
"表单值规则"
}]},{
"id"
:
"menuitem16"
,
"name"
:
"搜索表单"
},{
"id"
:
"menuitem13"
,
"name"
:
"表格"
,
"items"
:[{
"id"
:
"menuitem57"
,
"name"
:
"禁用排序"
},{
"id"
:
"menuitem59"
,
"name"
:
"行操作"
},{
"id"
:
"menuitem58"
,
"name"
:
"行编辑"
},{
"id"
:
"menuitem73"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem74"
,
"name"
:
"表格行编辑"
},{
"id"
:
"menuitem75"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem76"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem77"
,
"name"
:
"表格值规则"
},{
"id"
:
"menuitem132"
,
"name"
:
"表格项更新"
},{
"id"
:
"menuitem133"
,
"name"
:
"表格项值重置"
},{
"id"
:
"menuitem78"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem80"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem81"
,
"name"
:
"当前页聚合"
},{
"id"
:
"menuitem82"
,
"name"
:
"远程聚合"
}]},{
"id"
:
"menuitem83"
,
"name"
:
"列表"
,
"items"
:[{
"id"
:
"menuitem84"
,
"name"
:
"列表内置功能"
},{
"id"
:
"menuitem85"
,
"name"
:
"列表自动分组"
},{
"id"
:
"menuitem86"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem91"
,
"name"
:
"列表嵌入面板"
}]},{
"id"
:
"menuitem14"
,
"name"
:
"树视图"
,
"items"
:[{
"id"
:
"menuitem60"
,
"name"
:
"静态节点"
},{
"id"
:
"menuitem61"
,
"name"
:
"动态节点(代码表)"
},{
"id"
:
"menuitem62"
,
"name"
:
"动态节点(实体)"
},{
"id"
:
"menuitem63"
,
"name"
:
"右键操作"
},{
"id"
:
"menuitem64"
,
"name"
:
"动态参数过滤"
},{
"id"
:
"menuitem110"
,
"name"
:
"树表格"
}]},{
"id"
:
"menuitem37"
,
"name"
:
"图表"
,
"items"
:[{
"id"
:
"menuitem38"
,
"name"
:
"柱状图"
},{
"id"
:
"menuitem39"
,
"name"
:
"折线图"
},{
"id"
:
"menuitem40"
,
"name"
:
"饼图"
},{
"id"
:
"menuitem41"
,
"name"
:
"区域图"
},{
"id"
:
"menuitem42"
,
"name"
:
"雷达图"
}]},{
"id"
:
"menuitem17"
,
"name"
:
"向导"
,
"items"
:[{
"id"
:
"menuitem134"
,
"name"
:
"向导视图"
}
,{
"id"
:
"menuitem135"
,
"name"
:
"状态向导"
}
]},{
"id"
:
"menuitem18"
,
"name"
:
"界面行为"
,
"items"
:[{
"id"
:
"menuitem65"
,
"name"
:
"前端界面行为"
},{
"id"
:
"menuitem66"
,
"name"
:
"后台界面行为"
}]},{
"id"
:
"menuitem87"
,
"name"
:
"数据视图"
,
"items"
:[{
"id"
:
"menuitem88"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem89"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem90"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem94"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem95"
,
"name"
:
"日历"
,
"items"
:[{
"id"
:
"menuitem96"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem97"
,
"name"
:
"时间轴样式"
},{
"id"
:
"menuitem109"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem101"
,
"name"
:
"看板"
,
"items"
:[{
"id"
:
"menuitem102"
,
"name"
:
"看板内置功能"
},{
"id"
:
"menuitem104"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem105"
,
"name"
:
"嵌入视图面板"
}]},{
"id"
:
"menuitem111"
,
"name"
:
"甘特图"
,
"items"
:[{
"id"
:
"menuitem112"
,
"name"
:
"甘特图"
}]},{
"id"
:
"menuitem119"
,
"name"
:
"分页视图"
,
"items"
:[{
"id"
:
"menuitem120"
,
"name"
:
"分页导航"
}]},{
"id"
:
"menuitem121"
,
"name"
:
"多编辑视图"
,
"items"
:[{
"id"
:
"menuitem115"
,
"name"
:
"多表单(行记录)"
},{
"id"
:
"menuitem123"
,
"name"
:
"多表单(上分页)"
}]},{
"id"
:
"menuitem122"
,
"name"
:
"数据关系栏"
,
"items"
:[{
"id"
:
"menuitem116"
,
"name"
:
"编辑视图(左右关系)"
},{
"id"
:
"menuitem117"
,
"name"
:
"编辑视图(上下关系)"
},{
"id"
:
"menuitem118"
,
"name"
:
"编辑视图(分页关系)"
}]},{
"id"
:
"menuitem125"
,
"name"
:
"数据看板"
,
"items"
:[{
"id"
:
"menuitem126"
,
"name"
:
"实体数据看板"
}]},{
"id"
:
"menuitem127"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem128"
,
"name"
:
"表格导航"
}]},{
"id"
:
"menuitem129"
,
"name"
:
"选项操作"
,
"items"
:[{
"id"
:
"menuitem130"
,
"name"
:
"选项操作视图"
},{
"id"
:
"menuitem131"
,
"name"
:
"表格选项操作"
}]}]},{
"id"
:
"menuitem5"
,
"name"
:
"视图"
,
"items"
:[{
"id"
:
"menuitem9"
,
"name"
:
"列表视图"
,
"items"
:[{
"id"
:
"menuitem19"
,
"name"
:
"常规表格视图"
},{
"id"
:
"menuitem21"
,
"name"
:
"左右表格视图"
},{
"id"
:
"menuitem20"
,
"name"
:
"嵌入表格视图"
}]},{
"id"
:
"menuitem8"
,
"name"
:
"编辑视图"
,
"items"
:[{
"id"
:
"menuitem22"
,
"name"
:
"常规编辑视图"
},{
"id"
:
"menuitem23"
,
"name"
:
"左右编辑视图"
},{
"id"
:
"menuitem24"
,
"name"
:
"分页编辑视图"
},{
"id"
:
"menuitem25"
,
"name"
:
"嵌入编辑视图"
}]},{
"id"
:
"menuitem26"
,
"name"
:
"选择视图"
,
"items"
:[{
"id"
:
"menuitem27"
,
"name"
:
"单选视图"
},{
"id"
:
"menuitem28"
,
"name"
:
"多选视图"
},{
"id"
:
"menuitem29"
,
"name"
:
"树形选择视图"
},{
"id"
:
"menuitem30"
,
"name"
:
"左右单选视图"
},{
"id"
:
"menuitem31"
,
"name"
:
"左右多选视图"
}]},{
"id"
:
"menuitem10"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem32"
,
"name"
:
"常规导航视图"
},{
"id"
:
"menuitem33"
,
"name"
:
"分页导航视图"
},{
"id"
:
"menuitem34"
,
"name"
:
"嵌入导航视图"
}]},{
"id"
:
"menuitem11"
,
"name"
:
"其他视图"
,
"items"
:[{
"id"
:
"menuitem35"
,
"name"
:
"图表视图"
},{
"id"
:
"menuitem36"
,
"name"
:
"报表视图"
},{
"id"
:
"menuitem98"
,
"name"
:
"自定义视图"
}]},{
"id"
:
"menuitem79"
,
"name"
:
"表格视图"
}]},{
"id"
:
"menuitem69"
,
"name"
:
"工作流"
},{
"id"
:
"menuitem2"
,
"name"
:
"更多"
,
"items"
:[{
"id"
:
"menuitem46"
,
"name"
:
"数据导出导入"
},{
"id"
:
"menuitem45"
,
"name"
:
"数据打印"
},{
"id"
:
"menuitem67"
,
"name"
:
"索引实体"
},{
"id"
:
"menuitem68"
,
"name"
:
"继承实体"
},{
"id"
:
"menuitem70"
,
"name"
:
"主状态"
},{
"id"
:
"menuitem71"
,
"name"
:
"多表单"
}]},{
"id"
:
"menuitem92"
,
"name"
:
"其他"
,
"items"
:[{
"id"
:
"menuitem93"
,
"name"
:
"示例实体02示例数据补充"
},{
"id"
:
"menuitem100"
,
"name"
:
"订单示例数据补充"
},{
"id"
:
"menuitem103"
,
"name"
:
"产品示例数据补充"
},{
"id"
:
"menuitem106"
,
"name"
:
"示例实体03示例数据补充"
},{
"id"
:
"menuitem113"
,
"name"
:
"订单类型添加"
},{
"id"
:
"menuitem124"
,
"name"
:
"示例实体01数据补充"
}]}]
}]
}
]
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录