提交 24684bca 编写于 作者: tony001's avatar tony001

适配搜索表单数据对象方式新建、更新默认值

上级 1aaecde4
...@@ -298,9 +298,9 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -298,9 +298,9 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
*/ */
public createDefault(){ public createDefault(){
<#list ctrl.getAllPSDEFormDetails() as formdetail><#t> <#list ctrl.getAllPSDEFormDetails() as formdetail><#t>
<#if formdetail.getCreateDV?? && formdetail.getCreateDV()??><#t> <#if formdetail.getCreateDV?? && formdetail.getCreateDV()?? && formdetail.getCreateDV() !=""><#t>
<#if !(formdetail.getCreateDV() == '') || formdetail.getCreateDVT() == 'CURTIME'><#t>
if (this.data.hasOwnProperty('${formdetail.getCodeName()?lower_case}')) { if (this.data.hasOwnProperty('${formdetail.getCodeName()?lower_case}')) {
<#if !(formdetail.getCreateDVT() == '')><#t>
<#-- 网页请求 --> <#-- 网页请求 -->
<#if formdetail.getCreateDVT() == 'CONTEXT'> <#if formdetail.getCreateDVT() == 'CONTEXT'>
this.data['${formdetail.getCodeName()?lower_case}'] = this.viewparams['${formdetail.getCreateDV()}']; this.data['${formdetail.getCodeName()?lower_case}'] = this.viewparams['${formdetail.getCreateDV()}'];
...@@ -319,6 +319,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -319,6 +319,7 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
<#-- 当前时间 --> <#-- 当前时间 -->
<#elseif formdetail.getCreateDVT() == 'CURTIME'> <#elseif formdetail.getCreateDVT() == 'CURTIME'>
this.data['${formdetail.getCodeName()?lower_case}'] = this.$util.dateFormat(new Date()); this.data['${formdetail.getCodeName()?lower_case}'] = this.$util.dateFormat(new Date());
</#if>
<#else> <#else>
<#-- 默认值 --> <#-- 默认值 -->
<#assign datatype=srfjavatype(formdetail.getStdDataType())> <#assign datatype=srfjavatype(formdetail.getStdDataType())>
...@@ -326,7 +327,6 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -326,7 +327,6 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
</#if> </#if>
} }
</#if> </#if>
</#if>
</#list> </#list>
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册