Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
35d2b4f3
提交
35d2b4f3
编写于
11月 08, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
46c4f556
变更
19
隐藏空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
21 行增加
和
1154 行删除
+21
-1154
ibizbookoption-view-layout-base.vue
...ookoption-view-layout/ibizbookoption-view-layout-base.vue
+1
-1
index-base.vue
app_Web/src/pages/sample/index/index-base.vue
+1
-1
app-panel-view-panel-base.vue
...ts/app/app-panel-view-panel/app-panel-view-panel-base.vue
+0
-117
default-searchform-base.vue
...zappeditor/default-searchform/default-searchform-base.vue
+2
-2
auto1-panel-base.vue
...Web/src/widgets/ibizbook/auto1-panel/auto1-panel-base.vue
+0
-125
default-searchform-base.vue
...s/ibizbook/default-searchform/default-searchform-base.vue
+2
-2
has-panel-kan-ban-panel-base.vue
.../has-panel-kan-ban-panel/has-panel-kan-ban-panel-base.vue
+0
-125
has-panel-list-panel-base.vue
...izbook/has-panel-list-panel/has-panel-list-panel-base.vue
+0
-125
listpanel-panel-base.vue
...widgets/ibizbook/listpanel-panel/listpanel-panel-base.vue
+0
-131
timelineitemlayoutpanel-panel-base.vue
...mlayoutpanel-panel/timelineitemlayoutpanel-panel-base.vue
+0
-119
usr-panel-base.vue
app_Web/src/widgets/ibizbook/usr-panel/usr-panel-base.vue
+0
-119
usr4-panel-base.vue
app_Web/src/widgets/ibizbook/usr4-panel/usr4-panel-base.vue
+0
-125
usr5-panel-base.vue
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel-base.vue
+0
-119
main-grid-base.vue
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
+7
-21
main-grid-model.ts
app_Web/src/widgets/ibizorder/main-grid/main-grid-model.ts
+0
-15
IBIZBOOKOptionView_layout.json
...PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKOptionView_layout.json
+1
-4
index.json
...atic/remotemodel/PSSYSAPPS/Web/PSAPPINDEXVIEWS/index.json
+3
-1
PSSYSAPP.json
.../resources/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.json
+3
-1
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+1
-1
未找到文件。
app_Web/src/pages/sample/ibizbookoption-view-layout/ibizbookoption-view-layout-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -309,7 +309,7 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
*/
public
layoutItems
:
any
=
{
form
:{
name
:
'form'
,
type
:
'VIEWLAYOUT'
,
caption
:
'表单'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CTRLPOS'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
'CENTER'
,
layoutHeight
:
0
,
heightMode
:
'FULL'
,
layoutWidth
:
0
,
widthMode
:
'FULL'
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_scroll_main1'
,
panel
:
this
},
container_scroll_main1
:{
name
:
'container_scroll_main1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'面板容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'BORDER'
,
layoutPos
:
'CENTER'
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
100
,
widthMode
:
'PX
'
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_scroll1'
,
panel
:
this
,
details
:[
'form'
]
,
dataRegionType
:
'INHERIT'
},
container_scroll_main1
:{
name
:
'container_scroll_main1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'面板容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'BORDER'
,
layoutPos
:
'CENTER'
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
'
'
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_scroll1'
,
panel
:
this
,
details
:[
'form'
]
,
dataRegionType
:
'INHERIT'
},
button_calluilogic2
:{
name
:
'button_calluilogic2'
,
type
:
'VIEWLAYOUT'
,
caption
:
'确认'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'BUTTON'
,
itemStyle
:
'PRIMARY'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
'FULL'
,
layoutWidth
:
60
,
widthMode
:
'PX'
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
'OUTERSMALL'
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
buttonStyle
:
'PRIMARY'
,
borderStyle
:
''
,
iconAlign
:
''
,
predefinedType
:
'DATA_SAVECHANGES'
,
renderMode
:
''
,
},
button_calluilogic1
:{
name
:
'button_calluilogic1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'取消'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'BUTTON'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
'FULL'
,
layoutWidth
:
60
,
widthMode
:
'PX'
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
buttonStyle
:
'DEFAULT'
,
borderStyle
:
''
,
iconAlign
:
''
,
predefinedType
:
'DATA_CANCELCHANGES'
,
renderMode
:
''
,
},
container1
:{
name
:
'container1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'FLEX'
,
layoutPos
:
'CENTER'
,
layoutHeight
:
0
,
heightMode
:
'FULL'
,
layoutWidth
:
0
,
widthMode
:
'FULL'
,
spacingBottom
:
'INNERMEDIUM'
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
'INNERMEDIUM'
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
'flex-end'
,
dir
:
'row'
,
vAlign
:
'center'
},
parentName
:
'container_scroll_bottom1'
,
panel
:
this
,
details
:[
'button_calluilogic2'
,
'button_calluilogic1'
]
,
dataRegionType
:
'INHERIT'
},
...
...
app_Web/src/pages/sample/index/index-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -297,7 +297,7 @@ export default class IndexBase extends Vue {
* @memberof IndexBase
*/
public
layoutItems
:
any
=
{
nav_pos1
:{
name
:
'nav_pos1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'导航区占位'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'RAWITEM'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
'CENTER'
,
layoutHeight
:
0
,
heightMode
:
'
'
,
layoutWidth
:
0
,
widthMode
:
'
'
,
spacingBottom
:
''
,
spacingLeft
:
'INNERMEDIUM'
,
spacingRight
:
'INNERMEDIUM'
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_scroll_main2'
,
panel
:
this
,
viewType
:
'APPINDEXVIEW'
,
predefinedType
:
'NAV_POS'
,
contentType
:
''
,
contentStyle
:
''
,
rawContent
:
''
,
htmlContent
:
''
,
},
nav_pos1
:{
name
:
'nav_pos1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'导航区占位'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'RAWITEM'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
'CENTER'
,
layoutHeight
:
0
,
heightMode
:
'
FULL'
,
layoutWidth
:
0
,
widthMode
:
'FULL
'
,
spacingBottom
:
''
,
spacingLeft
:
'INNERMEDIUM'
,
spacingRight
:
'INNERMEDIUM'
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_scroll_main2'
,
panel
:
this
,
viewType
:
'APPINDEXVIEW'
,
predefinedType
:
'NAV_POS'
,
contentType
:
''
,
contentStyle
:
''
,
rawContent
:
''
,
htmlContent
:
''
,
},
container_scroll_main2
:{
name
:
'container_scroll_main2'
,
type
:
'VIEWLAYOUT'
,
caption
:
'面板容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'BORDER'
,
layoutPos
:
'CENTER'
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
'INNERMEDIUM'
,
spacingLeft
:
'INNERMEDIUM'
,
spacingRight
:
'INNERMEDIUM'
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_scroll2'
,
panel
:
this
,
details
:[
'nav_pos1'
]
,
dataRegionType
:
'INHERIT'
},
nav_tabs2
:{
name
:
'nav_tabs2'
,
type
:
'VIEWLAYOUT'
,
caption
:
'标签页导航栏'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'RAWITEM'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
'CENTER'
,
layoutHeight
:
0
,
heightMode
:
'FULL'
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_scroll_header2'
,
panel
:
this
,
viewType
:
'APPINDEXVIEW'
,
predefinedType
:
'NAV_TABS'
,
contentType
:
''
,
contentStyle
:
''
,
rawContent
:
''
,
htmlContent
:
''
,
},
container_scroll_header2
:{
name
:
'container_scroll_header2'
,
type
:
'VIEWLAYOUT'
,
caption
:
'面板容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'BORDER'
,
layoutPos
:
'NORTH'
,
layoutHeight
:
56
,
heightMode
:
'PX'
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
'INNERSMALL'
,
spacingLeft
:
'INNERMEDIUM'
,
spacingRight
:
''
,
spacingTop
:
'INNERSMALL'
,
hAlignSelf
:
'LEFT'
,
vAlignSelf
:
'MIDDLE'
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_scroll2'
,
panel
:
this
,
details
:[
'nav_tabs2'
]
,
dataRegionType
:
'INHERIT'
},
...
...
app_Web/src/widgets/app/app-panel-view-panel/app-panel-view-panel-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -213,30 +213,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
*/
public
appUIService
:
UIService
=
new
UIService
();
/**
* 视图布局是否加载
*
* @public
* @memberof PanelBase
*/
public
isLayoutLoadding
:
boolean
=
false
;
/**
* 视图布局数据
*
* @public
* @memberof PanelBase
*/
public
layoutData
:
any
=
{};
/**
* 视图布局面板模型对象
*
* @public
* @memberof PanelBase
*/
public
layoutModelDetails
:
any
=
{};
/**
* 视图布局顶级成员名称
*
...
...
@@ -245,68 +221,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
*/
public
rootLayoutDetailNames
:
string
[]
=
[
];
/**
* 初始化布局
*
* @public
* @memberof PanelBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof PanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 视图布局面板项模型对象
...
...
@@ -498,7 +412,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @memberof AppPanelViewBase
*/
public
panelLogic
(
name
:
string
):
void
{
}
/**
...
...
@@ -509,36 +422,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
...
...
app_Web/src/widgets/ibizappeditor/default-searchform/default-searchform-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -598,7 +598,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -634,7 +634,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/auto1-panel/auto1-panel-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -247,30 +247,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 视图布局是否加载
*
* @public
* @memberof Item1layoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
false
;
/**
* 视图布局数据
*
* @public
* @memberof Item1layoutpanelBase
*/
public
layoutData
:
any
=
{};
/**
* 视图布局面板模型对象
*
* @public
* @memberof Item1layoutpanelBase
*/
public
layoutModelDetails
:
any
=
{};
/**
* 视图布局顶级成员名称
*
...
...
@@ -279,68 +255,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'container1'
];
/**
* 初始化布局
*
* @public
* @memberof Item1layoutpanelBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof Item1layoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 视图布局面板项模型对象
...
...
@@ -349,10 +263,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @memberof Item1layoutpanelBase
*/
public
layoutItems
:
any
=
{
field1
:{
name
:
'field1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'图书名'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'title'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
field2
:{
name
:
'field2'
,
type
:
'VIEWLAYOUT'
,
caption
:
'借出日期'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'start'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
field3
:{
name
:
'field3'
,
type
:
'VIEWLAYOUT'
,
caption
:
'归还日期'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'end'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
container1
:{
name
:
'container1'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'TABLE_24COL'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[
'field1'
,
'field2'
,
'field3'
]
,
dataRegionType
:
'INHERIT'
}
};
/**
...
...
@@ -548,11 +458,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @memberof Auto1Base
*/
public
panelLogic
(
name
:
string
):
void
{
}
/**
...
...
@@ -563,36 +468,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
...
...
app_Web/src/widgets/ibizbook/default-searchform/default-searchform-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
3
GridView'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
9
GridView'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
3
GridView'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
9
GridView'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/has-panel-kan-ban-panel/has-panel-kan-ban-panel-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -247,30 +247,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 视图布局是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
false
;
/**
* 视图布局数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
layoutData
:
any
=
{};
/**
* 视图布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
layoutModelDetails
:
any
=
{};
/**
* 视图布局顶级成员名称
*
...
...
@@ -279,68 +255,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'container1'
];
/**
* 初始化布局
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 视图布局面板项模型对象
...
...
@@ -349,10 +263,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof ItemlayoutpanelBase
*/
public
layoutItems
:
any
=
{
srfmajortext
:{
name
:
'srfmajortext'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
isShowCaption
:
false
,
sysCss
:
'kanban-title'
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'srfmajortext'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
author
:{
name
:
'author'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
isShowCaption
:
false
,
sysCss
:
'kanban-author'
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'author'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
srfdescription
:{
name
:
'srfdescription'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
isShowCaption
:
false
,
sysCss
:
'kanban-description'
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'srfdescription'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
container1
:{
name
:
'container1'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
'kanban-panel'
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'TABLE_24COL'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
400
,
widthMode
:
'PX'
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[
'srfmajortext'
,
'author'
,
'srfdescription'
]
,
dataRegionType
:
'INHERIT'
}
};
/**
...
...
@@ -548,11 +458,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof HasPanelKanBanBase
*/
public
panelLogic
(
name
:
string
):
void
{
}
/**
...
...
@@ -563,36 +468,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
...
...
app_Web/src/widgets/ibizbook/has-panel-list-panel/has-panel-list-panel-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -247,30 +247,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 视图布局是否加载
*
* @public
* @memberof List_itempanelBase
*/
public
isLayoutLoadding
:
boolean
=
false
;
/**
* 视图布局数据
*
* @public
* @memberof List_itempanelBase
*/
public
layoutData
:
any
=
{};
/**
* 视图布局面板模型对象
*
* @public
* @memberof List_itempanelBase
*/
public
layoutModelDetails
:
any
=
{};
/**
* 视图布局顶级成员名称
*
...
...
@@ -279,68 +255,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'container1'
];
/**
* 初始化布局
*
* @public
* @memberof List_itempanelBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof List_itempanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 视图布局面板项模型对象
...
...
@@ -349,10 +263,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public
layoutItems
:
any
=
{
bookname
:{
name
:
'bookname'
,
type
:
'VIEWLAYOUT'
,
caption
:
'图书名称'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'IBIZBOOKNAME'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
author
:{
name
:
'author'
,
type
:
'VIEWLAYOUT'
,
caption
:
'图书作者'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'AUTHOR'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
press
:{
name
:
'press'
,
type
:
'VIEWLAYOUT'
,
caption
:
'图书出版社'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'PRESS'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
container1
:{
name
:
'container1'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'TABLE_24COL'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[
'bookname'
,
'author'
,
'press'
]
,
dataRegionType
:
'INHERIT'
}
};
/**
...
...
@@ -548,11 +458,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @memberof HasPanelListBase
*/
public
panelLogic
(
name
:
string
):
void
{
}
/**
...
...
@@ -563,36 +468,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
...
...
app_Web/src/widgets/ibizbook/listpanel-panel/listpanel-panel-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -256,30 +256,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 视图布局是否加载
*
* @public
* @memberof List_itempanelBase
*/
public
isLayoutLoadding
:
boolean
=
false
;
/**
* 视图布局数据
*
* @public
* @memberof List_itempanelBase
*/
public
layoutData
:
any
=
{};
/**
* 视图布局面板模型对象
*
* @public
* @memberof List_itempanelBase
*/
public
layoutModelDetails
:
any
=
{};
/**
* 视图布局顶级成员名称
*
...
...
@@ -288,68 +264,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'container1'
];
/**
* 初始化布局
*
* @public
* @memberof List_itempanelBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof List_itempanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 视图布局面板项模型对象
...
...
@@ -358,13 +272,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public
layoutItems
:
any
=
{
static_label1
:{
name
:
'static_label1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'标签'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'RAWITEM'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
viewType
:
'DELISTVIEW'
,
predefinedType
:
'STATIC_LABEL'
,
contentType
:
'RAW'
,
contentStyle
:
''
,
rawContent
:
'标签'
,
htmlContent
:
''
,
renderMode
:
'PARAGRAPH'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
static_text1
:{
name
:
'static_text1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'文本'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'RAWITEM'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
viewType
:
'DELISTVIEW'
,
predefinedType
:
'STATIC_TEXT'
,
contentType
:
'RAW'
,
contentStyle
:
''
,
rawContent
:
'文本内容'
,
htmlContent
:
''
,
renderMode
:
'TEXT'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
field_text_dynamic
:{
name
:
'field_text_dynamic'
,
type
:
'VIEWLAYOUT'
,
caption
:
'文本(动态)'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
'FIELD_TEXT_DYNAMIC'
,
renderMode
:
'TEXT_DYNAMIC'
,
dataItemName
:
'author'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
field_textbox
:{
name
:
'field_textbox'
,
type
:
'VIEWLAYOUT'
,
caption
:
'文本框'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
'FIELD_TEXTBOX'
,
dataItemName
:
'booknumber'
,
},
button_link1
:{
name
:
'button_link1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'页面链接'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'BUTTON'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
buttonStyle
:
'DEFAULT'
,
borderStyle
:
''
,
iconAlign
:
''
,
renderMode
:
'LINK'
,
},
button_calluilogic1
:{
name
:
'button_calluilogic1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'按钮'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'BUTTON'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
buttonStyle
:
'DEFAULT'
,
borderStyle
:
''
,
iconAlign
:
''
,
renderMode
:
''
,
},
container1
:{
name
:
'container1'
,
type
:
'VIEWLAYOUT'
,
caption
:
'容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'FLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[
'static_label1'
,
'static_text1'
,
'field_text_dynamic'
,
'field_textbox'
,
'button_link1'
,
'button_calluilogic1'
]
,
dataRegionType
:
'INHERIT'
}
};
/**
...
...
@@ -556,14 +463,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @memberof ListpanelBase
*/
public
panelLogic
(
name
:
string
):
void
{
}
/**
...
...
@@ -574,36 +473,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
...
...
app_Web/src/widgets/ibizbook/timelineitemlayoutpanel-panel/timelineitemlayoutpanel-panel-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -238,30 +238,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 视图布局是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
false
;
/**
* 视图布局数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
layoutData
:
any
=
{};
/**
* 视图布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
layoutModelDetails
:
any
=
{};
/**
* 视图布局顶级成员名称
*
...
...
@@ -270,68 +246,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'container1'
];
/**
* 初始化布局
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 视图布局面板项模型对象
...
...
@@ -340,7 +254,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @memberof ItemlayoutpanelBase
*/
public
layoutItems
:
any
=
{
container1
:{
name
:
'container1'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'TABLE_24COL'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[]
,
dataRegionType
:
'INHERIT'
}
};
/**
...
...
@@ -524,8 +437,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @memberof TIMELINEITEMLAYOUTPANELBase
*/
public
panelLogic
(
name
:
string
):
void
{
}
/**
...
...
@@ -536,36 +447,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
...
...
app_Web/src/widgets/ibizbook/usr-panel/usr-panel-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -238,30 +238,6 @@ export default class UsrBase extends Vue implements ControlInterface {
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 视图布局是否加载
*
* @public
* @memberof List_itempanelBase
*/
public
isLayoutLoadding
:
boolean
=
false
;
/**
* 视图布局数据
*
* @public
* @memberof List_itempanelBase
*/
public
layoutData
:
any
=
{};
/**
* 视图布局面板模型对象
*
* @public
* @memberof List_itempanelBase
*/
public
layoutModelDetails
:
any
=
{};
/**
* 视图布局顶级成员名称
*
...
...
@@ -270,68 +246,6 @@ export default class UsrBase extends Vue implements ControlInterface {
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'container1'
];
/**
* 初始化布局
*
* @public
* @memberof List_itempanelBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof List_itempanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 视图布局面板项模型对象
...
...
@@ -340,7 +254,6 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public
layoutItems
:
any
=
{
container1
:{
name
:
'container1'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'TABLE_24COL'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[]
,
dataRegionType
:
'INHERIT'
}
};
/**
...
...
@@ -524,8 +437,6 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof UsrBase
*/
public
panelLogic
(
name
:
string
):
void
{
}
/**
...
...
@@ -536,36 +447,6 @@ export default class UsrBase extends Vue implements ControlInterface {
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
...
...
app_Web/src/widgets/ibizbook/usr4-panel/usr4-panel-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -247,30 +247,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 视图布局是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
false
;
/**
* 视图布局数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
layoutData
:
any
=
{};
/**
* 视图布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
layoutModelDetails
:
any
=
{};
/**
* 视图布局顶级成员名称
*
...
...
@@ -279,68 +255,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'container1'
];
/**
* 初始化布局
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 视图布局面板项模型对象
...
...
@@ -349,10 +263,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase
*/
public
layoutItems
:
any
=
{
author
:{
name
:
'author'
,
type
:
'VIEWLAYOUT'
,
caption
:
'作者'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'author'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
press
:{
name
:
'press'
,
type
:
'VIEWLAYOUT'
,
caption
:
'出版社'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'press'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
bookname
:{
name
:
'bookname'
,
type
:
'VIEWLAYOUT'
,
caption
:
'图书名'
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'FIELD'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
,
fieldState
:
'0'
,
predefinedType
:
''
,
renderMode
:
''
,
dataItemName
:
'IBIZBOOKNAME'
,
wrapMode
:
''
,
vAlign
:
''
,
hAlign
:
''
,
},
container1
:{
name
:
'container1'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'TABLE_24COL'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[
'author'
,
'press'
,
'bookname'
]
,
dataRegionType
:
'INHERIT'
}
};
/**
...
...
@@ -548,11 +458,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof Usr4Base
*/
public
panelLogic
(
name
:
string
):
void
{
}
/**
...
...
@@ -563,36 +468,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
...
...
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -238,30 +238,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 视图布局是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
false
;
/**
* 视图布局数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
layoutData
:
any
=
{};
/**
* 视图布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
layoutModelDetails
:
any
=
{};
/**
* 视图布局顶级成员名称
*
...
...
@@ -270,68 +246,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'container1'
];
/**
* 初始化布局
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 视图布局面板项模型对象
...
...
@@ -340,7 +254,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase
*/
public
layoutItems
:
any
=
{
container1
:{
name
:
'container1'
,
type
:
'VIEWLAYOUT'
,
caption
:
''
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'TABLE_24COL'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[]
,
dataRegionType
:
'INHERIT'
}
};
/**
...
...
@@ -524,8 +437,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @memberof Usr5Base
*/
public
panelLogic
(
name
:
string
):
void
{
}
/**
...
...
@@ -536,36 +447,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
...
...
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
浏览文件 @
35d2b4f3
...
...
@@ -299,7 +299,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrder
SF1
GridViewBase
* @memberof IBIZOrder
Pickup
GridViewBase
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
...
...
@@ -421,20 +421,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
this
.
selections
[
0
];
}
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@
Prop
()
public
newdata
:
any
;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@
Prop
()
public
opendata
:
any
;
/**
* 是否嵌入关系界面
...
...
@@ -967,7 +953,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{},
pageReset
:
boolean
=
false
):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
}
if
(
pageReset
){
...
...
@@ -1062,7 +1048,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
}
let
_datas
:
any
[]
=
[];
...
...
@@ -1168,7 +1154,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
addBatch
(
arg
:
any
=
{}):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
}
if
(
!
arg
){
...
...
@@ -2085,7 +2071,7 @@ export default class MainBase extends Vue implements ControlInterface {
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
...
...
@@ -2093,7 +2079,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizorder
){
...
...
@@ -2160,7 +2146,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
newRow
(
args
:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
let
_this
=
this
;
...
...
app_Web/src/widgets/ibizorder/main-grid/main-grid-model.ts
浏览文件 @
35d2b4f3
...
...
@@ -104,21 +104,6 @@ export default class MainModel {
prop
:
'n_ibizordername_like'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'n_orderstate_eq'
,
prop
:
'n_orderstate_eq'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'n_ordertime_gt'
,
prop
:
'n_ordertime_gt'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'n_ordertime_lt'
,
prop
:
'n_ordertime_lt'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'size'
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKOptionView_layout.json
浏览文件 @
35d2b4f3
...
...
@@ -1121,7 +1121,6 @@
},
"getPSPanelItems"
:
[
{
"caption"
:
"面板容器"
,
"contentWidth"
:
100.0
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"name"
:
"container_scroll_main1"
,
...
...
@@ -1130,9 +1129,7 @@
},
"getPSLayoutPos"
:
{
"layout"
:
"BORDER"
,
"layoutPos"
:
"CENTER"
,
"width"
:
100
,
"widthMode"
:
"PX"
"layoutPos"
:
"CENTER"
},
"getPSPanelItems"
:
[
{
"caption"
:
"表单"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPINDEXVIEWS/index.json
浏览文件 @
35d2b4f3
...
...
@@ -88,10 +88,12 @@
"itemType"
:
"RAWITEM"
,
"name"
:
"nav_pos1"
,
"getPSLayoutPos"
:
{
"heightMode"
:
"FULL"
,
"layout"
:
"BORDER"
,
"layoutPos"
:
"CENTER"
,
"spacingLeft"
:
"INNERMEDIUM"
,
"spacingRight"
:
"INNERMEDIUM"
"spacingRight"
:
"INNERMEDIUM"
,
"widthMode"
:
"FULL"
},
"getPSRawItem"
:
{
"name"
:
"nav_pos1"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
35d2b4f3
...
...
@@ -15040,10 +15040,12 @@
"itemType"
:
"RAWITEM"
,
"name"
:
"nav_pos1"
,
"getPSLayoutPos"
:
{
"heightMode"
:
"FULL"
,
"layout"
:
"BORDER"
,
"layoutPos"
:
"CENTER"
,
"spacingLeft"
:
"INNERMEDIUM"
,
"spacingRight"
:
"INNERMEDIUM"
"spacingRight"
:
"INNERMEDIUM"
,
"widthMode"
:
"FULL"
},
"getPSRawItem"
:
{
"name"
:
"nav_pos1"
,
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
35d2b4f3
...
...
@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-47
2
-7"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-47
7
-7"
>
<createTable
tableName=
"T_IBIZBOOK"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录