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

选择树视图--fix

上级 9b9c85cd
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
<ion-list v-if="viewType != 'DEMOBPICKUPTREEVIEW'"> <ion-list v-if="viewType != 'DEMOBPICKUPTREEVIEW'">
<template v-for="item in valueNodes"> <template v-for="item in valueNodes">
<ion-item v-if="!item.isNode" :key="item.id"> <ion-item v-if="!item.isNode" :key="item.id">
<ion-checkbox color="secondary" v-if="viewType == 'DEMOBMPICKUPTREEVIEW'" :checked="item.checked" :value="item.srfkey" @ionChange="checkboxChange" slot="end"></ion-checkbox> <ion-checkbox color="secondary" v-if="viewType == 'DEMOBPICKUPTREEVIEW' && !isSingleSelect'" :checked="item.checked" :value="item.srfkey" @ionChange="checkboxChange" slot="end"></ion-checkbox>
<ion-label>{{item.text}}</ion-label> <ion-label>{{item.text}}</ion-label>
</ion-item> </ion-item>
</template> </template>
</ion-list> </ion-list>
<ion-radio-group v-if="viewType == 'DEMOBPICKUPTREEVIEW'" :value="selectedValue" > <ion-radio-group v-if="viewType == 'DEMOBPICKUPTREEVIEW' && isSingleSelect'" :value="selectedValue" >
<template v-for="item in valueNodes"> <template v-for="item in valueNodes">
<ion-item :key="item.id" @click="onSimpleSelChange(item)"> <ion-item :key="item.id" @click="onSimpleSelChange(item)">
<ion-label>{{item.text}}</ion-label> <ion-label>{{item.text}}</ion-label>
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
</#list> </#list>
</#if> </#if>
viewType="${view.getViewType()}" viewType="${view.getViewType()}"
<#if view.getViewType?? && view.getViewType()?? && view.getViewType() == 'DEMOBPICKUPTREEVIEW'>
:isSingleSelect="isSingleSelect"
</#if>
</#assign> </#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/HTML/DEFAULT.html.ftl ../@MACRO/HTML/DEFAULT.html.ftl
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册