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

动态操作视图--fix1

上级 3ecc4679
......@@ -17,7 +17,7 @@
:createAction="activeForm.createAction"
:WFSubmitAction="activeForm.WFSubmitAction"
:WFStartAction="activeForm.WFStartAction"
name="form"
name="form"
ref='form'>
</component>
</div>
......@@ -25,8 +25,8 @@
</#assign>
<#assign view_footer>
<div class="option-wf-view-btnbox">
<ion-button class="option-btn medium" color="medium" @click="back">返回</ion-button>
<ion-button class="option-btn success" @click="save">保存</ion-button>
<ion-button class="option-btn medium" color="medium" @click="onClickOk">返回</ion-button>
<ion-button class="option-btn success" @click="onClickCancel">保存</ion-button>
</div>
</#assign>
<#ibizinclude>
......
......@@ -217,9 +217,10 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
* @returns
* @memberof IBizChart
*/
@Watch('_viewparams')
@Watch('_viewparams',{immediate: true, deep: true})
on_viewparams(newVal: string, oldVal: string) {
this.parseViewParam();
<#if watch_viewparam_block??>${watch_viewparam_block}</#if>
}
/**
......
<#assign watch_viewparam_block>
if(this.viewparams && this.viewparams.actionForm){
this.computeActivedForm(this.viewparams.actionForm);
}else{
this.computeActivedForm(null);
}
</#assign>
<#assign mounted_block>
this.viewState.next({ tag: "form", action: "autoload", data: {srfkey:this.context.${appde.getCodeName()?lower_case}} });
</#assign>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册