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

表单调整

上级 121f2326
...@@ -139,11 +139,11 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -139,11 +139,11 @@ import { Util } from '@/ibiz-core/utils';
/** /**
* 重置表单项值 * 重置表单项值
* *
* @private * @protected
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { protected resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
<#list ctrl.getPSDEFormItems() as item> <#list ctrl.getPSDEFormItems() as item>
<#if item.getResetItemName?? && item.getResetItemName()??> <#if item.getResetItemName?? && item.getResetItemName()??>
if (Object.is(name, '${item.getResetItemName()}')) { if (Object.is(name, '${item.getResetItemName()}')) {
...@@ -159,11 +159,11 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -159,11 +159,11 @@ import { Util } from '@/ibiz-core/utils';
/** /**
* 表单逻辑 * 表单逻辑
* *
* @private * @protected
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal } * @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private async formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }){ protected async formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }){
<#if P.getPartCode(item,'FORM_LOGIC').code?length gt 0> <#if P.getPartCode(item,'FORM_LOGIC').code?length gt 0>
${P.getPartCode(item,'FORM_LOGIC').code} ${P.getPartCode(item,'FORM_LOGIC').code}
</#if> </#if>
...@@ -458,10 +458,10 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -458,10 +458,10 @@ import { Util } from '@/ibiz-core/utils';
/** /**
* 重置草稿表单状态 * 重置草稿表单状态
* *
* @private * @protected
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private resetDraftFormStates(): void { protected resetDraftFormStates(): void {
const form: any = this.$refs.${ctrl.name}; const form: any = this.$refs.${ctrl.name};
if (form) { if (form) {
// form.resetValidation(); // form.resetValidation();
...@@ -515,12 +515,12 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -515,12 +515,12 @@ import { Util } from '@/ibiz-core/utils';
/** /**
* 表单加载完成 * 表单加载完成
* *
* @private * @protected
* @param {*} [data={}] * @param {*} [data={}]
* @param {string} [action] * @param {string} [action]
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
private onFormLoad(data: any = {},action:string): void { protected onFormLoad(data: any = {},action:string): void {
this.setFormEnableCond(data); this.setFormEnableCond(data);
this.fillForm(data,action); this.fillForm(data,action);
<#if ctrl.getControlType() == 'FORM'> <#if ctrl.getControlType() == 'FORM'>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册