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

表单自动加载逻辑

上级 40048a19
......@@ -85,6 +85,14 @@ import { Util } from '@/ibiz-core/utils';
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
@Prop() protected removeAction!: string;
/**
* 视图参数
*
* @type {*}
* @memberof YDDTBJ
*/
@Prop({ default: false }) protected isautoload?: boolean;
/**
* 部件行为--loaddraft
......@@ -853,6 +861,9 @@ import { Util } from '@/ibiz-core/utils';
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
protected afterCreated(){
if(this.isautoload){
this.autoLoad({srfkey:this.context.${ctrl.getPSAppDataEntity().getCodeName()}});
}
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册