Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
f4f895a2
提交
f4f895a2
编写于
11月 01, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [后台服务,演示应用]
上级
3a35e491
变更
10
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
65 行增加
和
119 行删除
+65
-119
index.ts
app_Web/src/model/panel-detail/index.ts
+2
-1
panel-button.ts
app_Web/src/model/panel-detail/panel-button.ts
+0
-28
panel-container.ts
app_Web/src/model/panel-detail/panel-container.ts
+15
-1
panel-ctrlpos.ts
app_Web/src/model/panel-detail/panel-ctrlpos.ts
+16
-0
panel-detail.ts
app_Web/src/model/panel-detail/panel-detail.ts
+2
-70
panel-tab-page.ts
app_Web/src/model/panel-detail/panel-tab-page.ts
+7
-0
index-base.vue
app_Web/src/pages/sample/index/index-base.vue
+13
-9
default-searchform-base.vue
...zappeditor/default-searchform/default-searchform-base.vue
+2
-2
quicksearchform-searchform-base.vue
...searchform-searchform/quicksearchform-searchform-base.vue
+2
-2
main-grid-base.vue
...src/widgets/ibizorder-detail/main-grid/main-grid-base.vue
+6
-6
未找到文件。
app_Web/src/model/panel-detail/index.ts
浏览文件 @
f4f895a2
...
...
@@ -6,4 +6,5 @@ export { PanelFieldModel } from './panel-field';
export
{
PanelContainerModel
}
from
'./panel-container'
;
export
{
PanelControlModel
}
from
'./panel-control'
;
export
{
PanelUserControlModel
}
from
'./panel-user-control'
;
export
{
PanelButtonModel
}
from
'./panel-button'
;
\ No newline at end of file
export
{
PanelButtonModel
}
from
'./panel-button'
;
export
{
PanelCtrlPosModel
}
from
'./panel-ctrlpos'
;
\ No newline at end of file
app_Web/src/model/panel-detail/panel-button.ts
浏览文件 @
f4f895a2
...
...
@@ -11,18 +11,9 @@ export class PanelButtonModel extends PanelDetailModel {
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
$disabled
=
opts
.
disabled
;
this
.
uiaction
=
opts
.
uiaction
;
}
/**
* 是否禁用
*
* @type {boolean}
* @memberof PanelButtonModel
*/
private
$disabled
:
boolean
=
false
;
/**
* 按钮对应的界面行为
*
...
...
@@ -31,26 +22,7 @@ export class PanelButtonModel extends PanelDetailModel {
*/
public
uiaction
:
any
;
/**
* 是否启用
*
* @type {boolean}
* @memberof PanelButtonModel
*/
public
get
disabled
():
boolean
{
return
this
.
$disabled
;
}
/**
* 设置是否启用
*
* @memberof PanelButtonModel
*/
public
set
disabled
(
val
:
boolean
)
{
if
(
this
.
isPower
)
{
this
.
$disabled
=
val
;
}
}
}
\ No newline at end of file
app_Web/src/model/panel-detail/panel-container.ts
浏览文件 @
f4f895a2
...
...
@@ -9,8 +9,22 @@ import { PanelDetailModel } from './panel-detail';
*/
export
class
PanelContainerModel
extends
PanelDetailModel
{
/**
* 子项
*
* @type {string[]}
* @memberof PanelContainerModel
*/
public
details
:
string
[]
=
[];
constructor
(
opts
:
any
=
{})
{
/**
* Creates an instance of PanelContainerModel.
* @param {*} [opts={}]
* @memberof PanelContainerModel
*/
public
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/model/panel-detail/panel-ctrlpos.ts
0 → 100644
浏览文件 @
f4f895a2
import
{
PanelDetailModel
}
from
"./panel-detail"
;
/**
* 部件占位模型
*
* @export
* @class PanelCtrlPosModel
* @extends {PanelDetailModel}
*/
export
class
PanelCtrlPosModel
extends
PanelDetailModel
{
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/model/panel-detail/panel-detail.ts
浏览文件 @
f4f895a2
...
...
@@ -6,14 +6,6 @@
*/
export
class
PanelDetailModel
{
/**
* 是否有权限
*
* @type {boolean}
* @memberof PanelDetailModel
*/
public
isPower
:
boolean
=
true
;
/**
* 成员标题
*
...
...
@@ -52,24 +44,8 @@ export class PanelDetailModel {
* @type {boolean}
* @memberof PanelDetailModel
*/
public
$
visible
:
boolean
=
true
;
public
visible
:
boolean
=
true
;
/**
* 成员是否显示(旧)
*
* @type {boolean}
* @memberof PanelDetailModel
*/
public
oldVisible
:
boolean
=
true
;
/**
* 成员是否显示标题
*
* @type {boolean}
* @memberof PanelDetailModel
*/
public
isShowCaption
:
boolean
=
true
;
/**
* Creates an instance of PanelDetailModel.
...
...
@@ -83,51 +59,7 @@ export class PanelDetailModel {
this
.
itemType
=
!
Object
.
is
(
opts
.
itemType
,
''
)
?
opts
.
itemType
:
''
;
this
.
panel
=
opts
.
panel
?
opts
.
panel
:
{};
this
.
name
=
!
Object
.
is
(
opts
.
name
,
''
)
?
opts
.
name
:
''
;
this
.
$visible
=
opts
.
visible
?
true
:
false
;
this
.
oldVisible
=
opts
.
visible
?
true
:
false
;
this
.
isShowCaption
=
opts
.
isShowCaption
?
true
:
false
;
this
.
visible
=
opts
.
visible
?
true
:
false
;
}
/**
* 设置成员是否隐藏
*
* @memberof PanelDetailModel
*/
public
set
visible
(
val
:
boolean
)
{
if
(
this
.
isPower
)
{
this
.
$visible
=
val
;
}
}
/**
* 获取成员是否隐藏
*
* @memberof PanelDetailModel
*/
public
get
visible
()
{
return
this
.
$visible
;
}
/**
* 设置显示与隐藏
*
* @param {boolean} state
* @memberof PanelDetailModel
*/
public
setVisible
(
state
:
boolean
):
void
{
if
(
this
.
isPower
)
{
this
.
visible
=
state
;
}
}
/**
* 设置显示标题栏
*
* @param {boolean} state
* @memberof PanelDetailModel
*/
public
setShowCaption
(
state
:
boolean
):
void
{
this
.
isShowCaption
=
state
;
}
}
\ No newline at end of file
app_Web/src/model/panel-detail/panel-tab-page.ts
浏览文件 @
f4f895a2
...
...
@@ -10,6 +10,13 @@ import { PanelTabPanelModel } from './panel-tab-panel';
*/
export
class
PanelTabPageModel
extends
PanelDetailModel
{
/**
* 子项
*
* @type {string[]}
* @memberof PanelTabPageModel
*/
public
details
:
string
[]
=
[];
/**
* Creates an instance of PanelTabPageModel.
...
...
app_Web/src/pages/sample/index/index-base.vue
浏览文件 @
f4f895a2
...
...
@@ -39,7 +39,7 @@ import NavDataService from '@/service/app/navdata-service';
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
PanelContainerModel
,
PanelRawitemModel
,
PanelFieldModel
,
PanelControlModel
,
PanelButtonModel
,
PanelUserControlModel
,
PanelTabPanelModel
,
PanelTabPageModel
}
from
'@/model/panel-detail'
;
import
{
PanelContainerModel
,
PanelRawitemModel
,
PanelFieldModel
,
PanelControlModel
,
PanelButtonModel
,
PanelUserControlModel
,
PanelTabPanelModel
,
PanelTabPageModel
,
PanelCtrlPosModel
}
from
'@/model/panel-detail'
;
import
{
appConfig
}
from
'@/config/appConfig'
;
...
...
@@ -209,15 +209,19 @@ export default class IndexBase extends Vue {
* @memberof IndexBase
*/
public
layoutModelDetails
:
any
=
{
container_scroll_main1
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_scroll_main1'
,
panel
:
this
,
details
:[
'nav_tabs1'
,
'nav_pos1'
]}),
container_scroll_left1
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_scroll_left1'
,
panel
:
this
,
details
:[
'appmenu1'
]}),
nav_tabs1
:
new
PanelCtrlPosModel
({
caption
:
'标签页导航栏'
,
itemType
:
'CTRLPOS'
,
visible
:
true
,
disabled
:
false
,
name
:
'nav_tabs1'
,
panel
:
this
}),
nav_pos1
:
new
PanelCtrlPosModel
({
caption
:
'导航区占位'
,
itemType
:
'CTRLPOS'
,
visible
:
true
,
disabled
:
false
,
name
:
'nav_pos1'
,
panel
:
this
}),
container_scroll_main1
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_scroll_main1'
,
panel
:
this
,
details
:[
'nav_tabs1'
,
'nav_pos1'
]}),
appmenu1
:
new
PanelCtrlPosModel
({
caption
:
'首页菜单'
,
itemType
:
'CTRLPOS'
,
visible
:
true
,
disabled
:
false
,
name
:
'appmenu1'
,
panel
:
this
}),
container_scroll_left1
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_scroll_left1'
,
panel
:
this
,
details
:[
'appmenu1'
]}),
app_apptitle
:
new
PanelFieldModel
({
caption
:
'应用标题'
,
itemType
:
'FIELD'
,
visible
:
true
,
disabled
:
false
,
name
:
'app_apptitle'
,
panel
:
this
}),
container1
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container1'
,
panel
:
this
,
details
:[
'app_apptitle'
]}),
container2
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container2'
,
panel
:
this
,
details
:[]}),
container3
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container3'
,
panel
:
this
,
details
:[
'auth_userinfo1'
]}),
container_grid1
:
new
PanelContainerModel
({
caption
:
'栅格容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_grid1'
,
panel
:
this
,
details
:[
'container1'
,
'container2'
,
'container3'
]}),
container_scroll_header1
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_scroll_header1'
,
panel
:
this
,
details
:[
'container_grid1'
]}),
container_scroll1
:
new
PanelContainerModel
({
caption
:
'滚动条容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_scroll1'
,
panel
:
this
,
details
:[
'container_scroll_main1'
,
'container_scroll_left1'
,
'container_scroll_header1'
]})
container1
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container1'
,
panel
:
this
,
details
:[
'app_apptitle'
]}),
container2
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container2'
,
panel
:
this
,
details
:[]}),
auth_userinfo1
:
new
PanelCtrlPosModel
({
caption
:
'用户信息'
,
itemType
:
'CTRLPOS'
,
visible
:
true
,
disabled
:
false
,
name
:
'auth_userinfo1'
,
panel
:
this
}),
container3
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container3'
,
panel
:
this
,
details
:[
'auth_userinfo1'
]}),
container_grid1
:
new
PanelContainerModel
({
caption
:
'栅格容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_grid1'
,
panel
:
this
,
details
:[
'container1'
,
'container2'
,
'container3'
]}),
container_scroll_header1
:
new
PanelContainerModel
({
caption
:
'面板容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_scroll_header1'
,
panel
:
this
,
details
:[
'container_grid1'
]}),
container_scroll1
:
new
PanelContainerModel
({
caption
:
'滚动条容器'
,
itemType
:
'CONTAINER'
,
visible
:
true
,
disabled
:
false
,
name
:
'container_scroll1'
,
panel
:
this
,
details
:[
'container_scroll_main1'
,
'container_scroll_left1'
,
'container_scroll_header1'
]})
};
...
...
app_Web/src/widgets/ibizappeditor/default-searchform/default-searchform-base.vue
浏览文件 @
f4f895a2
...
...
@@ -590,7 +590,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -626,7 +626,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform-base.vue
浏览文件 @
f4f895a2
...
...
@@ -621,7 +621,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
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Calendar
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -657,7 +657,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Calendar
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizorder-detail/main-grid/main-grid-base.vue
浏览文件 @
f4f895a2
...
...
@@ -906,7 +906,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{},
pageReset
:
boolean
=
false
):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
}
if
(
pageReset
){
...
...
@@ -1001,7 +1001,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
}
let
_datas
:
any
[]
=
[];
...
...
@@ -1107,7 +1107,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
addBatch
(
arg
:
any
=
{}):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
}
if
(
!
arg
){
...
...
@@ -1987,7 +1987,7 @@ export default class MainBase extends Vue implements ControlInterface {
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
...
...
@@ -1995,7 +1995,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizorderdetail
){
...
...
@@ -2062,7 +2062,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
newRow
(
args
:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
let
_this
=
this
;
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录