Browse Source

fix: 企业列表无数据时不显示企业分组筛选

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 5 months ago
parent
commit
2a8e0ca78c

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

@@ -423,7 +423,6 @@ var vConfig = {
                   _this.selectedItem.follow = !_this.selectedItem.follow
                   // _this.getEntFollowState()
                   if(utils.$envs.inApp && JyObj.checkNoticePermission()!=1 && res.data.status){
-                    alert('1')
                     _this.$dialog({
                       width: 303,
                       className: 'monitor-dialog',
@@ -443,7 +442,6 @@ var vConfig = {
                     return
                   }
                   if(!res.data.msg_open && res.data.status){
-                    alert('2')
                     _this.$dialog({
                       width: 303,
                       className: 'monitor-dialog',
@@ -462,7 +460,6 @@ var vConfig = {
                     })
             
                   } else if(res.data.msg_open && res.data.status){
-                    alert('3')
                     _this.$toast({
                       duration: 2000,
                       message: '监控成功,您可前往“工作台-商机-企业情报监控”查看'

+ 1 - 1
src/jfw/modules/app/src/web/templates/followent/list.html

@@ -354,7 +354,7 @@ function receivePushMessageHandle(type,url){
             </a>
         </div>
         <div id="grouping-container" style="display: none;">
-          <van-collapse class="ent-grouping" v-model="activeNames" @change="setCollapseActive">
+          <van-collapse class="ent-grouping" v-if="listInfo.list && listInfo.list.length" v-model="activeNames" @change="setCollapseActive">
             <van-collapse-item title="企业分组" name="1">
               <div class="grouping-list">
                   <div class="grouping-item" :class="{'active': item.active, 'disabled': !item.count && item.isPut >= 0}" v-for="(item, index) in groupingList" :key="index" @click="changeGrouping(item)">

+ 1 - 0
src/web/staticres/common-module/mobile-portrayal-footer/css/mobile-portrayal-grouping.css

@@ -75,6 +75,7 @@
 }
 .mobile-portrayal-grouping .add-grouping-dialog .van-cell {
   padding: 0 .32rem .44rem .32rem;
+  height: auto;
 }
 .mobile-portrayal-grouping .add-grouping-dialog .van-cell .van-field__body {
   padding-bottom: .22rem;

+ 6 - 1
src/web/staticres/common-module/mobile-portrayal-footer/js/mobile-portrayal-grouping.js

@@ -42,7 +42,7 @@ var mobilePortrayalGrouping = `
       >
       </van-field>
       <div class="dialog-footer">
-        <van-button type="default" @click="showAddGroupingDialog = false">
+        <van-button type="default" @click="cancelGroupName">
           取消
         </van-button>
         <van-button
@@ -176,6 +176,11 @@ var mobilePortrayalGroupingScript = {
     },
     cancelGrouping () {
       this.$emit('cancel')
+    },
+    cancelGroupName () {
+      this.groupingName = ''
+      this.errorMessageText = ''
+      this.showAddGroupingDialog = false
     }
   }
 }