Pārlūkot izejas kodu

个人数据增加name展示

liubei@c-top.com.cn 3 gadi atpakaļ
vecāks
revīzija
0661e46564

+ 5 - 0
src/views/modules/stockWatch/modules/new-keepManage/account-newkeepManage.vue

@@ -193,6 +193,10 @@
 
 
                 </span>
+                <span slot="activationPrice" slot-scope="text">
+                    <span v-if="text">{{text}}</span>
+                    <span v-else>0</span>
+                </span>
                 <!-- <span slot="unitvideoUrl" slot-scope="text, record">
                     <video class="video" :src="text" controls="controls" style="height:200px">
                         您的浏览器不支持 video 标签。
@@ -466,6 +470,7 @@
                         key: 'activationPrice',
                         align: 'center',
                         sorter: (a, b) => a.activationPrice - b.activationPrice,
+                        scopedSlots: { customRender: 'activationPrice' },
                     },
                     {
                         title: '上线时间',

+ 8 - 1
src/views/modules/stockWatch/modules/new-keepManage/personal-keepManage.vue

@@ -40,7 +40,7 @@
             <a-col :sm="6" :md="6" :xl="6"  class="keep-manage-col">
                 <a-card  class="card-content">
                     <div slot="title">
-                        <span style="font-weight: bolder;">运营个人数据</span> 
+                        <span style="font-weight: bolder;">运营个人数据</span><span>({{userName}})</span>
                     </div>
                     <div style="width: 100%;height: 315px;">
                         <ul class="group-keep-ul">
@@ -296,6 +296,7 @@
                 userRankTotalNum:'',
                 userIdRank:'',
                 monthCost:'',
+                userName:'',
             }
         },
         filters:{
@@ -386,6 +387,11 @@
                         }else{
                             this.monthCost = '暂无数据'
                         }
+                        if(res.result.userName){
+                            this.userName = res.result.userName
+                        }else{
+                            this.userName = '暂无数据'
+                        }
                     }
                 })
             },
@@ -783,6 +789,7 @@
                     this.yestadyNum = 2
                 }
                 this.getQueryNewlyData();
+                this.personalData();
             },
                //获取echart的值
             initEchart(idName, optionName) {