File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Vol.Vue/src/components/basic
开发版dev/Vue.NetCore/Vol.Vue/src/components/basic Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments