提交 5f9130ef 编写于 作者: RedPig97's avatar RedPig97

update: 表格链接视图优化

上级 2ea0ccea
......@@ -26,7 +26,22 @@ interface ColumnLinkProps {
*/
viewParams: IParam;
/**
* 局部上下文导航参数
*
* @type {IParam}
* @memberof ColumnLinkProps
*/
localContext?: IParam;
/**
* 局部导航参数
*
* @type {IParam}
* @memberof ColumnLinkProps
*/
localParam?: IParam;
/**
* 链接视图
*
......@@ -61,10 +76,10 @@ const openLinkView = ($event: any) => {
}
const appEntity = App.getEntityInfo(view?.appEntityCodeName);
const keyField: string = appEntity.keyField || 'keyField';
let _navContext = deepCopy(navContext);
let _navViewParam = deepCopy(navViewParam);
Object.assign(_navContext,{keyField: props.data[props.valueItem]});
const subject = App.getOpenViewService().openView(view, {_navContext, _navViewParam});
let context = deepCopy(navContext);
let viewParams = deepCopy(navViewParam);
Object.assign(context,{keyField: props.data[props.valueItem]});
const subject = App.getOpenViewService().openView(view, {context, viewParams});
const subjectEvent = subject?.subscribe((data: any) => {
if (data?.ret == 'OK' && data.resultData) {
openViewClose(data.resultData);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册