Skip to content

Commit ab2e741

Browse files
committed
//2021.03.31修复表单switch只读时没有转换值的问题
1 parent 2722d17 commit ab2e741

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Vol.Vue/src/components/basic/VolForm.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,10 @@ export default {
482482
if(item.type=="date"){
483483
return text.replace("T",' ').split(' ')[0]
484484
}
485+
//2021.03.31修复表单switch只读时没有转换值的问题
486+
if (item.type=="switch") {
487+
return text?'':'';
488+
}
485489
if (!item.data) return text
486490
if (item.type == 'selectList' || item.type == 'checkbox') {
487491
return this.convertArrayValue(item.data, text)

开发版dev/Vue.NetCore/Vol.Vue/src/components/basic/VolForm.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,10 @@ export default {
482482
if(item.type=="date"){
483483
return text.replace("T",' ').split(' ')[0]
484484
}
485+
//2021.03.31修复表单switch只读时没有转换值的问题
486+
if (item.type=="switch") {
487+
return text?'':'';
488+
}
485489
if (!item.data) return text
486490
if (item.type == 'selectList' || item.type == 'checkbox') {
487491
return this.convertArrayValue(item.data, text)

0 commit comments

Comments
 (0)