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

修复多表单编辑视图(部件视图)临时模式异常问题

上级 b0d32bde
...@@ -195,11 +195,11 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -195,11 +195,11 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
@Watch('viewdata') @Watch('viewdata')
onViewData(newVal: any, oldVal: any) { onViewData(newVal: any, oldVal: any) {
const _this: any = this; const _this: any = this;
<#if viewdata_block??>${viewdata_block}</#if>
if (!Object.is(newVal, oldVal) && _this.engine) { if (!Object.is(newVal, oldVal) && _this.engine) {
this.$nextTick(()=>{ this.$nextTick(()=>{
_this.parseViewParam(); _this.parseViewParam();
_this.engine.load(); _this.engine.load();
<#if viewdata_block??>${viewdata_block}</#if>
}); });
} else if(!Object.is(newVal, oldVal) && _this.refresh && _this.refresh instanceof Function) { } else if(!Object.is(newVal, oldVal) && _this.refresh && _this.refresh instanceof Function) {
_this.refresh(); _this.refresh();
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
</#assign> </#assign>
<#assign viewdata_block> <#assign viewdata_block>
if(!Object.is(newVal, oldVal) ){ if(!Object.is(newVal, oldVal) ){
_this.parseViewParam(); _this.parseViewParam();
return;
} }
</#assign> </#assign>
<#ibizinclude> <#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册