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

分类逻辑调整

上级 e1d3b9fc
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<#if item.isEnableSort() && item.getPSCodeList?? && item.getPSCodeList()??> <#if item.isEnableSort() && item.getPSCodeList?? && item.getPSCodeList()??>
<#assign codelist = item.getPSCodeList()> <#assign codelist = item.getPSCodeList()>
<#if codelist.getCodeListType() == 'STATIC' && codelist.getAllPSCodeItems()??> <#if codelist.getCodeListType() == 'STATIC' && codelist.getAllPSCodeItems()??>
<app-van-select name="<#if item.getName()??>n_${item.getName()?lower_case}_eq</#if>" title="<#if item.getCaption()??>${item.getCaption()}</#if>" :items="[<#list codelist.getAllPSCodeItems() as codeitem>{value:'<#if codeitem.getValue()??>${codeitem.getValue()}</#if>',label:'<#if codeitem.getName()??>${codeitem.getName()}</#if>'},</#list>]"></app-van-select> <app-van-select name="<#if item.getName()??>n_${item.getName()?lower_case}_eq</#if>" title="<#if item.getCaption()??>${item.getCaption()}</#if>" :items="[<#list codelist.getAllPSCodeItems() as codeitem>{value:'<#if codeitem.getValue()??>${codeitem.getValue()}</#if>',label:'<#if codeitem.getName()??>${codeitem.getName()}</#if>'},</#list>]" @onConfirm="onCategory"></app-van-select>
</#if> </#if>
</#if> </#if>
</#list> </#list>
......
...@@ -122,14 +122,6 @@ ...@@ -122,14 +122,6 @@
*/ */
public sort: any = { asc: "", desc: "" }; public sort: any = { asc: "", desc: "" };
/**
* 分类参数
*
* @type {*}
* @memberof ${srfclassname('${view.name}')}Base
*/
public queryparam:any = {};
/** /**
* 排序 * 排序
* *
...@@ -160,20 +152,9 @@ ...@@ -160,20 +152,9 @@
* @param {*} value * @param {*} value
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public setQueryparam(value:any){ public onCategory(value:any){
this.queryparam[value.srcElement.name]= value.detail.value; this.engine.onViewEvent('mdctrl','category',value);
let sortvalue :any ="";
if (this.sort.desc != "") {
sortvalue = this.sort.desc + ",desc";
}
if (this.sort.asc != "") {
sortvalue = this.sort.asc + ",asc";
}
this.viewState.next({ tag: 'mdctrl', action: 'load', data: { sort: sortvalue,...this.queryparam} });
} }
</#if> </#if>
</#if> </#if>
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册