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

Merge branch 'dev'

......@@ -5,7 +5,6 @@
ref='${ctrl.name}'
:viewparams="viewparams"
:context="context"
:formData="formData"
<#if ctrl.getPSAppDataEntity()??>parentName = "${ctrl.getPSAppDataEntity().getCodeName()}"</#if>
<#if view.getViewType() == 'DEEDITVIEW4'>
:isShowSlot="false"
......
......@@ -59,7 +59,7 @@
* @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Prop({default:{}}) public formData?:any;
public formData:any;
/**
* 获取多项数据
......@@ -144,11 +144,11 @@
}
/**
* 生命周期
* 仿真选中第一项
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public mounted(){
public selectFirst(){
if(this.items.length>0){
this.isShowSlot?this.tabPanelClick(this.items[0].name):this.items.length>1?this.tabPanelClick(this.items[1].name):()=>{};
}
......@@ -168,6 +168,8 @@
if (Object.is('state', action)) {
const state = !this.context.${ctrl.getPSAppDataEntity().getCodeName()?lower_case} ? true : false;
this.setItemDisabled(state);
this.formData = data;
this.selectFirst();
}
});
}
......
......@@ -17,14 +17,6 @@
* @memberof ${srfclassname('${view.name}')}Base
*/
public selection: any = {};
/**
* 表单数据
*
* @type {*}
* @memberof ${srfclassname('${view.name}')}Base
*/
public formData:any = {};
<#ibizinclude>
./VIEW_BOTTOM-BASE.vue.ftl
......
<#assign self_content>
/**
* 表单数据
* 选中数据
*
* @type {*}
* @memberof ${srfclassname('${view.name}')}Base
*/
public formData:any = {};
public selection: any = {};
</#assign>
<#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册