浏览代码

Merge branch 'master' of http://139.196.39.194:9021/chenc/sen-yu-new-web

huxy 8 月之前
父节点
当前提交
a5371906ba
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/views/reportForms/cost-allocation-table/tabs.vue

+ 5 - 3
src/views/reportForms/cost-allocation-table/tabs.vue

@@ -310,7 +310,8 @@ export default {
           className: 'replacecolor',
           className: 'replacecolor',
           customRender: (text, record, index) => {
           customRender: (text, record, index) => {
             if(text!==''&&text){
             if(text!==''&&text){
-              return Number(text).toFixed(2)
+              var num = (Number(text)*100).toFixed(2)
+              return num+'%'
             }
             }
           },
           },
         },
         },
@@ -429,7 +430,8 @@ export default {
           className: 'replacecolor',
           className: 'replacecolor',
           customRender: (text, record, index) => {
           customRender: (text, record, index) => {
             if(text!==''&&text){
             if(text!==''&&text){
-              return Number(text).toFixed(4)
+              var num = (Number(text)*100).toFixed(2)
+              return num+'%'
             }
             }
           },
           },
         },
         },
@@ -450,7 +452,7 @@ export default {
           width: '6%',
           width: '6%',
           className: 'replacecolor',
           className: 'replacecolor',
           customRender: (text, record, index) => {
           customRender: (text, record, index) => {
-            if(text!==''&&text){
+            if(text!==''&&text&&text!=='Infinity'){
               return Number(text).toFixed(2)
               return Number(text).toFixed(2)
             }
             }
           },
           },