Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
6569c5d9
提交
6569c5d9
编写于
2年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
c0c707a5
变更
70
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
70 个修改的文件
包含
881 行增加
和
755 行删除
+881
-755
panel-container.ts
app_Web/src/model/panel-detail/panel-container.ts
+5
-2
panel-detail.ts
app_Web/src/model/panel-detail/panel-detail.ts
+21
-19
ibizbookcustom-view-layout-base.vue
...ookcustom-view-layout/ibizbookcustom-view-layout-base.vue
+9
-11
ibizbookdashboard-view-layout-base.vue
...hboard-view-layout/ibizbookdashboard-view-layout-base.vue
+9
-11
ibizbookform-load-custom-view-base.vue
...m-load-custom-view/ibizbookform-load-custom-view-base.vue
+9
-11
ibizbookgrid-load-custom-view-base.vue
...d-load-custom-view/ibizbookgrid-load-custom-view-base.vue
+9
-11
ibizbookinter-func-edit-view-layout-base.vue
...-view-layout/ibizbookinter-func-edit-view-layout-base.vue
+9
-11
ibizbookinter-func-kan-ban-view-layout-base.vue
...ew-layout/ibizbookinter-func-kan-ban-view-layout-base.vue
+9
-11
ibizbookoption-view-layout-base.vue
...ookoption-view-layout/ibizbookoption-view-layout-base.vue
+9
-11
ibizbooktest-clcalendar-view-base.vue
...est-clcalendar-view/ibizbooktest-clcalendar-view-base.vue
+9
-11
ibizbooktest-cldata-view-base.vue
...bizbooktest-cldata-view/ibizbooktest-cldata-view-base.vue
+9
-11
ibizbooktest-cltree-view-base.vue
...bizbooktest-cltree-view/ibizbooktest-cltree-view-base.vue
+9
-11
ibizbooktest-logic-custom-view-base.vue
...logic-custom-view/ibizbooktest-logic-custom-view-base.vue
+9
-11
ibizbookusr1110030546-custom-view-base.vue
...46-custom-view/ibizbookusr1110030546-custom-view-base.vue
+9
-11
ibizbookusr2-custom-view-base.vue
...bizbookusr2-custom-view/ibizbookusr2-custom-view-base.vue
+23
-37
ibizbookusr2-edit-view-layout-base.vue
...2-edit-view-layout/ibizbookusr2-edit-view-layout-base.vue
+9
-11
ibizbookusr2-medit-view9-layout-base.vue
...dit-view9-layout/ibizbookusr2-medit-view9-layout-base.vue
+9
-11
ibizbookusr4-list-view-layout-base.vue
...4-list-view-layout/ibizbookusr4-list-view-layout-base.vue
+9
-11
ibizbookwizard-view-layout-base.vue
...ookwizard-view-layout/ibizbookwizard-view-layout-base.vue
+9
-11
ibizcustom-custom-edit-view-base.vue
...tom-custom-edit-view/ibizcustom-custom-edit-view-base.vue
+9
-11
ibizcustom-custom-grid-view-base.vue
...tom-custom-grid-view/ibizcustom-custom-grid-view-base.vue
+9
-11
ibizcustomer-media-test-edit-view-base.vue
...test-edit-view/ibizcustomer-media-test-edit-view-base.vue
+9
-11
ibizcustomer-mpickup-view-layout-base.vue
...kup-view-layout/ibizcustomer-mpickup-view-layout-base.vue
+9
-11
ibizcustomer-pickup-view-layout-base.vue
...ckup-view-layout/ibizcustomer-pickup-view-layout-base.vue
+9
-11
ibizcustomer-usr2-mpickup-view-layout-base.vue
...iew-layout/ibizcustomer-usr2-mpickup-view-layout-base.vue
+9
-11
ibizcustomer-usr2-pickup-view-layout-base.vue
...view-layout/ibizcustomer-usr2-pickup-view-layout-base.vue
+9
-11
ibizcustomer-usr3-edit-view-base.vue
...tomer-usr3-edit-view/ibizcustomer-usr3-edit-view-base.vue
+9
-11
ibizorder-calendar-exp-view-layout-base.vue
...p-view-layout/ibizorder-calendar-exp-view-layout-base.vue
+9
-11
ibizorder-data-view-exp-view-layout-base.vue
...-view-layout/ibizorder-data-view-exp-view-layout-base.vue
+9
-11
ibizorder-gantt-view-layout-base.vue
...er-gantt-view-layout/ibizorder-gantt-view-layout-base.vue
+9
-11
ibizorder-list-exp-view-layout-base.vue
...t-exp-view-layout/ibizorder-list-exp-view-layout-base.vue
+9
-11
ibizorder-sedit-view2-layout-base.vue
...-sedit-view2-layout/ibizorder-sedit-view2-layout-base.vue
+9
-11
ibizorder-sedit-view3-layout-base.vue
...-sedit-view3-layout/ibizorder-sedit-view3-layout-base.vue
+9
-11
ibizorder-sedit-view4-layout-base.vue
...-sedit-view4-layout/ibizorder-sedit-view4-layout-base.vue
+9
-11
ibizorder-test-clchart-view-base.vue
...er-test-clchart-view/ibizorder-test-clchart-view-base.vue
+9
-11
ibizorder-test-custom-layout-panel-grid-exp-view-base.vue
...ibizorder-test-custom-layout-panel-grid-exp-view-base.vue
+9
-11
ibizorder-tree-exp-view-layout-base.vue
...e-exp-view-layout/ibizorder-tree-exp-view-layout-base.vue
+9
-11
ibizorder-tree-grid-ex-view-layout-base.vue
...x-view-layout/ibizorder-tree-grid-ex-view-layout-base.vue
+9
-11
ibizorder-usr2-grid-view-base.vue
...bizorder-usr2-grid-view/ibizorder-usr2-grid-view-base.vue
+9
-11
ibizsample0003-stab-exp-view-layout-base.vue
...-view-layout/ibizsample0003-stab-exp-view-layout-base.vue
+9
-11
ibizsample0021-wfdyna-action-view-layout-base.vue
...-layout/ibizsample0021-wfdyna-action-view-layout-base.vue
+9
-11
ibizsample0021-wfdyna-exp-grid-view-layout-base.vue
...ayout/ibizsample0021-wfdyna-exp-grid-view-layout-base.vue
+9
-11
index-base.vue
app_Web/src/pages/sample/index/index-base.vue
+9
-11
app-index-view-base.vue
.../src/pages/ungroup/app-index-view/app-index-view-base.vue
+18
-28
app-login-view-base.vue
.../src/pages/ungroup/app-login-view/app-login-view-base.vue
+9
-11
app-panel-view-panel-base.vue
...ts/app/app-panel-view-panel/app-panel-view-panel-base.vue
+11
-13
ctrl-chart-chart-base.vue
...ts/ibizappctrl/ctrl-chart-chart/ctrl-chart-chart-base.vue
+29
-6
editor-chart-chart-base.vue
...zappeditor/editor-chart-chart/editor-chart-chart-base.vue
+29
-6
extend-editor-chart-chart-base.vue
...end-editor-chart-chart/extend-editor-chart-chart-base.vue
+29
-6
view-chart-chart-base.vue
...ts/ibizappview/view-chart-chart/view-chart-chart-base.vue
+29
-6
auto1-panel-base.vue
...Web/src/widgets/ibizbook/auto1-panel/auto1-panel-base.vue
+11
-13
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
+11
-13
has-panel-list-panel-base.vue
...izbook/has-panel-list-panel/has-panel-list-panel-base.vue
+11
-13
listpanel-panel-base.vue
...widgets/ibizbook/listpanel-panel/listpanel-panel-base.vue
+11
-13
quicksearchform-searchform-base.vue
...searchform-searchform/quicksearchform-searchform-base.vue
+2
-2
test-list-panel-base.vue
...widgets/ibizbook/test-list-panel/test-list-panel-base.vue
+17
-25
timelineitemlayoutpanel-panel-base.vue
...mlayoutpanel-panel/timelineitemlayoutpanel-panel-base.vue
+11
-13
usr-panel-base.vue
app_Web/src/widgets/ibizbook/usr-panel/usr-panel-base.vue
+11
-13
usr4-panel-base.vue
app_Web/src/widgets/ibizbook/usr4-panel/usr4-panel-base.vue
+11
-13
usr5-panel-base.vue
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel-base.vue
+11
-13
histogram-chart-base.vue
...ibizorder-detail/histogram-chart/histogram-chart-base.vue
+29
-6
area-chart-base.vue
app_Web/src/widgets/ibizorder/area-chart/area-chart-base.vue
+29
-6
bar-chart-base.vue
app_Web/src/widgets/ibizorder/bar-chart/bar-chart-base.vue
+29
-6
default-searchform-base.vue
.../ibizorder/default-searchform/default-searchform-base.vue
+2
-2
line-chart-base.vue
app_Web/src/widgets/ibizorder/line-chart/line-chart-base.vue
+29
-6
list-exp-list-base.vue
...rc/widgets/ibizorder/list-exp-list/list-exp-list-base.vue
+4
-4
pie-chart-base.vue
app_Web/src/widgets/ibizorder/pie-chart/pie-chart-base.vue
+29
-6
radar-chart-base.vue
...eb/src/widgets/ibizorder/radar-chart/radar-chart-base.vue
+29
-6
usr-chart-base.vue
app_Web/src/widgets/ibizorder/usr-chart/usr-chart-base.vue
+29
-6
未找到文件。
app_Web/src/model/panel-detail/panel-container.ts
浏览文件 @
6569c5d9
...
...
@@ -141,10 +141,13 @@ export class PanelContainerModel extends PanelDetailModel {
this
.
data
=
this
.
panel
.
data
;
}
}
else
{
const
parentItem
=
this
.
panel
.
layoutModelDetails
[
this
.
parentName
];
let
parentItem
=
this
.
panel
.
layoutModelDetails
[
`
${
this
.
parentName
}
_
${
this
.
index
}
`
];
if
(
!
parentItem
)
{
parentItem
=
this
.
panel
.
layoutModelDetails
[
this
.
parentName
];
}
if
(
parentItem
)
{
if
(
parentItem
.
dataRegionType
===
'MULTIDATA'
&&
parentItem
[
'data'
]
&&
parentItem
[
'data'
].
length
>
0
)
{
this
.
data
=
parentItem
.
getData
()[
this
.
getIndex
()];
this
.
data
=
parentItem
.
getData
()[
this
.
getIndex
()];
}
else
{
this
.
data
=
parentItem
.
getData
();
}
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/model/panel-detail/panel-detail.ts
浏览文件 @
6569c5d9
...
...
@@ -440,26 +440,28 @@ export class PanelDetailModel {
if
(
this
.
parentName
&&
this
.
panel
)
{
const
parentItem
=
this
.
panel
.
layoutModelDetails
[
this
.
parentName
];
// 识别父FLEX
if
(
parentItem
.
layout
==
'FLEX'
)
{
Object
.
assign
(
boxStyle
,
{
'display'
:
'contents'
});
Object
.
assign
(
boxStyle
,
{
'flex-grow'
:
this
.
flexGrow
?
this
.
flexGrow
:
0
});
}
// 识别SIMPLEFLEX
else
if
(
parentItem
.
layout
==
'SIMPLEFLEX'
)
{
// SIMPLEFLEX 按照内容撑大小
Object
.
assign
(
boxStyle
,
{
'flex-grow'
:
0
});
if
(
this
.
flexGrow
!==
-
1
)
{
Object
.
assign
(
boxStyle
,
{
'width'
:
`
${(
100
/
12
)
*
this
.
flexGrow
}
%`
,
'height'
:
'100%'
});
}
else
{
// 简单FLEX布局自适应
Object
.
assign
(
boxStyle
,
{
'flex-grow'
:
1
,
'min-width'
:
`
${(
100
/
12
)}
%`
,
'height'
:
'100%'
});
if
(
parentItem
)
{
if
(
parentItem
.
layout
==
'FLEX'
)
{
Object
.
assign
(
boxStyle
,
{
'display'
:
'contents'
});
Object
.
assign
(
boxStyle
,
{
'flex-grow'
:
this
.
flexGrow
?
this
.
flexGrow
:
0
});
}
}
else
{
// 当前项兄弟项个数大于1且本身设置宽或者高默认不占满
if
(
parentItem
&&
parentItem
.
details
&&
parentItem
.
details
.
length
>
1
)
{
const
boxSizeStyle
:
any
=
this
.
getBoxSizeStyle
();
if
(
boxSizeStyle
&&
Object
.
keys
(
boxSizeStyle
).
length
>
0
)
{
Object
.
assign
(
boxStyle
,
{
'flex-grow'
:
0
});
// 识别SIMPLEFLEX
else
if
(
parentItem
.
layout
==
'SIMPLEFLEX'
)
{
// SIMPLEFLEX 按照内容撑大小
Object
.
assign
(
boxStyle
,
{
'flex-grow'
:
0
});
if
(
this
.
flexGrow
!==
-
1
)
{
Object
.
assign
(
boxStyle
,
{
'width'
:
`
${(
100
/
12
)
*
this
.
flexGrow
}
%`
,
'height'
:
'100%'
});
}
else
{
// 简单FLEX布局自适应
Object
.
assign
(
boxStyle
,
{
'flex-grow'
:
1
,
'min-width'
:
`
${(
100
/
12
)}
%`
,
'height'
:
'100%'
});
}
}
else
{
// 当前项兄弟项个数大于1且本身设置宽或者高默认不占满
if
(
parentItem
&&
parentItem
.
details
&&
parentItem
.
details
.
length
>
1
)
{
const
boxSizeStyle
:
any
=
this
.
getBoxSizeStyle
();
if
(
boxSizeStyle
&&
Object
.
keys
(
boxSizeStyle
).
length
>
0
)
{
Object
.
assign
(
boxStyle
,
{
'flex-grow'
:
0
});
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -340,7 +340,7 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -384,10 +384,10 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -414,7 +414,7 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -444,12 +444,13 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -464,9 +465,6 @@ export default class IBIZBOOKCustomView_layoutBase extends Vue {
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookdashboard-view-layout/ibizbookdashboard-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -271,7 +271,7 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKDashboardView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -315,10 +315,10 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKDashboardView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -345,7 +345,7 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -375,12 +375,13 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
* @memberof IBIZBOOKDashboardView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -395,9 +396,6 @@ export default class IBIZBOOKDashboardView_layoutBase extends Vue {
* @memberof IBIZBOOKDashboardView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookform-load-custom-view/ibizbookform-load-custom-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -298,7 +298,7 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKFormLoadCustomViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -342,10 +342,10 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKFormLoadCustomViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -372,7 +372,7 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -402,12 +402,13 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
* @memberof IBIZBOOKFormLoadCustomViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -422,9 +423,6 @@ export default class IBIZBOOKFormLoadCustomViewBase extends Vue {
* @memberof IBIZBOOKFormLoadCustomViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookgrid-load-custom-view/ibizbookgrid-load-custom-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -333,7 +333,7 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKGridLoadCustomViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -377,10 +377,10 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKGridLoadCustomViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -407,7 +407,7 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -437,12 +437,13 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
* @memberof IBIZBOOKGridLoadCustomViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -457,9 +458,6 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
* @memberof IBIZBOOKGridLoadCustomViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookinter-func-edit-view-layout/ibizbookinter-func-edit-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -358,7 +358,7 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKInterFuncEditView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -402,10 +402,10 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKInterFuncEditView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -432,7 +432,7 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -462,12 +462,13 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
* @memberof IBIZBOOKInterFuncEditView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -482,9 +483,6 @@ export default class IBIZBOOKInterFuncEditView_layoutBase extends Vue {
* @memberof IBIZBOOKInterFuncEditView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookinter-func-kan-ban-view-layout/ibizbookinter-func-kan-ban-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -462,7 +462,7 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKInterFuncKanBanView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -506,10 +506,10 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKInterFuncKanBanView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -536,7 +536,7 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -566,12 +566,13 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
* @memberof IBIZBOOKInterFuncKanBanView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -586,9 +587,6 @@ export default class IBIZBOOKInterFuncKanBanView_layoutBase extends Vue {
* @memberof IBIZBOOKInterFuncKanBanView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookoption-view-layout/ibizbookoption-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -314,7 +314,7 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKOptionView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -358,10 +358,10 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKOptionView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -388,7 +388,7 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -418,12 +418,13 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
* @memberof IBIZBOOKOptionView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -438,9 +439,6 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
* @memberof IBIZBOOKOptionView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbooktest-clcalendar-view/ibizbooktest-clcalendar-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -301,7 +301,7 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLCalendarViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -345,10 +345,10 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLCalendarViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -375,7 +375,7 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -405,12 +405,13 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
* @memberof IBIZBOOKTestCLCalendarViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -425,9 +426,6 @@ export default class IBIZBOOKTestCLCalendarViewBase extends Vue {
* @memberof IBIZBOOKTestCLCalendarViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbooktest-cldata-view/ibizbooktest-cldata-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -442,7 +442,7 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLDataViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -486,10 +486,10 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLDataViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -516,7 +516,7 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -546,12 +546,13 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
* @memberof IBIZBOOKTestCLDataViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -566,9 +567,6 @@ export default class IBIZBOOKTestCLDataViewBase extends Vue {
* @memberof IBIZBOOKTestCLDataViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbooktest-cltree-view/ibizbooktest-cltree-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -302,7 +302,7 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLTreeViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -346,10 +346,10 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestCLTreeViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -376,7 +376,7 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -406,12 +406,13 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
* @memberof IBIZBOOKTestCLTreeViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -426,9 +427,6 @@ export default class IBIZBOOKTestCLTreeViewBase extends Vue {
* @memberof IBIZBOOKTestCLTreeViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbooktest-logic-custom-view/ibizbooktest-logic-custom-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -298,7 +298,7 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestLogicCustomViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -342,10 +342,10 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKTestLogicCustomViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -372,7 +372,7 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -402,12 +402,13 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
* @memberof IBIZBOOKTestLogicCustomViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -422,9 +423,6 @@ export default class IBIZBOOKTestLogicCustomViewBase extends Vue {
* @memberof IBIZBOOKTestLogicCustomViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookusr1110030546-custom-view/ibizbookusr1110030546-custom-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -329,7 +329,7 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKUsr1110030546CustomViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -373,10 +373,10 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
* @public
* @memberof IBIZBOOKUsr1110030546CustomViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -403,7 +403,7 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -433,12 +433,13 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
* @memberof IBIZBOOKUsr1110030546CustomViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -453,9 +454,6 @@ export default class IBIZBOOKUsr1110030546CustomViewBase extends Vue {
* @memberof IBIZBOOKUsr1110030546CustomViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookusr2-custom-view/ibizbookusr2-custom-view-base.vue
浏览文件 @
6569c5d9
此差异已折叠。
点击以展开。
app_Web/src/pages/sample/ibizbookusr2-edit-view-layout/ibizbookusr2-edit-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -360,7 +360,7 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr2EditView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -404,10 +404,10 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr2EditView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -434,7 +434,7 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -464,12 +464,13 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
* @memberof IBIZBOOKUsr2EditView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -484,9 +485,6 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
* @memberof IBIZBOOKUsr2EditView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookusr2-medit-view9-layout/ibizbookusr2-medit-view9-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -297,7 +297,7 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr2MEditView9_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -341,10 +341,10 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr2MEditView9_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -371,7 +371,7 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -401,12 +401,13 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
* @memberof IBIZBOOKUsr2MEditView9_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -421,9 +422,6 @@ export default class IBIZBOOKUsr2MEditView9_layoutBase extends Vue {
* @memberof IBIZBOOKUsr2MEditView9_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookusr4-list-view-layout/ibizbookusr4-list-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -402,7 +402,7 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -446,10 +446,10 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -476,7 +476,7 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -506,12 +506,13 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -526,9 +527,6 @@ export default class IBIZBOOKUsr4ListView_layoutBase extends Vue {
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookwizard-view-layout/ibizbookwizard-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -270,7 +270,7 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKWizardView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -314,10 +314,10 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
* @public
* @memberof IBIZBOOKWizardView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -344,7 +344,7 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -374,12 +374,13 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
* @memberof IBIZBOOKWizardView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -394,9 +395,6 @@ export default class IBIZBOOKWizardView_layoutBase extends Vue {
* @memberof IBIZBOOKWizardView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizcustom-custom-edit-view/ibizcustom-custom-edit-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -332,7 +332,7 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @public
* @memberof IBIZCustomCustomEditViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -376,10 +376,10 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @public
* @memberof IBIZCustomCustomEditViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -406,7 +406,7 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -436,12 +436,13 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @memberof IBIZCustomCustomEditViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -456,9 +457,6 @@ export default class IBIZCustomCustomEditViewBase extends Vue {
* @memberof IBIZCustomCustomEditViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizcustom-custom-grid-view/ibizcustom-custom-grid-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -426,7 +426,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @public
* @memberof IBIZCustomCustomGridViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -470,10 +470,10 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @public
* @memberof IBIZCustomCustomGridViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -500,7 +500,7 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -530,12 +530,13 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @memberof IBIZCustomCustomGridViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -550,9 +551,6 @@ export default class IBIZCustomCustomGridViewBase extends Vue {
* @memberof IBIZCustomCustomGridViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizcustomer-media-test-edit-view/ibizcustomer-media-test-edit-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -339,7 +339,7 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
* @public
* @memberof IBIZCustomerMediaTestEditViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -383,10 +383,10 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
* @public
* @memberof IBIZCustomerMediaTestEditViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -413,7 +413,7 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -443,12 +443,13 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
* @memberof IBIZCustomerMediaTestEditViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -463,9 +464,6 @@ export default class IBIZCustomerMediaTestEditViewBase extends Vue {
* @memberof IBIZCustomerMediaTestEditViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizcustomer-mpickup-view-layout/ibizcustomer-mpickup-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -298,7 +298,7 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerMPickupView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -342,10 +342,10 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerMPickupView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -372,7 +372,7 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -402,12 +402,13 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerMPickupView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -422,9 +423,6 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerMPickupView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizcustomer-pickup-view-layout/ibizcustomer-pickup-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -297,7 +297,7 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerPickupView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -341,10 +341,10 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerPickupView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -371,7 +371,7 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -401,12 +401,13 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerPickupView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -421,9 +422,6 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerPickupView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizcustomer-usr2-mpickup-view-layout/ibizcustomer-usr2-mpickup-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -298,7 +298,7 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerUsr2MPickupView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -342,10 +342,10 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerUsr2MPickupView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -372,7 +372,7 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -402,12 +402,13 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerUsr2MPickupView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -422,9 +423,6 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
* @memberof IBIZCustomerUsr2MPickupView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizcustomer-usr2-pickup-view-layout/ibizcustomer-usr2-pickup-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -297,7 +297,7 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerUsr2PickupView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -341,10 +341,10 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
* @public
* @memberof IBIZCustomerUsr2PickupView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -371,7 +371,7 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -401,12 +401,13 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
* @memberof IBIZCustomerUsr2PickupView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -421,9 +422,6 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
* @memberof IBIZCustomerUsr2PickupView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizcustomer-usr3-edit-view/ibizcustomer-usr3-edit-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -544,7 +544,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @public
* @memberof IBIZCustomerUsr3EditViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -588,10 +588,10 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @public
* @memberof IBIZCustomerUsr3EditViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -618,7 +618,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -648,12 +648,13 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @memberof IBIZCustomerUsr3EditViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -668,9 +669,6 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @memberof IBIZCustomerUsr3EditViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-calendar-exp-view-layout/ibizorder-calendar-exp-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -305,7 +305,7 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderCalendarExpView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -349,10 +349,10 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderCalendarExpView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -379,7 +379,7 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -409,12 +409,13 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
* @memberof IBIZOrderCalendarExpView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -429,9 +430,6 @@ export default class IBIZOrderCalendarExpView_layoutBase extends Vue {
* @memberof IBIZOrderCalendarExpView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-data-view-exp-view-layout/ibizorder-data-view-exp-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -305,7 +305,7 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderDataViewExpView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -349,10 +349,10 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderDataViewExpView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -379,7 +379,7 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -409,12 +409,13 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
* @memberof IBIZOrderDataViewExpView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -429,9 +430,6 @@ export default class IBIZOrderDataViewExpView_layoutBase extends Vue {
* @memberof IBIZOrderDataViewExpView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-gantt-view-layout/ibizorder-gantt-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -296,7 +296,7 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderGanttView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -340,10 +340,10 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderGanttView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -370,7 +370,7 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -400,12 +400,13 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
* @memberof IBIZOrderGanttView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -420,9 +421,6 @@ export default class IBIZOrderGanttView_layoutBase extends Vue {
* @memberof IBIZOrderGanttView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-list-exp-view-layout/ibizorder-list-exp-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -311,7 +311,7 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderListExpView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -355,10 +355,10 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderListExpView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -385,7 +385,7 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -415,12 +415,13 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
* @memberof IBIZOrderListExpView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -435,9 +436,6 @@ export default class IBIZOrderListExpView_layoutBase extends Vue {
* @memberof IBIZOrderListExpView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-sedit-view2-layout/ibizorder-sedit-view2-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -405,7 +405,7 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView2_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -449,10 +449,10 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView2_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -479,7 +479,7 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -509,12 +509,13 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
* @memberof IBIZOrderSEditView2_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -529,9 +530,6 @@ export default class IBIZOrderSEditView2_layoutBase extends Vue {
* @memberof IBIZOrderSEditView2_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-sedit-view3-layout/ibizorder-sedit-view3-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -417,7 +417,7 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView3_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -461,10 +461,10 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView3_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -491,7 +491,7 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -521,12 +521,13 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @memberof IBIZOrderSEditView3_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -541,9 +542,6 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @memberof IBIZOrderSEditView3_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-sedit-view4-layout/ibizorder-sedit-view4-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -409,7 +409,7 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView4_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -453,10 +453,10 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @public
* @memberof IBIZOrderSEditView4_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -483,7 +483,7 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -513,12 +513,13 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @memberof IBIZOrderSEditView4_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -533,9 +534,6 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @memberof IBIZOrderSEditView4_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-test-clchart-view/ibizorder-test-clchart-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -293,7 +293,7 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
* @public
* @memberof IBIZOrderTestCLChartViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -337,10 +337,10 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
* @public
* @memberof IBIZOrderTestCLChartViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -367,7 +367,7 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -397,12 +397,13 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
* @memberof IBIZOrderTestCLChartViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -417,9 +418,6 @@ export default class IBIZOrderTestCLChartViewBase extends Vue {
* @memberof IBIZOrderTestCLChartViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-test-custom-layout-panel-grid-exp-view/ibizorder-test-custom-layout-panel-grid-exp-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -305,7 +305,7 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
* @public
* @memberof IBIZOrderTestCustomLayoutPanelGridExpViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -349,10 +349,10 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
* @public
* @memberof IBIZOrderTestCustomLayoutPanelGridExpViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -379,7 +379,7 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -409,12 +409,13 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
* @memberof IBIZOrderTestCustomLayoutPanelGridExpViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -429,9 +430,6 @@ export default class IBIZOrderTestCustomLayoutPanelGridExpViewBase extends Vue {
* @memberof IBIZOrderTestCustomLayoutPanelGridExpViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-tree-exp-view-layout/ibizorder-tree-exp-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -304,7 +304,7 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderTreeExpView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -348,10 +348,10 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderTreeExpView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -378,7 +378,7 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -408,12 +408,13 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
* @memberof IBIZOrderTreeExpView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -428,9 +429,6 @@ export default class IBIZOrderTreeExpView_layoutBase extends Vue {
* @memberof IBIZOrderTreeExpView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-tree-grid-ex-view-layout/ibizorder-tree-grid-ex-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -324,7 +324,7 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderTreeGridExView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -368,10 +368,10 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
* @public
* @memberof IBIZOrderTreeGridExView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -398,7 +398,7 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -428,12 +428,13 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
* @memberof IBIZOrderTreeGridExView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -448,9 +449,6 @@ export default class IBIZOrderTreeGridExView_layoutBase extends Vue {
* @memberof IBIZOrderTreeGridExView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-usr2-grid-view/ibizorder-usr2-grid-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -499,7 +499,7 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
* @public
* @memberof IBIZOrderUsr2GridViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -543,10 +543,10 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
* @public
* @memberof IBIZOrderUsr2GridViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -573,7 +573,7 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -603,12 +603,13 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
* @memberof IBIZOrderUsr2GridViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -623,9 +624,6 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
* @memberof IBIZOrderUsr2GridViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizsample0003-stab-exp-view-layout/ibizsample0003-stab-exp-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -289,7 +289,7 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0003STabExpView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -333,10 +333,10 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0003STabExpView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -363,7 +363,7 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -393,12 +393,13 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
* @memberof IBIZSample0003STabExpView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -413,9 +414,6 @@ export default class IBIZSample0003STabExpView_layoutBase extends Vue {
* @memberof IBIZSample0003STabExpView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizsample0021-wfdyna-action-view-layout/ibizsample0021-wfdyna-action-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -311,7 +311,7 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0021WFDynaActionView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -355,10 +355,10 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0021WFDynaActionView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -385,7 +385,7 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -415,12 +415,13 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
* @memberof IBIZSample0021WFDynaActionView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -435,9 +436,6 @@ export default class IBIZSample0021WFDynaActionView_layoutBase extends Vue {
* @memberof IBIZSample0021WFDynaActionView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizsample0021-wfdyna-exp-grid-view-layout/ibizsample0021-wfdyna-exp-grid-view-layout-base.vue
浏览文件 @
6569c5d9
...
...
@@ -355,7 +355,7 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0021WFDynaExpGridView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -399,10 +399,10 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
* @public
* @memberof IBIZSample0021WFDynaExpGridView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -429,7 +429,7 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -459,12 +459,13 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
* @memberof IBIZSample0021WFDynaExpGridView_layoutBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -479,9 +480,6 @@ export default class IBIZSample0021WFDynaExpGridView_layoutBase extends Vue {
* @memberof IBIZSample0021WFDynaExpGridView_layoutBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/index/index-base.vue
浏览文件 @
6569c5d9
...
...
@@ -313,7 +313,7 @@ export default class IndexBase extends Vue {
* @public
* @memberof IndexBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -357,10 +357,10 @@ export default class IndexBase extends Vue {
* @public
* @memberof IndexBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -387,7 +387,7 @@ export default class IndexBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -417,12 +417,13 @@ export default class IndexBase extends Vue {
* @memberof IndexBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -437,9 +438,6 @@ export default class IndexBase extends Vue {
* @memberof IndexBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/ungroup/app-index-view/app-index-view-base.vue
浏览文件 @
6569c5d9
此差异已折叠。
点击以展开。
app_Web/src/pages/ungroup/app-login-view/app-login-view-base.vue
浏览文件 @
6569c5d9
...
...
@@ -277,7 +277,7 @@ export default class AppLoginViewBase extends Vue {
* @public
* @memberof AppLoginViewBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -321,10 +321,10 @@ export default class AppLoginViewBase extends Vue {
* @public
* @memberof AppLoginViewBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -351,7 +351,7 @@ export default class AppLoginViewBase extends Vue {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -381,12 +381,13 @@ export default class AppLoginViewBase extends Vue {
* @memberof AppLoginViewBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
}
...
...
@@ -401,9 +402,6 @@ export default class AppLoginViewBase extends Vue {
* @memberof AppLoginViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/app/app-panel-view-panel/app-panel-view-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel AppPanelView"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
</
template
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
</
div
>
</div>
</
template
>
...
...
@@ -276,7 +276,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @public
* @memberof PanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -320,10 +320,10 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @public
* @memberof PanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -350,7 +350,7 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -477,12 +477,13 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @memberof PanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -519,9 +520,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @memberof AppPanelViewBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizappctrl/ctrl-chart-chart/ctrl-chart-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -451,13 +451,36 @@ export default class CtrlChartBase extends Vue implements ControlInterface {
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizappeditor/editor-chart-chart/editor-chart-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -472,13 +472,36 @@ export default class EditorChartBase extends Vue implements ControlInterface {
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizappextendeditor/extend-editor-chart-chart/extend-editor-chart-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -474,13 +474,36 @@ export default class ExtendEditorChartBase extends Vue implements ControlInterfa
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizappview/view-chart-chart/view-chart-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -470,13 +470,36 @@ export default class ViewChartBase extends Vue implements ControlInterface {
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/auto1-panel/auto1-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel Auto1"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
<app-standard-container
name=
"container1"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
field1
>
<app-panel-field
name=
"field1"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.field1"
>
<app-span
name=
"field1"
:value=
"layoutData.field1"
:data=
"layoutData"
:context=
"context"
:viewparams=
"viewparams"
:localContext=
'
{ }' :localParam='{ }' />
</app-panel-field>
...
...
@@ -12,7 +12,7 @@
<app-panel-field
name=
"field3"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.field3"
>
<app-span
name=
"field3"
:value=
"layoutData.field3"
:data=
"layoutData"
:context=
"context"
:viewparams=
"viewparams"
:localContext=
'
{ }' :localParam='{ }' />
</app-panel-field>
</
template
>
</app-standard-container>
</
template
>
</
div
>
</div>
</template>
...
...
@@ -314,7 +314,7 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @public
* @memberof Item1layoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -358,10 +358,10 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @public
* @memberof Item1layoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -388,7 +388,7 @@ export default class Auto1Base extends Vue implements ControlInterface {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -515,12 +515,13 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @memberof Item1layoutpanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -557,9 +558,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @memberof Auto1Base
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/default-searchform/default-searchform-base.vue
浏览文件 @
6569c5d9
...
...
@@ -711,7 +711,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
:
'IBIZBOOK
CustomView_layout
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr5GridView
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -747,7 +747,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
CustomView_layout
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr5GridView
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/has-panel-kan-ban-panel/has-panel-kan-ban-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel HasPanelKanBan"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
<app-standard-container
name=
"container1"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
srfmajortext
>
<app-panel-field
name=
"srfmajortext"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.srfmajortext"
>
<app-span
name=
"srfmajortext"
:value=
"layoutData.srfmajortext"
:data=
"layoutData"
:context=
"context"
:viewparams=
"viewparams"
:localContext=
'
{ }' :localParam='{ }' />
</app-panel-field>
...
...
@@ -12,7 +12,7 @@
<app-panel-field
name=
"srfdescription"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.srfdescription"
>
<app-span
name=
"srfdescription"
:value=
"layoutData.srfdescription"
:data=
"layoutData"
:context=
"context"
:viewparams=
"viewparams"
:localContext=
'
{ }' :localParam='{ }' />
</app-panel-field>
</
template
>
</app-standard-container>
</
template
>
</
div
>
</div>
</template>
...
...
@@ -314,7 +314,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @public
* @memberof ItemlayoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -358,10 +358,10 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -388,7 +388,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -515,12 +515,13 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof ItemlayoutpanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -557,9 +558,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof HasPanelKanBanBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/has-panel-list-panel/has-panel-list-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel HasPanelList"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
<app-standard-container
name=
"container1"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
bookname
>
<app-panel-field
name=
"bookname"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.bookname"
>
<app-span
name=
"bookname"
:value=
"layoutData.bookname"
:data=
"layoutData"
:context=
"context"
:viewparams=
"viewparams"
:localContext=
'
{ }' :localParam='{ }' />
</app-panel-field>
...
...
@@ -12,7 +12,7 @@
<app-panel-field
name=
"press"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.press"
>
<app-span
name=
"press"
:value=
"layoutData.press"
:data=
"layoutData"
:context=
"context"
:viewparams=
"viewparams"
:localContext=
'
{ }' :localParam='{ }' />
</app-panel-field>
</
template
>
</app-standard-container>
</
template
>
</
div
>
</div>
</template>
...
...
@@ -314,7 +314,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -358,10 +358,10 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -388,7 +388,7 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -515,12 +515,13 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -557,9 +558,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @memberof HasPanelListBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/listpanel-panel/listpanel-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel Listpanel"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
<app-standard-container
name=
"container1"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
container4
>
<app-standard-container
name=
"container4"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
...
...
@@ -59,7 +59,7 @@
</app-standard-container>
</template>
</app-standard-container>
</
template
>
</
div
>
</div>
</template>
...
...
@@ -375,7 +375,7 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -419,10 +419,10 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -449,7 +449,7 @@ export default class ListpanelBase extends Vue implements ControlInterface {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -576,12 +576,13 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -618,9 +619,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @memberof ListpanelBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform-base.vue
浏览文件 @
6569c5d9
...
...
@@ -669,7 +669,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Calendar
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -705,7 +705,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Calendar
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/test-list-panel/test-list-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel TestList"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
<app-standard-container
name=
"container1"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
static_label1
>
<app-preset-text
name=
"static_label1"
:layoutModelDetails=
"layoutModelDetails"
/>
...
...
@@ -16,16 +16,16 @@
</app-standard-container>
</template>
<
template
#
field_textbox
>
<app-panel-field
name=
"field_textbox"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.field_textbox"
>
<input-box
type=
"text"
name=
"field_textbox"
:itemValue=
"layoutData.field_textbox"
:disabled=
"layoutModelDetails.field_textbox ? layoutModelDetails.field_textbox.disabled : false"
@
change=
"(value) => handleValueChange(
{ name: 'field_textbox', value})">
</input-box>
</app-panel-field>
<app-panel-field
name=
"field_textbox"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.field_textbox"
>
<input-box
type=
"text"
name=
"field_textbox"
:itemValue=
"layoutData.field_textbox"
:disabled=
"layoutModelDetails.field_textbox ? layoutModelDetails.field_textbox.disabled : false"
@
change=
"(value) => handleValueChange(
{ name: 'field_textbox', value
})">
</input-box>
</app-panel-field>
</
template
>
<
template
#
field_textbox1
>
<app-panel-field
name=
"field_textbox1"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.field_textbox1"
>
<input-box
type=
"text"
name=
"field_textbox1"
:itemValue=
"layoutData.field_textbox1"
:disabled=
"layoutModelDetails.field_textbox1 ? layoutModelDetails.field_textbox1.disabled : false"
@
change=
"(value) => handleValueChange(
{ name: 'field_textbox1', value})">
</input-box>
</app-panel-field>
<app-panel-field
name=
"field_textbox1"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.field_textbox1"
>
<input-box
type=
"text"
name=
"field_textbox1"
:itemValue=
"layoutData.field_textbox1"
:disabled=
"layoutModelDetails.field_textbox1 ? layoutModelDetails.field_textbox1.disabled : false"
@
change=
"(value) => handleValueChange(
{ name: 'field_textbox1', value
})">
</input-box>
</app-panel-field>
</
template
>
<
template
#
field_textbox2
>
<app-panel-field
name=
"field_textbox2"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.field_textbox2"
>
<input-box
type=
"text"
name=
"field_textbox2"
:itemValue=
"layoutData.field_textbox2"
:disabled=
"layoutModelDetails.field_textbox2 ? layoutModelDetails.field_textbox2.disabled : false"
@
change=
"(value) => handleValueChange(
{ name: 'field_textbox2', value})">
</input-box>
</app-panel-field>
<app-panel-field
name=
"field_textbox2"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.field_textbox2"
>
<input-box
type=
"text"
name=
"field_textbox2"
:itemValue=
"layoutData.field_textbox2"
:disabled=
"layoutModelDetails.field_textbox2 ? layoutModelDetails.field_textbox2.disabled : false"
@
change=
"(value) => handleValueChange(
{ name: 'field_textbox2', value
})">
</input-box>
</app-panel-field>
</
template
>
</app-standard-container>
</
template
>
</
div
>
</div>
</template>
...
...
@@ -331,7 +331,7 @@ export default class TestListBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -375,10 +375,10 @@ export default class TestListBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -405,7 +405,7 @@ export default class TestListBase extends Vue implements ControlInterface {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -532,12 +532,13 @@ export default class TestListBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -574,16 +575,11 @@ export default class TestListBase extends Vue implements ControlInterface {
* @memberof TestListBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
if
(
Object
.
is
(
name
,
''
)
||
Object
.
is
(
name
,
'field_textbox2'
))
{
let
ret
=
true
;
let
_field_textbox2
=
''
;
let
_field_textbox2
=
this
.
layoutData
[
'field_textbox2'
]
;
if
(
index
||
index
===
0
)
{
_field_textbox2
=
this
.
layoutData
[
`field_textbox2_
${
index
}
`
];
}
else
{
_field_textbox2
=
this
.
layoutData
[
'field_textbox2'
];
}
if
(
this
.
$verify
.
testCond
(
_field_textbox2
,
"EQ"
,
"3"
))
{
ret
=
false
;
...
...
@@ -596,11 +592,9 @@ export default class TestListBase extends Vue implements ControlInterface {
}
if
(
Object
.
is
(
name
,
''
)
||
Object
.
is
(
name
,
'field_textbox2'
))
{
let
ret
=
false
;
let
_field_textbox2
=
''
;
let
_field_textbox2
=
this
.
layoutData
[
'field_textbox2'
]
;
if
(
index
||
index
===
0
)
{
_field_textbox2
=
this
.
layoutData
[
`field_textbox2_
${
index
}
`
];
}
else
{
_field_textbox2
=
this
.
layoutData
[
'field_textbox2'
];
}
if
(
this
.
$verify
.
testCond
(
_field_textbox2
,
"EQ"
,
"2"
))
{
ret
=
true
;
...
...
@@ -613,11 +607,9 @@ export default class TestListBase extends Vue implements ControlInterface {
}
if
(
Object
.
is
(
name
,
''
)
||
Object
.
is
(
name
,
'field_textbox1'
))
{
let
ret
=
false
;
let
_field_textbox1
=
''
;
let
_field_textbox1
=
this
.
layoutData
[
'field_textbox1'
]
;
if
(
index
||
index
===
0
)
{
_field_textbox1
=
this
.
layoutData
[
`field_textbox1_
${
index
}
`
];
}
else
{
_field_textbox1
=
this
.
layoutData
[
'field_textbox1'
];
}
if
(
this
.
$verify
.
testCond
(
_field_textbox1
,
"EQ"
,
"1"
))
{
ret
=
true
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/timelineitemlayoutpanel-panel/timelineitemlayoutpanel-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel TIMELINEITEMLAYOUTPANEL"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
<app-standard-container
name=
"container1"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
</app-standard-container>
</
template
>
</
div
>
</div>
</
template
>
...
...
@@ -302,7 +302,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @public
* @memberof ItemlayoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -346,10 +346,10 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -376,7 +376,7 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -503,12 +503,13 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @memberof ItemlayoutpanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -545,9 +546,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @memberof TIMELINEITEMLAYOUTPANELBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr-panel/usr-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel Usr"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
<app-standard-container
name=
"container1"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
</app-standard-container>
</
template
>
</
div
>
</div>
</
template
>
...
...
@@ -302,7 +302,7 @@ export default class UsrBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -346,10 +346,10 @@ export default class UsrBase extends Vue implements ControlInterface {
* @public
* @memberof List_itempanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -376,7 +376,7 @@ export default class UsrBase extends Vue implements ControlInterface {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -503,12 +503,13 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -545,9 +546,6 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof UsrBase
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr4-panel/usr4-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel Usr4"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
<app-standard-container
name=
"container1"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
author
>
<app-panel-field
name=
"author"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.author"
>
<app-span
name=
"author"
:value=
"layoutData.author"
:data=
"layoutData"
:context=
"context"
:viewparams=
"viewparams"
:localContext=
'
{ }' :localParam='{ }' />
</app-panel-field>
...
...
@@ -12,7 +12,7 @@
<app-panel-field
name=
"bookname"
:layoutModelDetails=
"layoutModelDetails"
:value=
"layoutData.bookname"
>
<app-span
name=
"bookname"
:value=
"layoutData.bookname"
:data=
"layoutData"
:context=
"context"
:viewparams=
"viewparams"
:localContext=
'
{ }' :localParam='{ }' />
</app-panel-field>
</
template
>
</app-standard-container>
</
template
>
</
div
>
</div>
</template>
...
...
@@ -314,7 +314,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @public
* @memberof ItemlayoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -358,10 +358,10 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -388,7 +388,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -515,12 +515,13 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -557,9 +558,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof Usr4Base
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel-base.vue
浏览文件 @
6569c5d9
<
template
>
<div
class=
"app-layoutpanel Usr5"
v-loading=
"isLayoutLoadding"
:style=
"
{width: '100%', height: '100%', overflow: 'auto'}">
<
template
v-if=
"!isLayoutLoadding
"
>
<
div
v-show=
"!isLayoutLoadding"
:style=
"
{height: '100%', width: '100%'}
">
<app-standard-container
name=
"container1"
:isMultiContainer=
"false"
:layoutModelDetails=
"layoutModelDetails"
>
</app-standard-container>
</
template
>
</
div
>
</div>
</
template
>
...
...
@@ -302,7 +302,7 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @public
* @memberof ItemlayoutpanelBase
*/
public
isLayoutLoadding
:
boolean
=
fals
e
;
public
isLayoutLoadding
:
boolean
=
tru
e
;
/**
* 布局面板数据
...
...
@@ -346,10 +346,10 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @public
* @memberof ItemlayoutpanelBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
?:
number
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
if
(
!
(
index
||
index
===
0
)
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
...
...
@@ -376,7 +376,7 @@ export default class Usr5Base extends Vue implements ControlInterface {
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
);
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
...
...
@@ -503,12 +503,13 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase
*/
public
handleValueChange
(
args
:
{
name
:
string
,
value
:
any
},
index
?:
number
)
{
if
(
!
args
||
!
args
.
name
||
Object
.
is
(
args
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
args
.
name
))
{
const
{
name
,
value
}
=
args
;
let
fullName
=
(
index
||
index
===
0
)
?
`
${
name
}
_
${
index
}
`
:
name
;
if
(
!
fullName
||
!
this
.
layoutData
.
hasOwnProperty
(
fullName
))
{
return
;
}
const
{
name
,
value
}
=
args
;
this
.
layoutData
[
name
]
=
value
;
this
.
layoutModelDetails
[
name
].
setData
(
value
);
this
.
layoutData
[
fullName
]
=
value
;
this
.
layoutModelDetails
[
fullName
].
setData
(
value
);
this
.
panelLogic
(
name
,
index
);
this
.
computeButtonAuthState
();
this
.
panelEditItemChange
(
name
,
value
);
...
...
@@ -545,9 +546,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @memberof Usr5Base
*/
public
panelLogic
(
name
:
string
,
index
?:
number
):
void
{
if
(
name
&&
(
index
||
index
===
0
))
{
name
=
name
.
replace
(
`_
${
index
}
`
,
""
);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder-detail/histogram-chart/histogram-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -470,13 +470,36 @@ export default class HistogramBase extends Vue implements ControlInterface {
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/area-chart/area-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -473,13 +473,36 @@ export default class AreaBase extends Vue implements ControlInterface {
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
Object
.
assign
(
arg
,{
sort
:
'orderstate,asc'
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/bar-chart/bar-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -470,13 +470,36 @@ export default class BarBase extends Vue implements ControlInterface {
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/default-searchform/default-searchform-base.vue
浏览文件 @
6569c5d9
...
...
@@ -674,7 +674,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
:
'IBIZOrderPi
ckupGrid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderPi
eChart
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -710,7 +710,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderPi
ckupGrid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderPi
eChart
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/line-chart/line-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -475,13 +475,36 @@ export default class LineBase extends Vue implements ControlInterface {
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/list-exp-list/list-exp-list-base.vue
浏览文件 @
6569c5d9
...
...
@@ -600,7 +600,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
public
async
load
(
opt
:
any
=
{}):
Promise
<
any
>
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{...
opt
};
...
...
@@ -730,7 +730,7 @@ export default class ListExpBase 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
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.removeAction'
)
as
string
)
});
return
;
}
if
(
datas
.
length
===
0
)
{
...
...
@@ -835,7 +835,7 @@ export default class ListExpBase 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
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.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
);
...
...
@@ -843,7 +843,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.warning'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.warning'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizorder
){
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/pie-chart/pie-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -451,13 +451,36 @@ export default class PieBase extends Vue implements ControlInterface {
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/radar-chart/radar-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -426,13 +426,36 @@ export default class RadarBase extends Vue implements ControlInterface {
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/usr-chart/usr-chart-base.vue
浏览文件 @
6569c5d9
...
...
@@ -474,13 +474,36 @@ export default class UsrBase extends Vue implements ControlInterface {
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
Object
.
assign
(
arg
,{
page
:
0
,
size
:
1000
});
Object
.
assign
(
arg
,{
sort
:
'orderstate,asc'
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
r
es
)
{
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)})
;
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadR
es
)
{
return
;
}
}).
catch
((
error
)
=>
{
console
.
error
(
error
);
});
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
res
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
this
.
transformToBasicChartSetData
(
res
.
data
,(
codelist
:
any
)
=>
{
_this
.
drawCharts
(
codelist
)});
})
}
else
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
});
}
}).
catch
((
error
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
// 加载失败逻辑
console
.
error
(
error
);
});
});
})
}
/**
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录