liyongli 3 năm trước cách đây
mục cha
commit
74c40b9794

+ 1 - 1
src/views/AdvertisingEye/components/comTrendWeek.vue

@@ -116,7 +116,7 @@ export default {
               "<br />" +
               obj.name +
               "<br />" +
-              v.toFixed(2) +
+              (v.toFixed(2)-0) +
               this.week_list[this.week_act].unit
             );
           },

+ 3 - 3
src/views/AdvertisingEye/components/distribution.vue

@@ -191,7 +191,7 @@ export default {
         k.push({ name: v.name , max });
         let val = (
           v[this.soft_planting_list[this.soft_planting_act].proportionType] - 0
-        ).toFixed(2);
+        ).toFixed(2) - 0;
         item.push(val);
       });
       var option = {
@@ -237,8 +237,8 @@ export default {
     },
     numFor(num) {
       if (isNaN(num)) return 0;
-      if (num >= 100000000) return (num / 100000000).toFixed(2) + "亿";
-      if (num >= 10000) return (num / 10000).toFixed(2) + "万";
+      if (num >= 100000000) return ((num / 100000000).toFixed(2) -0)+ "亿";
+      if (num >= 10000) return ((num / 10000).toFixed(2) -0) + "万";
       return num;
     },
   },

+ 1 - 1
src/views/AdvertisingEye/components/distributionB.vue

@@ -202,7 +202,7 @@ export default {
         k.push({ name: v.programType, max });
         let val = (
           v[this.soft_planting_list[this.soft_planting_act].proportionType] - 0
-        ).toFixed(2);
+        ).toFixed(2) -0 ;
         item.push(val);
       });
       var option = {

+ 3 - 3
src/views/AdvertisingEye/components/focus.vue

@@ -561,9 +561,9 @@ export default {
     numFor(num) {
       if (!num) return 0;
       if (isNaN(num)) return 0;
-      if (num >= 100000000) return (num / 100000000).toFixed(2) + "亿";
-      if (num >= 10000) return (num / 10000).toFixed(2) + "万";
-      return num;
+      if (num >= 100000000) return ((num / 100000000).toFixed(2) -0 ) + "亿";
+      if (num >= 10000) return ((num / 10000).toFixed(2) -0) + "万";
+      return Number(num).toFixed(2) -0;
     },
     init() {
       this.getHard();

+ 3 - 3
src/views/AdvertisingEye/components/focusB.vue

@@ -259,9 +259,9 @@ export default {
     numFor(num) {
       if (!num) return 0;
       if (isNaN(num)) return 0;
-      if (num >= 100000000) return (num / 100000000).toFixed(2) + "亿";
-      if (num >= 10000) return (num / 10000).toFixed(2) + "万";
-      return num;
+      if (num >= 100000000) return ((num / 100000000).toFixed(2) -0 ) + "亿";
+      if (num >= 10000) return ((num / 10000).toFixed(2) -0) + "万";
+      return Number(num).toFixed(2) - 0;
     },
     init() {
       ImportantCustomer({

+ 2 - 2
src/views/AdvertisingEye/components/structure.vue

@@ -86,7 +86,7 @@ export default {
           y = all[1] || [];
         r = r.map(v => {
           let value =  v[this.industry_list[this.industry_act].proportionType];
-          if(!isNaN(value)) value = (value - 0).toFixed(2);
+          if(!isNaN(value)) value = (value - 0).toFixed(2) - 0;
           return {
             name: v.name,
             value,
@@ -94,7 +94,7 @@ export default {
         });
         y = y.map(v => {
           let value =  v[this.industry_list[this.industry_act].proportionType];
-          if(!isNaN(value)) value = (value - 0).toFixed(2);
+          if(!isNaN(value)) value = (value - 0).toFixed(2) - 0;
           return {
             name: v.name,
             value,

+ 1 - 1
src/views/AdvertisingEye/components/structureB.vue

@@ -88,7 +88,7 @@ export default {
           const v = keys[i];
           li[kv[v]] = (res[v] || []).map(item => {
             let value = item[key];
-            if (!isNaN(value)) value = (value - 0).toFixed(2);
+            if (!isNaN(value)) value = (value - 0).toFixed(2) - 0;
             return {
               name: item.midIndustryName || item.smallIndustryName,
               value,

+ 1 - 1
src/views/AdvertisingEye/components/tranche.vue

@@ -256,7 +256,7 @@ export default {
             data: v.map(o =>
               (
                 (o[this.share_list[this.share_act].proportionType] || 0) * 100
-              ).toFixed(2)
+              ).toFixed(2) -0 
             ),
           };
         }),

+ 4 - 4
src/views/AdvertisingEye/components/trancheB.vue

@@ -100,8 +100,8 @@ export default {
               focus: "series",
             },
             data: [
-              ((li[0].softY || 0) - 0).toFixed(2),
-              ((li[1].hardY || 0) - 0).toFixed(2),
+              ((li[0].softY || 0) - 0).toFixed(2) - 0,
+              ((li[1].hardY || 0) - 0).toFixed(2) - 0,
             ],
           },
           {
@@ -115,8 +115,8 @@ export default {
               focus: "series",
             },
             data: [
-              ((li[0].softW || 0) - 0).toFixed(2),
-              ((li[1].hardW || 0) - 0).toFixed(2),
+              ((li[0].softW || 0) - 0).toFixed(2) - 0,
+              ((li[1].hardW || 0) - 0).toFixed(2) - 0,
             ],
           },
         ]);

+ 3 - 3
src/views/AdvertisingEye/components/trancheB2.vue

@@ -107,7 +107,7 @@ export default {
       list.map(item => {
         let value = item[this.share_list[this.share_act].proportionType] || 0;
         if (this.share_list[this.share_act].proportionType === "timeSize")
-          value = (value / 60).toFixed(2);
+          value = (value / 60).toFixed(2) -0 ;
         k.push(item.channelName);
         v.push(value);
       });
@@ -122,7 +122,7 @@ export default {
               "<br />" +
               obj.name +
               "<br />" +
-              v.toFixed(2) +
+              (v.toFixed(2) - 0) +
               this.share_list[this.share_act].unit
             );
           },
@@ -188,7 +188,7 @@ export default {
               "<br />" +
               obj.name +
               "<br />" +
-              v.toFixed(2) +
+              (v.toFixed(2) - 0) +
               this.share_list[this.share_act].unit
             );
           },