提交 bf3c5f61 编写于 作者: KK's avatar KK

数据看板 逻辑调整

上级 84a29596
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</#list> </#list>
<template v-for="item in customizeModel"> <template v-for="item in customizeModel">
<div class="dashboard-item" :class="item.componentName + 'dashboard'" :key="item.id" v-if="isEnableCustomized"> <div class="dashboard-item" :class="item.componentName + 'dashboard'" :key="item.id" v-if="isEnableCustomized">
<component :is="item.componentName" :viewState="viewState" :name="item.portletCodeName" :context="context" :viewparams="viewparams"></component> <component :is="item.componentName" :viewState="viewState" :name="item.portletCodeName" :context="context" isChildView="true" :viewparams="viewparams"></component>
</div> </div>
</template> </template>
</ion-grid> </ion-grid>
......
...@@ -115,13 +115,14 @@ import UtilService from '@/utilservice/util-service'; ...@@ -115,13 +115,14 @@ import UtilService from '@/utilservice/util-service';
if (!Object.is(tag, this.name)) { if (!Object.is(tag, this.name)) {
return; return;
} }
if(this.isEnableCustomized){
this.loadModel(this.utilServiceName,this.context,Object.assign({utilServiceName:this.utilServiceName,modelid:this.modelId},this.viewparams));
return;
}
const refs: any = this.$refs; const refs: any = this.$refs;
Object.keys(refs).forEach((name: string) => { Object.keys(refs).forEach((name: string) => {
this.viewState.next({ tag: name, action: action, data: data }); this.viewState.next({ tag: name, action: action, data: data });
}); });
if(this.isEnableCustomized){
this.loadModel(this.utilServiceName,this.context,Object.assign({utilServiceName:this.utilServiceName,modelid:this.modelId},this.viewparams));
}
}); });
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册