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 {
...
@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
load
(
opt
:
any
=
{}):
void
{
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
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
;
return
;
}
}
const
arg
:
any
=
{
...
opt
};
const
arg
:
any
=
{
...
opt
};
...
@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
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
;
return
;
}
}
const
arg
:
any
=
{
...
opt
}
;
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizorder/default-drbar/default-drbar-base.vue
浏览文件 @
96d400d7
<
template
>
<
template
>
<div
class=
'app-dr-bar'
:style=
"
{ width: `${width}px` }">
<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>
</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
>
</
template
>
<
script
lang=
'tsx'
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
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 {
...
@@ -214,6 +214,20 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
selection
:
any
=
{};
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 {
...
@@ -225,18 +239,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
text
:
"订单明细"
,
text
:
"订单明细"
,
disabled
:
false
,
disabled
:
false
,
id
:
"dritem2"
,
id
:
"dritem2"
,
},
groupCodeName
:
'a7c7923d37319b42645a41908d62bae9'
,
];
drView
:
'IBIZOrderDetailSGridView'
,
/**
* 关系栏数据项导航参数集合
*
* @type {any[]}
* @memberof DefaultBase
*/
public
navParamsArray
:
Array
<
any
>
=
[
{
id
:
'dritem2'
,
localContext
:{
CONTEXTPARAM1
:
"%orderstate%"
},
localContext
:{
CONTEXTPARAM1
:
"%orderstate%"
},
localViewParam
:{
param2
:
"%orderstate%"
}
localViewParam
:{
param2
:
"%orderstate%"
}
}
}
...
@@ -395,27 +399,27 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -395,27 +399,27 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
* @memberof DefaultBase
*/
*/
public
initNavParam
(
drItem
:
any
){
public
initNavParam
(
drItem
:
any
){
let
returnNavParam
:
any
=
{};
//
let returnNavParam:any = {};
if
(
drItem
&&
drItem
.
id
){
//
if(drItem && drItem.id){
let
curDRItem
:
any
=
this
.
navParamsArray
.
find
((
item
:
any
)
=>
{
//
let curDRItem:any = this.navParamsArray.find((item:any) =>{
return
Object
.
is
(
item
.
id
,
drItem
.
id
);
//
return Object.is(item.id,drItem.id);
})
//
})
if
(
curDRItem
){
//
if(curDRItem){
let
localContext
:
any
=
curDRItem
.
localContext
;
//
let localContext:any = curDRItem.localContext;
let
localViewParam
:
any
=
curDRItem
.
localViewParam
;
//
let localViewParam:any = curDRItem.localViewParam;
if
(
localContext
&&
Object
.
keys
(
localContext
).
length
>
0
){
//
if(localContext && Object.keys(localContext).length >0){
let
_context
:
any
=
this
.
$util
.
computedNavData
(
this
.
formData
,
this
.
context
,
this
.
viewparams
,
localContext
);
//
let _context:any = this.$util.computedNavData(this.formData,this.context,this.viewparams,localContext);
returnNavParam
.
localContext
=
_context
;
//
returnNavParam.localContext = _context;
}
//
}
if
(
localViewParam
&&
Object
.
keys
(
localViewParam
).
length
>
0
){
//
if(localViewParam && Object.keys(localViewParam).length >0){
let
_params
:
any
=
this
.
$util
.
computedNavData
(
this
.
formData
,
this
.
context
,
this
.
viewparams
,
localViewParam
);
//
let _params:any = this.$util.computedNavData(this.formData,this.context,this.viewparams,localViewParam);
returnNavParam
.
localViewParam
=
_params
;
//
returnNavParam.localViewParam = _params;
}
//
}
return
returnNavParam
;
//
return returnNavParam;
}
else
{
//
}else{
return
null
;
//
return null;
}
//
}
}
//
}
}
}
/**
/**
...
@@ -425,27 +429,30 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -425,27 +429,30 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
* @memberof DefaultBase
*/
*/
public
onSelect
(
$event
:
any
):
void
{
public
onSelect
(
$event
:
any
):
void
{
const
item
=
this
.
getItem
(
this
.
items
,
$event
);
if
(
key
===
this
.
selection
.
id
)
{
if
(
Object
.
is
(
item
.
id
,
this
.
selection
.
id
))
{
return
;
return
;
}
}
this
.
$emit
(
'selectionchange'
,
[
item
]);
const
selectItem
=
this
.
getItem
(
this
.
items
,
key
);
let
localNavParam
:
any
=
this
.
initNavParam
(
item
);
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
const
refview
=
this
.
getDRBarItem
({
nodetype
:
item
.
id
});
const
tempViewParams
=
Util
.
deepCopy
(
this
.
viewparams
);
this
.
selection
=
{};
const
_context
:
any
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
))
};
// this.$emit('selectionchange', [item]);
if
(
localNavParam
&&
localNavParam
.
localContext
){
// let localNavParam:any = this.initNavParam(item);
Object
.
assign
(
_context
,
localNavParam
.
localContext
);
// const refview = this.getDRBarItem({ nodetype: item.id });
}
// this.selection = {};
const
_params
:
any
=
{};
// const _context: any = { ...JSON.parse(JSON.stringify(this.context)) };
if
(
localNavParam
&&
localNavParam
.
localViewParam
){
// if(localNavParam && localNavParam.localContext){
Object
.
assign
(
_params
,
localNavParam
.
localViewParam
);
// Object.assign(_context,localNavParam.localContext);
}
// }
if
(
refview
&&
refview
.
parentdatajo
)
{
// const _params: any = {};
Object
.
assign
(
_context
,
refview
.
parentdatajo
);
// if(localNavParam && localNavParam.localViewParam){
Object
.
assign
(
this
.
selection
,
{
view
:
{
viewname
:
refview
.
viewname
},
data
:
_context
,
param
:
_params
});
// Object.assign(_params,localNavParam.localViewParam);
}
// }
Object
.
assign
(
this
.
selection
,
item
);
// 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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录