Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
51519cca
提交
51519cca
编写于
11月 30, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
bdfc4802
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
1124 行增加
和
25 行删除
+1124
-25
ibizorder_en_US.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
+78
-0
ibizorder_zh_CN.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
+78
-0
ibizorder-sedit-view2-base.vue
...mple/ibizorder-sedit-view2/ibizorder-sedit-view2-base.vue
+300
-1
ibizorder-sedit-view2.less
...s/sample/ibizorder-sedit-view2/ibizorder-sedit-view2.less
+15
-0
ibizorder-sedit-view3-base.vue
...mple/ibizorder-sedit-view3/ibizorder-sedit-view3-base.vue
+300
-1
ibizorder-sedit-view3.less
...s/sample/ibizorder-sedit-view3/ibizorder-sedit-view3.less
+15
-0
ibizorder-sedit-view4-base.vue
...mple/ibizorder-sedit-view4/ibizorder-sedit-view4-base.vue
+298
-1
ibizorder-sedit-view4.less
...s/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.less
+15
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+2
-2
router.ts
app_Web/src/pages/sample/index/router.ts
+20
-20
state.ts
app_Web/src/store/modules/view-action/state.ts
+3
-0
未找到文件。
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
浏览文件 @
51519cca
...
...
@@ -1068,6 +1068,32 @@ export default {
tip
:
"刷新"
,
},
},
seditview3toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem5
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem8
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem9_saveandstart
:
{
caption
:
"开始流程"
,
tip
:
"开始流程"
,
},
tbitem13
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem15
:
{
caption
:
"Print"
,
tip
:
"Print"
,
},
},
sf15gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
...
...
@@ -1336,6 +1362,32 @@ export default {
tip
:
"数据导入"
,
},
},
seditview2toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem5
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem8
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem9_saveandstart
:
{
caption
:
"开始流程"
,
tip
:
"开始流程"
,
},
tbitem13
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem15
:
{
caption
:
"Print"
,
tip
:
"Print"
,
},
},
sf1gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
...
...
@@ -1402,6 +1454,32 @@ export default {
tip
:
"数据导入"
,
},
},
seditview4toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem5
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem8
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem9_saveandstart
:
{
caption
:
"开始流程"
,
tip
:
"开始流程"
,
},
tbitem13
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem15
:
{
caption
:
"Print"
,
tip
:
"Print"
,
},
},
sf20gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
浏览文件 @
51519cca
...
...
@@ -1067,6 +1067,32 @@ export default {
tip
:
"刷新"
,
},
},
seditview3toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem8
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem9_saveandstart
:
{
caption
:
"开始流程"
,
tip
:
"开始流程"
,
},
tbitem13
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem15
:
{
caption
:
"打印"
,
tip
:
"打印"
,
},
},
sf15gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
...
...
@@ -1335,6 +1361,32 @@ export default {
tip
:
"数据导入"
,
},
},
seditview2toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem8
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem9_saveandstart
:
{
caption
:
"开始流程"
,
tip
:
"开始流程"
,
},
tbitem13
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem15
:
{
caption
:
"打印"
,
tip
:
"打印"
,
},
},
sf1gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
...
...
@@ -1401,6 +1453,32 @@ export default {
tip
:
"数据导入"
,
},
},
seditview4toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem8
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem9_saveandstart
:
{
caption
:
"开始流程"
,
tip
:
"开始流程"
,
},
tbitem13
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem15
:
{
caption
:
"打印"
,
tip
:
"打印"
,
},
},
sf20gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
...
...
app_Web/src/pages/sample/ibizorder-sedit-view2/ibizorder-sedit-view2-base.vue
浏览文件 @
51519cca
<
template
>
<div
class=
"view-container deeditview2 ibizorder-sedit-view2"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizorderseditview2"
></app-studioaction>
<card
class=
'view-card
view-no-toolbar
'
:dis-hover=
"true"
:bordered=
"false"
>
<card
class=
'view-card '
:dis-hover=
"true"
:bordered=
"false"
>
<div
class=
'view-top-messages'
>
</div>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
<template
v-if=
"Object.is(this.selection.id, 'form')"
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem3.visabled"
:disabled=
"toolBarModels.tbitem3.disabled"
class=
' deepskyblueToolBar'
@
click=
"toolbar_click(
{ tag: 'tbitem3' }, $event)">
<i
class=
'fa fa-save'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview2toolbar_toolbar.tbitem3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview2toolbar_toolbar.tbitem3.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem5.visabled"
:disabled=
"toolBarModels.tbitem5.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem5' }, $event)">
<i
class=
'sx-tb-saveandclose'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview2toolbar_toolbar.tbitem5.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview2toolbar_toolbar.tbitem5.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem9_saveandstart.visabled"
:disabled=
"toolBarModels.tbitem9_saveandstart.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem9_saveandstart' }, $event)">
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview2toolbar_toolbar.tbitem9_saveandstart.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview2toolbar_toolbar.tbitem9_saveandstart.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem15.visabled"
:disabled=
"toolBarModels.tbitem15.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem15' }, $event)">
<i
class=
'fa fa-print'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview2toolbar_toolbar.tbitem15.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview2toolbar_toolbar.tbitem15.tip'
)
}}
</div>
</tooltip>
</div>
</
template
>
</div>
<div
class=
"content-container edit-view2"
>
<div
class=
'view-body-messages'
>
...
...
@@ -218,6 +252,7 @@ export default class IBIZOrderSEditView2Base extends Vue {
* @memberof IBIZOrderSEditView2Base
*/
public
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
view_drbar
:
{
name
:
'drbar'
,
type
:
'DRBAR'
},
wflinks
:
[],
...
...
@@ -259,6 +294,25 @@ export default class IBIZOrderSEditView2Base extends Vue {
* @memberof IBIZOrderSEditView2Base
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZOrderSEditView2
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem5
:
{
name
:
'tbitem5'
,
actiontarget
:
'NONE'
,
caption
:
'保存并关闭'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
}
},
tbitem8
:
{
name
:
'tbitem8'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem9_saveandstart
:
{
name
:
'tbitem9_saveandstart'
,
actiontarget
:
'NONE'
,
caption
:
'开始流程'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
'WFSTART'
,
uiaction
:
{
tag
:
'SaveAndStart'
,
target
:
''
}
},
tbitem13
:
{
name
:
'tbitem13'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem15
:
{
name
:
'tbitem15'
,
actiontarget
:
'NONE'
,
caption
:
'打印'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Print'
,
target
:
'SINGLEKEY'
}
},
};
/**
...
...
@@ -581,6 +635,29 @@ export default class IBIZOrderSEditView2Base extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderSEditView2Base
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem5'
))
{
this
.
toolbar_tbitem5_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem9_saveandstart'
))
{
this
.
toolbar_tbitem9_saveandstart_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem15'
))
{
this
.
toolbar_tbitem15_click
(
null
,
''
,
$event2
);
}
}
/**
* form 部件 save 事件
*
...
...
@@ -642,6 +719,228 @@ export default class IBIZOrderSEditView2Base extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem3_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem5_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem9_saveandstart_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem15_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView2Base
*/
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView2Base
*/
public
SaveAndExit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
saveAndExit
instanceof
Function
)
{
xData
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
else
if
(
_this
.
saveAndExit
&&
_this
.
saveAndExit
instanceof
Function
)
{
_this
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView2Base
*/
public
SaveAndStart
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
wfstart
instanceof
Function
))
{
return
;
}
let
localdata
:
any
=
{
processDefinitionKey
:
null
};
xData
.
wfstart
(
args
,
localdata
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
const
{
data
:
_data
}
=
response
;
if
(
window
.
parent
){
window
.
parent
.
postMessage
({
...
_data
},
'*'
);
}
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
}
});
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView2Base
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
/**
* 关闭视图
...
...
app_Web/src/pages/sample/ibizorder-sedit-view2/ibizorder-sedit-view2.less
浏览文件 @
51519cca
...
...
@@ -23,5 +23,20 @@
.ibizorder-sedit-view2{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
app_Web/src/pages/sample/ibizorder-sedit-view3/ibizorder-sedit-view3-base.vue
浏览文件 @
51519cca
<
template
>
<div
class=
"view-container deeditview3 ibizorder-sedit-view3"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizorderseditview3"
></app-studioaction>
<card
class=
'view-card
view-no-toolbar
'
:dis-hover=
"true"
:bordered=
"false"
>
<card
class=
'view-card '
:dis-hover=
"true"
:bordered=
"false"
>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
<template
v-if=
"Object.is(this.selection.id, 'form')"
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem3.visabled"
:disabled=
"toolBarModels.tbitem3.disabled"
class=
' deepskyblueToolBar'
@
click=
"toolbar_click(
{ tag: 'tbitem3' }, $event)">
<i
class=
'fa fa-save'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview3toolbar_toolbar.tbitem3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview3toolbar_toolbar.tbitem3.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem5.visabled"
:disabled=
"toolBarModels.tbitem5.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem5' }, $event)">
<i
class=
'sx-tb-saveandclose'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview3toolbar_toolbar.tbitem5.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview3toolbar_toolbar.tbitem5.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem9_saveandstart.visabled"
:disabled=
"toolBarModels.tbitem9_saveandstart.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem9_saveandstart' }, $event)">
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview3toolbar_toolbar.tbitem9_saveandstart.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview3toolbar_toolbar.tbitem9_saveandstart.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem15.visabled"
:disabled=
"toolBarModels.tbitem15.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem15' }, $event)">
<i
class=
'fa fa-print'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview3toolbar_toolbar.tbitem15.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview3toolbar_toolbar.tbitem15.tip'
)
}}
</div>
</tooltip>
</div>
</
template
>
</div>
<div
class=
'view-top-messages'
>
...
...
@@ -222,6 +256,7 @@ export default class IBIZOrderSEditView3Base extends Vue {
*/
public
containerModel
:
any
=
{
view_drtab
:
{
name
:
'drtab'
,
type
:
'DRTAB'
},
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
wflinks
:
[],
};
...
...
@@ -262,6 +297,25 @@ export default class IBIZOrderSEditView3Base extends Vue {
* @memberof IBIZOrderSEditView3Base
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZOrderSEditView3
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem5
:
{
name
:
'tbitem5'
,
actiontarget
:
'NONE'
,
caption
:
'保存并关闭'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
}
},
tbitem8
:
{
name
:
'tbitem8'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem9_saveandstart
:
{
name
:
'tbitem9_saveandstart'
,
actiontarget
:
'NONE'
,
caption
:
'开始流程'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
'WFSTART'
,
uiaction
:
{
tag
:
'SaveAndStart'
,
target
:
''
}
},
tbitem13
:
{
name
:
'tbitem13'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem15
:
{
name
:
'tbitem15'
,
actiontarget
:
'NONE'
,
caption
:
'打印'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Print'
,
target
:
'SINGLEKEY'
}
},
};
/**
...
...
@@ -596,6 +650,29 @@ export default class IBIZOrderSEditView3Base extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderSEditView3Base
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem5'
))
{
this
.
toolbar_tbitem5_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem9_saveandstart'
))
{
this
.
toolbar_tbitem9_saveandstart_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem15'
))
{
this
.
toolbar_tbitem15_click
(
null
,
''
,
$event2
);
}
}
/**
* form 部件 save 事件
*
...
...
@@ -633,6 +710,228 @@ export default class IBIZOrderSEditView3Base extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem3_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem5_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem9_saveandstart_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem15_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView3Base
*/
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView3Base
*/
public
SaveAndExit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
saveAndExit
instanceof
Function
)
{
xData
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
else
if
(
_this
.
saveAndExit
&&
_this
.
saveAndExit
instanceof
Function
)
{
_this
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView3Base
*/
public
SaveAndStart
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
wfstart
instanceof
Function
))
{
return
;
}
let
localdata
:
any
=
{
processDefinitionKey
:
null
};
xData
.
wfstart
(
args
,
localdata
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
const
{
data
:
_data
}
=
response
;
if
(
window
.
parent
){
window
.
parent
.
postMessage
({
...
_data
},
'*'
);
}
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
}
});
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView3Base
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
/**
* 关闭视图
...
...
app_Web/src/pages/sample/ibizorder-sedit-view3/ibizorder-sedit-view3.less
浏览文件 @
51519cca
...
...
@@ -8,5 +8,20 @@
.ibizorder-sedit-view3{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
app_Web/src/pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4-base.vue
浏览文件 @
51519cca
...
...
@@ -2,12 +2,44 @@
<
template
>
<div
class=
"view-container deeditview4 ibizorder-sedit-view4"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizorderseditview4"
></app-studioaction>
<card
class=
'view-card
view-no-toolbar
'
:disHover=
"true"
:padding=
"0"
:bordered=
"false"
>
<card
class=
'view-card '
:disHover=
"true"
:padding=
"0"
:bordered=
"false"
>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
</div>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem3.visabled"
:disabled=
"toolBarModels.tbitem3.disabled"
class=
' deepskyblueToolBar'
@
click=
"toolbar_click(
{ tag: 'tbitem3' }, $event)">
<i
class=
'fa fa-save'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview4toolbar_toolbar.tbitem3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview4toolbar_toolbar.tbitem3.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem5.visabled"
:disabled=
"toolBarModels.tbitem5.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem5' }, $event)">
<i
class=
'sx-tb-saveandclose'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview4toolbar_toolbar.tbitem5.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview4toolbar_toolbar.tbitem5.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem9_saveandstart.visabled"
:disabled=
"toolBarModels.tbitem9_saveandstart.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem9_saveandstart' }, $event)">
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview4toolbar_toolbar.tbitem9_saveandstart.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview4toolbar_toolbar.tbitem9_saveandstart.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem15.visabled"
:disabled=
"toolBarModels.tbitem15.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'tbitem15' }, $event)">
<i
class=
'fa fa-print'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.seditview4toolbar_toolbar.tbitem15.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.seditview4toolbar_toolbar.tbitem15.tip'
)
}}
</div>
</tooltip>
</div>
<div
class=
'view-top-messages'
>
</div>
<div
class=
"content-container"
>
...
...
@@ -222,6 +254,7 @@ export default class IBIZOrderSEditView4Base extends Vue {
*/
public
containerModel
:
any
=
{
view_drtab
:
{
name
:
'drtab'
,
type
:
'DRTAB'
},
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
wflinks
:
[],
};
...
...
@@ -262,6 +295,25 @@ export default class IBIZOrderSEditView4Base extends Vue {
* @memberof IBIZOrderSEditView4Base
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZOrderSEditView4
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem5
:
{
name
:
'tbitem5'
,
actiontarget
:
'NONE'
,
caption
:
'保存并关闭'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
}
},
tbitem8
:
{
name
:
'tbitem8'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem9_saveandstart
:
{
name
:
'tbitem9_saveandstart'
,
actiontarget
:
'NONE'
,
caption
:
'开始流程'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
'WFSTART'
,
uiaction
:
{
tag
:
'SaveAndStart'
,
target
:
''
}
},
tbitem13
:
{
name
:
'tbitem13'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem15
:
{
name
:
'tbitem15'
,
actiontarget
:
'NONE'
,
caption
:
'打印'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Print'
,
target
:
'SINGLEKEY'
}
},
};
/**
...
...
@@ -596,6 +648,29 @@ export default class IBIZOrderSEditView4Base extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderSEditView4Base
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem5'
))
{
this
.
toolbar_tbitem5_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem9_saveandstart'
))
{
this
.
toolbar_tbitem9_saveandstart_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem15'
))
{
this
.
toolbar_tbitem15_click
(
null
,
''
,
$event2
);
}
}
/**
* form 部件 save 事件
*
...
...
@@ -633,6 +708,228 @@ export default class IBIZOrderSEditView4Base extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem3_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem5_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem9_saveandstart_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem15_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView4Base
*/
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView4Base
*/
public
SaveAndExit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
saveAndExit
instanceof
Function
)
{
xData
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
else
if
(
_this
.
saveAndExit
&&
_this
.
saveAndExit
instanceof
Function
)
{
_this
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView4Base
*/
public
SaveAndStart
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
wfstart
instanceof
Function
))
{
return
;
}
let
localdata
:
any
=
{
processDefinitionKey
:
null
};
xData
.
wfstart
(
args
,
localdata
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
const
{
data
:
_data
}
=
response
;
if
(
window
.
parent
){
window
.
parent
.
postMessage
({
...
_data
},
'*'
);
}
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
}
});
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSEditView4Base
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
/**
* 关闭视图
...
...
app_Web/src/pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.less
浏览文件 @
51519cca
.ibizorder-sedit-view4{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
.view-container.ibizorder-sedit-view4 > .view-card > .ivu-card-body > .content-container {
...
...
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
51519cca
...
...
@@ -65,8 +65,8 @@ export const PageComponents = {
Vue
.
component
(
'ibizbookusr3-calendar-view'
,
()
=>
import
(
'@pages/sample/ibizbookusr3-calendar-view/ibizbookusr3-calendar-view.vue'
));
Vue
.
component
(
'ibizsample0017-grid-view'
,
()
=>
import
(
'@pages/sample/ibizsample0017-grid-view/ibizsample0017-grid-view.vue'
));
Vue
.
component
(
'ibizorder-f8-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-f8-edit-view/ibizorder-f8-edit-view.vue'
));
Vue
.
component
(
'ibizsample0003-f1-tree-exp-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-f1-tree-exp-view/ibizsample0003-f1-tree-exp-view.vue'
));
Vue
.
component
(
'ibizorder-f19-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-f19-edit-view/ibizorder-f19-edit-view.vue'
));
Vue
.
component
(
'ibizsample0003-f1-tree-exp-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-f1-tree-exp-view/ibizsample0003-f1-tree-exp-view.vue'
));
Vue
.
component
(
'ibizsample0017-f10-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsample0017-f10-edit-view/ibizsample0017-f10-edit-view.vue'
));
Vue
.
component
(
'ibizsample0002-pickup-view'
,
()
=>
import
(
'@pages/sample/ibizsample0002-pickup-view/ibizsample0002-pickup-view.vue'
));
Vue
.
component
(
'ibizuniproduct-edit-view'
,
()
=>
import
(
'@pages/sample/ibizuniproduct-edit-view/ibizuniproduct-edit-view.vue'
));
...
...
@@ -93,8 +93,8 @@ export const PageComponents = {
Vue
.
component
(
'ibizorder-f9-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-f9-edit-view/ibizorder-f9-edit-view.vue'
));
Vue
.
component
(
'ibizbookrules-edit-view'
,
()
=>
import
(
'@pages/sample/ibizbookrules-edit-view/ibizbookrules-edit-view.vue'
));
Vue
.
component
(
'ibizorder-detail-f6-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-detail-f6-grid-view/ibizorder-detail-f6-grid-view.vue'
));
Vue
.
component
(
'ibizorder-wfstart-view'
,
()
=>
import
(
'@pages/sample/ibizorder-wfstart-view/ibizorder-wfstart-view.vue'
));
Vue
.
component
(
'ibizsample0003-f4-tree-exp-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-f4-tree-exp-view/ibizsample0003-f4-tree-exp-view.vue'
));
Vue
.
component
(
'ibizorder-wfstart-view'
,
()
=>
import
(
'@pages/sample/ibizorder-wfstart-view/ibizorder-wfstart-view.vue'
));
Vue
.
component
(
'ibizorder-f10-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-f10-edit-view/ibizorder-f10-edit-view.vue'
));
Vue
.
component
(
'ibizsample0003-stree-exp-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-stree-exp-view/ibizsample0003-stree-exp-view.vue'
));
Vue
.
component
(
'ibizorder-sedit-view4'
,
()
=>
import
(
'@pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
51519cca
...
...
@@ -991,32 +991,32 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/sample/ibizorder-f8-edit-view/ibizorder-f8-edit-view.vue'
),
},
{
path
:
'ibiz
sample0003s/:ibizsample0003?/f1treeexpview/:f1treeexp
view?'
,
path
:
'ibiz
orders/:ibizorder?/f19editview/:f19edit
view?'
,
meta
:
{
caption
:
'entities.ibiz
sample0003.views.f1treeexp
view.caption'
,
caption
:
'entities.ibiz
order.views.f19edit
view.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibiz
sample0003s'
,
parameterName
:
'ibizsample0003
'
},
{
pathName
:
'f1
treeexpview'
,
parameterName
:
'f1treeexp
view'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'f1
9editview'
,
parameterName
:
'f19edit
view'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibiz
sample0003-f1-tree-exp-view/ibizsample0003-f1-tree-exp
-view.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibiz
order-f19-edit-view/ibizorder-f19-edit
-view.vue'
),
},
{
path
:
'ibiz
orders/:ibizorder?/f19editview/:f19edit
view?'
,
path
:
'ibiz
sample0003s/:ibizsample0003?/f1treeexpview/:f1treeexp
view?'
,
meta
:
{
caption
:
'entities.ibiz
order.views.f19edit
view.caption'
,
caption
:
'entities.ibiz
sample0003.views.f1treeexp
view.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'f1
9editview'
,
parameterName
:
'f19edit
view'
},
{
pathName
:
'ibiz
sample0003s'
,
parameterName
:
'ibizsample0003
'
},
{
pathName
:
'f1
treeexpview'
,
parameterName
:
'f1treeexp
view'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibiz
order-f19-edit-view/ibizorder-f19-edit
-view.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibiz
sample0003-f1-tree-exp-view/ibizsample0003-f1-tree-exp
-view.vue'
),
},
{
path
:
'ibizsample0017s/:ibizsample0017?/f10editview/:f10editview?'
,
...
...
@@ -1398,32 +1398,32 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/sample/ibizorder-detail-f6-grid-view/ibizorder-detail-f6-grid-view.vue'
),
},
{
path
:
'ibiz
orders/:ibizorder?/wfstartview/:wfstart
view?'
,
path
:
'ibiz
sample0003s/:ibizsample0003?/f4treeexpview/:f4treeexp
view?'
,
meta
:
{
caption
:
'entities.ibiz
order.views.wfstart
view.caption'
,
caption
:
'entities.ibiz
sample0003.views.f4treeexp
view.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
wfstartview'
,
parameterName
:
'wfstart
view'
},
{
pathName
:
'ibiz
sample0003s'
,
parameterName
:
'ibizsample0003
'
},
{
pathName
:
'
f4treeexpview'
,
parameterName
:
'f4treeexp
view'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibiz
order-wfstart-view/ibizorder-wfstart
-view.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibiz
sample0003-f4-tree-exp-view/ibizsample0003-f4-tree-exp
-view.vue'
),
},
{
path
:
'ibiz
sample0003s/:ibizsample0003?/f4treeexpview/:f4treeexp
view?'
,
path
:
'ibiz
orders/:ibizorder?/wfstartview/:wfstart
view?'
,
meta
:
{
caption
:
'entities.ibiz
sample0003.views.f4treeexp
view.caption'
,
caption
:
'entities.ibiz
order.views.wfstart
view.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibiz
sample0003s'
,
parameterName
:
'ibizsample0003
'
},
{
pathName
:
'
f4treeexpview'
,
parameterName
:
'f4treeexp
view'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
wfstartview'
,
parameterName
:
'wfstart
view'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibiz
sample0003-f4-tree-exp-view/ibizsample0003-f4-tree-exp
-view.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibiz
order-wfstart-view/ibizorder-wfstart
-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/f10editview/:f10editview?'
,
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
51519cca
...
...
@@ -431,6 +431,7 @@ export const viewstate: any = {
refviews
:
[
'f90fa878f2ed0eb4e27353786b10c3f4'
,
'f7ce60a7707de1ef9f926b3f9d5d6954'
,
'2640aa1ca02649c8831b43023d449945'
,
],
},
{
...
...
@@ -705,6 +706,7 @@ export const viewstate: any = {
refviews
:
[
'f90fa878f2ed0eb4e27353786b10c3f4'
,
'f7ce60a7707de1ef9f926b3f9d5d6954'
,
'2640aa1ca02649c8831b43023d449945'
,
],
},
{
...
...
@@ -1229,6 +1231,7 @@ export const viewstate: any = {
refviews
:
[
'f90fa878f2ed0eb4e27353786b10c3f4'
,
'f7ce60a7707de1ef9f926b3f9d5d6954'
,
'2640aa1ca02649c8831b43023d449945'
,
],
},
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录