Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
5e47e769
提交
5e47e769
编写于
12月 02, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
170d5581
变更
13
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
1159 行增加
和
824 行删除
+1159
-824
ibizorder_en_US.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
+45
-43
ibizorder_zh_CN.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
+45
-43
ibizorder-data-view-exp-view-base.vue
...-data-view-exp-view/ibizorder-data-view-exp-view-base.vue
+95
-1
ibizorder-tree-exp-view-base.vue
.../ibizorder-tree-exp-view/ibizorder-tree-exp-view-base.vue
+2
-715
ibizorder-tree-exp-view.less
...mple/ibizorder-tree-exp-view/ibizorder-tree-exp-view.less
+0
-15
data-view-exp-viewdataviewexpbar-dataviewexpbar-base.vue
.../data-view-exp-viewdataviewexpbar-dataviewexpbar-base.vue
+323
-0
data-view-exp-viewdataviewexpbar-dataviewexpbar.less
...pbar/data-view-exp-viewdataviewexpbar-dataviewexpbar.less
+2
-2
list-exp-viewlistexpbar-listexpbar-base.vue
...ar-listexpbar/list-exp-viewlistexpbar-listexpbar-base.vue
+214
-0
list-exp-viewlistexpbar-listexpbar.less
...expbar-listexpbar/list-exp-viewlistexpbar-listexpbar.less
+2
-2
tree-exp-viewtreeexpbar-treeexpbar-base.vue
...ar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar-base.vue
+214
-0
tree-exp-viewtreeexpbar-treeexpbar.less
...expbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar.less
+1
-1
usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-base.vue
...2-calendar-exp-viewcalendarexpbar-calendarexpbar-base.vue
+214
-0
usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.less
.../usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.less
+2
-2
未找到文件。
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
浏览文件 @
5e47e769
...
...
@@ -1176,6 +1176,20 @@ export default {
tip
:
"Print"
,
},
},
dataviewexpviewdataviewexpbar_toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
deuiaction2
:
{
caption
:
"New"
,
tip
:
"New"
,
},
deuiaction3
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
},
sf15gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
...
...
@@ -1536,6 +1550,20 @@ export default {
tip
:
"数据导入"
,
},
},
listexpviewlistexpbar_toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
deuiaction2
:
{
caption
:
"New"
,
tip
:
"New"
,
},
deuiaction3
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
},
gridexpviewgridexpbar_toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"刷新"
,
...
...
@@ -1680,58 +1708,32 @@ export default {
tip
:
"Print"
,
},
},
treeexpview
toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"
New
"
,
tip
:
"
New
"
,
usr2calendarexpviewcalendarexpbar_
toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"
刷新
"
,
tip
:
"
刷新
"
,
},
deuiaction2
:
{
caption
:
"
Save
"
,
tip
:
"
Save
"
,
caption
:
"
New
"
,
tip
:
"
New
"
,
},
tbitem4
:
{
deuiaction3
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
},
treeexpviewtreeexpbar_toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"导入"
,
tip
:
"导入"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem11
:
{
caption
:
"Print"
,
tip
:
"Print"
,
},
tbitem12
:
{
caption
:
"-"
,
tip
:
""
,
caption
:
"刷新"
,
tip
:
"刷新"
,
},
tbitem16
:
{
caption
:
"
其它
"
,
tip
:
"
其它
"
,
deuiaction2
:
{
caption
:
"
New
"
,
tip
:
"
New
"
,
},
tbitem21
:
{
caption
:
"E
xport Data Model
"
,
tip
:
"
导出数据模型
"
,
deuiaction3
:
{
caption
:
"E
dit
"
,
tip
:
"
Edit {0}
"
,
},
},
odsp_d20_wfgridviewtoolbar_toolbar
:
{
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
浏览文件 @
5e47e769
...
...
@@ -1175,6 +1175,20 @@ export default {
tip
:
"打印"
,
},
},
dataviewexpviewdataviewexpbar_toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
deuiaction2
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
deuiaction3
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
},
sf15gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
...
...
@@ -1535,6 +1549,20 @@ export default {
tip
:
"数据导入"
,
},
},
listexpviewlistexpbar_toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
deuiaction2
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
deuiaction3
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
},
gridexpviewgridexpbar_toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"刷新"
,
...
...
@@ -1679,58 +1707,32 @@ export default {
tip
:
"打印"
,
},
},
treeexpview
toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"
新建
"
,
tip
:
"
新建
"
,
usr2calendarexpviewcalendarexpbar_
toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"
刷新
"
,
tip
:
"
刷新
"
,
},
deuiaction2
:
{
caption
:
"
保存
"
,
tip
:
"
保存
"
,
caption
:
"
新建
"
,
tip
:
"
新建
"
,
},
tbitem4
:
{
deuiaction3
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem6
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
},
treeexpviewtreeexpbar_toolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"导入"
,
tip
:
"导入"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem11
:
{
caption
:
"打印"
,
tip
:
"打印"
,
},
tbitem12
:
{
caption
:
"-"
,
tip
:
""
,
caption
:
"刷新"
,
tip
:
"刷新"
,
},
tbitem16
:
{
caption
:
"
其它
"
,
tip
:
"
其它
"
,
deuiaction2
:
{
caption
:
"
新建
"
,
tip
:
"
新建
"
,
},
tbitem21
:
{
caption
:
"
导出数据模型
"
,
tip
:
"
导出数据模型
"
,
deuiaction3
:
{
caption
:
"
编辑
"
,
tip
:
"
编辑
"
,
},
},
odsp_d20_wfgridviewtoolbar_toolbar
:
{
...
...
app_Web/src/pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view-base.vue
浏览文件 @
5e47e769
...
...
@@ -550,7 +550,7 @@ export default class IBIZOrderDataViewExpViewBase extends Vue {
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
_this
.
loadQuickGroupModel
();
}
...
...
@@ -734,6 +734,100 @@ export default class IBIZOrderDataViewExpViewBase extends Vue {
/**
* 代码表服务对象
*
* @type {CodeListService}
* @memberof IBIZOrderDataViewExpViewBase
*/
public
codeListService
:
CodeListService
=
new
CodeListService
({
$store
:
this
.
$store
});
/**
* 快速分组数据对象
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
quickGroupData
:
any
;
/**
* 快速分组是否有抛值
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
isEmitQuickGroupValue
:
boolean
=
false
;
/**
* 快速分组模型
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
quickGroupModel
:
Array
<
any
>
=
[];
/**
* 加载快速分组模型
*
* @memberof IBIZOrderDataViewExpViewBase
*/
public
loadQuickGroupModel
(){
let
quickGroupCodeList
:
any
=
{
tag
:
'ORDERSTATE'
,
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 IBIZOrderDataViewExpViewBase
*/
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 IBIZOrderDataViewExpViewBase
*/
public
quickGroupValueChange
(
$event
:
any
){
if
(
$event
){
this
.
quickGroupData
=
$event
.
data
;
if
(
this
.
isEmitQuickGroupValue
){
this
.
onSearch
(
$event
);
}
}
this
.
isEmitQuickGroupValue
=
true
;
}
}
</
script
>
...
...
app_Web/src/pages/sample/ibizorder-tree-exp-view/ibizorder-tree-exp-view-base.vue
浏览文件 @
5e47e769
此差异已折叠。
点击以展开。
app_Web/src/pages/sample/ibizorder-tree-exp-view/ibizorder-tree-exp-view.less
浏览文件 @
5e47e769
...
...
@@ -7,20 +7,5 @@
.ibizorder-tree-exp-view{
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
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
app_Web/src/widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar-base.vue
浏览文件 @
5e47e769
此差异已折叠。
点击以展开。
app_Web/src/widgets/ibizorder/data-view-exp-viewdataviewexpbar-dataviewexpbar/data-view-exp-viewdataviewexpbar-dataviewexpbar.less
浏览文件 @
5e47e769
...
...
@@ -40,7 +40,7 @@
}
}
.dataview-exp-bar-content {
height: calc(100% -
40
px);
height: calc(100% -
88
px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
...
...
@@ -95,7 +95,7 @@
}
}
.dataview-exp-bar-content {
height: calc(100% -
40
px);
height: calc(100% -
88
px);
overflow: auto;
margin-bottom: 10px;
}
...
...
app_Web/src/widgets/ibizorder/list-exp-viewlistexpbar-listexpbar/list-exp-viewlistexpbar-listexpbar-base.vue
浏览文件 @
5e47e769
...
...
@@ -5,6 +5,36 @@
{{
$t
(
'app.listExpBar.title'
)
}}
</div>
<div
class=
"container-header"
>
<div
class=
'search-container'
>
<i-input
:search=
"true"
@
on-change=
"($event) =>
{ this.searchText = $event.target.value; }"
:placeholder="placeholder"
@on-search="onSearch">
</i-input>
</div>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"listexpviewlistexpbar_toolbarModels.deuiaction1.visabled"
:disabled=
"listexpviewlistexpbar_toolbarModels.deuiaction1.disabled"
class=
''
v-loading:i-button
@
click=
"listexpbar_toolbar_click(
{ tag: 'deuiaction1' }, $event)">
<i
class=
'fa fa-refresh'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.listexpviewlistexpbar_toolbar_toolbar.deuiaction1.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.listexpviewlistexpbar_toolbar_toolbar.deuiaction1.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"listexpviewlistexpbar_toolbarModels.deuiaction2.visabled"
:disabled=
"listexpviewlistexpbar_toolbarModels.deuiaction2.disabled"
class=
''
v-loading:i-button
@
click=
"listexpbar_toolbar_click(
{ tag: 'deuiaction2' }, $event)">
<i
class=
'fa fa-file-text-o'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.listexpviewlistexpbar_toolbar_toolbar.deuiaction2.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.listexpviewlistexpbar_toolbar_toolbar.deuiaction2.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"listexpviewlistexpbar_toolbarModels.deuiaction3.visabled"
:disabled=
"listexpviewlistexpbar_toolbarModels.deuiaction3.disabled"
class=
''
v-loading:i-button
@
click=
"listexpbar_toolbar_click(
{ tag: 'deuiaction3' }, $event)">
<i
class=
'fa fa-edit'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.listexpviewlistexpbar_toolbar_toolbar.deuiaction3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.listexpviewlistexpbar_toolbar_toolbar.deuiaction3.tip'
)
}}
</div>
</tooltip>
</div>
</div>
<div
class=
'list-exp-bar-content'
>
<view
_listexpbar_list
...
...
@@ -160,8 +190,176 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
public
listexpbar_list_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
listexpbar_load
(
$event
,
'listexpbar_list'
,
$event2
);
}
/**
* listexpbar_toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListExpViewlistexpbarBase
*/
public
listexpbar_toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
listexpbar_toolbar_deuiaction1_click
(
null
,
'listexpbar_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
listexpbar_toolbar_deuiaction2_click
(
null
,
'listexpbar_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction3'
))
{
this
.
listexpbar_toolbar_deuiaction3_click
(
null
,
'listexpbar_toolbar'
,
$event2
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
listexpbar_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
.
listexpbar_list
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
listexpbar_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
.
listexpbar_list
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
listexpbar_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
.
listexpbar_list
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 刷新
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderListExpViewBase
*/
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
);
}
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderListExpViewBase
*/
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 IBIZOrderListExpViewBase
*/
public
Edit
(
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
,
{
ibizorder
:
args
[
0
].
ibizorder
})
}
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 转化数据
...
...
@@ -348,6 +546,22 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
@
Prop
({
default
:
true
})
public
showBusyIndicator
!
:
boolean
;
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZOrderListExpView
*/
public
listexpviewlistexpbar_toolbarModels
:
any
=
{
deuiaction1
:
{
name
:
'deuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
'刷新'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Refresh'
,
target
:
''
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'新建'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
}
},
deuiaction3
:
{
name
:
'deuiaction3'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
};
/**
* 获取多项数据
*
...
...
app_Web/src/widgets/ibizorder/list-exp-viewlistexpbar-listexpbar/list-exp-viewlistexpbar-listexpbar.less
浏览文件 @
5e47e769
...
...
@@ -45,7 +45,7 @@
}
}
.list-exp-bar-content {
height: calc(100% -
40
px);
height: calc(100% -
88
px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
...
...
@@ -100,7 +100,7 @@
}
}
.list-exp-bar-content {
height: calc(100% -
40
px);
height: calc(100% -
88
px);
overflow: auto;
margin-bottom: 10px;
}
...
...
app_Web/src/widgets/ibizorder/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar-base.vue
浏览文件 @
5e47e769
...
...
@@ -3,6 +3,36 @@
<div
slot=
'left'
>
<div
class=
'tree-exp-bar-header'
>
<div
class=
"tree-exp-bar-title"
>
{{
$t
(
'app.treeExpBar.title'
)
}}
</div>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"treeexpviewtreeexpbar_toolbarModels.deuiaction1.visabled"
:disabled=
"treeexpviewtreeexpbar_toolbarModels.deuiaction1.disabled"
class=
''
v-loading:i-button
@
click=
"treeexpbar_toolbar_click(
{ tag: 'deuiaction1' }, $event)">
<i
class=
'fa fa-refresh'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.treeexpviewtreeexpbar_toolbar_toolbar.deuiaction1.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.treeexpviewtreeexpbar_toolbar_toolbar.deuiaction1.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"treeexpviewtreeexpbar_toolbarModels.deuiaction2.visabled"
:disabled=
"treeexpviewtreeexpbar_toolbarModels.deuiaction2.disabled"
class=
''
v-loading:i-button
@
click=
"treeexpbar_toolbar_click(
{ tag: 'deuiaction2' }, $event)">
<i
class=
'fa fa-file-text-o'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.treeexpviewtreeexpbar_toolbar_toolbar.deuiaction2.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.treeexpviewtreeexpbar_toolbar_toolbar.deuiaction2.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"treeexpviewtreeexpbar_toolbarModels.deuiaction3.visabled"
:disabled=
"treeexpviewtreeexpbar_toolbarModels.deuiaction3.disabled"
class=
''
v-loading:i-button
@
click=
"treeexpbar_toolbar_click(
{ tag: 'deuiaction3' }, $event)">
<i
class=
'fa fa-edit'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.treeexpviewtreeexpbar_toolbar_toolbar.deuiaction3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.treeexpviewtreeexpbar_toolbar_toolbar.deuiaction3.tip'
)
}}
</div>
</tooltip>
</div>
</div>
<div
class=
'search-content'
>
<i-input
:search=
"true"
@
on-change=
"($event) =>
{ this.srfnodefilter = $event.target.value; }"
:placeholder="placeholder"
@on-search="onSearch">
</i-input>
</div>
<div
class=
'tree-exp-content'
>
<view
_treeexpbar_tree
...
...
@@ -138,6 +168,25 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* treeexpbar_toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof TreeExpViewtreeexpbarBase
*/
public
treeexpbar_toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
treeexpbar_toolbar_deuiaction1_click
(
null
,
'treeexpbar_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
treeexpbar_toolbar_deuiaction2_click
(
null
,
'treeexpbar_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction3'
))
{
this
.
treeexpbar_toolbar_deuiaction3_click
(
null
,
'treeexpbar_toolbar'
,
$event2
);
}
}
/**
* treeexpbar_tree 部件 selectionchange 事件
*
...
...
@@ -161,6 +210,155 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
treeexpbar_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
.
treeexpbar_tree
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
treeexpbar_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
.
treeexpbar_tree
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
treeexpbar_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
.
treeexpbar_tree
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 刷新
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderTreeExpViewBase
*/
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
);
}
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderTreeExpViewBase
*/
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 IBIZOrderTreeExpViewBase
*/
public
Edit
(
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
,
{
ibizorder
:
args
[
0
].
ibizorder
})
}
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 转化数据
...
...
@@ -606,6 +804,22 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt
}
}
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZOrderTreeExpView
*/
public
treeexpviewtreeexpbar_toolbarModels
:
any
=
{
deuiaction1
:
{
name
:
'deuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
'刷新'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Refresh'
,
target
:
''
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'新建'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
}
},
deuiaction3
:
{
name
:
'deuiaction3'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
};
}
</
script
>
...
...
app_Web/src/widgets/ibizorder/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar.less
浏览文件 @
5e47e769
...
...
@@ -42,7 +42,7 @@
padding: 10px 5px 10px 5px;
}
.tree-exp-content {
height: calc(100% -
40
px);
height: calc(100% -
88
px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
...
...
app_Web/src/widgets/ibizorder/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar-base.vue
浏览文件 @
5e47e769
此差异已折叠。
点击以展开。
app_Web/src/widgets/ibizorder/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar/usr2-calendar-exp-viewcalendarexpbar-calendarexpbar.less
浏览文件 @
5e47e769
...
...
@@ -40,7 +40,7 @@
}
}
.calendar-exp-bar-content {
height: calc(100% -
40
px);
height: calc(100% -
88
px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
...
...
@@ -95,7 +95,7 @@
}
}
.calendar-exp-bar-content {
height: calc(100% -
40
px);
height: calc(100% -
88
px);
overflow: auto;
margin-bottom: 10px;
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录