Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
bd12476d
提交
bd12476d
编写于
4年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
a11444a0
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
99 行增加
和
226 行删除
+99
-226
ibizbook_en_US.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
+0
-10
ibizbook_zh_CN.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
+0
-10
ibizbookusr2-calendar-view-base.vue
...ookusr2-calendar-view/ibizbookusr2-calendar-view-base.vue
+99
-192
ibizbookusr2-calendar-view.less
...bizbookusr2-calendar-view/ibizbookusr2-calendar-view.less
+0
-14
未找到文件。
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
浏览文件 @
bd12476d
...
@@ -642,16 +642,6 @@ export default {
...
@@ -642,16 +642,6 @@ export default {
tip
:
"刷新"
,
tip
:
"刷新"
,
},
},
},
},
usr2calendarviewtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"New"
,
tip
:
"New"
,
},
deuiaction2
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
},
calendarviewcalendar_quicktoolbar_toolbar
:
{
calendarviewcalendar_quicktoolbar_toolbar
:
{
deuiaction1
:
{
deuiaction1
:
{
caption
:
"Save"
,
caption
:
"Save"
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
浏览文件 @
bd12476d
...
@@ -641,16 +641,6 @@ export default {
...
@@ -641,16 +641,6 @@ export default {
tip
:
"刷新"
,
tip
:
"刷新"
,
},
},
},
},
usr2calendarviewtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
deuiaction2
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
},
calendarviewcalendar_quicktoolbar_toolbar
:
{
calendarviewcalendar_quicktoolbar_toolbar
:
{
deuiaction1
:
{
deuiaction1
:
{
caption
:
"保存"
,
caption
:
"保存"
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookusr2-calendar-view/ibizbookusr2-calendar-view-base.vue
浏览文件 @
bd12476d
<
template
>
<
template
>
<div
class=
'view-container decalendarview ibizbookusr2-calendar-view'
>
<div
class=
'view-container decalendarview ibizbookusr2-calendar-view'
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizbookusr2calendarview"
></app-studioaction>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizbookusr2calendarview"
></app-studioaction>
<card
class=
'view-card '
:bordered=
"false"
:dis-hover=
"true"
>
<card
class=
'view-card
view-no-toolbar
'
:bordered=
"false"
:dis-hover=
"true"
>
<div
slot=
'title'
class=
"header-container"
>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
...
@@ -12,23 +12,10 @@
...
@@ -12,23 +12,10 @@
<div
class=
'content-container'
>
<div
class=
'content-container'
>
<div
style=
"margin-bottom:6px;"
>
<div
style=
"margin-bottom:6px;"
>
<div
class=
"quick-group-container"
>
<app-quick-group
:items=
"quickGroupModel"
@
valuechange=
"quickGroupValueChange"
></app-quick-group>
</div>
<div
class=
'pull-right'
>
<div
class=
'pull-right'
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.deuiaction1.visabled"
:disabled=
"toolBarModels.deuiaction1.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'deuiaction1' }, $event)">
<i
class=
'fa fa-file-text-o'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewtoolbar_toolbar.deuiaction1.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewtoolbar_toolbar.deuiaction1.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.deuiaction2.visabled"
:disabled=
"toolBarModels.deuiaction2.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'deuiaction2' }, $event)">
<i
class=
'fa fa-remove'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewtoolbar_toolbar.deuiaction2.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.usr2calendarviewtoolbar_toolbar.deuiaction2.tip'
)
}}
</div>
</tooltip>
</div>
</div>
</div>
</div>
</div>
<div
class=
'view-body-messages'
>
<div
class=
'view-body-messages'
>
...
@@ -222,7 +209,6 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
...
@@ -222,7 +209,6 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
* @memberof IBIZBOOKUsr2CalendarViewBase
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
*/
public
containerModel
:
any
=
{
public
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_calendar
:
{
name
:
'calendar'
,
type
:
'CALENDAR'
},
view_calendar
:
{
name
:
'calendar'
,
type
:
'CALENDAR'
},
};
};
...
@@ -262,19 +248,6 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
...
@@ -262,19 +248,6 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
* @memberof IBIZBOOKUsr2CalendarViewBase
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZBOOKUsr2CalendarView
*/
public
toolBarModels
:
any
=
{
deuiaction1
:
{
name
:
'deuiaction1'
,
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
:
'Remove'
,
target
:
'MULTIKEY'
}
},
};
...
@@ -577,115 +550,11 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
...
@@ -577,115 +550,11 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
_this
.
loadModel
();
}
}
_this
.
loadQuickGroupModel
();
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
toolbar_deuiaction2_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction3'
))
{
this
.
toolbar_deuiaction3_click
(
null
,
''
,
$event2
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_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
.
$refs
.
calendar
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_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
.
$refs
.
calendar
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_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
.
$refs
.
calendar
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleFilter
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
/**
* 打开新建数据视图
* 打开新建数据视图
...
@@ -728,62 +597,6 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
...
@@ -728,62 +597,6 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
}
}
/**
* 新建
*
* @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 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 删除
*
* @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
ToggleFilter
(
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
;
}
}
/**
/**
* 关闭视图
* 关闭视图
...
@@ -924,6 +737,100 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
...
@@ -924,6 +737,100 @@ export default class IBIZBOOKUsr2CalendarViewBase extends Vue {
/**
* 代码表服务对象
*
* @type {CodeListService}
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
codeListService
:
CodeListService
=
new
CodeListService
({
$store
:
this
.
$store
});
/**
* 快速分组数据对象
*
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
quickGroupData
:
any
;
/**
* 快速分组是否有抛值
*
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
isEmitQuickGroupValue
:
boolean
=
false
;
/**
* 快速分组模型
*
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
quickGroupModel
:
Array
<
any
>
=
[];
/**
* 加载快速分组模型
*
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
loadQuickGroupModel
(){
let
quickGroupCodeList
:
any
=
{
tag
:
'Bookgroup'
,
codelistType
:
'STATIC'
};
if
(
quickGroupCodeList
.
tag
&&
Object
.
is
(
quickGroupCodeList
.
codelistType
,
"STATIC"
)){
const
codelist
=
this
.
$store
.
getters
.
getCodeList
(
quickGroupCodeList
.
tag
);
if
(
codelist
)
{
this
.
quickGroupModel
=
[...
this
.
handleDynamicData
(
JSON
.
parse
(
JSON
.
stringify
(
codelist
.
items
)))];
}
else
{
console
.
log
(
`----
${
quickGroupCodeList
.
tag
}
----代码表不存在`
);
}
}
else
if
(
quickGroupCodeList
.
tag
&&
Object
.
is
(
quickGroupCodeList
.
codelistType
,
"DYNAMIC"
)){
this
.
codeListService
.
getItems
(
quickGroupCodeList
.
tag
,{},{}).
then
((
res
:
any
)
=>
{
this
.
quickGroupModel
=
res
;
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
`----
${
quickGroupCodeList
.
tag
}
----代码表不存在`
);
});
}
}
/**
* 处理快速分组模型动态数据部分(%xxx%)
*
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
handleDynamicData
(
inputArray
:
Array
<
any
>
){
if
(
inputArray
.
length
>
0
){
inputArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
data
&&
Object
.
keys
(
item
.
data
).
length
>
0
){
Object
.
keys
(
item
.
data
).
forEach
((
name
:
any
)
=>
{
let
value
:
any
=
item
.
data
[
name
];
if
(
value
&&
typeof
(
value
)
==
'string'
&&
value
.
startsWith
(
'%'
)
&&
value
.
endsWith
(
'%'
))
{
const
key
=
(
value
.
substring
(
1
,
value
.
length
-
1
)).
toLowerCase
();
if
(
this
.
context
[
key
])
{
value
=
this
.
context
[
key
];
}
else
if
(
this
.
viewparams
[
key
]){
value
=
this
.
viewparams
[
key
];
}
}
item
.
data
[
name
]
=
value
;
})
}
})
}
return
inputArray
;
}
/**
* 快速分组值变化
*
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public
quickGroupValueChange
(
$event
:
any
){
if
(
$event
){
this
.
quickGroupData
=
$event
.
data
;
if
(
this
.
isEmitQuickGroupValue
){
this
.
onSearch
(
$event
);
}
}
this
.
isEmitQuickGroupValue
=
true
;
}
}
}
</
script
>
</
script
>
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookusr2-calendar-view/ibizbookusr2-calendar-view.less
浏览文件 @
bd12476d
.ibizbookusr2-calendar-view{
.ibizbookusr2-calendar-view{
position: relative;
position: relative;
}
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录