Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
a8976a85
提交
a8976a85
编写于
11月 11, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
170a8301
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
1426 行增加
和
1089 行删除
+1426
-1089
app-index-view-appmenu-base.vue
...pp/app-index-view-appmenu/app-index-view-appmenu-base.vue
+13
-8
icon-menu-appmenu-base.vue
.../widgets/app/icon-menu-appmenu/icon-menu-appmenu-base.vue
+16
-11
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+451
-446
book-calendar-major-state-calendar-base.vue
...tate-calendar/book-calendar-major-state-calendar-base.vue
+135
-89
custom-calendar-calendar-base.vue
...ustom-calendar-calendar/custom-calendar-calendar-base.vue
+135
-89
ibizbookmonth-calendar-base.vue
...ok/ibizbookmonth-calendar/ibizbookmonth-calendar-base.vue
+135
-89
ibizbookpanel-calendar-base.vue
...ok/ibizbookpanel-calendar/ibizbookpanel-calendar-base.vue
+135
-89
ibizbooktimeline-calendar-base.vue
...zbooktimeline-calendar/ibizbooktimeline-calendar-base.vue
+135
-89
order-calendar-navigation-calendar-base.vue
...tion-calendar/order-calendar-navigation-calendar-base.vue
+135
-89
order-calendar-timeline-navigation-calendar-base.vue
...ndar/order-calendar-timeline-navigation-calendar-base.vue
+135
-89
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+1
-1
未找到文件。
app_Web/src/widgets/app/app-index-view-appmenu/app-index-view-appmenu-base.vue
浏览文件 @
a8976a85
...
...
@@ -559,16 +559,21 @@ export default class AppIndexViewBase extends Vue implements ControlInterface {
* @memberof AppIndexViewBase
*/
public
click
(
item
:
any
)
{
if
(
item
)
{
let
navDataService
=
NavDataService
.
getInstance
();
if
(
Object
.
is
(
this
.
navModel
,
"route"
)){
navDataService
.
removeNavData
(
this
.
viewtag
);
this
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
item
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
switch
(
item
.
appfunctag
)
{
default
:
console
.
warn
(
'未指定应用功能'
);
if
(
item
)
{
let
navDataService
=
NavDataService
.
getInstance
();
if
(
Object
.
is
(
this
.
navModel
,
"route"
)){
navDataService
.
removeNavData
(
this
.
viewtag
);
}
switch
(
item
.
appfunctag
)
{
default
:
console
.
warn
(
'未指定应用功能'
);
}
}
}
}
)
}
...
...
app_Web/src/widgets/app/icon-menu-appmenu/icon-menu-appmenu-base.vue
浏览文件 @
a8976a85
...
...
@@ -450,19 +450,24 @@ export default class IconMenuBase extends Vue implements ControlInterface {
* @memberof IconMenuBase
*/
public
click
(
item
:
any
)
{
if
(
item
)
{
let
navDataService
=
NavDataService
.
getInstance
();
if
(
Object
.
is
(
this
.
navModel
,
"route"
)){
navDataService
.
removeNavData
(
this
.
viewtag
);
this
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
item
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
switch
(
item
.
appfunctag
)
{
case
'AppFunc75'
:
this
.
clickAppFunc75
(
item
);
return
;
default
:
console
.
warn
(
'未指定应用功能'
);
if
(
item
)
{
let
navDataService
=
NavDataService
.
getInstance
();
if
(
Object
.
is
(
this
.
navModel
,
"route"
)){
navDataService
.
removeNavData
(
this
.
viewtag
);
}
switch
(
item
.
appfunctag
)
{
case
'AppFunc75'
:
this
.
clickAppFunc75
(
item
);
return
;
default
:
console
.
warn
(
'未指定应用功能'
);
}
}
}
}
)
}
/**
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
a8976a85
...
...
@@ -637,454 +637,459 @@ export default class MainMenuBase extends Vue implements ControlInterface {
* @memberof MainMenuBase
*/
public
click
(
item
:
any
)
{
if
(
item
)
{
let
navDataService
=
NavDataService
.
getInstance
();
if
(
Object
.
is
(
this
.
navModel
,
"route"
)){
navDataService
.
removeNavData
(
this
.
viewtag
);
this
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
item
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
switch
(
item
.
appfunctag
)
{
case
'AppFunc66'
:
this
.
clickAppFunc66
(
item
);
return
;
case
'UsrAppFunc1108357066'
:
this
.
clickUsrAppFunc1108357066
(
item
);
return
;
case
'Auto338'
:
this
.
clickAuto338
(
item
);
return
;
case
'Auto222'
:
this
.
clickAuto222
(
item
);
return
;
case
'AppFunc'
:
this
.
clickAppFunc
(
item
);
return
;
case
'AppFunc89'
:
this
.
clickAppFunc89
(
item
);
return
;
case
'AppFunc70'
:
this
.
clickAppFunc70
(
item
);
return
;
case
'AppFunc50'
:
this
.
clickAppFunc50
(
item
);
return
;
case
'AppFunc82'
:
this
.
clickAppFunc82
(
item
);
return
;
case
'Auto393'
:
this
.
clickAuto393
(
item
);
return
;
case
'AppFunc31'
:
this
.
clickAppFunc31
(
item
);
return
;
case
'Auto319'
:
this
.
clickAuto319
(
item
);
return
;
case
'AppFunc23'
:
this
.
clickAppFunc23
(
item
);
return
;
case
'Auto279'
:
this
.
clickAuto279
(
item
);
return
;
case
'Auto129'
:
this
.
clickAuto129
(
item
);
return
;
case
'Auto371'
:
this
.
clickAuto371
(
item
);
return
;
case
'Auto111'
:
this
.
clickAuto111
(
item
);
return
;
case
'Auto106'
:
this
.
clickAuto106
(
item
);
return
;
case
'Auto155'
:
this
.
clickAuto155
(
item
);
return
;
case
'Auto151'
:
this
.
clickAuto151
(
item
);
return
;
case
'Auto81'
:
this
.
clickAuto81
(
item
);
return
;
case
'Auto114'
:
this
.
clickAuto114
(
item
);
return
;
case
'AppFunc32'
:
this
.
clickAppFunc32
(
item
);
return
;
case
'Auto173'
:
this
.
clickAuto173
(
item
);
return
;
case
'AppFunc42'
:
this
.
clickAppFunc42
(
item
);
return
;
case
'AppFunc46'
:
this
.
clickAppFunc46
(
item
);
return
;
case
'AppFunc56'
:
this
.
clickAppFunc56
(
item
);
return
;
case
'AppFunc58'
:
this
.
clickAppFunc58
(
item
);
return
;
case
'AppFunc57'
:
this
.
clickAppFunc57
(
item
);
return
;
case
'AppFunc59'
:
this
.
clickAppFunc59
(
item
);
return
;
case
'AppFunc60'
:
this
.
clickAppFunc60
(
item
);
return
;
case
'AppFunc41'
:
this
.
clickAppFunc41
(
item
);
return
;
case
'Auto337'
:
this
.
clickAuto337
(
item
);
return
;
case
'Auto402'
:
this
.
clickAuto402
(
item
);
return
;
case
'AppFunc64'
:
this
.
clickAppFunc64
(
item
);
return
;
case
'AppFunc49'
:
this
.
clickAppFunc49
(
item
);
return
;
case
'AppFunc51'
:
this
.
clickAppFunc51
(
item
);
return
;
case
'AppFunc36'
:
this
.
clickAppFunc36
(
item
);
return
;
case
'AppFunc43'
:
this
.
clickAppFunc43
(
item
);
return
;
case
'Auto176'
:
this
.
clickAuto176
(
item
);
return
;
case
'Auto286'
:
this
.
clickAuto286
(
item
);
return
;
case
'Auto124'
:
this
.
clickAuto124
(
item
);
return
;
case
'AppFunc2'
:
this
.
clickAppFunc2
(
item
);
return
;
case
'AppFunc3'
:
this
.
clickAppFunc3
(
item
);
return
;
case
'AppFunc4'
:
this
.
clickAppFunc4
(
item
);
return
;
case
'AppFunc5'
:
this
.
clickAppFunc5
(
item
);
return
;
case
'AppFunc6'
:
this
.
clickAppFunc6
(
item
);
return
;
case
'AppFunc54'
:
this
.
clickAppFunc54
(
item
);
return
;
case
'AppFunc55'
:
this
.
clickAppFunc55
(
item
);
return
;
case
'AppFunc7'
:
this
.
clickAppFunc7
(
item
);
return
;
case
'AppFunc8'
:
this
.
clickAppFunc8
(
item
);
return
;
case
'AppFunc9'
:
this
.
clickAppFunc9
(
item
);
return
;
case
'AppFunc10'
:
this
.
clickAppFunc10
(
item
);
return
;
case
'AppFunc11'
:
this
.
clickAppFunc11
(
item
);
return
;
case
'AppFunc12'
:
this
.
clickAppFunc12
(
item
);
return
;
case
'AppFunc13'
:
this
.
clickAppFunc13
(
item
);
return
;
case
'AppFunc17'
:
this
.
clickAppFunc17
(
item
);
return
;
case
'AppFunc65'
:
this
.
clickAppFunc65
(
item
);
return
;
case
'AppFunc20'
:
this
.
clickAppFunc20
(
item
);
return
;
case
'AppFunc21'
:
this
.
clickAppFunc21
(
item
);
return
;
case
'AppFunc29'
:
this
.
clickAppFunc29
(
item
);
return
;
case
'AppFunc72'
:
this
.
clickAppFunc72
(
item
);
return
;
case
'Auto375'
:
this
.
clickAuto375
(
item
);
return
;
case
'Auto66'
:
this
.
clickAuto66
(
item
);
return
;
case
'Auto96'
:
this
.
clickAuto96
(
item
);
return
;
case
'Auto235'
:
this
.
clickAuto235
(
item
);
return
;
case
'AppFunc74'
:
this
.
clickAppFunc74
(
item
);
return
;
case
'AppFunc73'
:
this
.
clickAppFunc73
(
item
);
return
;
case
'AppFunc14'
:
this
.
clickAppFunc14
(
item
);
return
;
case
'AppFunc15'
:
this
.
clickAppFunc15
(
item
);
return
;
case
'AppFunc16'
:
this
.
clickAppFunc16
(
item
);
return
;
case
'AppFunc19'
:
this
.
clickAppFunc19
(
item
);
return
;
case
'AppFunc71'
:
this
.
clickAppFunc71
(
item
);
return
;
case
'AppFunc25'
:
this
.
clickAppFunc25
(
item
);
return
;
case
'AppFunc26'
:
this
.
clickAppFunc26
(
item
);
return
;
case
'AppFunc27'
:
this
.
clickAppFunc27
(
item
);
return
;
case
'Auto25'
:
this
.
clickAuto25
(
item
);
return
;
case
'Auto387'
:
this
.
clickAuto387
(
item
);
return
;
case
'Auto320'
:
this
.
clickAuto320
(
item
);
return
;
case
'Auto3'
:
this
.
clickAuto3
(
item
);
return
;
case
'Auto2'
:
this
.
clickAuto2
(
item
);
return
;
case
'Auto213'
:
this
.
clickAuto213
(
item
);
return
;
case
'AppFunc45'
:
this
.
clickAppFunc45
(
item
);
return
;
case
'AppFunc48'
:
this
.
clickAppFunc48
(
item
);
return
;
case
'Auto299'
:
this
.
clickAuto299
(
item
);
return
;
case
'AppFunc90'
:
this
.
clickAppFunc90
(
item
);
return
;
case
'AppFunc91'
:
this
.
clickAppFunc91
(
item
);
return
;
case
'AppFunc35'
:
this
.
clickAppFunc35
(
item
);
return
;
case
'Auto296'
:
this
.
clickAuto296
(
item
);
return
;
case
'AppFunc85'
:
this
.
clickAppFunc85
(
item
);
return
;
case
'AppFunc86'
:
this
.
clickAppFunc86
(
item
);
return
;
case
'AppFunc94'
:
this
.
clickAppFunc94
(
item
);
return
;
case
'AppFunc22'
:
this
.
clickAppFunc22
(
item
);
return
;
case
'UsrAppFunc1109441753'
:
this
.
clickUsrAppFunc1109441753
(
item
);
return
;
case
'AppFunc75'
:
this
.
clickAppFunc75
(
item
);
return
;
case
'AppFunc78'
:
this
.
clickAppFunc78
(
item
);
return
;
case
'Auto67'
:
this
.
clickAuto67
(
item
);
return
;
case
'Auto39'
:
this
.
clickAuto39
(
item
);
return
;
case
'AppFunc95'
:
this
.
clickAppFunc95
(
item
);
return
;
case
'AppFunc88'
:
this
.
clickAppFunc88
(
item
);
return
;
case
'AppFunc79'
:
this
.
clickAppFunc79
(
item
);
return
;
case
'AppFunc80'
:
this
.
clickAppFunc80
(
item
);
return
;
case
'AppFunc81'
:
this
.
clickAppFunc81
(
item
);
return
;
case
'AppFunc83'
:
this
.
clickAppFunc83
(
item
);
return
;
case
'AppFunc84'
:
this
.
clickAppFunc84
(
item
);
return
;
case
'AppFunc96'
:
this
.
clickAppFunc96
(
item
);
return
;
case
'AppFunc97'
:
this
.
clickAppFunc97
(
item
);
return
;
case
'AppFunc98'
:
this
.
clickAppFunc98
(
item
);
return
;
case
'UsrAppFunc1109902486'
:
this
.
clickUsrAppFunc1109902486
(
item
);
return
;
case
'UsrAppFunc1109992105'
:
this
.
clickUsrAppFunc1109992105
(
item
);
return
;
case
'AppFunc127'
:
this
.
clickAppFunc127
(
item
);
return
;
case
'AppFunc100'
:
this
.
clickAppFunc100
(
item
);
return
;
case
'UsrAppFunc1102681676'
:
this
.
clickUsrAppFunc1102681676
(
item
);
return
;
case
'AppFunc101'
:
this
.
clickAppFunc101
(
item
);
return
;
case
'AppFunc125'
:
this
.
clickAppFunc125
(
item
);
return
;
case
'AppFunc128'
:
this
.
clickAppFunc128
(
item
);
return
;
case
'AppFunc129'
:
this
.
clickAppFunc129
(
item
);
return
;
case
'AppFunc126'
:
this
.
clickAppFunc126
(
item
);
return
;
case
'AppFunc102'
:
this
.
clickAppFunc102
(
item
);
return
;
case
'AppFunc103'
:
this
.
clickAppFunc103
(
item
);
return
;
case
'AppFunc104'
:
this
.
clickAppFunc104
(
item
);
return
;
case
'AppFunc105'
:
this
.
clickAppFunc105
(
item
);
return
;
case
'AppFunc106'
:
this
.
clickAppFunc106
(
item
);
return
;
case
'AppFunc107'
:
this
.
clickAppFunc107
(
item
);
return
;
case
'AppFunc108'
:
this
.
clickAppFunc108
(
item
);
return
;
case
'AppFunc109'
:
this
.
clickAppFunc109
(
item
);
return
;
case
'AppFunc99'
:
this
.
clickAppFunc99
(
item
);
return
;
case
'AppFunc110'
:
this
.
clickAppFunc110
(
item
);
return
;
case
'AppFunc111'
:
this
.
clickAppFunc111
(
item
);
return
;
case
'AppFunc112'
:
this
.
clickAppFunc112
(
item
);
return
;
case
'UsrAppFunc1103578816'
:
this
.
clickUsrAppFunc1103578816
(
item
);
return
;
case
'AppFunc113'
:
this
.
clickAppFunc113
(
item
);
return
;
case
'AppFunc114'
:
this
.
clickAppFunc114
(
item
);
return
;
case
'UsrAppFunc1103276204'
:
this
.
clickUsrAppFunc1103276204
(
item
);
return
;
case
'UsrAppFunc1103793182'
:
this
.
clickUsrAppFunc1103793182
(
item
);
return
;
case
'UsrAppFunc1104195725'
:
this
.
clickUsrAppFunc1104195725
(
item
);
return
;
case
'AppFunc115'
:
this
.
clickAppFunc115
(
item
);
return
;
case
'AppFunc116'
:
this
.
clickAppFunc116
(
item
);
return
;
case
'AppFunc117'
:
this
.
clickAppFunc117
(
item
);
return
;
case
'AppFunc118'
:
this
.
clickAppFunc118
(
item
);
return
;
case
'AppFunc119'
:
this
.
clickAppFunc119
(
item
);
return
;
case
'AppFunc120'
:
this
.
clickAppFunc120
(
item
);
return
;
case
'AppFunc121'
:
this
.
clickAppFunc121
(
item
);
return
;
case
'AppFunc123'
:
this
.
clickAppFunc123
(
item
);
return
;
case
'AppFunc122'
:
this
.
clickAppFunc122
(
item
);
return
;
case
'AppFunc124'
:
this
.
clickAppFunc124
(
item
);
return
;
default
:
console
.
warn
(
'未指定应用功能'
);
if
(
item
)
{
let
navDataService
=
NavDataService
.
getInstance
();
if
(
Object
.
is
(
this
.
navModel
,
"route"
)){
navDataService
.
removeNavData
(
this
.
viewtag
);
}
switch
(
item
.
appfunctag
)
{
case
'AppFunc66'
:
this
.
clickAppFunc66
(
item
);
return
;
case
'UsrAppFunc1108357066'
:
this
.
clickUsrAppFunc1108357066
(
item
);
return
;
case
'Auto338'
:
this
.
clickAuto338
(
item
);
return
;
case
'Auto222'
:
this
.
clickAuto222
(
item
);
return
;
case
'AppFunc'
:
this
.
clickAppFunc
(
item
);
return
;
case
'AppFunc89'
:
this
.
clickAppFunc89
(
item
);
return
;
case
'AppFunc70'
:
this
.
clickAppFunc70
(
item
);
return
;
case
'AppFunc50'
:
this
.
clickAppFunc50
(
item
);
return
;
case
'AppFunc82'
:
this
.
clickAppFunc82
(
item
);
return
;
case
'Auto393'
:
this
.
clickAuto393
(
item
);
return
;
case
'AppFunc31'
:
this
.
clickAppFunc31
(
item
);
return
;
case
'Auto319'
:
this
.
clickAuto319
(
item
);
return
;
case
'AppFunc23'
:
this
.
clickAppFunc23
(
item
);
return
;
case
'Auto279'
:
this
.
clickAuto279
(
item
);
return
;
case
'Auto129'
:
this
.
clickAuto129
(
item
);
return
;
case
'Auto371'
:
this
.
clickAuto371
(
item
);
return
;
case
'Auto111'
:
this
.
clickAuto111
(
item
);
return
;
case
'Auto106'
:
this
.
clickAuto106
(
item
);
return
;
case
'Auto155'
:
this
.
clickAuto155
(
item
);
return
;
case
'Auto151'
:
this
.
clickAuto151
(
item
);
return
;
case
'Auto81'
:
this
.
clickAuto81
(
item
);
return
;
case
'Auto114'
:
this
.
clickAuto114
(
item
);
return
;
case
'AppFunc32'
:
this
.
clickAppFunc32
(
item
);
return
;
case
'Auto173'
:
this
.
clickAuto173
(
item
);
return
;
case
'AppFunc42'
:
this
.
clickAppFunc42
(
item
);
return
;
case
'AppFunc46'
:
this
.
clickAppFunc46
(
item
);
return
;
case
'AppFunc56'
:
this
.
clickAppFunc56
(
item
);
return
;
case
'AppFunc58'
:
this
.
clickAppFunc58
(
item
);
return
;
case
'AppFunc57'
:
this
.
clickAppFunc57
(
item
);
return
;
case
'AppFunc59'
:
this
.
clickAppFunc59
(
item
);
return
;
case
'AppFunc60'
:
this
.
clickAppFunc60
(
item
);
return
;
case
'AppFunc41'
:
this
.
clickAppFunc41
(
item
);
return
;
case
'Auto337'
:
this
.
clickAuto337
(
item
);
return
;
case
'Auto402'
:
this
.
clickAuto402
(
item
);
return
;
case
'AppFunc64'
:
this
.
clickAppFunc64
(
item
);
return
;
case
'AppFunc49'
:
this
.
clickAppFunc49
(
item
);
return
;
case
'AppFunc51'
:
this
.
clickAppFunc51
(
item
);
return
;
case
'AppFunc36'
:
this
.
clickAppFunc36
(
item
);
return
;
case
'AppFunc43'
:
this
.
clickAppFunc43
(
item
);
return
;
case
'Auto176'
:
this
.
clickAuto176
(
item
);
return
;
case
'Auto286'
:
this
.
clickAuto286
(
item
);
return
;
case
'Auto124'
:
this
.
clickAuto124
(
item
);
return
;
case
'AppFunc2'
:
this
.
clickAppFunc2
(
item
);
return
;
case
'AppFunc3'
:
this
.
clickAppFunc3
(
item
);
return
;
case
'AppFunc4'
:
this
.
clickAppFunc4
(
item
);
return
;
case
'AppFunc5'
:
this
.
clickAppFunc5
(
item
);
return
;
case
'AppFunc6'
:
this
.
clickAppFunc6
(
item
);
return
;
case
'AppFunc54'
:
this
.
clickAppFunc54
(
item
);
return
;
case
'AppFunc55'
:
this
.
clickAppFunc55
(
item
);
return
;
case
'AppFunc7'
:
this
.
clickAppFunc7
(
item
);
return
;
case
'AppFunc8'
:
this
.
clickAppFunc8
(
item
);
return
;
case
'AppFunc9'
:
this
.
clickAppFunc9
(
item
);
return
;
case
'AppFunc10'
:
this
.
clickAppFunc10
(
item
);
return
;
case
'AppFunc11'
:
this
.
clickAppFunc11
(
item
);
return
;
case
'AppFunc12'
:
this
.
clickAppFunc12
(
item
);
return
;
case
'AppFunc13'
:
this
.
clickAppFunc13
(
item
);
return
;
case
'AppFunc17'
:
this
.
clickAppFunc17
(
item
);
return
;
case
'AppFunc65'
:
this
.
clickAppFunc65
(
item
);
return
;
case
'AppFunc20'
:
this
.
clickAppFunc20
(
item
);
return
;
case
'AppFunc21'
:
this
.
clickAppFunc21
(
item
);
return
;
case
'AppFunc29'
:
this
.
clickAppFunc29
(
item
);
return
;
case
'AppFunc72'
:
this
.
clickAppFunc72
(
item
);
return
;
case
'Auto375'
:
this
.
clickAuto375
(
item
);
return
;
case
'Auto66'
:
this
.
clickAuto66
(
item
);
return
;
case
'Auto96'
:
this
.
clickAuto96
(
item
);
return
;
case
'Auto235'
:
this
.
clickAuto235
(
item
);
return
;
case
'AppFunc74'
:
this
.
clickAppFunc74
(
item
);
return
;
case
'AppFunc73'
:
this
.
clickAppFunc73
(
item
);
return
;
case
'AppFunc14'
:
this
.
clickAppFunc14
(
item
);
return
;
case
'AppFunc15'
:
this
.
clickAppFunc15
(
item
);
return
;
case
'AppFunc16'
:
this
.
clickAppFunc16
(
item
);
return
;
case
'AppFunc19'
:
this
.
clickAppFunc19
(
item
);
return
;
case
'AppFunc71'
:
this
.
clickAppFunc71
(
item
);
return
;
case
'AppFunc25'
:
this
.
clickAppFunc25
(
item
);
return
;
case
'AppFunc26'
:
this
.
clickAppFunc26
(
item
);
return
;
case
'AppFunc27'
:
this
.
clickAppFunc27
(
item
);
return
;
case
'Auto25'
:
this
.
clickAuto25
(
item
);
return
;
case
'Auto387'
:
this
.
clickAuto387
(
item
);
return
;
case
'Auto320'
:
this
.
clickAuto320
(
item
);
return
;
case
'Auto3'
:
this
.
clickAuto3
(
item
);
return
;
case
'Auto2'
:
this
.
clickAuto2
(
item
);
return
;
case
'Auto213'
:
this
.
clickAuto213
(
item
);
return
;
case
'AppFunc45'
:
this
.
clickAppFunc45
(
item
);
return
;
case
'AppFunc48'
:
this
.
clickAppFunc48
(
item
);
return
;
case
'Auto299'
:
this
.
clickAuto299
(
item
);
return
;
case
'AppFunc90'
:
this
.
clickAppFunc90
(
item
);
return
;
case
'AppFunc91'
:
this
.
clickAppFunc91
(
item
);
return
;
case
'AppFunc35'
:
this
.
clickAppFunc35
(
item
);
return
;
case
'Auto296'
:
this
.
clickAuto296
(
item
);
return
;
case
'AppFunc85'
:
this
.
clickAppFunc85
(
item
);
return
;
case
'AppFunc86'
:
this
.
clickAppFunc86
(
item
);
return
;
case
'AppFunc94'
:
this
.
clickAppFunc94
(
item
);
return
;
case
'AppFunc22'
:
this
.
clickAppFunc22
(
item
);
return
;
case
'UsrAppFunc1109441753'
:
this
.
clickUsrAppFunc1109441753
(
item
);
return
;
case
'AppFunc75'
:
this
.
clickAppFunc75
(
item
);
return
;
case
'AppFunc78'
:
this
.
clickAppFunc78
(
item
);
return
;
case
'Auto67'
:
this
.
clickAuto67
(
item
);
return
;
case
'Auto39'
:
this
.
clickAuto39
(
item
);
return
;
case
'AppFunc95'
:
this
.
clickAppFunc95
(
item
);
return
;
case
'AppFunc88'
:
this
.
clickAppFunc88
(
item
);
return
;
case
'AppFunc79'
:
this
.
clickAppFunc79
(
item
);
return
;
case
'AppFunc80'
:
this
.
clickAppFunc80
(
item
);
return
;
case
'AppFunc81'
:
this
.
clickAppFunc81
(
item
);
return
;
case
'AppFunc83'
:
this
.
clickAppFunc83
(
item
);
return
;
case
'AppFunc84'
:
this
.
clickAppFunc84
(
item
);
return
;
case
'AppFunc96'
:
this
.
clickAppFunc96
(
item
);
return
;
case
'AppFunc97'
:
this
.
clickAppFunc97
(
item
);
return
;
case
'AppFunc98'
:
this
.
clickAppFunc98
(
item
);
return
;
case
'UsrAppFunc1109902486'
:
this
.
clickUsrAppFunc1109902486
(
item
);
return
;
case
'UsrAppFunc1109992105'
:
this
.
clickUsrAppFunc1109992105
(
item
);
return
;
case
'AppFunc127'
:
this
.
clickAppFunc127
(
item
);
return
;
case
'AppFunc100'
:
this
.
clickAppFunc100
(
item
);
return
;
case
'UsrAppFunc1102681676'
:
this
.
clickUsrAppFunc1102681676
(
item
);
return
;
case
'AppFunc101'
:
this
.
clickAppFunc101
(
item
);
return
;
case
'AppFunc125'
:
this
.
clickAppFunc125
(
item
);
return
;
case
'AppFunc128'
:
this
.
clickAppFunc128
(
item
);
return
;
case
'AppFunc129'
:
this
.
clickAppFunc129
(
item
);
return
;
case
'AppFunc126'
:
this
.
clickAppFunc126
(
item
);
return
;
case
'AppFunc102'
:
this
.
clickAppFunc102
(
item
);
return
;
case
'AppFunc103'
:
this
.
clickAppFunc103
(
item
);
return
;
case
'AppFunc104'
:
this
.
clickAppFunc104
(
item
);
return
;
case
'AppFunc105'
:
this
.
clickAppFunc105
(
item
);
return
;
case
'AppFunc106'
:
this
.
clickAppFunc106
(
item
);
return
;
case
'AppFunc107'
:
this
.
clickAppFunc107
(
item
);
return
;
case
'AppFunc108'
:
this
.
clickAppFunc108
(
item
);
return
;
case
'AppFunc109'
:
this
.
clickAppFunc109
(
item
);
return
;
case
'AppFunc99'
:
this
.
clickAppFunc99
(
item
);
return
;
case
'AppFunc110'
:
this
.
clickAppFunc110
(
item
);
return
;
case
'AppFunc111'
:
this
.
clickAppFunc111
(
item
);
return
;
case
'AppFunc112'
:
this
.
clickAppFunc112
(
item
);
return
;
case
'UsrAppFunc1103578816'
:
this
.
clickUsrAppFunc1103578816
(
item
);
return
;
case
'AppFunc113'
:
this
.
clickAppFunc113
(
item
);
return
;
case
'AppFunc114'
:
this
.
clickAppFunc114
(
item
);
return
;
case
'UsrAppFunc1103276204'
:
this
.
clickUsrAppFunc1103276204
(
item
);
return
;
case
'UsrAppFunc1103793182'
:
this
.
clickUsrAppFunc1103793182
(
item
);
return
;
case
'UsrAppFunc1104195725'
:
this
.
clickUsrAppFunc1104195725
(
item
);
return
;
case
'AppFunc115'
:
this
.
clickAppFunc115
(
item
);
return
;
case
'AppFunc116'
:
this
.
clickAppFunc116
(
item
);
return
;
case
'AppFunc117'
:
this
.
clickAppFunc117
(
item
);
return
;
case
'AppFunc118'
:
this
.
clickAppFunc118
(
item
);
return
;
case
'AppFunc119'
:
this
.
clickAppFunc119
(
item
);
return
;
case
'AppFunc120'
:
this
.
clickAppFunc120
(
item
);
return
;
case
'AppFunc121'
:
this
.
clickAppFunc121
(
item
);
return
;
case
'AppFunc123'
:
this
.
clickAppFunc123
(
item
);
return
;
case
'AppFunc122'
:
this
.
clickAppFunc122
(
item
);
return
;
case
'AppFunc124'
:
this
.
clickAppFunc124
(
item
);
return
;
default
:
console
.
warn
(
'未指定应用功能'
);
}
}
}
}
)
}
...
...
app_Web/src/widgets/ibizbook/book-calendar-major-state-calendar/book-calendar-major-state-calendar-base.vue
浏览文件 @
a8976a85
...
...
@@ -649,7 +649,7 @@ export default class BookCalendarMajorStateBase extends Vue implements ControlIn
Object
.
assign
(
arg
,
{
viewparams
:
tempViewParams
});
// 处理events数据
let
_this
=
this
;
let
handleEvents
=
()
=>
{
let
handleEvents
=
()
=>
{
if
(
_this
.
isSelectFirstDefault
){
// 模拟$event数据
let
tempEvent
=
JSON
.
parse
(
JSON
.
stringify
(
_this
.
events
.
length
>
0
?
_this
.
events
[
0
]:{}));
...
...
@@ -673,29 +673,49 @@ export default class BookCalendarMajorStateBase extends Vue implements ControlIn
api
.
updateSize
();
}
}
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
handleEvents
();
return
;
}
else
{
}
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
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
)
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
});
return
;
}
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
response
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
});
})
}
/**
...
...
@@ -742,68 +762,74 @@ export default class BookCalendarMajorStateBase extends Vue implements ControlIn
* @memberof BookCalendarMajorStateBase
*/
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
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
$event
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
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
"item"
:
_context
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
);
// 处理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
);
}
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
// 点击选中样式
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
.
refresh
();
});
}
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
"item"
:
_context
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
();
});
}
})
}
/**
...
...
@@ -841,20 +867,40 @@ export default class BookCalendarMajorStateBase extends Vue implements ControlIn
_context
.
ibizbook
=
$event
.
event
.
_def
.
extendedProps
.
ibizbook
;
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
}
);
this
.
handleCtrlEvents
(
'onbeforedrop'
,
{
viewparams
:
arg
}).
then
((
beforeDropRes
:
boolean
)
=>
{
if
(
!
beforeDropRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
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
)
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
})
}
this
.
handleCtrlEvents
(
'ondropsuccess'
,
{
data
:
response
.
data
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
})
})
});
}
...
...
app_Web/src/widgets/ibizbook/custom-calendar-calendar/custom-calendar-calendar-base.vue
浏览文件 @
a8976a85
...
...
@@ -555,7 +555,7 @@ export default class CustomCalendarBase extends Vue implements ControlInterface
Object
.
assign
(
arg
,
{
viewparams
:
tempViewParams
});
// 处理events数据
let
_this
=
this
;
let
handleEvents
=
()
=>
{
let
handleEvents
=
()
=>
{
if
(
_this
.
isSelectFirstDefault
){
// 模拟$event数据
let
tempEvent
=
JSON
.
parse
(
JSON
.
stringify
(
_this
.
events
.
length
>
0
?
_this
.
events
[
0
]:{}));
...
...
@@ -579,29 +579,49 @@ export default class CustomCalendarBase extends Vue implements ControlInterface
api
.
updateSize
();
}
}
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
handleEvents
();
return
;
}
else
{
}
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
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
)
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
});
return
;
}
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
response
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
});
})
}
/**
...
...
@@ -637,68 +657,74 @@ export default class CustomCalendarBase extends Vue implements ControlInterface
* @memberof CustomCalendarBase
*/
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
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
$event
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
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
"item"
:
_context
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
);
// 处理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
);
}
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
// 点击选中样式
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
.
refresh
();
});
}
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
"item"
:
_context
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
();
});
}
})
}
/**
...
...
@@ -736,20 +762,40 @@ export default class CustomCalendarBase extends Vue implements ControlInterface
_context
.
ibizbook
=
$event
.
event
.
_def
.
extendedProps
.
ibizbook
;
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
}
);
this
.
handleCtrlEvents
(
'onbeforedrop'
,
{
viewparams
:
arg
}).
then
((
beforeDropRes
:
boolean
)
=>
{
if
(
!
beforeDropRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
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
)
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
})
}
this
.
handleCtrlEvents
(
'ondropsuccess'
,
{
data
:
response
.
data
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
})
})
});
}
...
...
app_Web/src/widgets/ibizbook/ibizbookmonth-calendar/ibizbookmonth-calendar-base.vue
浏览文件 @
a8976a85
...
...
@@ -822,7 +822,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
Object
.
assign
(
arg
,
{
viewparams
:
tempViewParams
});
// 处理events数据
let
_this
=
this
;
let
handleEvents
=
()
=>
{
let
handleEvents
=
()
=>
{
if
(
_this
.
isSelectFirstDefault
){
// 模拟$event数据
let
tempEvent
=
JSON
.
parse
(
JSON
.
stringify
(
_this
.
events
.
length
>
0
?
_this
.
events
[
0
]:{}));
...
...
@@ -846,29 +846,49 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
api
.
updateSize
();
}
}
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
handleEvents
();
return
;
}
else
{
}
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadRes
)
{
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
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
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
)
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
});
return
;
}
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
response
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
});
})
}
/**
...
...
@@ -915,68 +935,74 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @memberof IBIZBOOKMONTHBase
*/
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
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
$event
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
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
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
);
// 处理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
);
}
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
// 点击选中样式
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
.
refresh
();
});
}
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
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
();
});
}
})
}
/**
...
...
@@ -1014,20 +1040,40 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
_context
.
ibizbook
=
$event
.
event
.
_def
.
extendedProps
.
ibizbook
;
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
}
);
this
.
handleCtrlEvents
(
'onbeforedrop'
,
{
viewparams
:
arg
}).
then
((
beforeDropRes
:
boolean
)
=>
{
if
(
!
beforeDropRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
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
)
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
})
}
this
.
handleCtrlEvents
(
'ondropsuccess'
,
{
data
:
response
.
data
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
})
})
});
}
...
...
app_Web/src/widgets/ibizbook/ibizbookpanel-calendar/ibizbookpanel-calendar-base.vue
浏览文件 @
a8976a85
...
...
@@ -732,7 +732,7 @@ export default class IBIZBOOKPANELBase extends Vue implements ControlInterface {
Object
.
assign
(
arg
,
{
viewparams
:
tempViewParams
});
// 处理events数据
let
_this
=
this
;
let
handleEvents
=
()
=>
{
let
handleEvents
=
()
=>
{
if
(
_this
.
isSelectFirstDefault
){
// 模拟$event数据
let
tempEvent
=
JSON
.
parse
(
JSON
.
stringify
(
_this
.
events
.
length
>
0
?
_this
.
events
[
0
]:{}));
...
...
@@ -756,29 +756,49 @@ export default class IBIZBOOKPANELBase extends Vue implements ControlInterface {
api
.
updateSize
();
}
}
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
handleEvents
();
return
;
}
else
{
}
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadRes
)
{
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
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
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
)
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
});
return
;
}
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
response
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
});
})
}
/**
...
...
@@ -814,68 +834,74 @@ export default class IBIZBOOKPANELBase extends Vue implements ControlInterface {
* @memberof IBIZBOOKPANELBase
*/
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
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
$event
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
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
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
);
// 处理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
);
}
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
// 点击选中样式
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
.
refresh
();
});
}
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
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
();
});
}
})
}
/**
...
...
@@ -913,20 +939,40 @@ export default class IBIZBOOKPANELBase extends Vue implements ControlInterface {
_context
.
ibizbook
=
$event
.
event
.
_def
.
extendedProps
.
ibizbook
;
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
}
);
this
.
handleCtrlEvents
(
'onbeforedrop'
,
{
viewparams
:
arg
}).
then
((
beforeDropRes
:
boolean
)
=>
{
if
(
!
beforeDropRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
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
)
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
})
}
this
.
handleCtrlEvents
(
'ondropsuccess'
,
{
data
:
response
.
data
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
})
})
});
}
...
...
app_Web/src/widgets/ibizbook/ibizbooktimeline-calendar/ibizbooktimeline-calendar-base.vue
浏览文件 @
a8976a85
...
...
@@ -838,7 +838,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
Object
.
assign
(
arg
,
{
viewparams
:
tempViewParams
});
// 处理events数据
let
_this
=
this
;
let
handleEvents
=
()
=>
{
let
handleEvents
=
()
=>
{
if
(
_this
.
isSelectFirstDefault
){
// 模拟$event数据
let
tempEvent
=
JSON
.
parse
(
JSON
.
stringify
(
_this
.
events
.
length
>
0
?
_this
.
events
[
0
]:{}));
...
...
@@ -862,29 +862,49 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
api
.
updateSize
();
}
}
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
handleEvents
();
return
;
}
else
{
}
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadRes
)
{
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
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
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
)
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
});
return
;
}
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
response
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
});
})
}
/**
...
...
@@ -920,68 +940,74 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @memberof IBIZBOOKTIMELINEBase
*/
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
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
$event
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
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
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
);
// 处理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
);
}
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
// 点击选中样式
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
.
refresh
();
});
}
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
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
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
();
});
}
})
}
/**
...
...
@@ -1019,20 +1045,40 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
_context
.
ibizbook
=
$event
.
event
.
_def
.
extendedProps
.
ibizbook
;
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
}
);
this
.
handleCtrlEvents
(
'onbeforedrop'
,
{
viewparams
:
arg
}).
then
((
beforeDropRes
:
boolean
)
=>
{
if
(
!
beforeDropRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
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
)
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
})
}
this
.
handleCtrlEvents
(
'ondropsuccess'
,
{
data
:
response
.
data
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
})
})
});
}
...
...
app_Web/src/widgets/ibizorder/order-calendar-navigation-calendar/order-calendar-navigation-calendar-base.vue
浏览文件 @
a8976a85
...
...
@@ -570,7 +570,7 @@ export default class OrderCalendarNavigationBase extends Vue implements ControlI
Object
.
assign
(
arg
,
{
viewparams
:
tempViewParams
});
// 处理events数据
let
_this
=
this
;
let
handleEvents
=
()
=>
{
let
handleEvents
=
()
=>
{
if
(
_this
.
isSelectFirstDefault
){
// 模拟$event数据
let
tempEvent
=
JSON
.
parse
(
JSON
.
stringify
(
_this
.
events
.
length
>
0
?
_this
.
events
[
0
]:{}));
...
...
@@ -594,29 +594,49 @@ export default class OrderCalendarNavigationBase extends Vue implements ControlI
api
.
updateSize
();
}
}
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
handleEvents
();
return
;
}
else
{
}
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
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
)
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
});
return
;
}
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
response
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
});
})
}
/**
...
...
@@ -674,68 +694,74 @@ export default class OrderCalendarNavigationBase extends Vue implements ControlI
* @memberof OrderCalendarNavigationBase
*/
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
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
$event
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
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
);
// 处理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
);
}
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
// 点击选中样式
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
.
refresh
();
});
}
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
();
});
}
})
}
/**
...
...
@@ -773,20 +799,40 @@ export default class OrderCalendarNavigationBase extends Vue implements ControlI
_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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
}
);
this
.
handleCtrlEvents
(
'onbeforedrop'
,
{
viewparams
:
arg
}).
then
((
beforeDropRes
:
boolean
)
=>
{
if
(
!
beforeDropRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
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
)
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
})
}
this
.
handleCtrlEvents
(
'ondropsuccess'
,
{
data
:
response
.
data
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
})
})
});
}
...
...
app_Web/src/widgets/ibizorder/order-calendar-timeline-navigation-calendar/order-calendar-timeline-navigation-calendar-base.vue
浏览文件 @
a8976a85
...
...
@@ -563,7 +563,7 @@ export default class OrderCalendarTimelineNavigationBase extends Vue implements
Object
.
assign
(
arg
,
{
viewparams
:
tempViewParams
});
// 处理events数据
let
_this
=
this
;
let
handleEvents
=
()
=>
{
let
handleEvents
=
()
=>
{
if
(
_this
.
isSelectFirstDefault
){
// 模拟$event数据
let
tempEvent
=
JSON
.
parse
(
JSON
.
stringify
(
_this
.
events
.
length
>
0
?
_this
.
events
[
0
]:{}));
...
...
@@ -587,29 +587,49 @@ export default class OrderCalendarTimelineNavigationBase extends Vue implements
api
.
updateSize
();
}
}
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
if
(
JSON
.
stringify
(
arg
)
===
JSON
.
stringify
(
this
.
searchArgCache
))
{
handleEvents
();
return
;
}
else
{
}
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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
viewparams
:
arg
}).
then
((
beforeLoadRes
:
boolean
)
=>
{
if
(
!
beforeLoadRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
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
)
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
});
return
;
}
this
.
handleCtrlEvents
(
'onloadsuccess'
,
{
data
:
response
.
data
}).
then
((
loadSuccessRes
:
boolean
)
=>
{
if
(
!
loadSuccessRes
)
{
return
;
}
// 默认选中第一项
this
.
events
=
response
.
data
;
handleEvents
();
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
viewparams
:
arg
}).
then
((
loadErrorRes
:
boolean
)
=>
{
if
(
!
loadErrorRes
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
});
});
})
}
/**
...
...
@@ -667,68 +687,74 @@ export default class OrderCalendarTimelineNavigationBase extends Vue implements
* @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
.
handleCtrlEvents
(
'onselectionchange'
,
{
data
:
$event
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
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
);
// 处理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
);
}
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
// 点击选中样式
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
.
refresh
();
});
}
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
();
});
}
})
}
/**
...
...
@@ -766,20 +792,40 @@ export default class OrderCalendarTimelineNavigationBase extends Vue implements
_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
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
},
(
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
401
)
{
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
}
);
this
.
handleCtrlEvents
(
'onbeforedrop'
,
{
viewparams
:
arg
}).
then
((
beforeDropRes
:
boolean
)
=>
{
if
(
!
beforeDropRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
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
)
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
.
data
&&
response
.
data
.
message
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
})
}
this
.
handleCtrlEvents
(
'ondropsuccess'
,
{
data
:
response
.
data
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
})
},
(
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'ondroperror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
[]
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
&&
response
.
data
.
message
?
response
.
data
.
message
:
""
});
})
})
});
}
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
a8976a85
...
...
@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-80
4
-7"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-80
5
-7"
>
<createTable
tableName=
"T_IBIZBOOK"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录