Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
ec4aa76e
提交
ec4aa76e
编写于
12月 02, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
748af039
变更
22
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
3127 行增加
和
63 行删除
+3127
-63
en-US.ts
app_Web/src/locale/lang/en-US.ts
+1
-0
zh-CN.ts
app_Web/src/locale/lang/zh-CN.ts
+1
-0
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+18
-0
ibizorder-data-view-exp-view-base.vue
...-data-view-exp-view/ibizorder-data-view-exp-view-base.vue
+742
-0
ibizorder-data-view-exp-view.less
...rder-data-view-exp-view/ibizorder-data-view-exp-view.less
+8
-0
ibizorder-data-view-exp-view.vue
...order-data-view-exp-view/ibizorder-data-view-exp-view.vue
+22
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+2
-1
router.ts
app_Web/src/pages/sample/index/router.ts
+37
-10
state.ts
app_Web/src/store/modules/view-action/state.ts
+62
-51
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+26
-0
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+19
-0
card-navigation-dataview-base.vue
...ard-navigation-dataview/card-navigation-dataview-base.vue
+944
-0
card-navigation-dataview-model.ts
...ard-navigation-dataview/card-navigation-dataview-model.ts
+112
-0
card-navigation-dataview-service.ts
...d-navigation-dataview/card-navigation-dataview-service.ts
+167
-0
card-navigation-dataview.less
...er/card-navigation-dataview/card-navigation-dataview.less
+156
-0
card-navigation-dataview.vue
...der/card-navigation-dataview/card-navigation-dataview.vue
+14
-0
data-view-exp-viewdataviewexpbar-dataviewexpbar-base.vue
.../data-view-exp-viewdataviewexpbar-dataviewexpbar-base.vue
+594
-0
data-view-exp-viewdataviewexpbar-dataviewexpbar-model.ts
.../data-view-exp-viewdataviewexpbar-dataviewexpbar-model.ts
+21
-0
data-view-exp-viewdataviewexpbar-dataviewexpbar-service.ts
...ata-view-exp-viewdataviewexpbar-dataviewexpbar-service.ts
+44
-0
data-view-exp-viewdataviewexpbar-dataviewexpbar.less
...pbar/data-view-exp-viewdataviewexpbar-dataviewexpbar.less
+120
-0
data-view-exp-viewdataviewexpbar-dataviewexpbar.vue
...xpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar.vue
+16
-0
systemResource.json
demo-core/src/main/resources/permission/systemResource.json
+1
-1
未找到文件。
app_Web/src/locale/lang/en-US.ts
浏览文件 @
ec4aa76e
...
...
@@ -254,6 +254,7 @@ export default {
menuitem128
:
"表格导航"
,
menuitem114
:
"列表导航"
,
menuitem136
:
"树导航"
,
menuitem137
:
"卡片导航"
,
menuitem129
:
"选项操作"
,
menuitem130
:
"选项操作视图"
,
menuitem131
:
"表格选项操作"
,
...
...
app_Web/src/locale/lang/zh-CN.ts
浏览文件 @
ec4aa76e
...
...
@@ -254,6 +254,7 @@ export default {
menuitem128
:
"表格导航"
,
menuitem114
:
"列表导航"
,
menuitem136
:
"树导航"
,
menuitem137
:
"卡片导航"
,
menuitem129
:
"选项操作"
,
menuitem130
:
"选项操作视图"
,
menuitem131
:
"表格选项操作"
,
...
...
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
ec4aa76e
...
...
@@ -1679,6 +1679,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls
:
''
,
appfunctag
:
'AppFunc57'
,
resourcetag
:
''
,
},
{
id
:
'65A6BA78-DAD9-4E7D-A442-BB083365EA47'
,
name
:
'menuitem137'
,
text
:
'卡片导航'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'卡片导航'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc58'
,
resourcetag
:
''
,
},
],
},
...
...
app_Web/src/pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view-base.vue
0 → 100644
浏览文件 @
ec4aa76e
<
template
>
<div
class=
"view-container dedataviewexpview ibizorder-data-view-exp-view"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizorderdataviewexpview"
></app-studioaction>
<card
class=
'view-card view-no-toolbar'
:dis-hover=
"true"
:bordered=
"false"
>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
</div>
<div
class=
'view-top-messages'
>
</div>
<div
class=
"content-container"
>
<div
class=
'view-body-messages'
>
</div>
<view
_dataviewexpbar
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:showBusyIndicator=
"true"
:viewUID=
"viewUID"
:newdata=
"newdata"
:opendata=
"opendata"
name=
"dataviewexpbar"
ref=
'dataviewexpbar'
@
selectionchange=
"dataviewexpbar_selectionchange($event)"
@
activated=
"dataviewexpbar_activated($event)"
@
load=
"dataviewexpbar_load($event)"
@
closeview=
"closeView($event)"
>
</view
_dataviewexpbar
>
</div>
<div
class=
'view-bottom-messages'
>
</div>
</card>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Inject
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
IBIZOrderAuthService
from
'@/authservice/ibizorder/ibizorder-auth-service'
;
import
DataViewExpViewEngine
from
'@engine/view/data-view-exp-view-engine'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
import
CodeListService
from
"@/codelist/codelist-service"
;
@
Component
({
components
:
{
},
})
export
default
class
IBIZOrderDataViewExpViewBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
;
/**
* 实体UI服务对象
*
* @type IBIZOrderUIService
* @memberof IBIZOrderDataViewExpViewBase
*/
public
appUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
(
this
.
$store
);
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZOrderDataViewExpViewBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZOrderDataViewExpViewBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZOrderDataViewExpViewBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZOrderDataViewExpViewBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
viewtag
:
string
=
'1ee924c4a616343b6b4cd42150b799fa'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
model
:
any
=
{
srfCaption
:
'entities.ibizorder.views.dataviewexpview.caption'
,
srfTitle
:
'entities.ibizorder.views.dataviewexpview.title'
,
srfSubTitle
:
'entities.ibizorder.views.dataviewexpview.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZOrderDataViewExpViewBase
*/
@
Watch
(
'viewparam'
,{
immediate
:
true
,
deep
:
true
})
onParamData
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
this
.
viewparams
=
{};
if
(
typeof
newVal
==
'string'
)
{
Object
.
assign
(
this
.
viewparams
,
JSON
.
parse
(
this
.
viewparam
));
}
else
{
this
.
viewparams
=
Util
.
deepCopy
(
this
.
viewparam
);
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZOrderDataViewExpViewBase
*/
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
}
}
/**
* 容器模型
*
* @type {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
containerModel
:
any
=
{
view_dataviewexpbar
:
{
name
:
'dataviewexpbar'
,
type
:
'DATAVIEWEXPBAR'
},
wflinks
:
[],
};
/**
* 计数器刷新
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
engine
:
DataViewExpViewEngine
=
new
DataViewExpViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof IBIZOrderDataViewExpViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
dataviewexpbar
:
this
.
$refs
.
dataviewexpbar
,
keyPSDEField
:
'ibizorder'
,
majorPSDEField
:
'ibizordername'
,
isLoadDefault
:
true
,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
navDataService
=
NavDataService
.
getInstance
(
this
.
$store
);
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof IBIZOrderDataViewExpViewBase
*/
public
parseViewParam
(
inputvalue
:
any
=
null
):
void
{
for
(
let
key
in
this
.
context
){
delete
this
.
context
[
key
];
}
if
(
this
.
$store
.
getters
.
getAppData
()
&&
this
.
$store
.
getters
.
getAppData
().
context
){
Object
.
assign
(
this
.
context
,
this
.
$store
.
getters
.
getAppData
().
context
);
}
if
(
!
this
.
viewDefaultUsage
&&
this
.
viewdata
&&
!
Object
.
is
(
this
.
viewdata
,
''
))
{
if
(
typeof
this
.
viewdata
==
'string'
)
{
Object
.
assign
(
this
.
context
,
JSON
.
parse
(
this
.
viewdata
));
}
if
(
this
.
context
&&
this
.
context
.
srfparentdename
){
Object
.
assign
(
this
.
viewparams
,{
srfparentdename
:
this
.
context
.
srfparentdename
});
}
if
(
this
.
context
&&
this
.
context
.
srfparentkey
){
Object
.
assign
(
this
.
viewparams
,{
srfparentkey
:
this
.
context
.
srfparentkey
});
}
this
.
handleCustomViewData
();
return
;
}
const
path
=
(
this
.
$route
.
matched
[
this
.
$route
.
matched
.
length
-
1
]).
path
;
const
keys
:
Array
<
any
>
=
[];
const
curReg
=
this
.
$pathToRegExp
.
pathToRegexp
(
path
,
keys
);
const
matchArray
=
curReg
.
exec
(
this
.
$route
.
path
);
let
tempValue
:
Object
=
{};
keys
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
.
name
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
this
.
$viewTool
.
formatRouteParams
(
tempValue
,
this
.
$route
,
this
.
context
,
this
.
viewparams
);
if
(
inputvalue
){
Object
.
assign
(
this
.
context
,{
'ibizorder'
:
inputvalue
});
}
//初始化视图唯一标识
Object
.
assign
(
this
.
context
,{
srfsessionid
:
this
.
$util
.
createUUID
()});
this
.
handleCustomViewData
();
//初始化导航数据
this
.
initNavDataWithRoute
();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
handleCustomViewData
(){
if
(
Object
.
keys
(
this
.
customViewNavContexts
).
length
>
0
){
Object
.
keys
(
this
.
customViewNavContexts
).
forEach
((
item
:
any
)
=>
{
let
tempContext
:
any
=
{};
let
curNavContext
:
any
=
this
.
customViewNavContexts
[
item
];
this
.
handleCustomDataLogic
(
curNavContext
,
tempContext
,
item
);
Object
.
assign
(
this
.
context
,
tempContext
);
})
}
if
(
Object
.
keys
(
this
.
customViewParams
).
length
>
0
){
Object
.
keys
(
this
.
customViewParams
).
forEach
((
item
:
any
)
=>
{
let
tempParam
:
any
=
{};
let
curNavParam
:
any
=
this
.
customViewParams
[
item
];
this
.
handleCustomDataLogic
(
curNavParam
,
tempParam
,
item
);
Object
.
assign
(
this
.
viewparams
,
tempParam
);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
handleCustomDataLogic
(
curNavData
:
any
,
tempData
:
any
,
item
:
string
){
// 直接值直接赋值
if
(
curNavData
.
isRawValue
){
if
(
Object
.
is
(
curNavData
.
value
,
"null"
)
||
Object
.
is
(
curNavData
.
value
,
""
)){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
curNavData
.
value
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
else
{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if
(
this
.
context
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
context
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
if
(
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
}
}
/**
* 初始化导航数据(路由模式)
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavData
({
id
:
'ibizorder-data-view-exp-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
ibizorder
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
initNavDataWithTab
(
data
:
any
=
null
,
isOnlyAdd
:
boolean
=
true
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
!
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavDataByOnly
({
id
:
'ibizorder-data-view-exp-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
ibizorder
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
},
isOnlyAdd
);
}
}
/**
* Vue声明周期
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
afterCreated
(){
let
_this
:
any
=
this
;
const
secondtag
=
_this
.
$util
.
createUUID
();
_this
.
$store
.
commit
(
'viewaction/createdView'
,
{
viewtag
:
_this
.
viewtag
,
secondtag
:
secondtag
});
_this
.
viewtag
=
secondtag
;
_this
.
parseViewParam
();
_this
.
serviceStateEvent
=
_this
.
navDataService
.
serviceState
.
subscribe
(({
action
,
name
,
data
}:{
action
:
string
,
name
:
any
,
data
:
any
})
=>
{
if
(
!
Object
.
is
(
name
,
'ibizorder-data-view-exp-view'
)){
return
;
}
if
(
Object
.
is
(
action
,
'viewrefresh'
))
{
_this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
(
data
);
if
(
_this
.
engine
){
_this
.
engine
.
load
();
}
});
}
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'IBIZOrderDataViewExpView'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
}
/**
* 销毁之前
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
beforeDestroy
()
{
this
.
$store
.
commit
(
'viewaction/removeView'
,
this
.
viewtag
);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* dataviewexpbar 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderDataViewExpViewBase
*/
public
dataviewexpbar_selectionchange
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'dataviewexpbar'
,
'selectionchange'
,
$event
);
}
/**
* dataviewexpbar 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderDataViewExpViewBase
*/
public
dataviewexpbar_activated
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'dataviewexpbar'
,
'activated'
,
$event
);
}
/**
* dataviewexpbar 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderDataViewExpViewBase
*/
public
dataviewexpbar_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'dataviewexpbar'
,
'load'
,
$event
);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof IBIZOrderDataViewExpView
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'未指定关系视图'
});
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof IBIZOrderDataViewExpView
*/
public
opendata
(
args
:
any
[],
fullargs
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
if
(
!
this
.
viewDefaultUsage
){
if
(
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
initNavDataWithRoute
(
this
.
viewCacheData
,
false
,
true
);
}
else
{
this
.
initNavDataWithTab
(
this
.
viewCacheData
,
false
,
true
);
}
}
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'未指定关系视图'
});
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZOrderDataViewExpViewBase
*/
public
closeView
(
args
:
any
[]):
void
{
let
_view
:
any
=
this
;
if
(
_view
.
viewdata
)
{
_view
.
$emit
(
'viewdataschange'
,
[
args
]);
_view
.
$emit
(
'close'
,
[
args
]);
}
else
if
(
_view
.
$tabPageExp
)
{
_view
.
$tabPageExp
.
onClose
(
_view
.
$route
.
fullPath
);
}
}
/**
* 销毁视图回调
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
afterDestroyed
(){
if
(
this
.
viewDefaultUsage
){
let
localStoreLength
=
Object
.
keys
(
localStorage
);
if
(
localStoreLength
.
length
>
0
){
localStoreLength
.
forEach
((
item
:
string
)
=>
{
if
(
item
.
startsWith
(
this
.
context
.
srfsessionid
)){
localStorage
.
removeItem
(
item
);
}
})
}
if
(
Object
.
is
(
this
.
navModel
,
"tab"
)){
this
.
navDataService
.
removeNavDataByTag
(
this
.
viewtag
);
}
if
(
this
.
serviceStateEvent
)
{
this
.
serviceStateEvent
.
unsubscribe
();
}
}
// 销毁计数器定时器
if
(
this
.
counterServiceArray
&&
this
.
counterServiceArray
.
length
>
0
){
this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
destroyCounter
&&
item
.
destroyCounter
instanceof
Function
){
item
.
destroyCounter
();
}
})
}
if
(
this
.
portletStateEvent
){
this
.
portletStateEvent
.
unsubscribe
();
}
}
/**
* 视图唯一标识
*
* @type {string}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
viewUID
:
string
=
'sample-ibizorder-data-view-exp-view'
;
/**
* 搜索值
*
* @type {string}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
query
:
string
=
''
;
/**
* 是否展开搜索表单
*
* @type {boolean}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
isExpandSearchForm
:
boolean
=
false
;
/**
* 快速搜索
*
* @param {*} $event
* @memberof IBIZOrderDataViewExpViewBase
*/
public
onSearch
(
$event
:
any
):
void
{
const
refs
:
any
=
this
.
$refs
;
if
(
refs
.
kanban
)
{
refs
.
kanban
.
refresh
({});
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './ibizorder-data-view-exp-view.less';
</
style
>
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view.less
0 → 100644
浏览文件 @
ec4aa76e
.ibizorder-data-view-exp-view{
position: relative;
}
.ibizorder-data-view-exp-view{
display: block;
}
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view.vue
0 → 100644
浏览文件 @
ec4aa76e
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderDataViewExpViewBase
from
'./ibizorder-data-view-exp-view-base.vue'
;
import
view_dataviewexpbar
from
'@widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar.vue'
;
@
Component
({
components
:
{
view_dataviewexpbar
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
if
(
!
Object
.
is
(
vm
.
navModel
,
"route"
)){
vm
.
initNavDataWithTab
(
vm
.
viewCacheData
);
}
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
IBIZOrderDataViewExpView
extends
IBIZOrderDataViewExpViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
ec4aa76e
...
...
@@ -30,8 +30,8 @@ export const PageComponents = {
Vue
.
component
(
'ibizsample0002-pickup-grid-view'
,
()
=>
import
(
'@pages/sample/ibizsample0002-pickup-grid-view/ibizsample0002-pickup-grid-view.vue'
));
Vue
.
component
(
'ibizsoftware-suit-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsoftware-suit-edit-view/ibizsoftware-suit-edit-view.vue'
));
Vue
.
component
(
'ibizorder-pickup-view'
,
()
=>
import
(
'@pages/sample/ibizorder-pickup-view/ibizorder-pickup-view.vue'
));
Vue
.
component
(
'ibizorder-sf4-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf4-grid-view/ibizorder-sf4-grid-view.vue'
));
Vue
.
component
(
'ibizsample0003-grid-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-grid-view/ibizsample0003-grid-view.vue'
));
Vue
.
component
(
'ibizorder-sf4-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf4-grid-view/ibizorder-sf4-grid-view.vue'
));
Vue
.
component
(
'ibizbookcustom-view'
,
()
=>
import
(
'@pages/sample/ibizbookcustom-view/ibizbookcustom-view.vue'
));
Vue
.
component
(
'ibizsample0003-sf4-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-sf4-edit-view/ibizsample0003-sf4-edit-view.vue'
));
Vue
.
component
(
'ibizorder-sf1-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf1-grid-view/ibizorder-sf1-grid-view.vue'
));
...
...
@@ -61,6 +61,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizorder-sf15-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf15-grid-view/ibizorder-sf15-grid-view.vue'
));
Vue
.
component
(
'ibizorder-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-edit-view/ibizorder-edit-view.vue'
));
Vue
.
component
(
'ibizorder-line-chart-view'
,
()
=>
import
(
'@pages/sample/ibizorder-line-chart-view/ibizorder-line-chart-view.vue'
));
Vue
.
component
(
'ibizorder-data-view-exp-view'
,
()
=>
import
(
'@pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view.vue'
));
Vue
.
component
(
'ibizorder-odsp-d-wfgrid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-odsp-d-wfgrid-view/ibizorder-odsp-d-wfgrid-view.vue'
));
Vue
.
component
(
'ibizorder-detail-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-detail-grid-view/ibizorder-detail-grid-view.vue'
));
Vue
.
component
(
'ibizorder-sf2-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf2-edit-view/ibizorder-sf2-edit-view.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
ec4aa76e
...
...
@@ -561,32 +561,32 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/sample/ibizorder-pickup-view/ibizorder-pickup-view.vue'
),
},
{
path
:
'ibiz
orders/:ibizorder?/sf4gridview/:sf4
gridview?'
,
path
:
'ibiz
sample0003s/:ibizsample0003?/gridview/:
gridview?'
,
meta
:
{
caption
:
'entities.ibiz
order.views.sf4
gridview.caption'
,
caption
:
'entities.ibiz
sample0003.views.
gridview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
sf4gridview'
,
parameterName
:
'sf4
gridview'
},
{
pathName
:
'ibiz
sample0003s'
,
parameterName
:
'ibizsample0003
'
},
{
pathName
:
'
gridview'
,
parameterName
:
'
gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibiz
order-sf4-grid-view/ibizorder-sf4
-grid-view.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibiz
sample0003-grid-view/ibizsample0003
-grid-view.vue'
),
},
{
path
:
'ibiz
sample0003s/:ibizsample0003?/gridview/:
gridview?'
,
path
:
'ibiz
orders/:ibizorder?/sf4gridview/:sf4
gridview?'
,
meta
:
{
caption
:
'entities.ibiz
sample0003.views.
gridview.caption'
,
caption
:
'entities.ibiz
order.views.sf4
gridview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibiz
sample0003s'
,
parameterName
:
'ibizsample0003
'
},
{
pathName
:
'
gridview'
,
parameterName
:
'
gridview'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
sf4gridview'
,
parameterName
:
'sf4
gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibiz
sample0003-grid-view/ibizsample0003
-grid-view.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibiz
order-sf4-grid-view/ibizorder-sf4
-grid-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/customview/:customview?'
,
...
...
@@ -1024,6 +1024,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-line-chart-view/ibizorder-line-chart-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/dataviewexpview/:dataviewexpview?'
,
meta
:
{
caption
:
'entities.ibizorder.views.dataviewexpview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'dataviewexpview'
,
parameterName
:
'dataviewexpview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/odsp_d_wfgridview/:odsp_d_wfgridview?'
,
meta
:
{
...
...
@@ -2879,6 +2893,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-usr2-edit-view/ibizsample0001-usr2-edit-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/dataviewexpview/:dataviewexpview?'
,
meta
:
{
caption
:
'entities.ibizorder.views.dataviewexpview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'dataviewexpview'
,
parameterName
:
'dataviewexpview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/gridview9/:gridview9?'
,
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
ec4aa76e
...
...
@@ -183,103 +183,104 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'dddefe276053bb9682b51318e96b45d6'
,
'b09ceb3081717c0ed4fe19f9986598a0'
,
'7a8b6138e5893e7aba3b1a5deb3b3036'
,
'0c1093afa96df2832f707495afec541e'
,
'7d37165f2f535b4a6d2116188fe83d18'
,
'53269c1ea73ad6fae5d2ac4eced7f9d1'
,
'a3e8c166f876e0dd8eb09be4f9f907ab'
,
'703686dd4e6aa6f55aca5d92c00d9ee3'
,
'39e841c85d9bbfc7ecf009c4202dbf0c'
,
'efbe72fe207c5bb7ada28b278a9ea920'
,
'658d519f1868979431e7e0da5d967e6b'
,
'8a3f2cc88421d9f07cbb53dd78e11495'
,
'9127e2414d8e646fd2b473695d17c485'
,
'fdb297cd4b12374534413c3053aec1b8'
,
'f4c5c766fd5755b694e0401dddc4d1ad'
,
'e7441fa67d425df343d996c745fb5d6b'
,
'2ccd29eeaeded3ea5a713a19cd67a83e'
,
'aa68a83577209ff0ec3864aec4e194f2'
,
'd69d223e4d3aeb8d947ac9b9ddc60a7e'
,
'692ede21641dfdb7075ede69d7c4ad33'
,
'b1591dc4d651536bceb32b60310fd2a5'
,
'19d36909f837de28880553dc9a190922'
,
'3ebf0cd640e39a4e7efe30ec1cf32b43'
,
'8a4ccafa81445d49488874a8c7575932'
,
'0b8c0a8b7a5b8b73595b23fc502652fc'
,
'b7c0a73eb248d41eb750bbf095fa5505'
,
'59500fe075fdae44c35c88b95e64d9c8'
,
'3041238537beef69c0f3410a1ba04c84'
,
'e14e0fa8f3def77ebbcf18f1f39c0225'
,
'd3255261c8522c660c1000cd0a61c3b0'
,
'5ccbd78fe47300a160915d6398b59604'
,
'd9f9f0dede285235e3d0ad5101188d1e'
,
'5f21463b9d808170d4023d8402cc6e9e'
,
'84904c93ceea3ab6551555ee20c41e27'
,
'ffedffb9c57cb200c275ba15e9100da4'
,
'41d3da0d37fb0135ace813f1ba06bd39'
,
'1ee924c4a616343b6b4cd42150b799fa'
,
'b8ae19200ec9d4e8e588bc31e3f9bcb4'
,
'b1256beac1e95915b675893c61559b59'
,
'e2a1c9cb077cd2c74f2f2b914fb1db84'
,
'd3321077dfab8bc6b92c649e5b69daf3'
,
'e54ae8e27a53b3425ac78a229a163bd5'
,
'836bdb4063978b55fedd6a180d60c323'
,
'794fbfb192285c60dc9ce640270d79c0'
,
'369a14f21cbff0d0fe23831aecfca7ba'
,
'a894de140705ecab2f39797d2922a3ce'
,
'ea604a66caf499c70c9002a917dd1694'
,
'4981c4ae8facb75582f8dcbc51850318'
,
'dddefe276053bb9682b51318e96b45d6'
,
'875222727b7ab7dcaccc45808fd38b09'
,
'de9166f936946237e2d0e5367db078c2'
,
'9db924c804154be5b442a9737514a6f9'
,
'b29d930f430c127162f83753d85dd40c'
,
'36763886cbec62729dca4d4b8dad8161'
,
'7a8b6138e5893e7aba3b1a5deb3b3036'
,
'10e721a882036c8c012f35d2a6b00237'
,
'd8a6379b9ddbd161045a288aba0890b6'
,
'0c1093afa96df2832f707495afec541e'
,
'd1f311d51e800e95e9b10c49a8b49b5a'
,
'53269c1ea73ad6fae5d2ac4eced7f9d1'
,
'7d37165f2f535b4a6d2116188fe83d18'
,
'f94df735642ce85ebb2fe3816c4dc77b'
,
'ac9add3724d90fba46e7298ac051fa5f'
,
'a3e8c166f876e0dd8eb09be4f9f907ab'
,
'39e841c85d9bbfc7ecf009c4202dbf0c'
,
'703686dd4e6aa6f55aca5d92c00d9ee3'
,
'efbe72fe207c5bb7ada28b278a9ea920'
,
'2bf74d5d66fa6d8d38b21b090586529b'
,
'16b68282950fb352dfe27e94bda47304'
,
'2bf74d5d66fa6d8d38b21b090586529b'
,
'8d1205a914564cbd528cadc3963c2905'
,
'658d519f1868979431e7e0da5d967e6b'
,
'59c5d311d09a7f68f8b6962ca652374a'
,
'8a3f2cc88421d9f07cbb53dd78e11495'
,
'464b1dbf722c8dcaaa7f2cc90b8d0d8d'
,
'ad37d44e57c18e4431a609968203c646'
,
'9127e2414d8e646fd2b473695d17c485'
,
'fdb297cd4b12374534413c3053aec1b8'
,
'f4c5c766fd5755b694e0401dddc4d1ad'
,
'464b1dbf722c8dcaaa7f2cc90b8d0d8d'
,
'7f65e6161c444d29e1f53f1cb76e92de'
,
'e7441fa67d425df343d996c745fb5d6b'
,
'756fecec409c3a955f0cd737259d27c7'
,
'2ccd29eeaeded3ea5a713a19cd67a83e'
,
'490f607f17e7cc8ceccc77f2d0b9a70d'
,
'13ed6c02918e612bac45715a6f300f2f'
,
'aa68a83577209ff0ec3864aec4e194f2'
,
'9c8e1b12e5e55164c2ec0e5617e1574b'
,
'e9b54ef29b192ecd2da05ff9570eb4d5'
,
'692ede21641dfdb7075ede69d7c4ad33'
,
'd69d223e4d3aeb8d947ac9b9ddc60a7e'
,
'b038c48269316664e5b48380a879fd99'
,
'd9bd3192a20de0815bed3fd3d79d0cb1'
,
'98865bf786ea85b14932dd5e48a74983'
,
'b1591dc4d651536bceb32b60310fd2a5'
,
'19d36909f837de28880553dc9a190922'
,
'e92ac401e96f4e17763322eca8355c30'
,
'bc76c982dd2264463427eb57e9ed3fba'
,
'
3ebf0cd640e39a4e7efe30ec1cf32b43
'
,
'
e92ac401e96f4e17763322eca8355c30
'
,
'9f80ed66360fbbb9bc57c575fdd8814f'
,
'94e6694a65d9cacb171b6e0b581216ba'
,
'8a4ccafa81445d49488874a8c7575932'
,
'5686558064d641b7ff599746970461cd'
,
'3bbf72a3e5b59fed0dee362a9b1384a8'
,
'fdb8ed39fbfea00f65416b9aaebd64e7'
,
'f73da4cb47a88d3fe5b92716e0137741'
,
'0b8c0a8b7a5b8b73595b23fc502652fc'
,
'59500fe075fdae44c35c88b95e64d9c8'
,
'b7c0a73eb248d41eb750bbf095fa5505'
,
'fdb8ed39fbfea00f65416b9aaebd64e7'
,
'd99f9680b535dcf3ad0d0f853a8b89d9'
,
'3041238537beef69c0f3410a1ba04c84'
,
'dd8d7ffe00cabb07784f30f66a5b34da'
,
'e14e0fa8f3def77ebbcf18f1f39c0225'
,
'd3255261c8522c660c1000cd0a61c3b0'
,
'6625a5fb33580f05512d6ba60d17b55f'
,
'5ccbd78fe47300a160915d6398b59604'
,
'bdb15578e295954bc2ecd16771c3e200'
,
'5f21463b9d808170d4023d8402cc6e9e'
,
'51dc78a9ed0e9cd37d46bec7dbc7d172'
,
'd9f9f0dede285235e3d0ad5101188d1e'
,
'ffedffb9c57cb200c275ba15e9100da4'
,
'84904c93ceea3ab6551555ee20c41e27'
,
'bdb15578e295954bc2ecd16771c3e200'
,
'6b3607e849c8517fd7ae1cab583f7393'
,
'41d3da0d37fb0135ace813f1ba06bd39'
,
'b1256beac1e95915b675893c61559b59'
,
'b8ae19200ec9d4e8e588bc31e3f9bcb4'
,
'09663b7a4e3dce70524d1b64e02b5e2d'
,
'edca8ee67304eb78c02bbfb9e4cb11bb'
,
'e2a1c9cb077cd2c74f2f2b914fb1db84'
,
'a6cb9804bfd40d2542ae2c44e0cc3331'
,
'd3321077dfab8bc6b92c649e5b69daf3'
,
'491c2bc6eab0ad313d4b6f06f6a396f5'
,
'836bdb4063978b55fedd6a180d60c323'
,
'e54ae8e27a53b3425ac78a229a163bd5'
,
'e53fed4d0b4dd614057f426b02115b41'
,
'369a14f21cbff0d0fe23831aecfca7ba'
,
'794fbfb192285c60dc9ce640270d79c0'
,
'00a0716a2029a7fe79fe03b6f74c7c90'
,
'302c48740ebb26191bba93f1795af44e'
,
'2b42718d8fb3b4c9a01651222304445a'
,
'a894de140705ecab2f39797d2922a3ce'
,
'e57dd501c75c6933363fa245edcadbbd'
,
'ea604a66caf499c70c9002a917dd1694'
,
'14eddc6d2c858a72c796b017959cc4ef'
,
'1247febf206e1e0dbb4f384b4cfa565c'
,
'4981c4ae8facb75582f8dcbc51850318'
,
],
},
{
...
...
@@ -302,6 +303,16 @@ export const viewstate: any = {
'581e6727bc5983c238cc9990ba5fdcac'
,
],
},
{
viewtag
:
'1ee924c4a616343b6b4cd42150b799fa'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZOrderDataViewExpView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'b4db5cb272d2da535285852bc436e9de'
,
],
},
{
viewtag
:
'2567fdd6130699509d22512564bbb650'
,
viewmodule
:
'Sample'
,
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
ec4aa76e
...
...
@@ -623,6 +623,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'Auto222'
:
this
.
clickAuto222
(
item
);
return
;
case
'AppFunc58'
:
this
.
clickAppFunc58
(
item
);
return
;
case
'Auto145'
:
this
.
clickAuto145
(
item
);
return
;
...
...
@@ -1650,6 +1653,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc58
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'dataviewexpview'
,
parameterName
:
'dataviewexpview'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
* 常规表格视图
*
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
浏览文件 @
ec4aa76e
...
...
@@ -1774,6 +1774,25 @@ export default class MainMenuModel {
appfunctag
:
'AppFunc57'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem136'
,
},
{
id
:
'65A6BA78-DAD9-4E7D-A442-BB083365EA47'
,
name
:
'menuitem137'
,
text
:
'卡片导航'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'卡片导航'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc58'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem137'
,
},
],
},
...
...
app_Web/src/widgets/ibizorder/card-navigation-dataview/card-navigation-dataview-base.vue
0 → 100644
浏览文件 @
ec4aa76e
<
template
>
<div
class=
"app-data-view"
>
<app-sort-bar
:sortModel=
"sortModel"
:sortField=
"sortField"
:sortDir=
"sortDir"
entityName=
"ibizorder"
@
clickSort=
"(val) =>
{sortClick(val);}">
</app-sort-bar>
<row
class=
"data-view-container"
v-if=
"items.length > 0"
:gutter=
"20"
type=
"flex"
justify=
"start"
style=
"margin:0px;"
>
<a
v-for=
"(item,index) in items"
:key=
"index"
:href =
"item.starturl"
>
<i-col
style=
"min-height: 170px;margin-bottom: 10px;"
>
<el-card
shadow=
"always"
:class=
"[ item.isselected === true ? 'isselected' : false, 'single-card-data' ]"
@
click
.
native=
"handleClick(item)"
@
dblclick
.
native=
"handleDblClick(item)"
>
<div
class=
"data-view-item"
>
<img
v-if=
"item.srficonpath"
:src=
"item.srficonpath"
class=
"single-card-img"
/>
<img
v-else
src=
"/assets/img/noimage.png"
class=
"single-card-img"
/>
<div
class=
"single-card-default"
>
<Tooltip
:content=
"item.srfmajortext"
>
{{
item
.
srfmajortext
}}
</Tooltip>
</div>
</div>
<div
class=
"data-view-item-action"
>
<template
v-for=
"(action,index) in Object.keys(ActionModel)"
>
<button
type=
"info"
:key=
"index"
@
click=
"uiAction(item, action, $event)"
>
<i
:class=
"ActionModel[action].icon"
style=
"margin-right:2px;"
></i>
<span>
{{
ActionModel
[
action
].
caption
}}
</span>
</button>
</
template
>
</div>
</el-card>
</i-col>
</a>
</row>
<div
v-else
class=
"app-data-empty"
>
{{ $t('entities.ibizorder.cardnavigation_dataview.nodata') }}
</div>
<el-backtop
target=
".content-container .app-data-view"
></el-backtop>
</div>
</template>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
AppCenterService
from
"@service/app/app-center-service"
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
CardNavigationService
from
'./card-navigation-dataview-service'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
import
CodeListService
from
"@/codelist/codelist-service"
;
@
Component
({
components
:
{
}
})
export
default
class
CardNavigationBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof CardNavigationBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof CardNavigationBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof CardNavigationBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof CardNavigationBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof CardNavigationBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof CardNavigationBase
*/
public
getControlType
():
string
{
return
'DATAVIEW'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof CardNavigationBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {CardNavigationService}
* @memberof CardNavigationBase
*/
public
service
:
CardNavigationService
=
new
CardNavigationService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof CardNavigationBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* 转化数据
*
* @param {any} args
* @memberof CardNavigationBase
*/
public
transformData
(
args
:
any
)
{
let
_this
:
any
=
this
;
if
(
_this
.
service
&&
_this
.
service
.
handleRequestData
instanceof
Function
&&
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)){
return
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)[
'data'
];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof CardNavigationBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof CardNavigationBase
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 代码表服务对象
*
* @type {CodeListService}
* @memberof CardNavigationBase
*/
public
codeListService
:
CodeListService
=
new
CodeListService
({
$store
:
this
.
$store
});
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof CardNavigationBase
*/
public
getDatas
():
any
[]
{
return
this
.
selections
;
}
/**
* 获取单项树
*
* @returns {*}
* @memberof CardNavigationBase
*/
public
getData
():
any
{
return
null
;
}
/**
* 是否默认选中第一条数据
*
* @type {boolean}
* @memberof CardNavigationBase
*/
@
Prop
({
default
:
false
})
public
isSelectFirstDefault
!
:
boolean
;
/**
* 显示处理提示
*
* @type {boolean}
* @memberof CardNavigationBase
*/
@
Prop
({
default
:
true
})
public
showBusyIndicator
?:
boolean
;
/**
* 部件行为--create
*
* @type {string}
* @memberof CardNavigationBase
*/
@
Prop
()
public
createAction
!
:
string
;
/**
* 部件行为--remove
*
* @type {string}
* @memberof CardNavigationBase
*/
@
Prop
()
public
removeAction
!
:
string
;
/**
* 部件行为--update
*
* @type {string}
* @memberof CardNavigationBase
*/
@
Prop
()
public
updateAction
!
:
string
;
/**
* 部件行为--fetch
*
* @type {string}
* @memberof CardNavigationBase
*/
@
Prop
()
public
fetchAction
!
:
string
;
/**
* 打开新建数据视图
*
* @type {any}
* @memberof CardNavigationBase
*/
@
Prop
()
public
newdata
:
any
;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof CardNavigationBase
*/
@
Prop
()
public
opendata
:
any
;
/**
* this引用
*
* @type {number}
* @memberof CardNavigationBase
*/
public
thisRef
:
any
=
this
;
/**
* 拖拽元素对象
*
* @type {boolean}
* @memberof CardNavigationBase
*/
public
dragEle
:
any
;
/**
* 拖拽后位置left
*
* @type {boolean}
* @memberof CardNavigationBase
*/
public
leftP
:
any
;
/**
* 拖拽后位置top
*
* @type {boolean}
* @memberof CardNavigationBase
*/
public
topP
:
any
;
/**
* 拖拽标识
*
* @type {boolean}
* @memberof CardNavigationBase
*/
public
dragflag
:
boolean
=
false
;
/**
* 为拖拽不是点击
*
* @type {boolean}
* @memberof CardNavigationBase
*/
public
moveflag
:
boolean
=
false
;
/**
* 是否单选
*
* @type {boolean}
* @memberof CardNavigationBase
*/
@
Prop
()
public
isSingleSelect
?:
boolean
;
/**
* 数据
*
* @type {any[]}
* @memberof CardNavigationBase
*/
public
items
:
any
[]
=
[];
/**
* 操作栏模型数据
*
* @type {*}
* @memberof CardNavigationBase
*/
public
ActionModel
:
any
=
{
};
/**
* 是否支持分页
*
* @type {boolean}
* @memberof CardNavigationBase
*/
public
isEnablePagingBar
:
boolean
=
true
;;
/**
* 总条数
*
* @type {number}
* @memberof CardNavigationBase
*/
public
totalRecord
:
number
=
0
;
/**
* 加载的数据是否附加在items之后
*
* @type {boolean}
* @memberof CardNavigationBase
*/
public
isAddBehind
:
boolean
=
false
;
/**
* 选中数组
* @type {Array<any>}
* @memberof CardNavigationBase
*/
public
selections
:
Array
<
any
>
=
[];
/**
* 当前页
*
* @type {number}
* @memberof CardNavigationBase
*/
public
curPage
:
number
=
1
;
/**
* 分页条数
*
* @type {number}
* @memberof CardNavigationBase
*/
public
limit
:
number
=
20
;
/**
* 排序方向
*
* @type {string}
* @memberof CardNavigationBase
*/
public
sortDir
:
string
=
''
;
/**
* 排序字段
*
* @type {string}
* @memberof CardNavigationBase
*/
public
sortField
:
string
=
''
;
/**
* 排序模型数据集
*
* @type {string}
* @memberof CardNavigationBase
*/
public
sortModel
:
any
[]
=
[
'amount'
,
'ibizcustomerid'
,
'memo'
,
'orderstate'
,
'detailnum'
,
'ibizcustomername'
,
'wfstep'
,
'ibizordername'
,
]
/**
* 应用状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof CardNavigationBase
*/
public
appStateEvent
:
Subscription
|
undefined
;
/**
* 默认隐藏批量操作工具栏
*
* @type {boolean}
* @memberof CardNavigationBase
*/
public
flag
:
boolean
=
false
;
/**
* 更改批量操作工具栏显示状态
*
* @param $event
* @memberof CardNavigationBase
*/
public
onClick
(
$event
:
any
){
if
(
!
this
.
moveflag
){
this
.
flag
=
!
this
.
flag
;
}
this
.
moveflag
=
false
;
}
/**
* 排序点击事件
* @param {string} field 属性名
*
* @memberof CardNavigationBase
*/
public
sortClick
(
field
:
string
)
{
if
(
this
.
sortField
!==
field
){
this
.
sortField
=
field
;
this
.
sortDir
=
'asc'
;
}
else
if
(
this
.
sortDir
===
'asc'
){
this
.
sortDir
=
'desc'
;
}
else
if
(
this
.
sortDir
===
'desc'
){
this
.
sortDir
=
''
;
}
else
{
this
.
sortDir
=
'asc'
;
}
this
.
refresh
();
}
/**
* 排序class变更
* @param {string} field 属性名
*
* @memberof CardNavigationBase
*/
public
getsortClass
(
field
:
string
)
{
if
(
this
.
sortField
!==
field
||
this
.
sortDir
===
''
){
return
''
;
}
else
if
(
this
.
sortDir
===
'asc'
){
return
'sort-ascending'
}
else
if
(
this
.
sortDir
===
'desc'
){
return
'sort-descending'
}
}
/**
* Vue声明周期,组件挂载完毕
*
* @memberof CardNavigationBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof CardNavigationBase
*/
public
afterMounted
(){
this
.
$el
.
addEventListener
(
'scroll'
,
()
=>
{
let
el
:
any
=
this
.
$el
.
getElementsByClassName
(
'dataview-pagination'
)[
0
];
el
.
style
.
top
=
40
+
this
.
$el
.
scrollTop
+
'px'
;
if
(
this
.
$el
.
scrollTop
+
this
.
$el
.
clientHeight
>=
this
.
$el
.
scrollHeight
)
{
this
.
loadMore
();
}
})
}
/**
* Vue声明周期,组件创建完毕
*
* @memberof CardNavigationBase
*/
public
created
()
{
this
.
afterCreated
();
this
.
$nextTick
(()
=>
{
this
.
mouseEvent
();
})
}
/**
* 执行created后的逻辑
*
* @memberof CardNavigationBase
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
this
.
name
,
tag
))
{
return
;
}
if
(
Object
.
is
(
action
,
'load'
))
{
this
.
refresh
(
data
)
}
if
(
Object
.
is
(
action
,
'filter'
))
{
this
.
refresh
(
data
)
}
});
}
if
(
AppCenterService
&&
AppCenterService
.
getMessageCenter
()){
this
.
appStateEvent
=
AppCenterService
.
getMessageCenter
().
subscribe
(({
name
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
name
,
"IBIZOrder"
)){
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
this
.
refresh
([
data
]);
}
})
}
}
/**
* 鼠标移动+放下
*
* @memberof CardNavigationBase
*/
public
mouseEvent
(){
this
.
dragEle
=
document
.
getElementsByClassName
(
'drag-filed'
)[
0
];
document
.
onmousemove
=
(
e
:
any
)
=>
{
if
(
this
.
dragflag
){
this
.
dragEle
.
style
.
left
=
(
e
.
clientX
-
this
.
leftP
)
+
'px'
;
this
.
dragEle
.
style
.
top
=
(
e
.
clientY
-
this
.
topP
)
+
'px'
;
this
.
moveflag
=
true
;
}
}
document
.
onmouseup
=
(
e
:
any
)
=>
{
this
.
dragflag
=
false
;
}
}
/**
* mousedown事件
*
* @param $event
* @memberof CardNavigationBase
*/
public
down
(
e
:
any
){
this
.
leftP
=
e
.
clientX
-
this
.
dragEle
.
offsetLeft
;
this
.
topP
=
e
.
clientY
-
this
.
dragEle
.
offsetTop
;
this
.
dragflag
=
true
;
}
/**
* 加载更多
*
* @memberof CardNavigationBase
*/
public
loadMore
(){
if
(
this
.
totalRecord
>
this
.
items
.
length
)
{
this
.
curPage
=
++
this
.
curPage
;
this
.
isAddBehind
=
true
;
this
.
load
({});
}
}
/**
* 刷新
*
* @param {*} [args={}]
* @memberof CardNavigationBase
*/
public
refresh
(
args
?:
any
)
{
this
.
curPage
=
1
;
this
.
load
(
args
,
true
);
}
/**
* vue 生命周期
*
* @memberof CardNavigationBase
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof CardNavigationBase
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
if
(
this
.
appStateEvent
){
this
.
appStateEvent
.
unsubscribe
();
}
}
/**
* 表格数据加载
*
* @public
* @param {*} [arg={}]
* @param {boolean} [isReset=false] 是否重置items
* @memberof CardNavigationBase
*/
public
load
(
opt
:
any
=
{},
isReset
:
boolean
=
false
):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{...
opt
};
const
page
:
any
=
{};
if
(
this
.
isEnablePagingBar
)
{
Object
.
assign
(
page
,
{
page
:
this
.
curPage
-
1
,
size
:
this
.
limit
});
}
// 设置排序
if
(
!
Object
.
is
(
this
.
sortDir
,
''
)
&&
!
Object
.
is
(
this
.
sortField
,
''
))
{
const
sort
:
string
=
this
.
sortField
+
","
+
this
.
sortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
Object
.
assign
(
arg
,
parentdata
);
let
tempViewParams
:
any
=
parentdata
.
viewparams
?
parentdata
.
viewparams
:{};
Object
.
assign
(
tempViewParams
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
)));
Object
.
assign
(
arg
,{
viewparams
:
tempViewParams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
search
(
this
.
fetchAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
if
(
response
.
errorMessage
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
errorMessage
});
}
return
;
}
const
data
:
any
=
response
.
data
;
if
(
!
this
.
isAddBehind
){
this
.
items
=
[];
}
if
(
Object
.
keys
(
data
).
length
>
0
)
{
let
datas
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
datas
.
map
((
item
:
any
)
=>
{
Object
.
assign
(
item
,
{
isselected
:
false
});
});
this
.
totalRecord
=
response
.
total
;
if
(
isReset
){
this
.
items
=
datas
;
}
else
{
this
.
items
.
push
(...
datas
);
}
}
this
.
isAddBehind
=
false
;
this
.
$emit
(
'load'
,
this
.
items
);
//在导航视图中,如已有选中数据,则右侧展开已选中数据的视图,如无选中数据则默认选中第一条
if
(
this
.
isSelectFirstDefault
){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
){
this
.
selections
.
forEach
((
select
:
any
)
=>
{
const
index
=
this
.
items
.
findIndex
((
item
:
any
)
=>
Object
.
is
(
item
.
srfkey
,
select
.
srfkey
));
if
(
index
!=
-
1
){
this
.
handleClick
(
this
.
items
[
index
]);
}
})
}
else
{
this
.
handleClick
(
this
.
items
[
0
]);
}
}
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
errorMessage
});
});
}
/**
* 删除
*
* @param {any[]} datas
* @returns {Promise<any>}
* @memberof CardNavigationBase
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
}
let
_datas
:
any
[]
=
[];
datas
.
forEach
((
record
:
any
,
index
:
number
)
=>
{
if
(
Object
.
is
(
record
.
srfuf
,
'0'
))
{
this
.
items
.
some
((
val
:
any
,
num
:
number
)
=>
{
if
(
JSON
.
stringify
(
val
)
==
JSON
.
stringify
(
record
)){
this
.
items
.
splice
(
num
,
1
);
return
true
;
}
});
}
else
{
_datas
.
push
(
datas
[
index
]);
}
});
if
(
_datas
.
length
===
0
)
{
return
;
}
let
dataInfo
=
''
;
_datas
.
forEach
((
record
:
any
,
index
:
number
)
=>
{
let
srfmajortext
=
record
.
srfmajortext
;
if
(
index
<
5
)
{
if
(
!
Object
.
is
(
dataInfo
,
''
))
{
dataInfo
+=
'、'
;
}
dataInfo
+=
srfmajortext
;
}
else
{
return
false
;
}
});
if
(
_datas
.
length
<
5
)
{
dataInfo
=
dataInfo
+
' '
+
(
this
.
$t
(
'app.dataView.sum'
)
as
string
)
+
_datas
.
length
+
(
this
.
$t
(
'app.dataView.data'
)
as
string
);
}
else
{
dataInfo
=
dataInfo
+
'...'
+
' '
+
(
this
.
$t
(
'app.dataView.sum'
)
as
string
)
+
_datas
.
length
+
(
this
.
$t
(
'app.dataView.data'
)
as
string
);
}
const
removeData
=
()
=>
{
let
keys
:
any
[]
=
[];
_datas
.
forEach
((
data
:
any
)
=>
{
keys
.
push
(
data
.
srfkey
);
});
let
_removeAction
=
keys
.
length
>
1
?
'removeBatch'
:
this
.
removeAction
;
const
context
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
const
post
:
Promise
<
any
>
=
this
.
service
.
delete
(
_removeAction
,
Object
.
assign
(
context
,{
ibizorder
:
keys
.
join
(
';'
)
}),
Object
.
assign
({
ibizorder
:
keys
.
join
(
';'
)
},{
viewparams
:
this
.
viewparams
}),
this
.
showBusyIndicator
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
''
,
desc
:
(
this
.
$t
(
'app.commonWords.delDataFail'
)
as
string
)
+
','
+
response
.
info
});
return
;
}
else
{
this
.
$Notice
.
success
({
title
:
''
,
desc
:
(
this
.
$t
(
'app.commonWords.deleteSuccess'
)
as
string
)
});
}
//删除items中已删除的项
_datas
.
forEach
((
data
:
any
)
=>
{
this
.
items
.
some
((
item
:
any
,
index
:
number
)
=>
{
if
(
Object
.
is
(
item
.
srfkey
,
data
.
srfkey
)){
this
.
items
.
splice
(
index
,
1
);
return
true
;
}
});
});
this
.
$emit
(
'remove'
,
null
);
this
.
selections
=
[];
resolve
(
response
);
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
reject
(
response
);
return
;
}
reject
(
response
);
});
});
}
dataInfo
=
dataInfo
.
replace
(
/
[
null
]
/g
,
''
).
replace
(
/
[
undefined
]
/g
,
''
).
replace
(
/
[
]
/g
,
''
);
this
.
$Modal
.
confirm
({
title
:
(
this
.
$t
(
'app.commonWords.warning'
)
as
string
),
content
:
(
this
.
$t
(
'app.gridpage.confirmDel'
)
as
string
)
+
' '
+
dataInfo
+
','
+
(
this
.
$t
(
'app.gridpage.notRecoverable'
)
as
string
),
onOk
:
()
=>
{
removeData
();
},
onCancel
:
()
=>
{
}
});
return
removeData
;
}
/**
* 保存
*
* @param {*} $event
* @returns {Promise<any>}
* @memberof CardNavigationBase
*/
public
async
save
(
args
:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
){
let
_this
=
this
;
let
successItems
:
any
=
[];
let
errorItems
:
any
=
[];
let
errorMessage
:
any
=
[];
for
(
const
item
of
_this
.
items
)
{
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
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
);
successItems
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
response
.
data
)));
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizorder
){
Object
.
assign
(
this
.
context
,{
ibizorder
:
item
.
ibizorder
});
}
let
response
=
await
this
.
service
.
add
(
this
.
updateAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
successItems
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
response
.
data
)));
}
}
}
catch
(
error
)
{
errorItems
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
item
)));
errorMessage
.
push
(
error
);
}
}
this
.
$emit
(
'save'
,
successItems
);
this
.
refresh
();
if
(
errorItems
.
length
===
0
){
this
.
$Notice
.
success
({
title
:
''
,
desc
:
(
this
.
$t
(
'app.commonWords.saveSuccess'
)
as
string
)
});
}
else
{
errorItems
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.saveFailed'
)
as
string
),
desc
:
item
.
majorentityname
+
(
this
.
$t
(
'app.commonWords.saveFailed'
)
as
string
)
+
'!'
});
console
.
error
(
errorMessage
[
index
]);
});
}
return
successItems
;
}
/**
* 面板数据变化处理事件
* @param {any} item 当前卡片数据
* @param {any} $event 面板事件数据
*
* @memberof CardNavigationBase
*/
public
onPanelDataChange
(
item
:
any
,
$event
:
any
)
{
Object
.
assign
(
item
,
$event
,
{
rowDataState
:
'update'
});
}
/**
* 选择数据
* @memberof CardNavigationBase
*
*/
public
handleClick
(
args
:
any
)
{
args
.
isselected
=
!
args
.
isselected
;
if
(
this
.
isSingleSelect
)
{
this
.
items
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srfkey
!==
args
.
srfkey
){
item
.
isselected
=
false
;
}
})
}
this
.
selectchange
();
}
/**
* 双击数据
* @memberof CardNavigationBase
*
*/
public
handleDblClick
(
args
:
any
)
{
this
.
$emit
(
'rowdblclick'
,
args
);
}
/**
* 触发事件
* @memberof CardNavigationBase
*
*/
public
selectchange
()
{
this
.
selections
=
[];
this
.
items
.
map
((
item
:
any
)
=>
{
if
(
item
.
isselected
)
{
this
.
selections
.
push
(
item
);
}
});
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
/**
* 操作列界面行为
*
* @param {*} data
* @param {*} tag
* @param {*} $event
* @memberof CardNavigationBase
*/
public
uiAction
(
data
:
any
,
tag
:
any
,
$event
:
any
)
{
$event
.
stopPropagation
();
}
}
</
script
>
<
style
lang=
'less'
>
@import './card-navigation-dataview.less';
</
style
>
\ No newline at end of file
app_Web/src/widgets/ibizorder/card-navigation-dataview/card-navigation-dataview-model.ts
0 → 100644
浏览文件 @
ec4aa76e
/**
* CardNavigation 部件模型
*
* @export
* @class CardNavigationModel
*/
export
default
class
CardNavigationModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof CardNavigationDataviewexpbar_dataviewMode
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'amount'
,
prop
:
'amount'
,
dataType
:
'FLOAT'
,
},
{
name
:
'ibizcustomerid'
,
prop
:
'ibizcustomerid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'memo'
,
prop
:
'memo'
,
dataType
:
'LONGTEXT_1000'
,
},
{
name
:
'orderstate'
,
prop
:
'orderstate'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'detailnum'
,
prop
:
'detailnum'
,
dataType
:
'INT'
,
},
{
name
:
'ibizorderid'
,
prop
:
'ibizorderid'
,
dataType
:
'GUID'
,
},
{
name
:
'ibizcustomername'
,
prop
:
'ibizcustomername'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'wfstep'
,
prop
:
'wfstep'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'ibizordername'
,
prop
:
'ibizordername'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfmstag'
,
},
{
name
:
'srfmajortext'
,
prop
:
'ibizordername'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfkey'
,
prop
:
'ibizorderid'
,
dataType
:
'GUID'
,
},
{
name
:
'ibizorder'
,
prop
:
'ibizorderid'
,
dataType
:
'FONTKEY'
,
},
{
name
:
'size'
,
prop
:
'size'
},
{
name
:
'query'
,
prop
:
'query'
},
{
name
:
'sort'
,
prop
:
'sort'
},
{
name
:
'page'
,
prop
:
'page'
},
{
name
:
'srfparentdata'
,
prop
:
'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/card-navigation-dataview/card-navigation-dataview-service.ts
0 → 100644
浏览文件 @
ec4aa76e
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
CardNavigationModel
from
'./card-navigation-dataview-model'
;
/**
* CardNavigation 部件服务对象
*
* @export
* @class CardNavigationService
*/
export
default
class
CardNavigationService
extends
ControlService
{
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof CardNavigationService
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof CardNavigationService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of CardNavigationService.
*
* @param {*} [opts={}]
* @memberof CardNavigationService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
CardNavigationModel
();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof CardNavigationService
*/
@
Errorlog
public
search
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
FetchDefault
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof CardNavigationService
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof CardNavigationService
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof CardNavigationService
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/card-navigation-dataview/card-navigation-dataview.less
0 → 100644
浏览文件 @
ec4aa76e
.app-data-view {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
position: relative;
// 排序栏样式
.bar-container{
padding: 6px 8px;
background-color: #F1F1F1;
.ivu-row-flex.page-sort-bar{
width: 100%;
height: 30px;
.ivu-col{
user-select: none;
text-align: center;
display: flex;
align-items: flex-end;
padding-bottom: 4px;
background-color: #FFF;
border: 1px solid #CCC;
margin-left: -1px;
.sort-field-text{
margin-left: 7px;
}
.caret-wrapper{
width: 15px;
display: inline-block;
padding-bottom: 2px;
.ivu-icon{
display: block;
line-height: 0.5;
color: #c5c8ce;
}
}
}
// 悬浮样式
.ivu-col:hover{
border:1px solid #82bff7;
position:relative;
z-index:2;
.sort-field-text{
color: #82bff7;
}
}
// 选中样式
.sort-ascending, .sort-descending{
border:1px solid #82bff7;
position:relative;
z-index:2;
.sort-field-text{
color:#82bff7;
font-weight: 800;
}
}
.sort-ascending .caret-wrapper .ivu-icon.ivu-icon-md-arrow-dropup,
.sort-descending .caret-wrapper .ivu-icon.ivu-icon-md-arrow-dropdown{
color: #82bff7;
}
}
}
.data-view-container {
height: calc(100% - 42px);
align-content: start;
.el-collapse{
width: 100%;
.el-collapse-item__content{
padding: 10px 0px 0px 0px;
display: flex;
.item-nodata {
padding-bottom: 10px;
width: 100%;
text-align: center;
}
}
}
.el-collapse-item__header.is-active{
color: #409eff;
background-color: #ecf5ff;
}
.ivu-col{
padding: 10px;
.el-card__body{
padding: 10px;
}
}
.el-card{
background-color: #f6f6f6;
color: #666666;
box-shadow: 0 2px 12px 0 #909399;
}
.single-card-data{
height: 100%;
width: 100%;
cursor: pointer;
border: 2px solid transparent;
.data-view-item{
.single-card-default {
.ivu-tooltip{
.ivu-tooltip-rel{
width: 150px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-align: left;
padding-left: 5px;
font-size: 18px;
font-weight: 800;
}
}
}
.single-card-img {
width: 150px;
height: calc(100% - 32px);
}
}
.data-view-item-action{
button{
margin: 0 3px;
cursor: pointer;
padding:3px;
}
button:hover{
color: #409eff;
}
}
}
.isselected{
border: 2px solid #82bff7;
box-shadow: 5px 5px 12px 0 #82bff7;
.ivu-tooltip{
color: #82bff7;
font-weight: 800;
}
}
.single-card-data:hover{
border: 2px solid #82bff7;
box-shadow: 5px 5px 12px 0 #82bff7;
.ivu-tooltip{
color: #82bff7;
font-weight: 800;
}
}
}
// 空值文本
.app-data-empty {
height: calc(100% - 42px);
color: #909399;
display: flex;
justify-content: center;
align-items: center;
}
.el-backtop {
position: absolute;
}
}
// this is less
app_Web/src/widgets/ibizorder/card-navigation-dataview/card-navigation-dataview.vue
0 → 100644
浏览文件 @
ec4aa76e
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
CardNavigationBase
from
'./card-navigation-dataview-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
CardNavigation
extends
CardNavigationBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar-base.vue
0 → 100644
浏览文件 @
ec4aa76e
<
template
>
<split
id=
"dataviewexpviewdataviewexpbar"
class=
"app-dataview-exp-bar"
v-model=
"split"
mode=
"horizontal"
@
on-move-end=
"onSplitChange"
>
<div
slot=
'left'
>
<div
class=
'dataview-exp-bar-header'
>
<div><icon
type=
'ios-home-outline'
/>
{{
$t
(
'app.dataViewExpBar.title'
)
}}
</div>
</div>
<div
class=
"container-header"
>
</div>
<div
class=
'dataview-exp-bar-content'
>
<view
_dataviewexpbar_dataview
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
createAction=
"Create"
removeAction=
"Remove"
updateAction=
"Update"
fetchAction=
"FetchDefault"
:showBusyIndicator=
"true"
:isSelectFirstDefault=
"true"
:newdata=
"newdata"
:opendata=
"opendata"
name=
"dataviewexpbar_dataview"
ref=
'dataviewexpbar_dataview'
@
selectionchange=
"dataviewexpbar_dataview_selectionchange($event)"
@
load=
"dataviewexpbar_dataview_load($event)"
@
closeview=
"closeView($event)"
>
</view
_dataviewexpbar_dataview
>
</div>
</div>
<div
slot=
'right'
>
<component
v-if=
"selection.view && !Object.is(this.selection.view.viewname, '')"
:is=
"selection.view.viewname"
class=
"viewcontainer2"
:viewDefaultUsage=
"false"
:viewdata=
"JSON.stringify(selection.context)"
:viewparam=
"JSON.stringify(selection.viewparam)"
>
</component>
</div>
</split>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
AppCenterService
from
"@service/app/app-center-service"
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
DataViewExpViewdataviewexpbarService
from
'./data-view-exp-viewdataviewexpbar-dataviewexpbar-service'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
import
CodeListService
from
"@/codelist/codelist-service"
;
@
Component
({
components
:
{
}
})
export
default
class
DataViewExpViewdataviewexpbarBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof DataViewExpViewdataviewexpbarBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof DataViewExpViewdataviewexpbarBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof DataViewExpViewdataviewexpbarBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof DataViewExpViewdataviewexpbarBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
getControlType
():
string
{
return
'DATAVIEWEXPBAR'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {DataViewExpViewdataviewexpbarService}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
service
:
DataViewExpViewdataviewexpbarService
=
new
DataViewExpViewdataviewexpbarService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* dataviewexpbar_dataview 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
dataviewexpbar_dataview_selectionchange
(
$event
:
any
,
$event2
?:
any
)
{
this
.
dataviewexpbar_selectionchange
(
$event
,
'dataviewexpbar_dataview'
,
$event2
);
}
/**
* dataviewexpbar_dataview 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
dataviewexpbar_dataview_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
dataviewexpbar_load
(
$event
,
'dataviewexpbar_dataview'
,
$event2
);
}
/**
* 转化数据
*
* @param {any} args
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
transformData
(
args
:
any
)
{
let
_this
:
any
=
this
;
if
(
_this
.
service
&&
_this
.
service
.
handleRequestData
instanceof
Function
&&
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)){
return
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)[
'data'
];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 打开新建数据视图
*
* @type {any}
* @memberof DataViewExpViewdataviewexpbarBase
*/
@
Prop
()
public
newdata
:
any
;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof DataViewExpViewdataviewexpbarBase
*/
@
Prop
()
public
opendata
:
any
;
/**
* 视图唯一标识
*
* @type {boolean}
* @memberof DataViewExpViewdataviewexpbarBase
*/
@
Prop
()
public
viewUID
!
:
string
;
/**
* 是否单选
*
* @public
* @type {(boolean)}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
isSingleSelect
:
boolean
=
true
;
/**
* 呈现模式,可选值:horizontal或者vertical
*
* @public
* @type {(string)}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
showMode
:
string
=
"horizontal"
;
/**
* 控件宽度
*
* @type {number}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
ctrlWidth
:
number
=
0
;
/**
* 控件高度
*
* @type {number}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
ctrlHeight
:
number
=
0
;
/**
* 可搜索字段名称
*
*
* @type {(string)}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
placeholder
=
"订单名称"
;
/**
* 搜素值
*
* @public
* @type {(string)}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
searchText
:
string
=
""
;
/**
* 分割宽度
*
* @type {number}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
split
:
number
=
0.5
;
/**
* 导航视图名称
*
* @type {string}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
navViewName
:
string
=
"ibizorder-detail-sgrid-view9"
;
/**
* 导航视图参数
*
* @type {string}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
navViewParam
:
string
=
'{}'
;
/**
* 导航过滤项
*
* @type {string}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
navFilter
:
string
=
""
;
/**
* 导航关系
*
* @type {string}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
navPSDer
:
string
=
"n_ibizorderid_eq"
;
/**
* 导航上下文参数
*
* @type {*}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
navigateContext
:
any
=
null
;
/**
* 导航视图参数
*
* @type {*}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
navigateParams
:
any
=
null
;
/**
* 显示处理提示
*
* @type {boolean}
* @memberof DataViewExpViewdataviewexpbarBase
*/
@
Prop
({
default
:
true
})
public
showBusyIndicator
!
:
boolean
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
getData
():
any
{
return
null
;
}
/**
* 选中数据
*
* @type {*}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
selection
:
any
=
{};
/**
* split值变化事件
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
onSplitChange
()
{
if
(
this
.
split
){
this
.
$store
.
commit
(
"setViewSplit"
,{
viewUID
:
this
.
viewUID
,
viewSplit
:
this
.
split
});
}
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
this
.
viewState
.
next
({
tag
:
'dataviewexpbar_dataview'
,
action
:
action
,
data
:
data
});
});
}
}
/**
* Vue声明周期(组件渲染完毕)
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
afterMounted
(){
if
(
this
.
$store
.
getters
.
getViewSplit
(
this
.
viewUID
)){
this
.
split
=
this
.
$store
.
getters
.
getViewSplit
(
this
.
viewUID
);
}
else
{
let
containerWidth
:
number
=
(
document
.
getElementById
(
"dataviewexpviewdataviewexpbar"
)
as
any
).
offsetWidth
;
let
containerHeight
:
number
=
(
document
.
getElementById
(
"dataviewexpviewdataviewexpbar"
)
as
any
).
offsetHeight
;
if
(
Object
.
is
(
this
.
showMode
,
'horizontal'
)){
if
(
this
.
ctrlWidth
){
this
.
split
=
this
.
ctrlWidth
/
containerWidth
;
}
}
else
{
if
(
this
.
ctrlHeight
){
this
.
split
=
this
.
ctrlHeight
/
containerHeight
;
}
}
this
.
$store
.
commit
(
"setViewSplit"
,{
viewUID
:
this
.
viewUID
,
viewSplit
:
this
.
split
});
}
}
/**
* vue 生命周期
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
/**
* 刷新
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
refresh
(
args
?:
any
):
void
{
const
refs
:
any
=
this
.
$refs
;
if
(
refs
&&
refs
.
dataviewexpbar_dataview
)
{
refs
.
dataviewexpbar_dataview
.
refresh
();
}
}
/**
* 卡片视图导航选中
*
* @param {any []} args
* @param {string} [tag]
* @param {*} [$event2]
* @returns {void}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
dataviewexpbar_selectionchange
(
args
:
any
[],
tag
?:
string
,
$event2
?:
any
):
void
{
let
tempContext
:
any
=
{};
let
tempViewParam
:
any
=
{};
if
(
args
.
length
===
0
)
{
this
.
calcToolbarItemState
(
true
);
return
;
}
const
arg
:
any
=
args
[
0
];
if
(
this
.
context
){
Object
.
assign
(
tempContext
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)));
}
Object
.
assign
(
tempContext
,{
'ibizorder'
:
arg
[
'ibizorder'
]});
Object
.
assign
(
tempContext
,{
srfparentdename
:
'IBIZOrder'
,
srfparentkey
:
arg
[
'ibizorder'
]});
if
(
this
.
navFilter
&&
!
Object
.
is
(
this
.
navFilter
,
""
)){
Object
.
assign
(
tempViewParam
,{[
this
.
navFilter
]:
arg
[
'ibizorder'
]});
}
if
(
this
.
navPSDer
&&
!
Object
.
is
(
this
.
navPSDer
,
""
)){
Object
.
assign
(
tempViewParam
,{[
this
.
navPSDer
]:
arg
[
'ibizorder'
]});
}
if
(
this
.
navigateContext
&&
Object
.
keys
(
this
.
navigateContext
).
length
>
0
){
let
_context
:
any
=
this
.
$util
.
computedNavData
(
arg
,
tempContext
,
tempViewParam
,
this
.
navigateContext
);
Object
.
assign
(
tempContext
,
_context
);
}
if
(
this
.
navigateParams
&&
Object
.
keys
(
this
.
navigateParams
).
length
>
0
){
let
_params
:
any
=
this
.
$util
.
computedNavData
(
arg
,
tempContext
,
tempViewParam
,
this
.
navigateParams
);
Object
.
assign
(
tempViewParam
,
_params
);
}
this
.
selection
=
{};
Object
.
assign
(
this
.
selection
,
{
view
:
{
viewname
:
this
.
navViewName
},
context
:
tempContext
,
viewparam
:
tempViewParam
});
this
.
calcToolbarItemState
(
false
);
this
.
$forceUpdate
();
}
/**
* 卡片视图加载完成
*
* @param {any[]} args
* @param {string} [tag]
* @param {*} [$event2]
* @returns {void}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
dataviewexpbar_load
(
args
:
any
[],
tag
?:
string
,
$event2
?:
any
):
void
{
this
.
calcToolbarItemState
(
true
);
this
.
$emit
(
'load'
,
args
);
}
/**
* 设置导航区工具栏禁用状态
*
* @param {boolean} state
* @return {*}
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
calcToolbarItemState
(
state
:
boolean
)
{
let
_this
:
any
=
this
;
const
models
:
any
=
_this
.
dataviewexpviewdataviewexpbar_toolbarModels
;
if
(
models
)
{
for
(
const
key
in
models
)
{
if
(
!
models
.
hasOwnProperty
(
key
))
{
return
;
}
const
_item
=
models
[
key
];
if
(
_item
.
uiaction
&&
(
Object
.
is
(
_item
.
uiaction
.
target
,
'SINGLEKEY'
)
||
Object
.
is
(
_item
.
uiaction
.
target
,
'MULTIKEY'
)))
{
_item
.
disabled
=
state
;
}
_item
.
visabled
=
true
;
if
(
_item
.
noprivdisplaymode
&&
_item
.
noprivdisplaymode
===
6
)
{
_item
.
visabled
=
false
;
}
}
this
.
calcNavigationToolbarState
();
}
}
/**
* 计算导航工具栏权限状态
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
calcNavigationToolbarState
(){
let
_this
:
any
=
this
;
// 界面行为
if
(
_this
.
dataviewexpviewdataviewexpbar_toolbarModels
){
const
curUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
();
ViewTool
.
calcActionItemAuthState
({},
_this
.
dataviewexpviewdataviewexpbar_toolbarModels
,
curUIService
);
}
}
/**
* 执行搜索
*
* @memberof DataViewExpViewdataviewexpbarBase
*/
public
onSearch
()
{
this
.
viewState
.
next
({
tag
:
'dataviewexpbar_dataview'
,
action
:
'filter'
,
data
:
{
query
:
this
.
searchText
}
});
}
}
</
script
>
<
style
lang=
'less'
>
@import './data-view-exp-viewdataviewexpbar-dataviewexpbar.less';
</
style
>
\ No newline at end of file
app_Web/src/widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar-model.ts
0 → 100644
浏览文件 @
ec4aa76e
/**
* DataViewExpViewdataviewexpbar 部件模型
*
* @export
* @class DataViewExpViewdataviewexpbarModel
*/
export
default
class
DataViewExpViewdataviewexpbarModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DataViewExpViewdataviewexpbarDataviewexpbarMode
*/
public
getDataItems
():
any
[]
{
return
[
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar-service.ts
0 → 100644
浏览文件 @
ec4aa76e
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
DataViewExpViewdataviewexpbarModel
from
'./data-view-exp-viewdataviewexpbar-dataviewexpbar-model'
;
/**
* DataViewExpViewdataviewexpbar 部件服务对象
*
* @export
* @class DataViewExpViewdataviewexpbarService
*/
export
default
class
DataViewExpViewdataviewexpbarService
extends
ControlService
{
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof DataViewExpViewdataviewexpbarService
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof DataViewExpViewdataviewexpbarService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of DataViewExpViewdataviewexpbarService.
*
* @param {*} [opts={}]
* @memberof DataViewExpViewdataviewexpbarService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
DataViewExpViewdataviewexpbarModel
();
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar.less
0 → 100644
浏览文件 @
ec4aa76e
.app-dataview-exp-bar {
> .ivu-split-horizontal {
> .ivu-split-trigger-con {
height: 100%;
width: 1px;
}
> .ivu-split-pane {
> div {
height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
.dataview-exp-bar-header {
line-height: 50px;
border-bottom: 1px solid #ddd;
>div {
font-size: 18px;
i {
font-size: 20px;
margin-top: -2px;
}
}
}
.container-header{
display: flex;
justify-content: space-between;
align-items: center;
.search-container {
width: 30%;
height: 48px;
padding: 10px 10px 10px 0;
min-width: 200px;
max-width: 400px;
}
.toolbar-container{
padding: 4px;
display: flex;
flex-wrap: wrap;
align-items: center;
}
}
.dataview-exp-bar-content {
height: calc(100% - 40px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
}
.dataview-exp-bar-content2 {
height: 100%;
overflow: auto;
flex-grow: 1;
}
}
}
> .right-pane.ivu-split-pane {
> div {
padding-left: 10px;
}
}
> .left-pane.ivu-split-pane {
padding-right: 10px;
}
}
> .ivu-split-vertical{
> .ivu-split-pane {
> div {
height: 100%;
.dataview-exp-bar-header {
line-height: 50px;
border-bottom: 1px solid #ddd;
>div {
font-size: 18px;
i {
font-size: 20px;
margin-top: -2px;
}
}
}
.container-header{
display: flex;
justify-content: flex-start;
align-items: center;
.search-container {
width: 30%;
height: 48px;
padding: 10px 10px 10px 0;
min-width: 200px;
max-width: 400px;
}
.toolbar-container{
padding: 4px;
}
.quick-group-container{
padding-right: 20px;
}
}
.dataview-exp-bar-content {
height: calc(100% - 40px);
overflow: auto;
margin-bottom: 10px;
}
.dataview-exp-bar-content2 {
height: 100%;
overflow: auto;
flex-grow: 1;
}
}
}
> .top-pane.ivu-split-pane {
> div {
padding-bottom: 10px;
}
}
> .bottom-pane.ivu-split-pane {
padding-top: 10px;
}
}
}
// this is less
app_Web/src/widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar.vue
0 → 100644
浏览文件 @
ec4aa76e
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
DataViewExpViewdataviewexpbarBase
from
'./data-view-exp-viewdataviewexpbar-dataviewexpbar-base.vue'
;
import
view_dataviewexpbar_dataview
from
'@widgets/ibizorder/card-navigation-dataview/card-navigation-dataview.vue'
;
@
Component
({
components
:
{
view_dataviewexpbar_dataview
,
}
})
export
default
class
DataViewExpViewdataviewexpbar
extends
DataViewExpViewdataviewexpbarBase
{
}
</
script
>
\ No newline at end of file
demo-core/src/main/resources/permission/systemResource.json
浏览文件 @
ec4aa76e
...
...
@@ -302,7 +302,7 @@
{
"appid"
:
"Web"
,
"appname"
:
"演示应用"
,
"appmenu"
:[{
"menuid"
:
"MainMenu"
,
"menuname"
:
"MainMenu"
,
"menuitem"
:[{
"id"
:
"menuitem1"
,
"name"
:
"工作台"
},{
"id"
:
"menuitem3"
,
"name"
:
"控件"
,
"items"
:[{
"id"
:
"menuitem6"
,
"name"
:
"默认数据类型"
},{
"id"
:
"menuitem7"
,
"name"
:
"默认编辑器类型"
},{
"id"
:
"menuitem15"
,
"name"
:
"基础表单项"
},{
"id"
:
"menuitem72"
,
"name"
:
"扩展编辑器"
}]},{
"id"
:
"menuitem4"
,
"name"
:
"部件"
,
"items"
:[{
"id"
:
"menuitem12"
,
"name"
:
"编辑表单"
,
"items"
:[{
"id"
:
"menuitem107"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem47"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem99"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem48"
,
"name"
:
"输入提示"
},{
"id"
:
"menuitem49"
,
"name"
:
"辅助输入"
},{
"id"
:
"menuitem50"
,
"name"
:
"自动填充"
},{
"id"
:
"menuitem51"
,
"name"
:
"超链接"
},{
"id"
:
"menuitem52"
,
"name"
:
"表单值重置"
},{
"id"
:
"menuitem55"
,
"name"
:
"动态显示"
},{
"id"
:
"menuitem53"
,
"name"
:
"动态启用"
},{
"id"
:
"menuitem54"
,
"name"
:
"动态空输入"
},{
"id"
:
"menuitem56"
,
"name"
:
"表单项更新"
},{
"id"
:
"menuitem108"
,
"name"
:
"表单值规则"
}]},{
"id"
:
"menuitem16"
,
"name"
:
"搜索表单"
},{
"id"
:
"menuitem13"
,
"name"
:
"表格"
,
"items"
:[{
"id"
:
"menuitem57"
,
"name"
:
"禁用排序"
},{
"id"
:
"menuitem59"
,
"name"
:
"行操作"
},{
"id"
:
"menuitem58"
,
"name"
:
"行编辑"
},{
"id"
:
"menuitem73"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem74"
,
"name"
:
"表格行编辑"
},{
"id"
:
"menuitem75"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem76"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem77"
,
"name"
:
"表格值规则"
},{
"id"
:
"menuitem132"
,
"name"
:
"表格列更新"
},{
"id"
:
"menuitem133"
,
"name"
:
"表格列重置"
},{
"id"
:
"menuitem78"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem80"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem81"
,
"name"
:
"当前页聚合"
},{
"id"
:
"menuitem82"
,
"name"
:
"远程聚合"
}]},{
"id"
:
"menuitem83"
,
"name"
:
"列表"
,
"items"
:[{
"id"
:
"menuitem84"
,
"name"
:
"列表内置功能"
},{
"id"
:
"menuitem85"
,
"name"
:
"列表自动分组"
},{
"id"
:
"menuitem86"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem91"
,
"name"
:
"列表嵌入面板"
}]},{
"id"
:
"menuitem14"
,
"name"
:
"树视图"
,
"items"
:[{
"id"
:
"menuitem60"
,
"name"
:
"静态节点"
},{
"id"
:
"menuitem61"
,
"name"
:
"动态节点(代码表)"
},{
"id"
:
"menuitem62"
,
"name"
:
"动态节点(实体)"
},{
"id"
:
"menuitem63"
,
"name"
:
"右键操作"
},{
"id"
:
"menuitem64"
,
"name"
:
"动态参数过滤"
},{
"id"
:
"menuitem110"
,
"name"
:
"树表格"
}]},{
"id"
:
"menuitem37"
,
"name"
:
"图表"
,
"items"
:[{
"id"
:
"menuitem38"
,
"name"
:
"柱状图"
},{
"id"
:
"menuitem39"
,
"name"
:
"折线图"
},{
"id"
:
"menuitem40"
,
"name"
:
"饼图"
},{
"id"
:
"menuitem41"
,
"name"
:
"区域图"
},{
"id"
:
"menuitem42"
,
"name"
:
"雷达图"
}]},{
"id"
:
"menuitem17"
,
"name"
:
"向导"
,
"items"
:[{
"id"
:
"menuitem134"
,
"name"
:
"向导视图"
},{
"id"
:
"menuitem135"
,
"name"
:
"状态向导"
}]},{
"id"
:
"menuitem18"
,
"name"
:
"界面行为"
,
"items"
:[{
"id"
:
"menuitem65"
,
"name"
:
"前端界面行为"
},{
"id"
:
"menuitem66"
,
"name"
:
"后台界面行为"
}]},{
"id"
:
"menuitem87"
,
"name"
:
"数据视图"
,
"items"
:[{
"id"
:
"menuitem88"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem89"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem90"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem94"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem95"
,
"name"
:
"日历"
,
"items"
:[{
"id"
:
"menuitem96"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem97"
,
"name"
:
"时间轴样式"
},{
"id"
:
"menuitem109"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem101"
,
"name"
:
"看板"
,
"items"
:[{
"id"
:
"menuitem102"
,
"name"
:
"看板内置功能"
},{
"id"
:
"menuitem104"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem105"
,
"name"
:
"嵌入视图面板"
}]},{
"id"
:
"menuitem111"
,
"name"
:
"甘特图"
,
"items"
:[{
"id"
:
"menuitem112"
,
"name"
:
"甘特图"
}]},{
"id"
:
"menuitem119"
,
"name"
:
"分页视图"
,
"items"
:[{
"id"
:
"menuitem120"
,
"name"
:
"分页导航"
}]},{
"id"
:
"menuitem121"
,
"name"
:
"多编辑视图"
,
"items"
:[{
"id"
:
"menuitem115"
,
"name"
:
"多表单(行记录)"
},{
"id"
:
"menuitem123"
,
"name"
:
"多表单(上分页)"
}]},{
"id"
:
"menuitem122"
,
"name"
:
"数据关系栏"
,
"items"
:[{
"id"
:
"menuitem116"
,
"name"
:
"编辑视图(左右关系)"
},{
"id"
:
"menuitem117"
,
"name"
:
"编辑视图(上下关系)"
},{
"id"
:
"menuitem118"
,
"name"
:
"编辑视图(分页关系)"
}]},{
"id"
:
"menuitem125"
,
"name"
:
"数据看板"
,
"items"
:[{
"id"
:
"menuitem126"
,
"name"
:
"实体数据看板"
}]},{
"id"
:
"menuitem127"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem128"
,
"name"
:
"表格导航"
},{
"id"
:
"menuitem114"
,
"name"
:
"列表导航"
},{
"id"
:
"menuitem136"
,
"name"
:
"树导航"
}]},{
"id"
:
"menuitem129"
,
"name"
:
"选项操作"
,
"items"
:[{
"id"
:
"menuitem130"
,
"name"
:
"选项操作视图"
},{
"id"
:
"menuitem131"
,
"name"
:
"表格选项操作"
}]}]},{
"id"
:
"menuitem5"
,
"name"
:
"视图"
,
"items"
:[{
"id"
:
"menuitem9"
,
"name"
:
"列表视图"
,
"items"
:[{
"id"
:
"menuitem19"
,
"name"
:
"常规表格视图"
},{
"id"
:
"menuitem21"
,
"name"
:
"左右表格视图"
},{
"id"
:
"menuitem20"
,
"name"
:
"嵌入表格视图"
}]},{
"id"
:
"menuitem8"
,
"name"
:
"编辑视图"
,
"items"
:[{
"id"
:
"menuitem22"
,
"name"
:
"常规编辑视图"
},{
"id"
:
"menuitem23"
,
"name"
:
"左右编辑视图"
},{
"id"
:
"menuitem24"
,
"name"
:
"分页编辑视图"
},{
"id"
:
"menuitem25"
,
"name"
:
"嵌入编辑视图"
}]},{
"id"
:
"menuitem26"
,
"name"
:
"选择视图"
,
"items"
:[{
"id"
:
"menuitem27"
,
"name"
:
"单选视图"
},{
"id"
:
"menuitem28"
,
"name"
:
"多选视图"
},{
"id"
:
"menuitem29"
,
"name"
:
"树形选择视图"
},{
"id"
:
"menuitem30"
,
"name"
:
"左右单选视图"
},{
"id"
:
"menuitem31"
,
"name"
:
"左右多选视图"
}]},{
"id"
:
"menuitem10"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem32"
,
"name"
:
"常规导航视图"
},{
"id"
:
"menuitem33"
,
"name"
:
"分页导航视图"
},{
"id"
:
"menuitem34"
,
"name"
:
"嵌入导航视图"
}]},{
"id"
:
"menuitem11"
,
"name"
:
"其他视图"
,
"items"
:[{
"id"
:
"menuitem35"
,
"name"
:
"图表视图"
},{
"id"
:
"menuitem36"
,
"name"
:
"报表视图"
},{
"id"
:
"menuitem98"
,
"name"
:
"自定义视图"
}]},{
"id"
:
"menuitem79"
,
"name"
:
"表格视图"
}]},{
"id"
:
"menuitem69"
,
"name"
:
"工作流"
},{
"id"
:
"menuitem2"
,
"name"
:
"更多"
,
"items"
:[{
"id"
:
"menuitem46"
,
"name"
:
"数据导出导入"
},{
"id"
:
"menuitem45"
,
"name"
:
"数据打印"
},{
"id"
:
"menuitem67"
,
"name"
:
"索引实体"
},{
"id"
:
"menuitem68"
,
"name"
:
"继承实体"
},{
"id"
:
"menuitem70"
,
"name"
:
"主状态"
},{
"id"
:
"menuitem71"
,
"name"
:
"多表单"
}]},{
"id"
:
"menuitem92"
,
"name"
:
"其他"
,
"items"
:[{
"id"
:
"menuitem93"
,
"name"
:
"示例实体02示例数据补充"
},{
"id"
:
"menuitem100"
,
"name"
:
"订单示例数据补充"
},{
"id"
:
"menuitem103"
,
"name"
:
"产品示例数据补充"
},{
"id"
:
"menuitem106"
,
"name"
:
"示例实体03示例数据补充"
},{
"id"
:
"menuitem113"
,
"name"
:
"订单类型添加"
},{
"id"
:
"menuitem124"
,
"name"
:
"示例实体01数据补充"
}]}]
}]
"appmenu"
:[{
"menuid"
:
"MainMenu"
,
"menuname"
:
"MainMenu"
,
"menuitem"
:[{
"id"
:
"menuitem1"
,
"name"
:
"工作台"
},{
"id"
:
"menuitem3"
,
"name"
:
"控件"
,
"items"
:[{
"id"
:
"menuitem6"
,
"name"
:
"默认数据类型"
},{
"id"
:
"menuitem7"
,
"name"
:
"默认编辑器类型"
},{
"id"
:
"menuitem15"
,
"name"
:
"基础表单项"
},{
"id"
:
"menuitem72"
,
"name"
:
"扩展编辑器"
}]},{
"id"
:
"menuitem4"
,
"name"
:
"部件"
,
"items"
:[{
"id"
:
"menuitem12"
,
"name"
:
"编辑表单"
,
"items"
:[{
"id"
:
"menuitem107"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem47"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem99"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem48"
,
"name"
:
"输入提示"
},{
"id"
:
"menuitem49"
,
"name"
:
"辅助输入"
},{
"id"
:
"menuitem50"
,
"name"
:
"自动填充"
},{
"id"
:
"menuitem51"
,
"name"
:
"超链接"
},{
"id"
:
"menuitem52"
,
"name"
:
"表单值重置"
},{
"id"
:
"menuitem55"
,
"name"
:
"动态显示"
},{
"id"
:
"menuitem53"
,
"name"
:
"动态启用"
},{
"id"
:
"menuitem54"
,
"name"
:
"动态空输入"
},{
"id"
:
"menuitem56"
,
"name"
:
"表单项更新"
},{
"id"
:
"menuitem108"
,
"name"
:
"表单值规则"
}]},{
"id"
:
"menuitem16"
,
"name"
:
"搜索表单"
},{
"id"
:
"menuitem13"
,
"name"
:
"表格"
,
"items"
:[{
"id"
:
"menuitem57"
,
"name"
:
"禁用排序"
},{
"id"
:
"menuitem59"
,
"name"
:
"行操作"
},{
"id"
:
"menuitem58"
,
"name"
:
"行编辑"
},{
"id"
:
"menuitem73"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem74"
,
"name"
:
"表格行编辑"
},{
"id"
:
"menuitem75"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem76"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem77"
,
"name"
:
"表格值规则"
},{
"id"
:
"menuitem132"
,
"name"
:
"表格列更新"
},{
"id"
:
"menuitem133"
,
"name"
:
"表格列重置"
},{
"id"
:
"menuitem78"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem80"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem81"
,
"name"
:
"当前页聚合"
},{
"id"
:
"menuitem82"
,
"name"
:
"远程聚合"
}]},{
"id"
:
"menuitem83"
,
"name"
:
"列表"
,
"items"
:[{
"id"
:
"menuitem84"
,
"name"
:
"列表内置功能"
},{
"id"
:
"menuitem85"
,
"name"
:
"列表自动分组"
},{
"id"
:
"menuitem86"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem91"
,
"name"
:
"列表嵌入面板"
}]},{
"id"
:
"menuitem14"
,
"name"
:
"树视图"
,
"items"
:[{
"id"
:
"menuitem60"
,
"name"
:
"静态节点"
},{
"id"
:
"menuitem61"
,
"name"
:
"动态节点(代码表)"
},{
"id"
:
"menuitem62"
,
"name"
:
"动态节点(实体)"
},{
"id"
:
"menuitem63"
,
"name"
:
"右键操作"
},{
"id"
:
"menuitem64"
,
"name"
:
"动态参数过滤"
},{
"id"
:
"menuitem110"
,
"name"
:
"树表格"
}]},{
"id"
:
"menuitem37"
,
"name"
:
"图表"
,
"items"
:[{
"id"
:
"menuitem38"
,
"name"
:
"柱状图"
},{
"id"
:
"menuitem39"
,
"name"
:
"折线图"
},{
"id"
:
"menuitem40"
,
"name"
:
"饼图"
},{
"id"
:
"menuitem41"
,
"name"
:
"区域图"
},{
"id"
:
"menuitem42"
,
"name"
:
"雷达图"
}]},{
"id"
:
"menuitem17"
,
"name"
:
"向导"
,
"items"
:[{
"id"
:
"menuitem134"
,
"name"
:
"向导视图"
},{
"id"
:
"menuitem135"
,
"name"
:
"状态向导"
}]},{
"id"
:
"menuitem18"
,
"name"
:
"界面行为"
,
"items"
:[{
"id"
:
"menuitem65"
,
"name"
:
"前端界面行为"
},{
"id"
:
"menuitem66"
,
"name"
:
"后台界面行为"
}]},{
"id"
:
"menuitem87"
,
"name"
:
"数据视图"
,
"items"
:[{
"id"
:
"menuitem88"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem89"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem90"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem94"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem95"
,
"name"
:
"日历"
,
"items"
:[{
"id"
:
"menuitem96"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem97"
,
"name"
:
"时间轴样式"
},{
"id"
:
"menuitem109"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem101"
,
"name"
:
"看板"
,
"items"
:[{
"id"
:
"menuitem102"
,
"name"
:
"看板内置功能"
},{
"id"
:
"menuitem104"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem105"
,
"name"
:
"嵌入视图面板"
}]},{
"id"
:
"menuitem111"
,
"name"
:
"甘特图"
,
"items"
:[{
"id"
:
"menuitem112"
,
"name"
:
"甘特图"
}]},{
"id"
:
"menuitem119"
,
"name"
:
"分页视图"
,
"items"
:[{
"id"
:
"menuitem120"
,
"name"
:
"分页导航"
}]},{
"id"
:
"menuitem121"
,
"name"
:
"多编辑视图"
,
"items"
:[{
"id"
:
"menuitem115"
,
"name"
:
"多表单(行记录)"
},{
"id"
:
"menuitem123"
,
"name"
:
"多表单(上分页)"
}]},{
"id"
:
"menuitem122"
,
"name"
:
"数据关系栏"
,
"items"
:[{
"id"
:
"menuitem116"
,
"name"
:
"编辑视图(左右关系)"
},{
"id"
:
"menuitem117"
,
"name"
:
"编辑视图(上下关系)"
},{
"id"
:
"menuitem118"
,
"name"
:
"编辑视图(分页关系)"
}]},{
"id"
:
"menuitem125"
,
"name"
:
"数据看板"
,
"items"
:[{
"id"
:
"menuitem126"
,
"name"
:
"实体数据看板"
}]},{
"id"
:
"menuitem127"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem128"
,
"name"
:
"表格导航"
},{
"id"
:
"menuitem114"
,
"name"
:
"列表导航"
},{
"id"
:
"menuitem136"
,
"name"
:
"树导航"
}
,{
"id"
:
"menuitem137"
,
"name"
:
"卡片导航"
}
]},{
"id"
:
"menuitem129"
,
"name"
:
"选项操作"
,
"items"
:[{
"id"
:
"menuitem130"
,
"name"
:
"选项操作视图"
},{
"id"
:
"menuitem131"
,
"name"
:
"表格选项操作"
}]}]},{
"id"
:
"menuitem5"
,
"name"
:
"视图"
,
"items"
:[{
"id"
:
"menuitem9"
,
"name"
:
"列表视图"
,
"items"
:[{
"id"
:
"menuitem19"
,
"name"
:
"常规表格视图"
},{
"id"
:
"menuitem21"
,
"name"
:
"左右表格视图"
},{
"id"
:
"menuitem20"
,
"name"
:
"嵌入表格视图"
}]},{
"id"
:
"menuitem8"
,
"name"
:
"编辑视图"
,
"items"
:[{
"id"
:
"menuitem22"
,
"name"
:
"常规编辑视图"
},{
"id"
:
"menuitem23"
,
"name"
:
"左右编辑视图"
},{
"id"
:
"menuitem24"
,
"name"
:
"分页编辑视图"
},{
"id"
:
"menuitem25"
,
"name"
:
"嵌入编辑视图"
}]},{
"id"
:
"menuitem26"
,
"name"
:
"选择视图"
,
"items"
:[{
"id"
:
"menuitem27"
,
"name"
:
"单选视图"
},{
"id"
:
"menuitem28"
,
"name"
:
"多选视图"
},{
"id"
:
"menuitem29"
,
"name"
:
"树形选择视图"
},{
"id"
:
"menuitem30"
,
"name"
:
"左右单选视图"
},{
"id"
:
"menuitem31"
,
"name"
:
"左右多选视图"
}]},{
"id"
:
"menuitem10"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem32"
,
"name"
:
"常规导航视图"
},{
"id"
:
"menuitem33"
,
"name"
:
"分页导航视图"
},{
"id"
:
"menuitem34"
,
"name"
:
"嵌入导航视图"
}]},{
"id"
:
"menuitem11"
,
"name"
:
"其他视图"
,
"items"
:[{
"id"
:
"menuitem35"
,
"name"
:
"图表视图"
},{
"id"
:
"menuitem36"
,
"name"
:
"报表视图"
},{
"id"
:
"menuitem98"
,
"name"
:
"自定义视图"
}]},{
"id"
:
"menuitem79"
,
"name"
:
"表格视图"
}]},{
"id"
:
"menuitem69"
,
"name"
:
"工作流"
},{
"id"
:
"menuitem2"
,
"name"
:
"更多"
,
"items"
:[{
"id"
:
"menuitem46"
,
"name"
:
"数据导出导入"
},{
"id"
:
"menuitem45"
,
"name"
:
"数据打印"
},{
"id"
:
"menuitem67"
,
"name"
:
"索引实体"
},{
"id"
:
"menuitem68"
,
"name"
:
"继承实体"
},{
"id"
:
"menuitem70"
,
"name"
:
"主状态"
},{
"id"
:
"menuitem71"
,
"name"
:
"多表单"
}]},{
"id"
:
"menuitem92"
,
"name"
:
"其他"
,
"items"
:[{
"id"
:
"menuitem93"
,
"name"
:
"示例实体02示例数据补充"
},{
"id"
:
"menuitem100"
,
"name"
:
"订单示例数据补充"
},{
"id"
:
"menuitem103"
,
"name"
:
"产品示例数据补充"
},{
"id"
:
"menuitem106"
,
"name"
:
"示例实体03示例数据补充"
},{
"id"
:
"menuitem113"
,
"name"
:
"订单类型添加"
},{
"id"
:
"menuitem124"
,
"name"
:
"示例实体01数据补充"
}]}]
}]
}
]
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录