Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
004d1a15
提交
004d1a15
编写于
11月 25, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
73c75099
变更
15
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
424 行增加
和
789 行删除
+424
-789
view-message-group.json
app_Web/public/assets/json/view-message-group.json
+9
-3
ibizbook_en_US.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
+16
-55
ibizbook_zh_CN.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
+16
-55
message-service-register.ts
app_Web/src/message/message-service-register.ts
+2
-0
view-msg24-message-base.ts
app_Web/src/message/view-msg24/view-msg24-message-base.ts
+63
-0
view-msg24-message.ts
app_Web/src/message/view-msg24/view-msg24-message.ts
+21
-0
view-msg25-message-base.ts
app_Web/src/message/view-msg25/view-msg25-message-base.ts
+63
-0
view-msg25-message.ts
app_Web/src/message/view-msg25/view-msg25-message.ts
+21
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+9
-3
ibizbookcalendar-view-base.vue
...mple/ibizbookcalendar-view/ibizbookcalendar-view-base.vue
+3
-3
ibizbookusr2-calendar-view-base.vue
...ookusr2-calendar-view/ibizbookusr2-calendar-view-base.vue
+3
-3
ibizbookmonth-calendar-base.vue
...ok/ibizbookmonth-calendar/ibizbookmonth-calendar-base.vue
+157
-81
ibizbookmonth-calendar.less
...izbook/ibizbookmonth-calendar/ibizbookmonth-calendar.less
+0
-1
ibizbooktimeline-calendar-base.vue
...zbooktimeline-calendar/ibizbooktimeline-calendar-base.vue
+41
-584
ibizbooktimeline-calendar.less
.../ibizbooktimeline-calendar/ibizbooktimeline-calendar.less
+0
-1
未找到文件。
app_Web/public/assets/json/view-message-group.json
浏览文件 @
004d1a15
{
"VMGroup26"
:[
{
"tag"
:
"ViewMsg25"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup16"
:[
{
"tag"
:
"ViewMsg15"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
...
...
@@ -17,6 +20,9 @@
"VMGroup6"
:[
{
"tag"
:
"ViewMsg6"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup25"
:[
{
"tag"
:
"ViewMsg24"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup3"
:[
{
"tag"
:
"ViewMsg3"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
...
...
@@ -32,12 +38,12 @@
"VMGroup7"
:[
{
"tag"
:
"ViewMsg7"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup24"
:[
{
"tag"
:
"ViewMsg23"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup23"
:[
{
"tag"
:
"ViewMsg22"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup24"
:[
{
"tag"
:
"ViewMsg23"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup17"
:[
{
"tag"
:
"ViewMsg16"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
浏览文件 @
004d1a15
...
...
@@ -629,59 +629,31 @@ export default {
},
},
usr2calendarviewcalendar_batchtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
deuiaction2
:
{
deuiaction1
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem4
:
{
deuiaction2
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
deuiaction1
:
{
caption
:
"导入"
,
tip
:
"导入"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem16
:
{
caption
:
"其它"
,
tip
:
"其它"
,
},
tbitem21
:
{
caption
:
"Export Data Model"
,
tip
:
"导出数据模型"
,
deuiaction3
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
},
calendarviewcalendar_quicktoolbar_toolbar
:
{
tbitem3
:
{
deuiaction1
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem5
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
deuiaction2
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
deuiaction3
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
},
calendarviewtoolbar_toolbar
:
{
...
...
@@ -1030,28 +1002,17 @@ export default {
ibizbooktimeline_calendar
:
{
nodata
:
""
,
uiactions
:
{
new
:
"New"
,
save
:
"Save"
,
edit
:
"Edit"
,
copy
:
"Copy"
,
togglefilter
:
"Filter"
,
togglerowedit
:
"行编辑"
,
newrow
:
"新建行"
,
remove
:
"Remove"
,
exportexcel
:
"Export"
,
importexcel
:
"导入"
,
print
:
"Print"
,
exportmodel
:
"Export Data Model"
,
import
:
"数据导入"
,
refresh
:
"刷新"
,
},
},
ibizbookmonth_calendar
:
{
nodata
:
""
,
uiactions
:
{
save
:
"Save"
,
saveandexit
:
"Save And Close"
,
saveandstart
:
"Start workflow"
,
print
:
"Print"
,
edit
:
"Edit"
,
refresh
:
"刷新"
,
},
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
浏览文件 @
004d1a15
...
...
@@ -628,59 +628,31 @@ export default {
},
},
usr2calendarviewcalendar_batchtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
deuiaction2
:
{
deuiaction1
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem4
:
{
deuiaction2
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem6
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
deuiaction1
:
{
caption
:
"导入"
,
tip
:
"导入"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem16
:
{
caption
:
"其它"
,
tip
:
"其它"
,
},
tbitem21
:
{
caption
:
"导出数据模型"
,
tip
:
"导出数据模型"
,
deuiaction3
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
},
calendarviewcalendar_quicktoolbar_toolbar
:
{
tbitem3
:
{
deuiaction1
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
deuiaction2
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
deuiaction3
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
},
calendarviewtoolbar_toolbar
:
{
...
...
@@ -1029,28 +1001,17 @@ export default {
ibizbooktimeline_calendar
:
{
nodata
:
""
,
uiactions
:
{
new
:
"新建"
,
save
:
"保存"
,
edit
:
"编辑"
,
copy
:
"拷贝"
,
togglefilter
:
"过滤"
,
togglerowedit
:
"行编辑"
,
newrow
:
"新建行"
,
remove
:
"删除"
,
exportexcel
:
"导出"
,
importexcel
:
"导入"
,
print
:
"打印"
,
exportmodel
:
"导出数据模型"
,
import
:
"数据导入"
,
refresh
:
"刷新"
,
},
},
ibizbookmonth_calendar
:
{
nodata
:
""
,
uiactions
:
{
save
:
"保存"
,
saveandexit
:
"保存并关闭"
,
saveandstart
:
"开始流程"
,
print
:
"打印"
,
edit
:
"编辑"
,
refresh
:
"刷新"
,
},
},
};
\ No newline at end of file
app_Web/src/message/message-service-register.ts
浏览文件 @
004d1a15
...
...
@@ -41,6 +41,7 @@ export class MessageServiceRegister {
protected
init
():
void
{
this
.
allMessageService
.
set
(
'ViewMsg4'
,
()
=>
import
(
'@/message/view-msg4/view-msg4-message'
));
this
.
allMessageService
.
set
(
'ViewMsg22'
,
()
=>
import
(
'@/message/view-msg22/view-msg22-message'
));
this
.
allMessageService
.
set
(
'ViewMsg24'
,
()
=>
import
(
'@/message/view-msg24/view-msg24-message'
));
this
.
allMessageService
.
set
(
'ViewMsg2'
,
()
=>
import
(
'@/message/view-msg2/view-msg2-message'
));
this
.
allMessageService
.
set
(
'ViewMsg10'
,
()
=>
import
(
'@/message/view-msg10/view-msg10-message'
));
this
.
allMessageService
.
set
(
'ViewMsg23'
,
()
=>
import
(
'@/message/view-msg23/view-msg23-message'
));
...
...
@@ -60,6 +61,7 @@ export class MessageServiceRegister {
this
.
allMessageService
.
set
(
'ViewMsg19'
,
()
=>
import
(
'@/message/view-msg19/view-msg19-message'
));
this
.
allMessageService
.
set
(
'ViewMsg21'
,
()
=>
import
(
'@/message/view-msg21/view-msg21-message'
));
this
.
allMessageService
.
set
(
'ViewMsg11'
,
()
=>
import
(
'@/message/view-msg11/view-msg11-message'
));
this
.
allMessageService
.
set
(
'ViewMsg25'
,
()
=>
import
(
'@/message/view-msg25/view-msg25-message'
));
this
.
allMessageService
.
set
(
'ViewMsg3'
,
()
=>
import
(
'@/message/view-msg3/view-msg3-message'
));
this
.
allMessageService
.
set
(
'ViewMsg6'
,
()
=>
import
(
'@/message/view-msg6/view-msg6-message'
));
this
.
allMessageService
.
set
(
'ViewMsg14'
,
()
=>
import
(
'@/message/view-msg14/view-msg14-message'
));
...
...
app_Web/src/message/view-msg24/view-msg24-message-base.ts
0 → 100644
浏览文件 @
004d1a15
import
ViewMessageService
from
'../view-message-service'
;
/**
* 日历部件非时间轴样式视图消息服务对象基类
*
* @export
* @class ViewMsg24MessageServiceBase
*/
export
default
class
ViewMsg24MessageServiceBase
extends
ViewMessageService
{
/**
* Creates an instance of ViewMsg24MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg24MessageServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg24MessageServiceBase
*/
public
initBasicParam
(){
this
.
id
=
"1C7B5B06-FD69-4377-B95B-124B3779D8BF"
;
this
.
name
=
"日历部件非时间轴样式"
;
this
.
codename
=
"ViewMsg24"
;
this
.
title
=
""
;
this
.
content
=
"非时间轴日历样式:快速搜索、快速分组搜索、搜索表单搜索、快速搜索表单部件、搜索栏搜索和快速操作工具栏、右键菜单等配置"
;
this
.
closeMode
=
0
;
this
.
position
=
"TOP"
;
this
.
type
=
"error"
;
this
.
isEnableRemove
=
false
;
this
.
order
=
1
;
this
.
dynamicMode
=
"STATIC"
;
this
.
hasMessageTemp
=
false
;
this
.
messageType
=
"TEXT"
;
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsg24MessageServiceBase
*/
public
translateMessageTemp
(
target
:
any
,
context
:
any
,
viewparam
:
any
,
item
?:
any
){
if
(
this
.
hasMessageTemp
&&
Object
.
is
(
this
.
messageType
,
"HTML"
)){
Object
.
assign
(
target
,{
title
:
``
});
Object
.
assign
(
target
,{
content
:
``
});
}
if
(
this
.
hasMessageTemp
&&
Object
.
is
(
this
.
messageType
,
"TEXT"
)){
Object
.
assign
(
target
,{
title
:
""
});
Object
.
assign
(
target
,{
content
:
""
});
}
}
}
\ No newline at end of file
app_Web/src/message/view-msg24/view-msg24-message.ts
0 → 100644
浏览文件 @
004d1a15
import
ViewMsg24MessageServiceBase
from
'./view-msg24-message-base'
;
/**
* 日历部件非时间轴样式视图消息服务对象
*
* @export
* @class ViewMsg24MessageService
*/
export
default
class
ViewMsg24MessageService
extends
ViewMsg24MessageServiceBase
{
/**
* Creates an instance of ViewMsg24MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg24MessageService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/message/view-msg25/view-msg25-message-base.ts
0 → 100644
浏览文件 @
004d1a15
import
ViewMessageService
from
'../view-message-service'
;
/**
* 日历时间轴样式视图消息服务对象基类
*
* @export
* @class ViewMsg25MessageServiceBase
*/
export
default
class
ViewMsg25MessageServiceBase
extends
ViewMessageService
{
/**
* Creates an instance of ViewMsg25MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg25MessageServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg25MessageServiceBase
*/
public
initBasicParam
(){
this
.
id
=
"A5539E12-F033-4C5D-9333-8370F9DB01F2"
;
this
.
name
=
"日历时间轴样式"
;
this
.
codename
=
"ViewMsg25"
;
this
.
title
=
""
;
this
.
content
=
"时间轴样式日历:批操作工具栏,右键菜单配置"
;
this
.
closeMode
=
0
;
this
.
position
=
"TOP"
;
this
.
type
=
"error"
;
this
.
isEnableRemove
=
false
;
this
.
order
=
1
;
this
.
dynamicMode
=
"STATIC"
;
this
.
hasMessageTemp
=
false
;
this
.
messageType
=
"TEXT"
;
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsg25MessageServiceBase
*/
public
translateMessageTemp
(
target
:
any
,
context
:
any
,
viewparam
:
any
,
item
?:
any
){
if
(
this
.
hasMessageTemp
&&
Object
.
is
(
this
.
messageType
,
"HTML"
)){
Object
.
assign
(
target
,{
title
:
``
});
Object
.
assign
(
target
,{
content
:
``
});
}
if
(
this
.
hasMessageTemp
&&
Object
.
is
(
this
.
messageType
,
"TEXT"
)){
Object
.
assign
(
target
,{
title
:
""
});
Object
.
assign
(
target
,{
content
:
""
});
}
}
}
\ No newline at end of file
app_Web/src/message/view-msg25/view-msg25-message.ts
0 → 100644
浏览文件 @
004d1a15
import
ViewMsg25MessageServiceBase
from
'./view-msg25-message-base'
;
/**
* 日历时间轴样式视图消息服务对象
*
* @export
* @class ViewMsg25MessageService
*/
export
default
class
ViewMsg25MessageService
extends
ViewMsg25MessageServiceBase
{
/**
* Creates an instance of ViewMsg25MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg25MessageService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
004d1a15
...
...
@@ -1214,6 +1214,9 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
mock
.
onGet
(
'./assets/json/view-message-group.json'
).
reply
((
config
:
any
)
=>
{
let
status
=
MockAdapter
.
mockStatus
(
config
);
return
[
status
,{
"VMGroup26"
:[
{
"tag"
:
"ViewMsg25"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup16"
:[
{
"tag"
:
"ViewMsg15"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
...
...
@@ -1232,6 +1235,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup6"
:[
{
"tag"
:
"ViewMsg6"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup25"
:[
{
"tag"
:
"ViewMsg24"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup3"
:[
{
"tag"
:
"ViewMsg3"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
...
...
@@ -1247,12 +1253,12 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup7"
:[
{
"tag"
:
"ViewMsg7"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup24"
:[
{
"tag"
:
"ViewMsg23"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup23"
:[
{
"tag"
:
"ViewMsg22"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup24"
:[
{
"tag"
:
"ViewMsg23"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup17"
:[
{
"tag"
:
"ViewMsg16"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
...
...
app_Web/src/pages/sample/ibizbookcalendar-view/ibizbookcalendar-view-base.vue
浏览文件 @
004d1a15
...
...
@@ -8,7 +8,7 @@
</div>
<div
class=
'view-top-messages'
>
</div>
<
app-alert-group
position=
'TOP'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup25'
viewname=
'ibizbookcalendarview'
></app-alert-group>
<
/div>
<div
class=
'content-container'
>
<div
style=
"margin-bottom:6px;"
>
...
...
@@ -81,7 +81,7 @@
@
closeview=
"closeView($event)"
>
</view
_searchform
>
<div
class=
'view-body-messages'
>
</div>
<
app-alert-group
position=
'BODY'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup25'
viewname=
'ibizbookcalendarview'
></app-alert-group>
<
/div>
<view
_calendar
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
@@ -97,7 +97,7 @@
</div>
<div
class=
'view-bottom-messages'
>
</div>
<
app-alert-group
position=
'BOTTOM'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup25'
viewname=
'ibizbookcalendarview'
></app-alert-group>
<
/div>
</card>
</div>
</
template
>
...
...
app_Web/src/pages/sample/ibizbookusr2-calendar-view/ibizbookusr2-calendar-view-base.vue
浏览文件 @
004d1a15
...
...
@@ -8,11 +8,11 @@
</div>
<div
class=
'view-top-messages'
>
</div>
<
app-alert-group
position=
'TOP'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup26'
viewname=
'ibizbookusr2calendarview'
></app-alert-group>
<
/div>
<div
class=
'content-container'
>
<div
class=
'view-body-messages'
>
</div>
<
app-alert-group
position=
'BODY'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup26'
viewname=
'ibizbookusr2calendarview'
></app-alert-group>
<
/div>
<view
_calendar
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
@@ -28,7 +28,7 @@
</div>
<div
class=
'view-bottom-messages'
>
</div>
<
app-alert-group
position=
'BOTTOM'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup26'
viewname=
'ibizbookusr2calendarview'
></app-alert-group>
<
/div>
</card>
</div>
</
template
>
...
...
app_Web/src/widgets/ibizbook/ibizbookmonth-calendar/ibizbookmonth-calendar-base.vue
浏览文件 @
004d1a15
...
...
@@ -3,18 +3,25 @@
<span
class=
"quick-toolbar"
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"calendarviewcalendar_quicktoolbarModels.
tbitem3.visabled"
:disabled=
"calendarviewcalendar_quicktoolbarModels.tbitem3.disabled"
class=
' deepskyblueToolBar'
@
click=
"calendar_quicktoolbar_click(
{ tag: 'tbitem3
' }, $event)">
<i-button
v-show=
"calendarviewcalendar_quicktoolbarModels.
deuiaction1.visabled"
:disabled=
"calendarviewcalendar_quicktoolbarModels.deuiaction1.disabled"
class=
''
@
click=
"calendar_quicktoolbar_click(
{ tag: 'deuiaction1
' }, $event)">
<i
class=
'fa fa-save'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.
tbitem3
.caption'
)
}}
</span>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.
deuiaction1
.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.
tbitem3
.tip'
)
}}
</div>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.
deuiaction1
.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"calendarviewcalendar_quicktoolbarModels.
tbitem5.visabled"
:disabled=
"calendarviewcalendar_quicktoolbarModels.tbitem5.disabled"
class=
''
@
click=
"calendar_quicktoolbar_click(
{ tag: 'tbitem5
' }, $event)">
<i
class=
'
sx-tb-saveandclose
'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.
tbitem5
.caption'
)
}}
</span>
<i-button
v-show=
"calendarviewcalendar_quicktoolbarModels.
deuiaction2.visabled"
:disabled=
"calendarviewcalendar_quicktoolbarModels.deuiaction2.disabled"
class=
''
@
click=
"calendar_quicktoolbar_click(
{ tag: 'deuiaction2
' }, $event)">
<i
class=
'
fa fa-edit
'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.
deuiaction2
.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.tbitem5.tip'
)
}}
</div>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.deuiaction2.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"calendarviewcalendar_quicktoolbarModels.deuiaction3.visabled"
:disabled=
"calendarviewcalendar_quicktoolbarModels.deuiaction3.disabled"
class=
''
@
click=
"calendar_quicktoolbar_click(
{ tag: 'deuiaction3' }, $event)">
<i
class=
'fa fa-refresh'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.deuiaction3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.deuiaction3.tip'
)
}}
</div>
</tooltip>
</div>
</span>
...
...
@@ -170,17 +177,33 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @memberof IBIZBOOKMONTHBase
*/
public
calendar_quicktoolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
calendar_quicktoolbar_tbitem3_click
(
null
,
'calendar_quicktoolbar'
,
$event2
);
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
calendar_quicktoolbar_deuiaction1_click
(
null
,
'calendar_quicktoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
calendar_quicktoolbar_deuiaction2_click
(
null
,
'calendar_quicktoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem5'
))
{
this
.
calendar_quicktoolbar_tbitem5_click
(
null
,
'calendar_quicktoolbar'
,
$event2
);
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction3'
))
{
this
.
calendar_quicktoolbar_deuiaction3_click
(
null
,
'calendar_quicktoolbar'
,
$event2
);
}
}
/**
* cm 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKMONTHBase
*/
public
cm_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
cm_deuiaction1_click
(
null
,
'cm'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'
tbitem9
'
))
{
this
.
c
alendar_quicktoolbar_tbitem9_click
(
null
,
'calendar_quicktoolbar
'
,
$event2
);
if
(
Object
.
is
(
$event
.
tag
,
'
deuiaction2
'
))
{
this
.
c
m_deuiaction2_click
(
null
,
'cm
'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'
tbitem15
'
))
{
this
.
c
alendar_quicktoolbar_tbitem15_click
(
null
,
'calendar_quicktoolbar
'
,
$event2
);
if
(
Object
.
is
(
$event
.
tag
,
'
deuiaction3
'
))
{
this
.
c
m_deuiaction3_click
(
null
,
'cm
'
,
$event2
);
}
}
...
...
@@ -193,7 +216,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
calendar_quicktoolbar_
tbitem3
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
calendar_quicktoolbar_
deuiaction1
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -221,7 +244,63 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
calendar_quicktoolbar_tbitem5_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
calendar_quicktoolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_quicktoolbar_deuiaction3_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
cm_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -238,7 +317,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
datas
=
[
params
];
}
// 界面行为
this
.
Save
AndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
...
...
@@ -249,7 +328,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
c
alendar_quicktoolbar_tbitem9
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
c
m_deuiaction2
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -266,7 +345,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndStar
t
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Edi
t
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
...
...
@@ -277,7 +356,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
c
alendar_quicktoolbar_tbitem15
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
c
m_deuiaction3
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -294,7 +373,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
...
...
@@ -324,7 +403,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
}
/**
*
保存并关闭
*
编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
...
...
@@ -334,62 +413,23 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKCalendarViewBase
*/
public
SaveAndExit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
saveAndExit
instanceof
Function
)
{
xData
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
else
if
(
_this
.
saveAndExit
&&
_this
.
saveAndExit
instanceof
Function
)
{
_this
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKCalendarViewBase
*/
public
SaveAndStart
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
wfstart
instanceof
Function
))
{
return
;
}
xData
.
wfstart
(
args
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
const
{
data
:
_data
}
=
response
;
if
(
window
.
parent
){
window
.
parent
.
postMessage
({
...
_data
},
'*'
);
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
ibizbook
:
args
[
0
].
ibizbook
})
}
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
});
}
/**
*
打印
*
刷新
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
...
...
@@ -399,12 +439,13 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKCalendarViewBase
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
public
Refresh
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
else
if
(
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
(
args
);
}
xData
.
print
();
}
/**
...
...
@@ -673,6 +714,9 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @memberof IBIZBOOKMONTHBase
*/
public
actionModel
:
any
=
{
item1_deuiaction1
:
{
name
:
'deuiaction1'
,
nodeOwner
:
'item1'
,
type
:
'DEUIACTION'
,
tag
:
'Save'
,
noprivdisplaymode
:
2
,
visabled
:
true
,
disabled
:
false
},
item1_deuiaction2
:
{
name
:
'deuiaction2'
,
nodeOwner
:
'item1'
,
type
:
'DEUIACTION'
,
tag
:
'Edit'
,
actiontarget
:
'SINGLEKEY'
,
noprivdisplaymode
:
2
,
visabled
:
true
,
disabled
:
false
},
item1_deuiaction3
:
{
name
:
'deuiaction3'
,
nodeOwner
:
'item1'
,
type
:
'DEUIACTION'
,
tag
:
'Refresh'
,
actiontarget
:
'SINGLEKEY'
,
noprivdisplaymode
:
2
,
visabled
:
true
,
disabled
:
false
},
}
/**
...
...
@@ -1067,9 +1111,11 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @memberof IBIZBOOKCalendarView
*/
public
calendarviewcalendar_quicktoolbarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3
'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
deuiaction1
:
{
name
:
'deuiaction1
'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem5
:
{
name
:
'tbitem5'
,
actiontarget
:
'NONE'
,
caption
:
'保存并关闭'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
deuiaction3
:
{
name
:
'deuiaction3'
,
actiontarget
:
'NONE'
,
caption
:
'刷新'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Refresh'
,
target
:
'SINGLEKEY'
}
},
};
...
...
@@ -1155,11 +1201,41 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
const
data
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
event
));
this
.
selections
=
[
event
];
switch
(
event
.
itemType
){
case
"item1"
:
content
=
this
.
renderContextMenuItem1
();
break
;
}
}
return
content
;
}
/**
* 绘制item1类型右键菜单
*
* @returns
* @memberof IBIZBOOKMONTHBase
*/
public
renderContextMenuItem1
()
{
return
(
<
dropdown
class
=
"tree-right-menu"
trigger
=
"custom"
visible
=
{
true
}
on
-
on
-
click
=
{(
$event
:
any
)
=>
this
.
cm_click
({
tag
:
$event
})}
>
<
dropdown
-
menu
slot
=
"list"
>
<
dropdown
-
item
name
=
'deuiaction1'
v
-
show
=
{
this
.
copyActionModel
[
'deuiaction1'
].
visabled
}
disabled
=
{
this
.
copyActionModel
[
'deuiaction1'
].
disabled
}
>
<
i
class
=
'fa fa-save'
><
/i>
保存
<
/dropdown-item>
<
dropdown
-
item
name
=
'deuiaction2'
v
-
show
=
{
this
.
copyActionModel
[
'deuiaction2'
].
visabled
}
disabled
=
{
this
.
copyActionModel
[
'deuiaction2'
].
disabled
}
>
<
i
class
=
'fa fa-edit'
><
/i>
编辑
<
/dropdown-item>
<
dropdown
-
item
name
=
'deuiaction3'
v
-
show
=
{
this
.
copyActionModel
[
'deuiaction3'
].
visabled
}
disabled
=
{
this
.
copyActionModel
[
'deuiaction3'
].
disabled
}
>
<
i
class
=
'fa fa-refresh'
><
/i>
刷新
<
/dropdown-item>
<
/dropdown-menu>
<
/dropdown>
);
}
}
</
script
>
...
...
app_Web/src/widgets/ibizbook/ibizbookmonth-calendar/ibizbookmonth-calendar.less
浏览文件 @
004d1a15
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
@import '~@fullcalendar/core/main.css';
@import '~@fullcalendar/daygrid/main.css';
@import '~@fullcalendar/timegrid/main.css';
...
...
app_Web/src/widgets/ibizbook/ibizbooktimeline-calendar/ibizbooktimeline-calendar-base.vue
浏览文件 @
004d1a15
...
...
@@ -2,74 +2,27 @@
<div
:class=
'calendarClass'
>
<span
v-if=
"selections.length > 0"
class=
"batch-toolbar"
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem3.visabled"
:disabled=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem3.disabled"
class=
' deepskyblueToolBar'
@
click=
"calendar_batchtoolbar_click(
{ tag: 'tbitem3' }, $event)">
<i
class=
'fa fa-file-text-o'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem3.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.deuiaction2.visabled"
:disabled=
"usr2calendarviewcalendar_batchtoolbarModels.deuiaction2.disabled"
class=
''
@
click=
"calendar_batchtoolbar_click(
{ tag: 'deuiaction2' }, $event)">
<i
class=
'fa fa-save'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction2.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction2.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem4.visabled"
:disabled=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem4.disabled"
class=
''
@
click=
"calendar_batchtoolbar_click(
{ tag: 'tbitem4' }, $event)">
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem4.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem4.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem6.visabled"
:disabled=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem6.disabled"
class=
''
@
click=
"calendar_batchtoolbar_click(
{ tag: 'tbitem6' }, $event)">
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem6.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem6.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem8.visabled"
:disabled=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem8.disabled"
class=
''
@
click=
"calendar_batchtoolbar_click(
{ tag: 'tbitem8' }, $event)">
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem8.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem8.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.deuiaction1.visabled"
:disabled=
"usr2calendarviewcalendar_batchtoolbarModels.deuiaction1.disabled"
class=
''
@
click=
"calendar_batchtoolbar_click(
{ tag: 'deuiaction1' }, $event)">
<i
class=
'fa fa-
upload
'
></i>
<i
class=
'fa fa-
save
'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction1.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction1.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<dropdown
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem16.visabled"
trigger=
'click'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
class=
''
>
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem16.caption'
)
}}
</span>
<icon
type=
"ios-arrow-down"
></icon>
<i-button
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.deuiaction2.visabled"
:disabled=
"usr2calendarviewcalendar_batchtoolbarModels.deuiaction2.disabled"
class=
''
@
click=
"calendar_batchtoolbar_click(
{ tag: 'deuiaction2' }, $event)">
<i
class=
'fa fa-edit'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction2.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem16
.tip'
)
}}
</div>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction2
.tip'
)
}}
</div>
</tooltip>
<dropdown-menu
slot=
'list'
>
<dropdown-item>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.
tbitem21.visabled"
:disabled=
"usr2calendarviewcalendar_batchtoolbarModels.tbitem21.disabled"
class=
''
@
click=
"calendar_batchtoolbar_click(
{ tag: 'tbitem21
' }, $event)">
<i
class=
'fa fa-
download
'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.
tbitem21
.caption'
)
}}
</span>
<i-button
v-show=
"usr2calendarviewcalendar_batchtoolbarModels.
deuiaction3.visabled"
:disabled=
"usr2calendarviewcalendar_batchtoolbarModels.deuiaction3.disabled"
class=
''
@
click=
"calendar_batchtoolbar_click(
{ tag: 'deuiaction3
' }, $event)">
<i
class=
'fa fa-
refresh
'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.
deuiaction3
.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.
tbitem21
.tip'
)
}}
</div>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.
deuiaction3
.tip'
)
}}
</div>
</tooltip>
</dropdown-item>
</dropdown-menu>
</dropdown>
</div>
</span>
<context-menu-container>
...
...
@@ -221,6 +174,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
cm_deuiaction2_click
(
null
,
'cm'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction3'
))
{
this
.
cm_deuiaction3_click
(
null
,
'cm'
,
$event2
);
}
}
/**
...
...
@@ -231,45 +187,15 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @memberof IBIZBOOKTIMELINEBase
*/
public
calendar_batchtoolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'
tbitem3
'
))
{
this
.
calendar_batchtoolbar_
tbitem3
_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
if
(
Object
.
is
(
$event
.
tag
,
'
deuiaction1
'
))
{
this
.
calendar_batchtoolbar_
deuiaction1
_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
calendar_batchtoolbar_deuiaction2_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
calendar_batchtoolbar_tbitem4_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem6'
))
{
this
.
calendar_batchtoolbar_tbitem6_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction3'
))
{
this
.
calendar_batchtoolbar_deuiaction3_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
calendar_batchtoolbar_tbitem24_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
calendar_batchtoolbar_tbitem25_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
calendar_batchtoolbar_tbitem8_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem13'
))
{
this
.
calendar_batchtoolbar_tbitem13_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
calendar_batchtoolbar_deuiaction1_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem11'
))
{
this
.
calendar_batchtoolbar_tbitem11_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem21'
))
{
this
.
calendar_batchtoolbar_tbitem21_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem23'
))
{
this
.
calendar_batchtoolbar_tbitem23_click
(
null
,
'calendar_batchtoolbar'
,
$event2
);
}
}
...
...
@@ -281,35 +207,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_tbitem3_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
calendar_batchtoolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -337,7 +235,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_
tbitem4
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
calendar_batchtoolbar_
deuiaction2
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -357,34 +255,6 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_tbitem6_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
...
...
@@ -410,35 +280,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
datas
=
[
params
];
}
// 界面行为
this
.
ToggleFilter
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_tbitem24_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
...
...
@@ -449,175 +291,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_tbitem25_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_tbitem8_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_tbitem13_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ExportExcel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ImportExcel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_tbitem11_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_tbitem21_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ExportModel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
calendar_batchtoolbar_tbitem23_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
cm_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -634,7 +308,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
datas
=
[
params
];
}
// 界面行为
this
.
Import
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
...
...
@@ -645,7 +319,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public
cm_deuiaction
1
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
cm_deuiaction
2
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -673,7 +347,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public
cm_deuiaction
2
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
cm_deuiaction
3
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -690,29 +364,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
datas
=
[
params
];
}
// 界面行为
this
.
Re
move
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Re
fresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 保存
*
...
...
@@ -766,35 +420,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
Copy
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
ibizbook
:
args
[
0
].
ibizbook
});
}
if
(
!
params
)
params
=
{};
Object
.
assign
(
params
,{
copymode
:
true
});
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
Object
.
assign
(
this
.
viewparams
,{
copymode
:
true
});
}
}
/**
* 过滤
* 刷新
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
...
...
@@ -804,175 +430,14 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
ToggleFilter
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
Refresh
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
hasOwnProperty
(
'isExpandSearchForm'
))
{
_this
.
isExpandSearchForm
=
!
_this
.
isExpandSearchForm
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
else
if
(
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
(
args
);
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
NewRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
data
:
any
=
{};
if
(
_this
.
hasOwnProperty
(
'newRow'
)
&&
_this
.
newRow
instanceof
Function
)
{
_this
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
.
newRow
&&
xData
.
newRow
instanceof
Function
)
{
xData
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
Remove
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
remove
instanceof
Function
))
{
return
;
}
xData
.
remove
(
args
);
}
/**
* 导出
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
ExportExcel
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
exportExcel
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
exportExcel
(
$event
.
exportparms
);
}
/**
* 导入
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
ImportExcel
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'NONE'
;
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
const
openPopupApp
=
(
url
:
string
)
=>
{
window
.
open
(
url
,
'_blank'
);
return
null
;
}
const
url
=
`../../ibizutil/uploaddedataview.jsp?srfdeid=`
;
openPopupApp
(
url
);
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
/**
* 导出数据模型
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
ExportModel
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'导出数据模型未支持'
});
}
/**
* 数据导入
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
Import
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
importExcel
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
importExcel
(
params
);
}
/**
* 转化数据
...
...
@@ -1240,8 +705,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @memberof IBIZBOOKTIMELINEBase
*/
public
actionModel
:
any
=
{
item1_deuiaction1
:
{
name
:
'deuiaction1'
,
nodeOwner
:
'item1'
,
type
:
'DEUIACTION'
,
tag
:
'Edit'
,
actiontarget
:
'SINGLEKEY'
,
noprivdisplaymode
:
2
,
visabled
:
true
,
disabled
:
false
},
item1_deuiaction2
:
{
name
:
'deuiaction2'
,
nodeOwner
:
'item1'
,
type
:
'DEUIACTION'
,
tag
:
'Remove'
,
actiontarget
:
'MULTIKEY'
,
noprivdisplaymode
:
2
,
visabled
:
true
,
disabled
:
false
},
item1_deuiaction1
:
{
name
:
'deuiaction1'
,
nodeOwner
:
'item1'
,
type
:
'DEUIACTION'
,
tag
:
'Save'
,
noprivdisplaymode
:
2
,
visabled
:
true
,
disabled
:
false
},
item1_deuiaction2
:
{
name
:
'deuiaction2'
,
nodeOwner
:
'item1'
,
type
:
'DEUIACTION'
,
tag
:
'Edit'
,
actiontarget
:
'SINGLEKEY'
,
noprivdisplaymode
:
2
,
visabled
:
true
,
disabled
:
false
},
item1_deuiaction3
:
{
name
:
'deuiaction3'
,
nodeOwner
:
'item1'
,
type
:
'DEUIACTION'
,
tag
:
'Refresh'
,
actiontarget
:
'SINGLEKEY'
,
noprivdisplaymode
:
2
,
visabled
:
true
,
disabled
:
false
},
}
/**
...
...
@@ -1637,24 +1103,11 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @memberof IBIZBOOKUsr2CalendarView
*/
public
usr2calendarviewcalendar_batchtoolbarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'新建'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem4
:
{
name
:
'tbitem4'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
tbitem6
:
{
name
:
'tbitem6'
,
actiontarget
:
'NONE'
,
caption
:
'拷贝'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
}
},
deuiaction1
:
{
name
:
'deuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem7
:
{
name
:
'tbitem7'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem8
:
{
name
:
'tbitem8'
,
actiontarget
:
'NONE'
,
caption
:
'删除'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
}
},
tbitem9
:
{
name
:
'tbitem9'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
deuiaction1
:
{
name
:
'deuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
'导入'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ImportExcel'
,
target
:
'NONE'
}
},
tbitem10
:
{
name
:
'tbitem10'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem16
:
{
name
:
'tbitem16'
,
caption
:
'其它'
,
disabled
:
false
,
type
:
'ITEMS'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem21
:
{
name
:
'tbitem21'
,
actiontarget
:
'NONE'
,
caption
:
'导出数据模型'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ExportModel'
,
target
:
''
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
deuiaction3
:
{
name
:
'deuiaction3'
,
actiontarget
:
'NONE'
,
caption
:
'刷新'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Refresh'
,
target
:
'SINGLEKEY'
}
},
};
...
...
@@ -1758,12 +1211,16 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
<
dropdown
class
=
"tree-right-menu"
trigger
=
"custom"
visible
=
{
true
}
on
-
on
-
click
=
{(
$event
:
any
)
=>
this
.
cm_click
({
tag
:
$event
})}
>
<
dropdown
-
menu
slot
=
"list"
>
<
dropdown
-
item
name
=
'deuiaction1'
v
-
show
=
{
this
.
copyActionModel
[
'deuiaction1'
].
visabled
}
disabled
=
{
this
.
copyActionModel
[
'deuiaction1'
].
disabled
}
>
<
i
class
=
'fa fa-save'
><
/i>
保存
<
/dropdown-item>
<
dropdown
-
item
name
=
'deuiaction2'
v
-
show
=
{
this
.
copyActionModel
[
'deuiaction2'
].
visabled
}
disabled
=
{
this
.
copyActionModel
[
'deuiaction2'
].
disabled
}
>
<
i
class
=
'fa fa-edit'
><
/i>
编辑
<
/dropdown-item>
<
dropdown
-
item
name
=
'deuiaction
2'
v
-
show
=
{
this
.
copyActionModel
[
'deuiaction2'
].
visabled
}
disabled
=
{
this
.
copyActionModel
[
'deuiaction2
'
].
disabled
}
>
<
i
class
=
'fa fa-re
move
'
><
/i>
删除
<
dropdown
-
item
name
=
'deuiaction
3'
v
-
show
=
{
this
.
copyActionModel
[
'deuiaction3'
].
visabled
}
disabled
=
{
this
.
copyActionModel
[
'deuiaction3
'
].
disabled
}
>
<
i
class
=
'fa fa-re
fresh
'
><
/i>
刷新
<
/dropdown-item>
<
/dropdown-menu>
<
/dropdown>
...
...
app_Web/src/widgets/ibizbook/ibizbooktimeline-calendar/ibizbooktimeline-calendar.less
浏览文件 @
004d1a15
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
@import '~@fullcalendar/core/main.css';
@import '~@fullcalendar/daygrid/main.css';
@import '~@fullcalendar/timegrid/main.css';
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录