提交 0e646bd3 编写于 作者: tony001's avatar tony001

完善索引实体新建后续逻辑

上级 d9b4d01f
......@@ -51,7 +51,30 @@
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
console.log(result);
if(result && result.datas && result.datas.length >0 ){
let targetkey:string = result.datas[0].srfkey;
<#if viewlogic.getNewDataPSAppViews?? && viewlogic.getNewDataPSAppViews()??>
let newDataAppViews:any ={
<#list viewlogic.getNewDataPSAppViews() as newDataAppView>
<#compress>${newDataAppView.getRefMode()}:
<#if newDataAppView.isPSDEView()>
<#assign appDataEntity = newDataAppView.getPSAppDataEntity()>
[{ pathName: '${srfpluralize(appDataEntity.codeName)?lower_case}', parameterName: '${appDataEntity.getCodeName()?lower_case}' }]
<#else>[]</#if><#if newDataAppView_has_next>,</#if><#compress>
</#list>
};
</#if>
const data: any = {};
if(args[0].srfsourcekey) data.srfsourcekey = args[0].srfsourcekey;
let tempContext = JSON.parse(JSON.stringify(this.context));
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, [], newDataAppViews[targetkey], args, _data);
this.$router.push(routePath);
}
openIndexViewTab(data);
}
})
<#else>
this.$Notice.warning({ title: '错误', desc: '请添加新建数据向导视图' });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册