Procházet zdrojové kódy

月报采购单位 显隐修改 文案调整

wenmenghao321 před 2 roky
rodič
revize
c33ce9bda5

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

@@ -453,8 +453,12 @@ var vNode = {
                             var pro_count_list = res.data.project_buyerclass_count.filter(function (item, index) {
                               return (item['buyerclass'] != '其它' && item['count']!=0)
                              })
+                             if(pro_count_list && pro_count_list.length > 0){
+                              that.isShow.show_7 = true;
+                            } else {
+                              that.isShow.show_7 = false
+                            }
                             that.curMonthCountTop.list = that.formatterWinData(pro_count_list,'count')
-                            that.isShow.show_7 = true;
                         } else {
                             that.isShow.show_7 = false;
                         }
@@ -466,8 +470,12 @@ var vNode = {
                             var pro_bidamount_list = data.filter(function (item, index) {
                               return (item['buyerclass'] != '其它' && item['bidamount']!=0) 
                              })
+                             if (pro_bidamount_list && pro_bidamount_list.length >0 ) {
+                              that.isShow.show_8 = true;
+                             } else {
+                              that.isShow.show_8 = false
+                             }
                             that.curMonthScaleTop.list = that.formatterWinData(pro_bidamount_list,'scale')
-                            that.isShow.show_8 = true;
                         } else {
                             that.isShow.show_8 = false;
                         }
@@ -479,8 +487,12 @@ var vNode = {
                             var pro_average_list = d.filter(function (item, index) {
                               return (item['buyerclass'] != '其它' && item['average']!=0)
                              })
+                             if (pro_average_list && pro_average_list.length > 0) {
+                              that.isShow.show_9 = true;
+                             } else {
+                              that.isShow.show_9 = false
+                             }
                             that.averageScaleTop.list = that.formatterWinData(pro_average_list,'average')
-                            that.isShow.show_9 = true;
                         } else {
                             that.isShow.show_9 = false;
                         }

+ 3 - 3
src/jfw/modules/app/src/web/templates/big-member/page_report_detail_month.html

@@ -220,7 +220,7 @@
             <div v-if="curMonthCountTop.list.length > 5 && !curMonthCountTop.showAll">
                 <div class="more">
                     <!-- <span @click="curMonthCountTop.showAll = true">查看更多</span> -->
-                    <span @click="goTable('curMonthCountTop')">查看更多</span>
+                    <span @click="goTable('curMonthCountTop')">查看全部</span>
                 </div>
             </div>
         </div>
@@ -250,7 +250,7 @@
             <div v-if="curMonthScaleTop.list.length > 5 && !curMonthScaleTop.showAll">
                 <div class="more">
                     <!-- <span @click="curMonthScaleTop.showAll = true">查看更多</span> -->
-                    <span @click="goTable('curMonthScaleTop')">查看更多</span>
+                    <span @click="goTable('curMonthScaleTop')">查看全部</span>
                 </div>
             </div>
         </div>
@@ -280,7 +280,7 @@
             <div v-if="averageScaleTop.list.length > 5 && !averageScaleTop.showAll">
                 <div class="more">
                     <!-- <span @click="averageScaleTop.showAll = true">查看更多</span> -->
-                    <span @click="goTable('averageScaleTop')">查看更多</span>
+                    <span @click="goTable('averageScaleTop')">查看全部</span>
                 </div>
             </div>
         </div>

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

@@ -453,8 +453,13 @@ var vNode = {
                             var pro_count_list = res.data.project_buyerclass_count.filter(function (item, index) {
                             return (item['buyerclass'] != '其它' && item['count']!=0)
                            })
-                            that.curMonthCountTop.list = that.formatterWinData(pro_count_list,'count')
+                           if(pro_count_list && pro_count_list.length > 0){
                             that.isShow.show_7 = true;
+                          } else {
+                            that.isShow.show_7 = false
+                          }
+                          that.curMonthCountTop.list = that.formatterWinData(pro_count_list,'count')
+                            
                         } else {
                             that.isShow.show_7 = false;
                         }
@@ -464,8 +469,12 @@ var vNode = {
                             var pro_bidamount_list = data.filter(function (item, index) {
                               return  (item['buyerclass'] != '其它' && item['bidamount']!=0) 
                              })
+                             if (pro_bidamount_list && pro_bidamount_list.length >0 ) {
+                              that.isShow.show_8 = true;
+                             } else {
+                              that.isShow.show_8 = false
+                             }
                             that.curMonthScaleTop.list = that.formatterWinData(pro_bidamount_list,'scale')
-                            that.isShow.show_8 = true;
                         } else {
                             that.isShow.show_8 = false;
                         }
@@ -475,8 +484,12 @@ var vNode = {
                             var pro_average_list = d.filter(function (item, index) {
                               return  (item['buyerclass'] != '其它' && item['average']!=0)
                              })
+                             if (pro_average_list && pro_average_list.length > 0) {
+                              that.isShow.show_9 = true;
+                             } else {
+                              that.isShow.show_9 = false
+                             }
                             that.averageScaleTop.list = that.formatterWinData(pro_average_list,'average')
-                            that.isShow.show_9 = true;
                         } else {
                             that.isShow.show_9 = false;
                         }

+ 3 - 3
src/web/templates/big-member/wx/page_report_detail_month.html

@@ -219,7 +219,7 @@
             <div v-if="curMonthCountTop.list.length > 5 && !curMonthCountTop.showAll">
                 <div class="more">
                     <!-- <span @click="curMonthCountTop.showAll = true">查看更多</span> -->
-                    <span @click="goTable('curMonthCountTop')">查看更多</span>
+                    <span @click="goTable('curMonthCountTop')">查看全部</span>
                 </div>
             </div>
         </div>
@@ -249,7 +249,7 @@
             <div v-if="curMonthScaleTop.list.length > 5 && !curMonthScaleTop.showAll">
                 <div class="more">
                     <!-- <span @click="curMonthScaleTop.showAll = true">查看更多</span> -->
-                    <span @click="goTable('curMonthScaleTop')">查看更多</span>
+                    <span @click="goTable('curMonthScaleTop')">查看全部</span>
                 </div>
             </div>
         </div>
@@ -279,7 +279,7 @@
             <div v-if="averageScaleTop.list.length > 5 && !averageScaleTop.showAll">
                 <div class="more">
                     <!-- <span @click="averageScaleTop.showAll = true">查看更多</span> -->
-                    <span @click="goTable('averageScaleTop')">查看更多</span>
+                    <span @click="goTable('averageScaleTop')">查看全部</span>
                 </div>
             </div>
         </div>