Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
1626de5f
提交
1626de5f
编写于
11月 24, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
ee35d1ca
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
90 行增加
和
2 行删除
+90
-2
ibizbookmonth-calendar-base.vue
...ok/ibizbookmonth-calendar/ibizbookmonth-calendar-base.vue
+14
-1
ibizbookmonth-calendar-model.ts
...ok/ibizbookmonth-calendar/ibizbookmonth-calendar-model.ts
+20
-0
ibizbookmonth-calendar-service.ts
.../ibizbookmonth-calendar/ibizbookmonth-calendar-service.ts
+12
-0
ibizbooktimeline-calendar-base.vue
...zbooktimeline-calendar/ibizbooktimeline-calendar-base.vue
+12
-1
ibizbooktimeline-calendar-model.ts
...zbooktimeline-calendar/ibizbooktimeline-calendar-model.ts
+20
-0
ibizbooktimeline-calendar-service.ts
...ooktimeline-calendar/ibizbooktimeline-calendar-service.ts
+12
-0
未找到文件。
app_Web/src/widgets/ibizbook/ibizbookmonth-calendar/ibizbookmonth-calendar-base.vue
浏览文件 @
1626de5f
...
...
@@ -3,6 +3,10 @@
<context-menu-container>
<template
v-if=
"events.length >0"
>
<div
class=
"event-legends"
>
<div
:class=
"
{'event-lengend':true, 'item1':true, 'event-disabled':!isShowlegend.item1}" @click="legendTrigger('item1')">
<div
class=
"lengend-icon"
style=
"background:;"
></div>
<span
style=
"color:;"
>
借书日记
</span>
</div>
</div>
<FullCalendar
ref=
"calendar"
...
...
@@ -435,6 +439,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @memberof IBIZBOOKMONTHBase
*/
public
isShowlegend
:
any
=
{
item1
:
true
,
};
/**
...
...
@@ -587,6 +592,10 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
let
view
:
any
=
{};
let
_context
:
any
=
Object
.
assign
({},
this
.
context
);
switch
(
event
.
itemType
)
{
case
"item1"
:
_context
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
break
;
}
this
.
selections
=
[
event
];
// 导航栏中不需要打开视图,只要抛出选中数据
...
...
@@ -649,6 +658,10 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
arg
.
end
=
this
.
$util
.
dateFormat
(
$event
.
event
.
end
);
let
itemType
=
$event
.
event
.
_def
.
extendedProps
.
itemType
;
switch
(
itemType
)
{
case
"item1"
:
arg
.
ibizbook
=
$event
.
event
.
_def
.
extendedProps
.
ibizbook
;
_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
);
...
...
@@ -831,7 +844,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
if
(
Object
.
keys
(
this
.
copyActionModel
).
length
===
0
){
return
;
}
let
dataMapping
:
any
=
{};
let
dataMapping
:
any
=
{
'item1'
:
'ibizbook'
};
this
.
computeNodeState
(
data
,
dataMapping
[
data
.
itemType
]).
then
((
result
:
any
)
=>
{
let
flag
:
boolean
=
false
;
if
(
Object
.
values
(
result
).
length
>
0
){
...
...
app_Web/src/widgets/ibizbook/ibizbookmonth-calendar/ibizbookmonth-calendar-model.ts
浏览文件 @
1626de5f
...
...
@@ -43,6 +43,26 @@ export default class IBIZBOOKMONTHModel {
},
];
switch
(
this
.
itemType
){
case
"item1"
:
dataItems
=
[...
dataItems
,
{
name
:
'ibizbook'
,
prop
:
'ibizbookid'
},
{
name
:
'title'
,
prop
:
'ibizbookname'
},
{
name
:
'start'
,
prop
:
'lendouttime'
},
{
name
:
'end'
,
prop
:
'returntime'
},
];
break
;
}
return
dataItems
;
}
...
...
app_Web/src/widgets/ibizbook/ibizbookmonth-calendar/ibizbookmonth-calendar-service.ts
浏览文件 @
1626de5f
...
...
@@ -50,6 +50,12 @@ export default class IBIZBOOKMONTHService extends ControlService {
* @memberof IBIZBOOKMONTH
*/
public
eventsConfig
:
any
[]
=
[
{
itemName
:
'借书日记'
,
itemType
:
'item1'
,
color
:
''
,
textColor
:
''
,
},
];
/**
...
...
@@ -68,6 +74,8 @@ export default class IBIZBOOKMONTHService extends ControlService {
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
promises
:
any
=
[];
let
tempRequest
:
any
;
tempRequest
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
,
"item1"
);
promises
.
push
(
this
.
appEntityService
.
FetchDefault
(
tempRequest
.
context
,
tempRequest
.
data
,
isloading
));
Promise
.
all
(
promises
).
then
((
resArray
:
any
)
=>
{
let
_data
:
any
=
[];
resArray
.
forEach
((
response
:
any
,
resIndex
:
number
)
=>
{
...
...
@@ -114,6 +122,10 @@ export default class IBIZBOOKMONTHService extends ControlService {
let
result
:
any
;
let
tempRequest
:
any
;
switch
(
itemType
)
{
case
"item1"
:
tempRequest
=
this
.
handleRequestData
(
""
,
context
,
data
,
false
,
"item1"
);
result
=
this
.
appEntityService
.
Update
(
tempRequest
.
context
,
tempRequest
.
data
,
isloading
);
break
;
}
if
(
result
){
result
.
then
((
response
:
any
)
=>
{
...
...
app_Web/src/widgets/ibizbook/ibizbooktimeline-calendar/ibizbooktimeline-calendar-base.vue
浏览文件 @
1626de5f
...
...
@@ -11,6 +11,8 @@
placement=
"top"
>
<context-menu
:contextMenuStyle=
"
{width: '100%'}" :data="item" :renderContent="renderContextMenu">
<el-card
@
click
.
native=
"onEventClick(item,true,$event)"
:class=
"item.className"
>
<div
v-if=
"false && item.itemType == 'item1'"
>
</div>
<div
v-else
>
<h4>
{{
item
.
title
}}
</h4>
<p>
{{
$t
(
'app.calendar.from'
)
}}
{{
item
.
start
}}
{{
$t
(
'app.calendar.to'
)
}}
{{
item
.
end
}}
</p>
...
...
@@ -428,6 +430,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @memberof IBIZBOOKTIMELINEBase
*/
public
isShowlegend
:
any
=
{
item1
:
true
,
};
/**
...
...
@@ -580,6 +583,10 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
let
view
:
any
=
{};
let
_context
:
any
=
Object
.
assign
({},
this
.
context
);
switch
(
event
.
itemType
)
{
case
"item1"
:
_context
.
ibizbook
=
event
.
ibizbook
;
view
=
this
.
getEditView
(
"ibizbook"
);
break
;
}
this
.
selections
=
[
event
];
// 导航栏中不需要打开视图,只要抛出选中数据
...
...
@@ -642,6 +649,10 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
arg
.
end
=
this
.
$util
.
dateFormat
(
$event
.
event
.
end
);
let
itemType
=
$event
.
event
.
_def
.
extendedProps
.
itemType
;
switch
(
itemType
)
{
case
"item1"
:
arg
.
ibizbook
=
$event
.
event
.
_def
.
extendedProps
.
ibizbook
;
_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
);
...
...
@@ -824,7 +835,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
if
(
Object
.
keys
(
this
.
copyActionModel
).
length
===
0
){
return
;
}
let
dataMapping
:
any
=
{};
let
dataMapping
:
any
=
{
'item1'
:
'ibizbook'
};
this
.
computeNodeState
(
data
,
dataMapping
[
data
.
itemType
]).
then
((
result
:
any
)
=>
{
let
flag
:
boolean
=
false
;
if
(
Object
.
values
(
result
).
length
>
0
){
...
...
app_Web/src/widgets/ibizbook/ibizbooktimeline-calendar/ibizbooktimeline-calendar-model.ts
浏览文件 @
1626de5f
...
...
@@ -43,6 +43,26 @@ export default class IBIZBOOKTIMELINEModel {
},
];
switch
(
this
.
itemType
){
case
"item1"
:
dataItems
=
[...
dataItems
,
{
name
:
'ibizbook'
,
prop
:
'ibizbookid'
},
{
name
:
'title'
,
prop
:
'ibizbookname'
},
{
name
:
'start'
,
prop
:
'lendouttime'
},
{
name
:
'end'
,
prop
:
'returntime'
},
];
break
;
}
return
dataItems
;
}
...
...
app_Web/src/widgets/ibizbook/ibizbooktimeline-calendar/ibizbooktimeline-calendar-service.ts
浏览文件 @
1626de5f
...
...
@@ -50,6 +50,12 @@ export default class IBIZBOOKTIMELINEService extends ControlService {
* @memberof IBIZBOOKTIMELINE
*/
public
eventsConfig
:
any
[]
=
[
{
itemName
:
'借书日记'
,
itemType
:
'item1'
,
color
:
''
,
textColor
:
''
,
},
];
/**
...
...
@@ -68,6 +74,8 @@ export default class IBIZBOOKTIMELINEService extends ControlService {
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
promises
:
any
=
[];
let
tempRequest
:
any
;
tempRequest
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
,
"item1"
);
promises
.
push
(
this
.
appEntityService
.
FetchDefault
(
tempRequest
.
context
,
tempRequest
.
data
,
isloading
));
Promise
.
all
(
promises
).
then
((
resArray
:
any
)
=>
{
let
_data
:
any
=
[];
resArray
.
forEach
((
response
:
any
,
resIndex
:
number
)
=>
{
...
...
@@ -114,6 +122,10 @@ export default class IBIZBOOKTIMELINEService extends ControlService {
let
result
:
any
;
let
tempRequest
:
any
;
switch
(
itemType
)
{
case
"item1"
:
tempRequest
=
this
.
handleRequestData
(
""
,
context
,
data
,
false
,
"item1"
);
result
=
this
.
appEntityService
.
Update
(
tempRequest
.
context
,
tempRequest
.
data
,
isloading
);
break
;
}
if
(
result
){
result
.
then
((
response
:
any
)
=>
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录