提交 559b60cc 编写于 作者: hudan's avatar hudan

修复列表导航视图选中状态

上级 00a3eea3
...@@ -203,7 +203,7 @@ import CodeListService from "@/codelist/codelist-service"; ...@@ -203,7 +203,7 @@ import CodeListService from "@/codelist/codelist-service";
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop() public updateAction!: string; @Prop() public updateAction!: string;
/** /**
* 部件行为--fetch * 部件行为--fetch
* *
...@@ -212,6 +212,14 @@ import CodeListService from "@/codelist/codelist-service"; ...@@ -212,6 +212,14 @@ import CodeListService from "@/codelist/codelist-service";
*/ */
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
/**
* 是否单选
*
* @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Prop() public isSingleSelect!: boolean;
<#if view.getPSAppViewLogics?? && view.getPSAppViewLogics()??> <#if view.getPSAppViewLogics?? && view.getPSAppViewLogics()??>
<#list view.getPSAppViewLogics() as logic> <#list view.getPSAppViewLogics() as logic>
<#if logic.getPFLogicCodeType() == 'APP_NEWDATA'> <#if logic.getPFLogicCodeType() == 'APP_NEWDATA'>
...@@ -897,6 +905,9 @@ import CodeListService from "@/codelist/codelist-service"; ...@@ -897,6 +905,9 @@ import CodeListService from "@/codelist/codelist-service";
*/ */
public handleClick(args: any) { public handleClick(args: any) {
// this.clearSelection(); // this.clearSelection();
if(this.isingleSelect){
this.clearSelection();
}
args.isselected = !args.isselected; args.isselected = !args.isselected;
this.selectchange(); this.selectchange();
} }
......
<#assign content> <#assign content>
:showBusyIndicator="${ctrl.isShowBusyIndicator()?c}" :showBusyIndicator="${ctrl.isShowBusyIndicator()?c}"
:isSingleSelect="isSingleSelect"
<#if view.getViewType() == 'DELISTEXPVIEW'> <#if view.getViewType() == 'DELISTEXPVIEW'>
:viewUID="viewUID" :viewUID="viewUID"
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册