wenmenghao321 2 жил өмнө
parent
commit
f3a43368fe

+ 3 - 3
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/report_detail_month.js

@@ -451,7 +451,7 @@ var vNode = {
                             // that.curMonthCountTop.list = that.formatterWinData(res.data.project_buyerclass_count,'count')
                             
                             var pro_count_list = res.data.project_buyerclass_count.filter(function (item, index) {
-                              return item['buyerclass'] != '其它'
+                              return (item['buyerclass'] != '其它' && item['count']!=0)
                              })
                             that.curMonthCountTop.list = that.formatterWinData(pro_count_list,'count')
                             that.isShow.show_7 = true;
@@ -464,7 +464,7 @@ var vNode = {
                             // that.curMonthScaleTop.list = that.formatterWinData(data,'scale')
                             var data = res.data.project_buyerclass_bidamount;
                             var pro_bidamount_list = data.filter(function (item, index) {
-                              return item['buyerclass'] != '其它'
+                              return (item['buyerclass'] != '其它' && item['bidamount']!=0) 
                              })
                             that.curMonthScaleTop.list = that.formatterWinData(pro_bidamount_list,'scale')
                             that.isShow.show_8 = true;
@@ -477,7 +477,7 @@ var vNode = {
                             // that.averageScaleTop.list = that.formatterWinData(d,'average')
                             var d = res.data.project_buyerclass_average_bidamount;
                             var pro_average_list = d.filter(function (item, index) {
-                              return item['buyerclass'] != '其它'
+                              return (item['buyerclass'] != '其它' && item['average']!=0)
                              })
                             that.averageScaleTop.list = that.formatterWinData(pro_average_list,'average')
                             that.isShow.show_9 = true;

+ 3 - 3
src/web/staticres/big-member/js/report_detail_month.js

@@ -451,7 +451,7 @@ var vNode = {
                         // 本月项目数量TOP10采购行业 7
                         if(res.data.project_buyerclass_count && res.data.project_buyerclass_count.length > 0) {
                             var pro_count_list = res.data.project_buyerclass_count.filter(function (item, index) {
-                            return item['buyerclass'] != '其它'
+                            return (item['buyerclass'] != '其它' && item['count']!=0)
                            })
                             that.curMonthCountTop.list = that.formatterWinData(pro_count_list,'count')
                             that.isShow.show_7 = true;
@@ -462,7 +462,7 @@ var vNode = {
                         if(res.data.project_buyerclass_bidamount && res.data.project_buyerclass_bidamount.length > 0) {
                             var data = res.data.project_buyerclass_bidamount;
                             var pro_bidamount_list = data.filter(function (item, index) {
-                              return item['buyerclass'] != '其它'
+                              return  (item['buyerclass'] != '其它' && item['bidamount']!=0) 
                              })
                             that.curMonthScaleTop.list = that.formatterWinData(pro_bidamount_list,'scale')
                             that.isShow.show_8 = true;
@@ -473,7 +473,7 @@ var vNode = {
                         if(res.data.project_buyerclass_average_bidamount && res.data.project_buyerclass_average_bidamount.length > 0) {
                             var d = res.data.project_buyerclass_average_bidamount;
                             var pro_average_list = d.filter(function (item, index) {
-                              return item['buyerclass'] != '其它'
+                              return  (item['buyerclass'] != '其它' && item['average']!=0)
                              })
                             that.averageScaleTop.list = that.formatterWinData(pro_average_list,'average')
                             that.isShow.show_9 = true;