提交 cedd39ad 编写于 作者: Neuromancer255's avatar Neuromancer255
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
v-if="this.selection && Object.is(this.selection.id, '${dritem.getId()?lower_case}') && this.selection.view && !Object.is(this.selection.view.viewname, '')" v-if="this.selection && Object.is(this.selection.id, '${dritem.getId()?lower_case}') && this.selection.view && !Object.is(this.selection.view.viewname, '')"
:is="selection.view.viewname" :is="selection.view.viewname"
class="viewcontainer2" class="viewcontainer2"
:viewdata="JSON.stringify(selection.data)" :_context="JSON.stringify(selection.data)"
:viewparam="JSON.stringify(selection.param)" :_viewparams="JSON.stringify(selection.param)"
:viewDefaultUsage="false" :viewDefaultUsage="false"
:key="this.$util.createUUID()"> :key="this.$util.createUUID()">
</component> </component>
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
*/ */
public mounted(){ public mounted(){
if(this.items.length>0){ if(this.items.length>0){
this.isShowSlot?this.tabPanelClick({detail:{tab:this.items[0].name}}):this.items.length>1?this.tabPanelClick({detail:{tab:this.items[1].name}}):()=>{}; this.isShowSlot?this.tabPanelClick({detail:{tab:this.items[0].name}},true):this.items.length>1?this.tabPanelClick({detail:{tab:this.items[1].name}},true):()=>{};
} }
} }
...@@ -259,12 +259,14 @@ ...@@ -259,12 +259,14 @@
* @param {*} $event * @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public tabPanelClick($event: any): void { public tabPanelClick($event: any,isMounted :boolean= false): void {
const item = this.getItem($event); const item = this.getItem($event);
if (Object.is(item.id, this.selection.id)) { if (Object.is(item.id, this.selection.id)) {
return; return;
} }
this.$emit('selectionchange', [item]); if(!isMounted){
this.$emit('selectionchange', [item]);
}
let localNavParam:any = this.initNavParam(item); let localNavParam:any = this.initNavParam(item);
const refview = this.getDRTabItem({ nodetype: item.id }); const refview = this.getDRTabItem({ nodetype: item.id });
this.selection = {}; this.selection = {};
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册