Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
96d400d7
提交
96d400d7
编写于
11月 03, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
d54169d4
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
70 行增加
和
63 行删除
+70
-63
default-searchform-base.vue
...s/ibizbook/default-searchform/default-searchform-base.vue
+2
-2
default-drbar-base.vue
...rc/widgets/ibizorder/default-drbar/default-drbar-base.vue
+68
-61
未找到文件。
app_Web/src/widgets/ibizbook/default-searchform/default-searchform-base.vue
浏览文件 @
96d400d7
...
...
@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
GroupByCodelistList
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
GroupByCodelistList
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizorder/default-drbar/default-drbar-base.vue
浏览文件 @
96d400d7
<
template
>
<div
class=
'app-dr-bar'
:style=
"
{ width: `${width}px` }">
<el-menu
:mode=
"menuDir"
:default-openeds=
"defaultOpeneds"
:default-active=
"items[0].id"
@
select=
"onSelect"
@
open=
"onOpen"
@
close=
"onClose"
>
<app-sider-menus
:menus=
"items"
></app-sider-menus>
</el-menu>
</div>
<el-menu
:mode=
"menuDir"
:default-openeds=
"defaultOpeneds"
:default-active=
"items[0].id"
@
select=
"onSelect"
@
open=
"onOpen"
@
close=
"onClose"
>
<app-sider-menus
:menus=
"items"
></app-sider-menus>
</el-menu>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
...
...
@@ -214,6 +214,20 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
selection
:
any
=
{};
public
menuItems
:
any
[]
=
[
{
caption
:
'详细信息'
,
id
:
'a7c7923d37319b42645a41908d62bae9'
,
name
:
'a7c7923d37319b42645a41908d62bae9'
,
codeName
:
'a7c7923d37319b42645a41908d62bae9'
,
hidden
:
false
,
items
:
this
.
items
.
find
((
item
:
any
)
=>
item
.
groupCodeName
===
'a7c7923d37319b42645a41908d62bae9'
)
},
{
},
]
/**
* 关系栏数据项
*
...
...
@@ -225,18 +239,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
text
:
"订单明细"
,
disabled
:
false
,
id
:
"dritem2"
,
},
];
/**
* 关系栏数据项导航参数集合
*
* @type {any[]}
* @memberof DefaultBase
*/
public
navParamsArray
:
Array
<
any
>
=
[
{
id
:
'dritem2'
,
groupCodeName
:
'a7c7923d37319b42645a41908d62bae9'
,
drView
:
'IBIZOrderDetailSGridView'
,
localContext
:{
CONTEXTPARAM1
:
"%orderstate%"
},
localViewParam
:{
param2
:
"%orderstate%"
}
}
...
...
@@ -395,27 +399,27 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
*/
public
initNavParam
(
drItem
:
any
){
let
returnNavParam
:
any
=
{};
if
(
drItem
&&
drItem
.
id
){
let
curDRItem
:
any
=
this
.
navParamsArray
.
find
((
item
:
any
)
=>
{
return
Object
.
is
(
item
.
id
,
drItem
.
id
);
})
if
(
curDRItem
){
let
localContext
:
any
=
curDRItem
.
localContext
;
let
localViewParam
:
any
=
curDRItem
.
localViewParam
;
if
(
localContext
&&
Object
.
keys
(
localContext
).
length
>
0
){
let
_context
:
any
=
this
.
$util
.
computedNavData
(
this
.
formData
,
this
.
context
,
this
.
viewparams
,
localContext
);
returnNavParam
.
localContext
=
_context
;
}
if
(
localViewParam
&&
Object
.
keys
(
localViewParam
).
length
>
0
){
let
_params
:
any
=
this
.
$util
.
computedNavData
(
this
.
formData
,
this
.
context
,
this
.
viewparams
,
localViewParam
);
returnNavParam
.
localViewParam
=
_params
;
}
return
returnNavParam
;
}
else
{
return
null
;
}
}
//
let returnNavParam:any = {};
//
if(drItem && drItem.id){
//
let curDRItem:any = this.navParamsArray.find((item:any) =>{
//
return Object.is(item.id,drItem.id);
//
})
//
if(curDRItem){
//
let localContext:any = curDRItem.localContext;
//
let localViewParam:any = curDRItem.localViewParam;
//
if(localContext && Object.keys(localContext).length >0){
//
let _context:any = this.$util.computedNavData(this.formData,this.context,this.viewparams,localContext);
//
returnNavParam.localContext = _context;
//
}
//
if(localViewParam && Object.keys(localViewParam).length >0){
//
let _params:any = this.$util.computedNavData(this.formData,this.context,this.viewparams,localViewParam);
//
returnNavParam.localViewParam = _params;
//
}
//
return returnNavParam;
//
}else{
//
return null;
//
}
//
}
}
/**
...
...
@@ -425,27 +429,30 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
*/
public
onSelect
(
$event
:
any
):
void
{
const
item
=
this
.
getItem
(
this
.
items
,
$event
);
if
(
Object
.
is
(
item
.
id
,
this
.
selection
.
id
))
{
if
(
key
===
this
.
selection
.
id
)
{
return
;
}
this
.
$emit
(
'selectionchange'
,
[
item
]);
let
localNavParam
:
any
=
this
.
initNavParam
(
item
);
const
refview
=
this
.
getDRBarItem
({
nodetype
:
item
.
id
});
this
.
selection
=
{};
const
_context
:
any
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
};
if
(
localNavParam
&&
localNavParam
.
localContext
){
Object
.
assign
(
_context
,
localNavParam
.
localContext
);
}
const
_params
:
any
=
{};
if
(
localNavParam
&&
localNavParam
.
localViewParam
){
Object
.
assign
(
_params
,
localNavParam
.
localViewParam
);
}
if
(
refview
&&
refview
.
parentdatajo
)
{
Object
.
assign
(
_context
,
refview
.
parentdatajo
);
Object
.
assign
(
this
.
selection
,
{
view
:
{
viewname
:
refview
.
viewname
},
data
:
_context
,
param
:
_params
});
}
Object
.
assign
(
this
.
selection
,
item
);
const
selectItem
=
this
.
getItem
(
this
.
items
,
key
);
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
const
tempViewParams
=
Util
.
deepCopy
(
this
.
viewparams
);
// this.$emit('selectionchange', [item]);
// let localNavParam:any = this.initNavParam(item);
// const refview = this.getDRBarItem({ nodetype: item.id });
// this.selection = {};
// const _context: any = { ...JSON.parse(JSON.stringify(this.context)) };
// if(localNavParam && localNavParam.localContext){
// Object.assign(_context,localNavParam.localContext);
// }
// const _params: any = {};
// if(localNavParam && localNavParam.localViewParam){
// Object.assign(_params,localNavParam.localViewParam);
// }
// if (refview && refview.parentdatajo) {
// Object.assign(_context, refview.parentdatajo);
// Object.assign(this.selection, { view: { viewname: refview.viewname }, data: _context, param: _params });
// }
// Object.assign(this.selection, item);
}
/**
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录