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

分类逻辑调整

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