Procházet zdrojové kódy

fix: 企业情报监控调整

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe před 6 měsíci
rodič
revize
05bce97537

+ 9 - 7
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/ent_follow.js

@@ -18,7 +18,7 @@ var vNode = {
             pageNum: 0,
             pageSize: 50,
             scrollTop: 0,
-            total: 0
+            count: 0
         },
         entFollowList: [],
         loading: '',
@@ -31,7 +31,7 @@ var vNode = {
         if (!recover) {
             this.getPowerInfo()
         }
-
+        this.getEntGroupList()
     },
     mounted: function () {
         $(this.$refs.jList).scrollTop(this.listInfo.scrollTop)
@@ -117,9 +117,8 @@ var vNode = {
                             if (res.data.followMax) {
                                 _this.conf.maxLength = res.data.followMax
                             }
-                            if(res.data.total) {
-                              _this.listInfo.total = res.data.total
-                              _this.getEntGroupList()
+                            if(res.data.count) {
+                              _this.listInfo.count = res.data.count
                             }
 
                             // 列表赋值
@@ -156,7 +155,7 @@ var vNode = {
         // 设置企业分组数据
         setEntGroupData (data) {
           data.unshift({
-            count: this.listInfo.total,
+            count: this.listInfo.count,
             id: "",
             isPut: 0,
             name: "全部"
@@ -168,8 +167,11 @@ var vNode = {
           this.groupingList = data
         },
         changeGrouping: function (item) {
-          if (!item.count) return
           const isAll = item.name === '全部'
+          if(isAll) {
+            item.count = this.listInfo.count
+          }
+          if (!item.count) return
           if(item.active) {
             if(isAll) {
               this.selectGroupList = []

+ 1 - 1
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/ent_portrait.js

@@ -980,7 +980,7 @@ var vNode = {
           const monitorEntNum = surplus + used  // 可监控企业总数
           let limit = this.powerInfo.memberStatus > 0 || this.powerInfo.entniche
           // 1.超出可监控企业数量
-          if (used <= 0) {
+          if (surplus <= 0) {
             // 大会员或商机管理用户
             if (limit) {
               this.$dialog({

+ 2 - 1
src/jfw/modules/app/src/web/templates/big-member/page_ent_follow.html

@@ -39,7 +39,8 @@
                         <div class="grouping-list">
                             <div class="grouping-item" :class="{'active': item.active, 'disabled': !item.count && item.isPut}" v-for="(item, index) in groupingList" :key="index" @click="changeGrouping(item)">
                                 <span class="grouping-item-name">${ item.name }</span>
-                                <span class="grouping-item-count">${ item.count }</span>
+                                <span v-if="item.name === '全部'" class="grouping-item-count">${ listInfo.count }</span>
+                                <span v-else class="grouping-item-count">${ item.count }</span>
                             </div>
                         </div>
                         <div class="grouping-footer" @click="groupManage()">