Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
f7877f9f
提交
f7877f9f
编写于
12月 02, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
1dde36fc
变更
27
隐藏空白字符变更
内嵌
并排
正在显示
27 个修改的文件
包含
2927 行增加
和
12 行删除
+2927
-12
view-config.json
app_Web/public/assets/json/view-config.json
+8
-0
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
ibizorder_en_US.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
+9
-0
ibizorder_zh_CN.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
+9
-0
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+18
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+8
-0
ibizorder-usr2-calendar-exp-view-base.vue
...lendar-exp-view/ibizorder-usr2-calendar-exp-view-base.vue
+705
-0
ibizorder-usr2-calendar-exp-view.less
...2-calendar-exp-view/ibizorder-usr2-calendar-exp-view.less
+8
-0
ibizorder-usr2-calendar-exp-view.vue
...r2-calendar-exp-view/ibizorder-usr2-calendar-exp-view.vue
+22
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+1
-0
router.ts
app_Web/src/pages/sample/index/router.ts
+27
-0
state.ts
app_Web/src/store/modules/view-action/state.ts
+11
-0
ibizorder-ui-service-base.ts
app_Web/src/uiservice/ibizorder/ibizorder-ui-service-base.ts
+1
-0
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+37
-11
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+19
-0
order-calendar-timeline-navigation-calendar-base.vue
...ndar/order-calendar-timeline-navigation-calendar-base.vue
+899
-0
order-calendar-timeline-navigation-calendar-model.ts
...ndar/order-calendar-timeline-navigation-calendar-model.ts
+70
-0
order-calendar-timeline-navigation-calendar-service.ts
...ar/order-calendar-timeline-navigation-calendar-service.ts
+169
-0
order-calendar-timeline-navigation-calendar.less
...calendar/order-calendar-timeline-navigation-calendar.less
+101
-0
order-calendar-timeline-navigation-calendar.vue
...-calendar/order-calendar-timeline-navigation-calendar.vue
+14
-0
usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-base.vue
...2-calendar-exp-viewcalendarexpbar-calendarexpbar-base.vue
+587
-0
usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-model.ts
...2-calendar-exp-viewcalendarexpbar-calendarexpbar-model.ts
+21
-0
usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-service.ts
...calendar-exp-viewcalendarexpbar-calendarexpbar-service.ts
+44
-0
usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.less
.../usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.less
+120
-0
usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.vue
...r/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.vue
+16
-0
systemResource.json
demo-core/src/main/resources/permission/systemResource.json
+1
-1
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
f7877f9f
...
...
@@ -823,6 +823,14 @@
"viewname"
:
"IBIZSample0017F20EditView"
,
"viewtag"
:
"9147f210be1f0751245496a40be86fad"
},
"ibizorderusr2calendarexpview"
:
{
"title"
:
"订单日历导航视图(时间轴)"
,
"caption"
:
"订单"
,
"viewtype"
:
"DECALENDAREXPVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderUsr2CalendarExpView"
,
"viewtag"
:
"92cca69539c77ba96bfc384fc570bfa7"
},
"ibizbookusr4gridview"
:
{
"title"
:
"表格当前页本地聚合"
,
"caption"
:
"表格当前页本地聚合"
,
...
...
app_Web/src/locale/lang/en-US.ts
浏览文件 @
f7877f9f
...
...
@@ -256,6 +256,7 @@ export default {
menuitem136
:
"树导航"
,
menuitem137
:
"卡片导航"
,
menuitem138
:
"日历导航"
,
menuitem139
:
"时间轴导航"
,
menuitem129
:
"选项操作"
,
menuitem130
:
"选项操作视图"
,
menuitem131
:
"表格选项操作"
,
...
...
app_Web/src/locale/lang/zh-CN.ts
浏览文件 @
f7877f9f
...
...
@@ -256,6 +256,7 @@ export default {
menuitem136
:
"树导航"
,
menuitem137
:
"卡片导航"
,
menuitem138
:
"日历导航"
,
menuitem139
:
"时间轴导航"
,
menuitem129
:
"选项操作"
,
menuitem130
:
"选项操作视图"
,
menuitem131
:
"表格选项操作"
,
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
浏览文件 @
f7877f9f
...
...
@@ -137,6 +137,10 @@ export default {
caption
:
"订单"
,
title
:
"订单列表导航视图"
,
},
usr2calendarexpview
:
{
caption
:
"订单"
,
title
:
"订单日历导航视图(时间轴)"
,
},
piechartview
:
{
caption
:
"订单"
,
title
:
"订单图表视图"
,
...
...
@@ -2003,4 +2007,9 @@ export default {
uiactions
:
{
},
},
ordercalendartimelinenavigation_calendar
:
{
nodata
:
""
,
uiactions
:
{
},
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
浏览文件 @
f7877f9f
...
...
@@ -136,6 +136,10 @@ export default {
caption
:
"订单"
,
title
:
"订单列表导航视图"
,
},
usr2calendarexpview
:
{
caption
:
"订单"
,
title
:
"订单日历导航视图(时间轴)"
,
},
piechartview
:
{
caption
:
"订单"
,
title
:
"订单图表视图"
,
...
...
@@ -2002,4 +2006,9 @@ export default {
uiactions
:
{
},
},
ordercalendartimelinenavigation_calendar
:
{
nodata
:
""
,
uiactions
:
{
},
},
};
\ No newline at end of file
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
f7877f9f
...
...
@@ -1715,6 +1715,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls
:
''
,
appfunctag
:
'AppFunc59'
,
resourcetag
:
''
,
},
{
id
:
'A375C0EE-6D4F-42F1-B32F-6A23C2642F40'
,
name
:
'menuitem139'
,
text
:
'时间轴导航'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'时间轴导航'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc60'
,
resourcetag
:
''
,
},
],
},
...
...
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
f7877f9f
...
...
@@ -831,6 +831,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZSample0017F20EditView"
,
"viewtag"
:
"9147f210be1f0751245496a40be86fad"
},
"ibizorderusr2calendarexpview"
:
{
"title"
:
"订单日历导航视图(时间轴)"
,
"caption"
:
"订单"
,
"viewtype"
:
"DECALENDAREXPVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderUsr2CalendarExpView"
,
"viewtag"
:
"92cca69539c77ba96bfc384fc570bfa7"
},
"ibizbookusr4gridview"
:
{
"title"
:
"表格当前页本地聚合"
,
"caption"
:
"表格当前页本地聚合"
,
...
...
app_Web/src/pages/sample/ibizorder-usr2-calendar-exp-view/ibizorder-usr2-calendar-exp-view-base.vue
0 → 100644
浏览文件 @
f7877f9f
<
template
>
<div
class=
"view-container decalendarexpview ibizorder-usr2-calendar-exp-view"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizorderusr2calendarexpview"
></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
_calendarexpbar
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:showBusyIndicator=
"true"
:viewUID=
"viewUID"
:newdata=
"newdata"
:opendata=
"opendata"
name=
"calendarexpbar"
ref=
'calendarexpbar'
@
selectionchange=
"calendarexpbar_selectionchange($event)"
@
activated=
"calendarexpbar_activated($event)"
@
load=
"calendarexpbar_load($event)"
@
closeview=
"closeView($event)"
>
</view
_calendarexpbar
>
</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
CalendarExpViewEngine
from
'@engine/view/calendar-exp-view-engine'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
@
Component
({
components
:
{
},
})
export
default
class
IBIZOrderUsr2CalendarExpViewBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
;
/**
* 实体UI服务对象
*
* @type IBIZOrderUIService
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
appUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
(
this
.
$store
);
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
viewtag
:
string
=
'92cca69539c77ba96bfc384fc570bfa7'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
model
:
any
=
{
srfCaption
:
'entities.ibizorder.views.usr2calendarexpview.caption'
,
srfTitle
:
'entities.ibizorder.views.usr2calendarexpview.title'
,
srfSubTitle
:
'entities.ibizorder.views.usr2calendarexpview.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
@
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 IBIZOrderUsr2CalendarExpViewBase
*/
@
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 IBIZOrderUsr2CalendarExpViewBase
*/
public
containerModel
:
any
=
{
view_calendarexpbar
:
{
name
:
'calendarexpbar'
,
type
:
'CALENDAREXPBAR'
},
wflinks
:
[],
};
/**
* 计数器刷新
*
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
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 IBIZOrderUsr2CalendarExpViewBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
engine
:
CalendarExpViewEngine
=
new
CalendarExpViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
calendarexpbar
:
this
.
$refs
.
calendarexpbar
,
keyPSDEField
:
'ibizorder'
,
majorPSDEField
:
'ibizordername'
,
isLoadDefault
:
true
,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
navDataService
=
NavDataService
.
getInstance
(
this
.
$store
);
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
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 IBIZOrderUsr2CalendarExpViewBase
*/
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 IBIZOrderUsr2CalendarExpViewBase
*/
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 IBIZOrderUsr2CalendarExpViewBase
*/
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-usr2-calendar-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 IBIZOrderUsr2CalendarExpViewBase
*/
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-usr2-calendar-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 IBIZOrderUsr2CalendarExpViewBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
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-usr2-calendar-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
,
'IBIZOrderUsr2CalendarExpView'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
}
/**
* 销毁之前
*
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
beforeDestroy
()
{
this
.
$store
.
commit
(
'viewaction/removeView'
,
this
.
viewtag
);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* calendarexpbar 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
calendarexpbar_selectionchange
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'calendarexpbar'
,
'selectionchange'
,
$event
);
}
/**
* calendarexpbar 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
calendarexpbar_activated
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'calendarexpbar'
,
'activated'
,
$event
);
}
/**
* calendarexpbar 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
public
calendarexpbar_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'calendarexpbar'
,
'load'
,
$event
);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof IBIZOrderUsr2CalendarExpView
*/
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 IBIZOrderUsr2CalendarExpView
*/
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 IBIZOrderUsr2CalendarExpViewBase
*/
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 IBIZOrderUsr2CalendarExpViewBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZOrderUsr2CalendarExpViewBase
*/
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 IBIZOrderUsr2CalendarExpViewBase
*/
public
viewUID
:
string
=
'sample-ibizorder-usr2-calendar-exp-view'
;
}
</
script
>
<
style
lang=
'less'
>
@import './ibizorder-usr2-calendar-exp-view.less';
</
style
>
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-usr2-calendar-exp-view/ibizorder-usr2-calendar-exp-view.less
0 → 100644
浏览文件 @
f7877f9f
.ibizorder-usr2-calendar-exp-view{
position: relative;
}
.ibizorder-usr2-calendar-exp-view{
display: block;
}
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-usr2-calendar-exp-view/ibizorder-usr2-calendar-exp-view.vue
0 → 100644
浏览文件 @
f7877f9f
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderUsr2CalendarExpViewBase
from
'./ibizorder-usr2-calendar-exp-view-base.vue'
;
import
view_calendarexpbar
from
'@widgets/ibizorder/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.vue'
;
@
Component
({
components
:
{
view_calendarexpbar
,
},
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
IBIZOrderUsr2CalendarExpView
extends
IBIZOrderUsr2CalendarExpViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
f7877f9f
...
...
@@ -12,6 +12,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizsample0002-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsample0002-edit-view/ibizsample0002-edit-view.vue'
));
Vue
.
component
(
'ibizorder-bar-chart-view'
,
()
=>
import
(
'@pages/sample/ibizorder-bar-chart-view/ibizorder-bar-chart-view.vue'
));
Vue
.
component
(
'ibizsample0003-stree-exp-view2'
,
()
=>
import
(
'@pages/sample/ibizsample0003-stree-exp-view2/ibizsample0003-stree-exp-view2.vue'
));
Vue
.
component
(
'ibizorder-usr2-calendar-exp-view'
,
()
=>
import
(
'@pages/sample/ibizorder-usr2-calendar-exp-view/ibizorder-usr2-calendar-exp-view.vue'
));
Vue
.
component
(
'ibizbookwizard-view'
,
()
=>
import
(
'@pages/sample/ibizbookwizard-view/ibizbookwizard-view.vue'
));
Vue
.
component
(
'ibizbookusr5-grid-view'
,
()
=>
import
(
'@pages/sample/ibizbookusr5-grid-view/ibizbookusr5-grid-view.vue'
));
Vue
.
component
(
'ibizbookusr2-grid-view'
,
()
=>
import
(
'@pages/sample/ibizbookusr2-grid-view/ibizbookusr2-grid-view.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
f7877f9f
...
...
@@ -263,6 +263,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0003-stree-exp-view2/ibizsample0003-stree-exp-view2.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/usr2calendarexpview/:usr2calendarexpview?'
,
meta
:
{
caption
:
'entities.ibizorder.views.usr2calendarexpview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'usr2calendarexpview'
,
parameterName
:
'usr2calendarexpview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-usr2-calendar-exp-view/ibizorder-usr2-calendar-exp-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/wizardview/:wizardview?'
,
meta
:
{
...
...
@@ -3929,6 +3943,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0017-f20-edit-view/ibizsample0017-f20-edit-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/usr2calendarexpview/:usr2calendarexpview?'
,
meta
:
{
caption
:
'entities.ibizorder.views.usr2calendarexpview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'usr2calendarexpview'
,
parameterName
:
'usr2calendarexpview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-usr2-calendar-exp-view/ibizorder-usr2-calendar-exp-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/usr4gridview/:usr4gridview?'
,
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
f7877f9f
...
...
@@ -188,6 +188,7 @@ export const viewstate: any = {
'0c1093afa96df2832f707495afec541e'
,
'7d37165f2f535b4a6d2116188fe83d18'
,
'53269c1ea73ad6fae5d2ac4eced7f9d1'
,
'92cca69539c77ba96bfc384fc570bfa7'
,
'a3e8c166f876e0dd8eb09be4f9f907ab'
,
'703686dd4e6aa6f55aca5d92c00d9ee3'
,
'39e841c85d9bbfc7ecf009c4202dbf0c'
,
...
...
@@ -1005,6 +1006,16 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'92cca69539c77ba96bfc384fc570bfa7'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZOrderUsr2CalendarExpView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'b4db5cb272d2da535285852bc436e9de'
,
],
},
{
viewtag
:
'94e6694a65d9cacb171b6e0b581216ba'
,
viewmodule
:
'Sample'
,
...
...
app_Web/src/uiservice/ibizorder/ibizorder-ui-service-base.ts
浏览文件 @
f7877f9f
...
...
@@ -124,6 +124,7 @@ export default class IBIZOrderUIServiceBase extends UIService {
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'dashboardview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-dashboard-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sf1editview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-sf1-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'listexpview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-list-exp-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2calendarexpview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-usr2-calendar-exp-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'piechartview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-pie-chart-view'
});
this
.
allViewMap
.
set
(
'WFMDATAVIEW:ODSP:W:10'
,{
viewname
:
'odsp_w10_wfgridview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-odsp-w10-wfgrid-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sf3editview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-sf3-edit-view'
});
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
f7877f9f
...
...
@@ -737,12 +737,12 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'Auto185'
:
this
.
clickAuto185
(
item
);
return
;
case
'AppFunc30'
:
this
.
clickAppFunc30
(
item
);
return
;
case
'Auto243'
:
this
.
clickAuto243
(
item
);
return
;
case
'AppFunc30'
:
this
.
clickAppFunc30
(
item
);
return
;
case
'AppFunc5'
:
this
.
clickAppFunc5
(
item
);
return
;
...
...
@@ -767,6 +767,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc'
:
this
.
clickAppFunc
(
item
);
return
;
case
'AppFunc60'
:
this
.
clickAppFunc60
(
item
);
return
;
case
'Auto233'
:
this
.
clickAuto233
(
item
);
return
;
...
...
@@ -2531,18 +2534,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
图书实体树表格
*
主状态
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickA
ppFunc30
(
item
:
any
=
{})
{
public
clickA
uto243
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibiz
books'
,
parameterName
:
'ibizbook
'
},
{
pathName
:
'
treegridexview'
,
parameterName
:
'treegridex
view'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
sgridview'
,
parameterName
:
'sgrid
view'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2554,18 +2557,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
主状态
*
图书实体树表格
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickA
uto243
(
item
:
any
=
{})
{
public
clickA
ppFunc30
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
sgridview'
,
parameterName
:
'sgrid
view'
},
{
pathName
:
'ibiz
books'
,
parameterName
:
'ibizbook
'
},
{
pathName
:
'
treegridexview'
,
parameterName
:
'treegridex
view'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2762,6 +2765,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc60
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'usr2calendarexpview'
,
parameterName
:
'usr2calendarexpview'
},
];
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
浏览文件 @
f7877f9f
...
...
@@ -1812,6 +1812,25 @@ export default class MainMenuModel {
appfunctag
:
'AppFunc59'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem138'
,
},
{
id
:
'A375C0EE-6D4F-42F1-B32F-6A23C2642F40'
,
name
:
'menuitem139'
,
text
:
'时间轴导航'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'时间轴导航'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc60'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem139'
,
},
],
},
...
...
app_Web/src/widgets/ibizorder/order-calendar-timeline-navigation-calendar/order-calendar-timeline-navigation-calendar-base.vue
0 → 100644
浏览文件 @
f7877f9f
<
template
>
<div
:class=
'calendarClass'
>
<context-menu-container>
<template
v-if=
"events.length >0"
>
<el-timeline>
<el-timeline-item
v-for=
"(item, index) in events"
:key=
"item.title+index"
:color=
"item.color"
:timestamp=
"item.start"
placement=
"top"
>
<context-menu
:contextMenuStyle=
"
{width: '100%'}" :data="item" :renderContent="renderContextMenu">
<el-card
@
click
.
native=
"onEventClick(item,true,$event)"
:class=
"item.className"
>
<div
v-if=
"false && item.itemType == 'item1'"
>
</div>
<div
v-else
>
<h4>
{{
item
.
title
}}
</h4>
<p>
{{
$t
(
'app.calendar.from'
)
}}
{{
item
.
start
}}
{{
$t
(
'app.calendar.to'
)
}}
{{
item
.
end
}}
</p>
</div>
</el-card>
</context-menu>
</el-timeline-item>
</el-timeline>
</
template
>
<
template
v-else
>
<span
class=
"app-data-empty"
>
{{
$t
(
'entities.ibizorder.ordercalendartimelinenavigation_calendar.nodata'
)
}}
</span>
</
template
>
</context-menu-container>
</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
OrderCalendarTimelineNavigationService
from
'./order-calendar-timeline-navigation-calendar-service'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
import
FullCalendar
from
'@fullcalendar/vue'
import
dayGridPlugin
from
'@fullcalendar/daygrid'
import
timeGridPlugin
from
'@fullcalendar/timegrid'
;
import
listPlugin
from
'@fullcalendar/list'
;
import
interactionPlugin
from
'@fullcalendar/interaction'
;
import
ContextMenu
from
'@components/context-menu/context-menu'
;
import
UIService
from
'@/uiservice/ui-service'
;
@
Component
({
components
:
{
FullCalendar
,
}
})
export
default
class
OrderCalendarTimelineNavigationBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
getControlType
():
string
{
return
'CALENDAR'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {OrderCalendarTimelineNavigationService}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
service
:
OrderCalendarTimelineNavigationService
=
new
OrderCalendarTimelineNavigationService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* 转化数据
*
* @param {any} args
* @memberof OrderCalendarTimelineNavigationBase
*/
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 OrderCalendarTimelineNavigationBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof OrderCalendarTimelineNavigationBase
*/
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 {boolean}
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Prop
({
default
:
false
})
public
isSelectFirstDefault
!
:
boolean
;
/**
* 显示处理提示
*
* @type {boolean}
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Prop
({
default
:
true
})
public
showBusyIndicator
?:
boolean
;
/**
* 部件行为--load
*
* @type {string}
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Prop
()
public
loadAction
!
:
string
;
/**
* 打开新建数据视图
*
* @type {any}
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Prop
()
public
newdata
:
any
;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Prop
()
public
opendata
:
any
;
/**
* 日历部件样式名
*
* @public
* @type {any[]}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
calendarClass
:
string
=
"calendar"
;
/**
* this引用
*
* @type {any}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
thisRef
:
any
=
this
;
/**
* 选中事件element元素
*
* @public
* @type {any[]}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
selectedEventElement
:
any
;
/**
* 引用插件集合
*
* @public
* @type {any[]}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
calendarPlugins
:
any
[]
=
[
dayGridPlugin
,
timeGridPlugin
,
listPlugin
,
interactionPlugin
];
/**
* 设置头部显示
*
* @public
* @type {}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
header
:
any
=
{
left
:
'prev,next today gotoDate'
,
center
:
'title'
,
right
:
'dayGridMonth,timeGridWeek,timeGridDay,listWeek'
};
/**
* 按钮文本集合
*
* @public
* @type {}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
buttonText
:
any
=
{
today
:
'今天'
,
month
:
'月'
,
week
:
'周'
,
day
:
'天'
,
list
:
'列'
};
/**
* 自定义按钮集合
*
* @public
* @type {}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
customButtons
:
any
=
{
gotoDate
:
{
text
:
"跳转"
,
click
:
this
.
openDateSelect
}
};
/**
* 模态显示控制变量
*
* @public
* @type boolean
* @memberof OrderCalendarTimelineNavigationBase
*/
public
modalVisible
:
boolean
=
false
;
/**
* 跳转日期
*
* @public
* @type Date
* @memberof OrderCalendarTimelineNavigationBase
*/
public
selectedGotoDate
:
Date
=
new
Date
();
/**
* 打开时间选择模态
*
* @public
* @memberof OrderCalendarTimelineNavigationBase
*/
public
openDateSelect
(){
this
.
modalVisible
=
true
;
}
/**
* 跳转到指定时间
*
* @public
* @memberof OrderCalendarTimelineNavigationBase
*/
public
gotoDate
(){
let
appCalendar
:
any
=
this
.
$refs
.
calendar
;
let
api
=
appCalendar
.
getApi
();
api
.
gotoDate
(
this
.
selectedGotoDate
);
}
/**
* 有效日期范围
*
* @public
* @type {}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
validRange
:
any
=
{
start
:
"0000-01-01"
,
end
:
"9999-12-31"
};
/**
* 默认加载日期
*
* @public
* @type {}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
defaultDate
:
any
=
this
.
$util
.
dateFormat
(
new
Date
());
/**
* 设置按钮文本
*
* @public
* @memberof OrderCalendarTimelineNavigationBase
*/
public
setButtonText
(){
this
.
buttonText
.
today
=
this
.
$t
(
'app.calendar.today'
),
this
.
buttonText
.
month
=
this
.
$t
(
'app.calendar.month'
),
this
.
buttonText
.
week
=
this
.
$t
(
'app.calendar.week'
),
this
.
buttonText
.
day
=
this
.
$t
(
'app.calendar.day'
),
this
.
buttonText
.
list
=
this
.
$t
(
'app.calendar.list'
)
this
.
customButtons
.
gotoDate
.
text
=
this
.
$t
(
'app.calendar.gotoDate'
)
}
/**
* 监听语言变化
*
* @public
* @memberof OrderCalendarTimelineNavigationBase
*/
@
Watch
(
'$i18n.locale'
)
public
onLocaleChange
(
newval
:
any
,
val
:
any
)
{
this
.
setButtonText
();
}
/**
* 日程事件集合
*
* @public
* @type {any[]}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
events
:
any
[]
=
[];
/**
* 日历项上下文菜单集合
*
* @type {string[]}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
actionModel
:
any
=
{
}
/**
* 备份日历项上下文菜单
*
* @type {string[]}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
copyActionModel
:
any
;
/**
* 日历样式类型
*
* @public
* @type {string}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
calendarType
:
string
=
"TIMELINE"
;
/**
* 图例显示控制
*
* @public
* @type {any}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
isShowlegend
:
any
=
{
item1
:
true
,
};
/**
* 图例点击事件
*
* @public
* @memberof OrderCalendarTimelineNavigationBase
*/
legendTrigger
(
itemType
:
string
){
this
.
isShowlegend
[
itemType
]
=
!
this
.
isShowlegend
[
itemType
];
this
.
refresh
();
}
/**
* 查询参数缓存
*
* @public
* @type {any}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
searchArgCache
:
any
=
{};
/**
* 搜索获取日程事件
*
* @param {*} $event 日期信息
* @memberof OrderCalendarTimelineNavigationBase
*/
public
searchEvents
(
fetchInfo
?:
any
,
successCallback
?:
any
,
failureCallback
?:
any
)
{
// 处理请求参数
let
start
=
(
fetchInfo
&&
fetchInfo
.
start
)
?
this
.
$util
.
dateFormat
(
fetchInfo
.
start
)
:
null
;
let
end
=
(
fetchInfo
&&
fetchInfo
.
end
)
?
this
.
$util
.
dateFormat
(
fetchInfo
.
end
)
:
null
;
let
arg
=
{
start
:
start
,
end
:
end
};
if
(
fetchInfo
&&
fetchInfo
.
query
){
Object
.
assign
(
arg
,{
query
:
fetchInfo
.
query
});
}
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
});
// 处理events数据
let
_this
=
this
;
let
handleEvents
=
()
=>
{
if
(
_this
.
isSelectFirstDefault
){
// 模拟$event数据
let
tempEvent
=
JSON
.
parse
(
JSON
.
stringify
(
_this
.
events
.
length
>
0
?
_this
.
events
[
0
]:{}));
_this
.
onEventClick
(
tempEvent
,
true
);
if
(
_this
.
events
.
length
>
0
){
_this
.
events
[
0
].
className
=
"select-first-event"
;
}
_this
.
calendarClass
=
"calendar select-first-calendar"
;
}
let
filterEvents
=
this
.
events
.
filter
((
event
:
any
)
=>
{
return
_this
.
isShowlegend
[
event
.
itemType
];
});
if
(
successCallback
){
successCallback
(
filterEvents
);
}
// 刷新日历的大小(仅fullcalendar组件使用)
if
(
!
Object
.
is
(
_this
.
calendarType
,
"TIMELINE"
)){
let
appCalendar
:
any
=
_this
.
$refs
.
calendar
;
let
api
=
appCalendar
.
getApi
();
api
.
updateSize
();
}
}
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
)){
handleEvents
();
return
;
}
else
{
this
.
searchArgCache
=
arg
;
}
const
post
:
Promise
<
any
>
=
this
.
service
.
search
(
this
.
loadAction
,
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
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
errorMessage
});
});
}
/**
* 日期点击事件
*
* @param {*} $event 日期信息
* @memberof OrderCalendarTimelineNavigationBase
*/
public
onDateClick
(
$event
:
any
)
{
let
date
=
$event
.
date
;
let
datestr
=
$event
.
dateStr
;
}
/**
* 获取编辑视图信息
*
* @param {*} $event 事件信息
* @memberof OrderCalendarTimelineNavigationBase
*/
public
getEditView
(
deName
:
string
)
{
let
view
:
any
=
{};
switch
(
deName
){
case
"ibizorderdetail"
:
view
=
{
viewname
:
'ibizorder-detail-sgrid-view9'
,
height
:
0
,
width
:
0
,
title
:
this
.
$t
(
'entities.ibizorderdetail.views.sgridview9.title'
),
placement
:
''
,
deResParameters
:
[{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
],
parameters
:
[{
pathName
:
'ibizorderdetails'
,
parameterName
:
'ibizorderdetail'
},
{
pathName
:
'sgridview9'
,
parameterName
:
'sgridview9'
}
],
};
break
;
}
return
view
;
}
/**
* 日程点击事件
*
* @param {*} $event calendar事件对象或event数据
* @param {*} isOriginData true:$event是原始event数据,false:是组件
* @param {*} $event timeline事件对象
* @memberof OrderCalendarTimelineNavigationBase
*/
public
onEventClick
(
$event
:
any
,
isOriginData
:
boolean
=
false
,
$event2
?:
any
)
{
// 处理event数据
let
event
:
any
=
{};
if
(
isOriginData
){
event
=
JSON
.
parse
(
JSON
.
stringify
(
$event
));
}
else
{
event
=
Object
.
assign
({
title
:
$event
.
event
.
title
,
start
:
$event
.
event
.
start
,
end
:
$event
.
event
.
end
},
$event
.
event
.
extendedProps
);
}
// 点击选中样式
let
JSelement
:
any
=
null
;
if
(
!
isOriginData
&&
$event
.
el
){
JSelement
=
$event
.
el
;
}
else
if
(
isOriginData
&&
$event2
&&
$event2
.
currentTarget
){
JSelement
=
$event2
.
currentTarget
;
}
if
(
JSelement
){
this
.
calendarClass
=
"calendar"
;
if
(
this
.
selectedEventElement
){
this
.
selectedEventElement
.
classList
.
remove
(
"selected-event"
);
}
this
.
selectedEventElement
=
JSelement
;
this
.
selectedEventElement
.
classList
.
add
(
"selected-event"
);
}
// 处理上下文数据
let
_this
=
this
;
let
view
:
any
=
{};
let
_context
:
any
=
Object
.
assign
({},
this
.
context
);
let
_viewparams
:
any
=
Object
.
assign
({
start
:
event
.
start
,
end
:
event
.
end
},
this
.
viewparams
);
switch
(
event
.
itemType
)
{
case
"item1"
:
_context
.
ibizorder
=
event
.
ibizorder
;
view
=
this
.
getEditView
(
"ibizorder"
);
break
;
}
this
.
selections
=
[
event
];
// 导航栏中不需要打开视图,只要抛出选中数据
if
(
this
.
isSelectFirstDefault
){
this
.
$emit
(
"selectionchange"
,
this
.
selections
);
return
;
}
// 根据打开模式打开视图
if
(
!
view
.
viewname
){
return
;
}
else
if
(
Object
.
is
(
view
.
placement
,
'INDEXVIEWTAB'
)
||
Object
.
is
(
view
.
placement
,
''
))
{
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
this
.
context
,
view
.
deResParameters
,
view
.
parameters
,
[
JSON
.
parse
(
JSON
.
stringify
(
_context
))]
,
_viewparams
);
this
.
$router
.
push
(
routePath
);
}
else
{
let
container
:
Subject
<
any
>
=
new
Subject
();
if
(
Object
.
is
(
view
.
placement
,
'POPOVER'
))
{
container
=
this
.
$apppopover
.
openPop
(
isOriginData
?
$event2
:
$event
.
jsEvent
,
view
,
JSON
.
parse
(
JSON
.
stringify
(
_context
)),
_viewparams
);
}
else
if
(
Object
.
is
(
view
.
placement
,
'POPUPMODAL'
))
{
container
=
this
.
$appmodal
.
openModal
(
view
,
JSON
.
parse
(
JSON
.
stringify
(
_context
)),
_viewparams
);
}
else
if
(
view
.
placement
.
startsWith
(
'DRAWER'
))
{
container
=
this
.
$appdrawer
.
openDrawer
(
view
,
JSON
.
parse
(
JSON
.
stringify
(
_context
)),
_viewparams
);
}
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
// 刷新日历
_this
.
refresh
();
});
}
}
/**
* 日历刷新
*
* @memberof OrderCalendarTimelineNavigationBase
*/
public
refresh
(
args
?:
any
)
{
if
(
Object
.
is
(
this
.
calendarType
,
"TIMELINE"
)){
this
.
searchEvents
();
}
else
{
let
calendarApi
=
(
this
.
$refs
.
calendar
as
any
).
getApi
();
calendarApi
.
refetchEvents
();
}
}
/**
* 日程拖动事件
*
* @param {*} $event 事件信息
* @memberof OrderCalendarTimelineNavigationBase
*/
public
onEventDrop
(
$event
:
any
)
{
if
(
this
.
isSelectFirstDefault
){
return
;
}
let
arg
:
any
=
{};
let
_context
:
any
=
Object
.
assign
({},
this
.
context
);
arg
.
start
=
this
.
$util
.
dateFormat
(
$event
.
event
.
start
);
arg
.
end
=
this
.
$util
.
dateFormat
(
$event
.
event
.
end
);
let
itemType
=
$event
.
event
.
_def
.
extendedProps
.
itemType
;
switch
(
itemType
)
{
case
"item1"
:
arg
.
ibizorder
=
$event
.
event
.
_def
.
extendedProps
.
ibizorder
;
_context
.
ibizorder
=
$event
.
event
.
_def
.
extendedProps
.
ibizorder
;
break
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
update
(
itemType
,
JSON
.
parse
(
JSON
.
stringify
(
_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
;
}
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
errorMessage
});
});
}
/**
* 选中的数据
*
* @returns {any[]}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
selections
:
any
[]
=
[];
/**
* 应用状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
appStateEvent
:
Subscription
|
undefined
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
getDatas
():
any
[]
{
return
this
.
selections
;
}
/**
* 获取单项数据
*
* @returns {*}
* @memberof OrderCalendarTimelineNavigationBase
*/
public
getData
():
any
{
return
null
;
}
/**
* vue 生命周期
*
* @returns
* @memberof OrderCalendarTimelineNavigationBase
*/
public
created
()
{
this
.
searchEvents
();
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof OrderCalendarTimelineNavigationBase
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
});
}
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
();
}
})
}
}
/**
* vue 生命周期
*
* @memberof OrderCalendarTimelineNavigationBase
*/
public
mounted
(){
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof OrderCalendarTimelineNavigationBase
*/
public
afterMounted
(){
let
appCalendar
:
any
=
this
.
$refs
.
calendar
;
if
(
appCalendar
){
let
api
=
appCalendar
.
getApi
();
api
.
updateSize
()
}
}
/**
* vue 生命周期
*
* @memberof OrderCalendarTimelineNavigationBase
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof OrderCalendarTimelineNavigationBase
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
if
(
this
.
appStateEvent
){
this
.
appStateEvent
.
unsubscribe
();
}
}
/**
* 计算节点右键权限
*
* @param {*} data 日历项数据
* @param {*} appEntityName 应用实体名称
* @returns
* @memberof OrderCalendarTimelineNavigationBase
*/
public
async
computeNodeState
(
data
:
any
,
appEntityName
:
string
)
{
let
service
:
any
=
await
this
.
appEntityService
.
getService
(
appEntityName
);
if
(
this
.
copyActionModel
&&
Object
.
keys
(
this
.
copyActionModel
).
length
>
0
)
{
if
(
service
[
'Get'
]
&&
service
[
'Get'
]
instanceof
Function
){
let
tempContext
:
any
=
Util
.
deepCopy
(
this
.
context
);
tempContext
[
appEntityName
]
=
data
[
appEntityName
];
let
targetData
=
await
service
.
Get
(
tempContext
,{},
false
);
let
uiservice
:
any
=
await
new
UIService
().
getService
(
appEntityName
);
let
result
:
any
[]
=
ViewTool
.
calcActionItemAuthState
(
targetData
.
data
,
this
.
copyActionModel
,
uiservice
);
return
this
.
copyActionModel
;
}
else
{
console
.
warn
(
"获取数据异常"
);
return
this
.
copyActionModel
;
}
}
}
/**
* 事件绘制回调
*
* @param {*} info 信息
* @memberof OrderCalendarTimelineNavigationBase
*/
public
eventRender
(
info
?:
any
,)
{
let
data
=
Object
.
assign
({
title
:
info
.
event
.
title
,
start
:
info
.
event
.
start
,
end
:
info
.
event
.
end
},
info
.
event
.
extendedProps
);
info
.
el
.
addEventListener
(
'contextmenu'
,
(
event
:
MouseEvent
)
=>
{
this
.
copyActionModel
=
{};
Object
.
values
(
this
.
actionModel
).
forEach
((
item
:
any
)
=>
{
if
(
Object
.
is
(
item
.
nodeOwner
,
data
.
itemType
)){
this
.
copyActionModel
[
item
.
name
]
=
item
;
}
})
if
(
Object
.
keys
(
this
.
copyActionModel
).
length
===
0
){
return
;
}
let
dataMapping
:
any
=
{
'item1'
:
'ibizorder'
};
this
.
computeNodeState
(
data
,
dataMapping
[
data
.
itemType
]).
then
((
result
:
any
)
=>
{
let
flag
:
boolean
=
false
;
if
(
Object
.
values
(
result
).
length
>
0
){
flag
=
Object
.
values
(
result
).
some
((
item
:
any
)
=>
{
return
item
.
visabled
===
true
;
})
}
if
(
flag
){
let
props
=
{
data
:
data
,
renderContent
:
this
.
renderContextMenu
};
let
component
=
ContextMenu
;
const
vm
:
any
=
new
Vue
({
render
(
h
)
{
return
h
(
component
,
{
props
});
}
}).
$mount
();
document
.
body
.
appendChild
(
vm
.
$el
);
const
comp
:
any
=
vm
.
$children
[
0
];
comp
.
showContextMenu
(
event
.
clientX
,
event
.
clientY
);
}
});
});
}
/**
* 绘制右键菜单
*
* @param {*} event
* @returns
* @memberof OrderCalendarTimelineNavigationBase
*/
public
renderContextMenu
(
event
:
any
)
{
let
content
;
if
(
event
&&
event
.
itemType
)
{
const
data
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
event
));
this
.
selections
=
[
event
];
switch
(
event
.
itemType
){
}
}
return
content
;
}
}
</
script
>
<
style
lang=
'less'
>
@import './order-calendar-timeline-navigation-calendar.less';
</
style
>
\ No newline at end of file
app_Web/src/widgets/ibizorder/order-calendar-timeline-navigation-calendar/order-calendar-timeline-navigation-calendar-model.ts
0 → 100644
浏览文件 @
f7877f9f
/**
* OrderCalendarTimelineNavigation 部件模型
*
* @export
* @class OrderCalendarTimelineNavigationModel
*/
export
default
class
OrderCalendarTimelineNavigationModel
{
/**
* 日历项类型
*
* @returns {any[]}
* @memberof OrderCalendarTimelineNavigationCalendarexpbar_calendarMode
*/
public
itemType
:
string
=
""
;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof OrderCalendarTimelineNavigationCalendarexpbar_calendarMode
*/
public
getDataItems
():
any
[]
{
let
dataItems
:
any
=
[
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
{
name
:
'color'
,
},
{
name
:
'textColor'
,
},
{
name
:
'itemType'
,
},
{
name
:
'query'
,
prop
:
'query'
,
},
];
switch
(
this
.
itemType
){
case
"item1"
:
dataItems
=
[...
dataItems
,
{
name
:
'ibizorder'
,
prop
:
'ibizorderid'
},
{
name
:
'title'
,
prop
:
'ibizordername'
},
{
name
:
'start'
,
prop
:
'starttime'
},
{
name
:
'end'
,
prop
:
'endtime'
},
];
break
;
}
return
dataItems
;
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/order-calendar-timeline-navigation-calendar/order-calendar-timeline-navigation-calendar-service.ts
0 → 100644
浏览文件 @
f7877f9f
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
OrderCalendarTimelineNavigationModel
from
'./order-calendar-timeline-navigation-calendar-model'
;
/**
* OrderCalendarTimelineNavigation 部件服务对象
*
* @export
* @class OrderCalendarTimelineNavigationService
*/
export
default
class
OrderCalendarTimelineNavigationService
extends
ControlService
{
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof OrderCalendarTimelineNavigationService
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof OrderCalendarTimelineNavigationService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of OrderCalendarTimelineNavigationService.
*
* @param {*} [opts={}]
* @memberof OrderCalendarTimelineNavigationService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
OrderCalendarTimelineNavigationModel
();
}
/**
* 事件配置集合
*
* @public
* @type {any[]}
* @memberof OrderCalendarTimelineNavigation
*/
public
eventsConfig
:
any
[]
=
[
{
itemName
:
'订单'
,
itemType
:
'item1'
,
color
:
''
,
textColor
:
''
,
},
];
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof OrderCalendarTimelineNavigationService
*/
@
Errorlog
public
search
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
_this
=
this
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
promises
:
any
=
[];
let
tempRequest
:
any
;
tempRequest
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
,
"item1"
);
promises
.
push
(
this
.
appEntityService
.
FetchDefault
(
tempRequest
.
context
,
tempRequest
.
data
,
isloading
));
Promise
.
all
(
promises
).
then
((
resArray
:
any
)
=>
{
let
_data
:
any
=
[];
resArray
.
forEach
((
response
:
any
,
resIndex
:
number
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
let
_response
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
response
));
_response
.
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
_response
.
data
[
index
].
color
=
_this
.
eventsConfig
[
resIndex
].
color
;
_response
.
data
[
index
].
textColor
=
_this
.
eventsConfig
[
resIndex
].
textColor
;
_response
.
data
[
index
].
itemType
=
_this
.
eventsConfig
[
resIndex
].
itemType
;
});
;
_this
.
handleResponse
(
action
,
_response
,
false
,
_this
.
eventsConfig
[
resIndex
].
itemType
);
_data
.
push
(...
_response
.
data
);
});
// 排序
_data
.
sort
((
a
:
any
,
b
:
any
)
=>
{
let
dateA
=
new
Date
(
Date
.
parse
(
a
.
start
.
replace
(
/-/g
,
"/"
)));
let
dateB
=
new
Date
(
Date
.
parse
(
b
.
start
.
replace
(
/-/g
,
"/"
)));
return
dateA
>
dateB
?
1
:
-
1
;
});
let
result
=
{
status
:
200
,
data
:
_data
};
resolve
(
result
);
}).
catch
((
response
:
any
)
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof OrderCalendarTimelineNavigationService
*/
@
Errorlog
public
update
(
itemType
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
any
;
let
tempRequest
:
any
;
switch
(
itemType
)
{
case
"item1"
:
tempRequest
=
this
.
handleRequestData
(
""
,
context
,
data
,
false
,
"item1"
);
result
=
this
.
appEntityService
.
Update
(
tempRequest
.
context
,
tempRequest
.
data
,
isloading
);
break
;
}
if
(
result
){
result
.
then
((
response
:
any
)
=>
{
this
.
handleResponse
(
""
,
response
);
resolve
(
response
);
}).
catch
((
response
:
any
)
=>
{
reject
(
response
);
});
}
else
{
reject
(
"没有匹配的实体服务"
);
}
});
}
/**
* 处理request请求数据
*
* @param action 行为
* @param data 数据
* @memberof ControlService
*/
public
handleRequestData
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isMerge
:
boolean
=
false
,
itemType
:
string
=
""
){
let
model
:
any
=
this
.
getMode
();
model
.
itemType
=
itemType
;
return
super
.
handleRequestData
(
action
,
context
,
data
,
isMerge
);
}
/**
* 处理response返回数据
*
* @param {string} action
* @param {*} response
* @memberof ControlService
*/
public
async
handleResponse
(
action
:
string
,
response
:
any
,
isCreate
:
boolean
=
false
,
itemType
:
string
=
""
){
let
model
:
any
=
this
.
getMode
();
model
.
itemType
=
itemType
;
super
.
handleResponse
(
action
,
response
,
isCreate
);
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/order-calendar-timeline-navigation-calendar/order-calendar-timeline-navigation-calendar.less
0 → 100644
浏览文件 @
f7877f9f
// this is less
@import '~@fullcalendar/core/main.css';
@import '~@fullcalendar/daygrid/main.css';
@import '~@fullcalendar/timegrid/main.css';
@import '~@fullcalendar/list/main.css';
.calendar{
height:100%;
overflow: auto;
.context-menu-container {
height: calc(100% - 70px);
}
.el-timeline{
padding-left: 2px;
}
.app-data-empty{
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.event-legends{
width: 100%;
text-align: center;
.event-lengend{
display: inline-block;
margin-left: 10px;
height: 20px;
.lengend-icon{
display: inline-block;
width: 30px;
height: 20px;
border-radius: 5px;
}
span{
display: inline-block;
margin-left: 5px;
line-height: 20px;
vertical-align: top;
}
}
.event-lengend.event-disabled{
.lengend-icon{
background:#cccccc !important;
}
span{
color:#cccccc !important;
}
}
}
}
// 选中样式
.calendar .selected-event,
.select-first-calendar .select-first-event{
border: 2px solid #ff8711 !important;
}
.calendar .fc-dayGrid-view .selected-event:before,
.select-first-calendar .fc-dayGrid-view .select-first-event:before,
.calendar .fc-timeGrid-view .selected-event:before,
.select-first-calendar .fc-timeGrid-view .select-first-event:before{
content: '';
display: block;
position: absolute;
right: 0;
bottom: 0;
border: 9px solid #ff8711;
border-top-color: transparent;
border-left-color: transparent;
color: #fff;
}
.calendar .fc-dayGrid-view .selected-event:after,
.select-first-calendar .fc-dayGrid-view .select-first-event:after,
.calendar .fc-timeGrid-view .selected-event:after,
.select-first-calendar .fc-timeGrid-view .select-first-event:after{
content: '';
display: block;
width: 4px;
height: 11px;
position: absolute;
right: 1px;
bottom: 0px;
border: 2px solid #fff;
border-top-color: transparent;
border-left-color: transparent;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
box-sizing: content-box;
}
// 选择跳转日期模态
.date-select-modal{
display: flex;
align-items: center;
justify-content: center;
.ivu-modal{
top: 0;
.ivu-modal-body {
text-align: center;
}
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/order-calendar-timeline-navigation-calendar/order-calendar-timeline-navigation-calendar.vue
0 → 100644
浏览文件 @
f7877f9f
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
OrderCalendarTimelineNavigationBase
from
'./order-calendar-timeline-navigation-calendar-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
OrderCalendarTimelineNavigation
extends
OrderCalendarTimelineNavigationBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/widgets/ibizorder/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-base.vue
0 → 100644
浏览文件 @
f7877f9f
<
template
>
<split
id=
"usr2calendarexpviewcalendarexpbar"
class=
"app-calendar-exp-bar"
v-model=
"split"
mode=
"horizontal"
@
on-move-end=
"onSplitChange"
>
<div
slot=
'left'
>
<div
class=
'calendar-exp-bar-header'
>
<div><icon
type=
'ios-home-outline'
/>
{{
$t
(
'app.calendarExpBar.title'
)
}}
</div>
</div>
<div
class=
"container-header"
>
</div>
<div
class=
'calendar-exp-bar-content'
>
<view
_calendarexpbar_calendar
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:showBusyIndicator=
"true"
:isSelectFirstDefault=
"true"
:newdata=
"newdata"
:opendata=
"opendata"
name=
"calendarexpbar_calendar"
ref=
'calendarexpbar_calendar'
@
selectionchange=
"calendarexpbar_calendar_selectionchange($event)"
@
load=
"calendarexpbar_calendar_load($event)"
@
closeview=
"closeView($event)"
>
</view
_calendarexpbar_calendar
>
</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
Usr2CalendarExpViewcalendarexpbarService
from
'./usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-service'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
@
Component
({
components
:
{
}
})
export
default
class
Usr2CalendarExpViewcalendarexpbarBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
getControlType
():
string
{
return
'CALENDAREXPBAR'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {Usr2CalendarExpViewcalendarexpbarService}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
service
:
Usr2CalendarExpViewcalendarexpbarService
=
new
Usr2CalendarExpViewcalendarexpbarService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* calendarexpbar_calendar 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
calendarexpbar_calendar_selectionchange
(
$event
:
any
,
$event2
?:
any
)
{
this
.
calendarexpbar_selectionchange
(
$event
,
'calendarexpbar_calendar'
,
$event2
);
}
/**
* calendarexpbar_calendar 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
calendarexpbar_calendar_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
calendarexpbar_load
(
$event
,
'calendarexpbar_calendar'
,
$event2
);
}
/**
* 转化数据
*
* @param {any} args
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
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 Usr2CalendarExpViewcalendarexpbarBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
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 {boolean}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
@
Prop
()
public
viewUID
!
:
string
;
/**
* 打开新建数据视图
*
* @type {any}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
@
Prop
()
public
newdata
:
any
;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
@
Prop
()
public
opendata
:
any
;
/**
* 是否单选
*
* @public
* @type {(boolean)}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
isSingleSelect
:
boolean
=
true
;
/**
* 呈现模式,可选值:horizontal或者vertical
*
* @public
* @type {(string)}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
showMode
:
string
=
"horizontal"
;
/**
* 控件宽度
*
* @type {number}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
ctrlWidth
:
number
=
0
;
/**
* 控件高度
*
* @type {number}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
ctrlHeight
:
number
=
0
;
/**
* 可搜索字段名称
*
*
* @type {(string)}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
placeholder
=
"订单名称"
;
/**
* 搜素值
*
* @public
* @type {(string)}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
searchText
:
string
=
""
;
/**
* 分割宽度
*
* @type {number}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
split
:
number
=
0.5
;
/**
* 导航视图名称
*
* @type {string}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
navViewName
:
any
=
{
item1
:
"ibizorder-detail-sgrid-view9"
};
/**
* 导航参数
*
* @type {*}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
navParam
:
any
=
{
item1
:
{
navigateContext
:
null
,
navigateParams
:
null
}
};
/**
* 导航过滤项
*
* @type {*}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
navFilter
:
any
=
{
item1
:
""
};
/**
* 导航关系
*
* @type {*}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
navPSDer
:
any
=
{
item1
:
"n_ibizorderid_eq"
};
/**
* 显示处理提示
*
* @type {boolean}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
@
Prop
({
default
:
true
})
public
showBusyIndicator
!
:
boolean
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
getData
():
any
{
return
null
;
}
/**
* 选中数据
*
* @type {*}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
selection
:
any
=
{};
/**
* split值变化事件
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
onSplitChange
()
{
if
(
this
.
$refs
.
calendarexpbar_calendar
){
const
calendarContainer
:
any
=
this
.
$refs
.
calendarexpbar_calendar
;
if
(
calendarContainer
.
$refs
.
calendar
){
const
appCalendar
:
any
=
calendarContainer
.
$refs
.
calendar
;
const
api
=
appCalendar
.
getApi
();
api
.
updateSize
();
}
}
if
(
this
.
split
){
this
.
$store
.
commit
(
"setViewSplit"
,{
viewUID
:
this
.
viewUID
,
viewSplit
:
this
.
split
});
}
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
this
.
viewState
.
next
({
tag
:
'calendarexpbar_calendar'
,
action
:
action
,
data
:
data
});
});
}
}
/**
* Vue声明周期(组件渲染完毕)
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
afterMounted
(){
if
(
this
.
$store
.
getters
.
getViewSplit
(
this
.
viewUID
)){
this
.
split
=
this
.
$store
.
getters
.
getViewSplit
(
this
.
viewUID
);
}
else
{
let
containerWidth
:
number
=
(
document
.
getElementById
(
"usr2calendarexpviewcalendarexpbar"
)
as
any
).
offsetWidth
;
let
containerHeight
:
number
=
(
document
.
getElementById
(
"usr2calendarexpviewcalendarexpbar"
)
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 Usr2CalendarExpViewcalendarexpbarBase
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
/**
* 刷新
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
refresh
(
args
?:
any
):
void
{
const
refs
:
any
=
this
.
$refs
;
if
(
refs
&&
refs
.
calendarexpbar_calendar
)
{
refs
.
calendarexpbar_calendar
.
refresh
();
}
}
/**
* calendarexpbar的选中数据事件
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
calendarexpbar_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
)));
}
switch
(
arg
.
itemType
)
{
case
"item1"
:
Object
.
assign
(
tempContext
,{
ibizorder
:
arg
.
ibizorder
});
Object
.
assign
(
tempContext
,{
srfparentdename
:
'IBIZOrder'
,
srfparentkey
:
arg
[
'ibizorder'
]});
if
(
this
.
navFilter
&&
this
.
navFilter
[
'item1'
]
&&
!
Object
.
is
(
this
.
navFilter
[
'item1'
],
""
)){
Object
.
assign
(
tempViewParam
,{[
this
.
navFilter
[
'item1'
]]:
arg
[
'ibizorder'
]});
}
if
(
this
.
navPSDer
&&
this
.
navFilter
[
'item1'
]
&&
!
Object
.
is
(
this
.
navPSDer
[
'item1'
],
""
)){
Object
.
assign
(
tempViewParam
,{[
this
.
navPSDer
[
'item1'
]]:
arg
[
'ibizorder'
]});
}
if
(
this
.
navParam
&&
this
.
navParam
[
'item1'
]
&&
this
.
navParam
[
'item1'
].
navigateContext
&&
Object
.
keys
(
this
.
navParam
[
'item1'
].
navigateContext
).
length
>
0
){
let
_context
:
any
=
this
.
$util
.
computedNavData
(
arg
,
tempContext
,
tempViewParam
,
this
.
navParam
[
'item1'
].
navigateContext
);
Object
.
assign
(
tempContext
,
_context
);
}
if
(
this
.
navParam
&&
this
.
navParam
[
'item1'
]
&&
this
.
navParam
[
'item1'
].
navigateParams
&&
Object
.
keys
(
this
.
navParam
[
'item1'
].
navigateParams
).
length
>
0
){
let
_params
:
any
=
this
.
$util
.
computedNavData
(
arg
,
tempContext
,
tempViewParam
,
this
.
navParam
[
'item1'
].
navigateParams
);
Object
.
assign
(
tempViewParam
,
_params
);
}
break
;
}
this
.
selection
=
{};
Object
.
assign
(
this
.
selection
,
{
view
:
{
viewname
:
this
.
navViewName
[
arg
.
itemType
]
},
context
:
tempContext
,
viewparam
:
tempViewParam
});
this
.
calcToolbarItemState
(
false
);
this
.
$emit
(
'selectionchange'
,
args
);
this
.
$forceUpdate
();
}
/**
* calendarexpbar的load完成事件
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
calendarexpbar_load
(
args
:
any
,
tag
?:
string
,
$event2
?:
any
){
this
.
calcToolbarItemState
(
true
);
this
.
$emit
(
'load'
,
args
);
}
/**
* 设置导航区工具栏禁用状态
*
* @param {boolean} state
* @return {*}
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
calcToolbarItemState
(
state
:
boolean
)
{
let
_this
:
any
=
this
;
const
models
:
any
=
_this
.
usr2calendarexpviewcalendarexpbar_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 Usr2CalendarExpViewcalendarexpbarBase
*/
public
calcNavigationToolbarState
(){
let
_this
:
any
=
this
;
// 界面行为
if
(
_this
.
usr2calendarexpviewcalendarexpbar_toolbarModels
){
const
curUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
();
ViewTool
.
calcActionItemAuthState
({},
_this
.
usr2calendarexpviewcalendarexpbar_toolbarModels
,
curUIService
);
}
}
/**
* 执行搜索
*
* @memberof Usr2CalendarExpViewcalendarexpbarBase
*/
public
onSearch
(
$event
:
any
)
{
let
calendar
:
any
=
this
.
$refs
.
calendarexpbar_calendar
;
calendar
.
searchEvents
({
query
:
this
.
searchText
});
}
}
</
script
>
<
style
lang=
'less'
>
@import './usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.less';
</
style
>
\ No newline at end of file
app_Web/src/widgets/ibizorder/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-model.ts
0 → 100644
浏览文件 @
f7877f9f
/**
* Usr2CalendarExpViewcalendarexpbar 部件模型
*
* @export
* @class Usr2CalendarExpViewcalendarexpbarModel
*/
export
default
class
Usr2CalendarExpViewcalendarexpbarModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Usr2CalendarExpViewcalendarexpbarCalendarexpbarMode
*/
public
getDataItems
():
any
[]
{
return
[
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-service.ts
0 → 100644
浏览文件 @
f7877f9f
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
Usr2CalendarExpViewcalendarexpbarModel
from
'./usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-model'
;
/**
* Usr2CalendarExpViewcalendarexpbar 部件服务对象
*
* @export
* @class Usr2CalendarExpViewcalendarexpbarService
*/
export
default
class
Usr2CalendarExpViewcalendarexpbarService
extends
ControlService
{
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof Usr2CalendarExpViewcalendarexpbarService
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof Usr2CalendarExpViewcalendarexpbarService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of Usr2CalendarExpViewcalendarexpbarService.
*
* @param {*} [opts={}]
* @memberof Usr2CalendarExpViewcalendarexpbarService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
Usr2CalendarExpViewcalendarexpbarModel
();
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.less
0 → 100644
浏览文件 @
f7877f9f
.app-calendar-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;
.calendar-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;
min-width: 200px;
max-width: 400px;
}
.toolbar-container{
padding: 4px;
display: flex;
flex-wrap: wrap;
align-items: center;
}
}
.calendar-exp-bar-content {
height: calc(100% - 40px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
}
.calendar-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%;
overflow: auto;
display: flex;
flex-direction: column;
.calendar-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;
}
}
.calendar-exp-bar-content {
height: calc(100% - 40px);
overflow: auto;
margin-bottom: 10px;
}
.calendar-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/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.vue
0 → 100644
浏览文件 @
f7877f9f
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
Usr2CalendarExpViewcalendarexpbarBase
from
'./usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-base.vue'
;
import
view_calendarexpbar_calendar
from
'@widgets/ibizorder/order-calendar-timeline-navigation-calendar/order-calendar-timeline-navigation-calendar.vue'
;
@
Component
({
components
:
{
view_calendarexpbar_calendar
,
}
})
export
default
class
Usr2CalendarExpViewcalendarexpbar
extends
Usr2CalendarExpViewcalendarexpbarBase
{
}
</
script
>
\ No newline at end of file
demo-core/src/main/resources/permission/systemResource.json
浏览文件 @
f7877f9f
...
...
@@ -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"
:
"menuitem137"
,
"name"
:
"卡片导航"
},{
"id"
:
"menuitem138"
,
"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"
:
"menuitem138"
,
"name"
:
"日历导航"
}
,{
"id"
:
"menuitem139"
,
"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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录