Przeglądaj źródła

审批详情,单选类型字段值转换

RaoMeng 5 lat temu
rodzic
commit
539a54fab3

+ 3 - 3
uas-office-web/wxuasapproval/src/model/ApprovalBean.js

@@ -23,8 +23,7 @@ export default function ApprovalBean (type) {
       case 'D':
       case 'D':
         this.data2DType()
         this.data2DType()
         break
         break
-      //后台接口做了转换,前端无需转换
-      /*case 'B':
+      case 'B':
         if (this.values == 1) {
         if (this.values == 1) {
           this.values = ApprovalBean.VALUES_YES
           this.values = ApprovalBean.VALUES_YES
         } else {
         } else {
@@ -32,7 +31,8 @@ export default function ApprovalBean (type) {
         }
         }
         this.setOldSelectValues()
         this.setOldSelectValues()
         break
         break
-      case 'YN':
+      //后台接口做了转换,前端无需转换
+      /*case 'YN':
         if (this.values == '-1') {
         if (this.values == '-1') {
           this.values = ApprovalBean.VALUES_YES
           this.values = ApprovalBean.VALUES_YES
         } else if (this.values == 1 && this.type == ApprovalBean.DETAIL &&
         } else if (this.values == 1 && this.type == ApprovalBean.DETAIL &&