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

Merge branch 'dev'

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