提交 ae01eb08 编写于 作者: Mosher's avatar Mosher

调整列表选中逻辑

上级 176d573f
...@@ -213,12 +213,12 @@ import CodeListService from "@/codelist/codelist-service"; ...@@ -213,12 +213,12 @@ import CodeListService from "@/codelist/codelist-service";
@Prop() public fetchAction!: string; @Prop() public fetchAction!: string;
/** /**
* 是否单选 * 父引用类型
* *
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
@Prop({default:true}) public isSingleSelect?: boolean; @Prop({default:true}) public parentType: any;;
<#if view.getPSAppViewLogics?? && view.getPSAppViewLogics()??> <#if view.getPSAppViewLogics?? && view.getPSAppViewLogics()??>
<#list view.getPSAppViewLogics() as logic> <#list view.getPSAppViewLogics() as logic>
...@@ -918,11 +918,17 @@ import CodeListService from "@/codelist/codelist-service"; ...@@ -918,11 +918,17 @@ import CodeListService from "@/codelist/codelist-service";
* *
*/ */
public handleClick(args: any) { public handleClick(args: any) {
// this.clearSelection(); if(this.parentType && this.parentType === "listExpBar") {
if(this.isSingleSelect){ const flag = args.isselected;
this.clearSelection(); this.clearSelection();
if(!flag) {
args.isselected = !args.isselected;
} else {
args.isselected = flag;
}
} else {
args.isselected = !args.isselected;
} }
args.isselected = !args.isselected;
this.selectchange(); this.selectchange();
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<#if view.getViewType() == 'DELISTEXPVIEW'> <#if view.getViewType() == 'DELISTEXPVIEW'>
:isSelectFirstDefault="true" :isSelectFirstDefault="true"
</#if> </#if>
:isSingleSelect="isSingleSelect" :parentType="controlType"
<#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'>
......
...@@ -173,6 +173,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -173,6 +173,15 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
*/ */
public searchText:string = ""; public searchText:string = "";
/**
* 部件类型
*
* @public
* @type {(string)}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public controlType: string = "listExpBar";
/** /**
* 分割宽度 * 分割宽度
* *
......
...@@ -30,6 +30,14 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -30,6 +30,14 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
*/ */
public query: string = ''; public query: string = '';
/**
* 视图类型
*
* @type {string}
* @memberof ${srfclassname('${view.name}')}
*/
public controlType: string = "view";
/** /**
* 是否展开搜索表单 * 是否展开搜索表单
* *
......
...@@ -45,6 +45,14 @@ ...@@ -45,6 +45,14 @@
*/ */
protected query: string = ''; protected query: string = '';
/**
* 视图类型
*
* @type {string}
* @memberof ${srfclassname('${view.name}')}
*/
public controlType: string = "view";
/** /**
* 是否展开搜索表单 * 是否展开搜索表单
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册