Przeglądaj źródła

盯盘经理页修改

朱鑫波 4 lat temu
rodzic
commit
7bf514775c

+ 14 - 8
src/views/modules/stockWatch/modules/keep-manage/keep-manage.vue

@@ -24,6 +24,9 @@
                                 </span>
                             </div>
                         </div>
+                        <div style="float:right;margin:10px">
+                            更新时间:{{updateAccountEchart||'-'}}
+                        </div>
                         <div class="accountIndexEchart" id="accountIndexEchart" ref="accountIndexEchart" :style="{ width: (clientWidth / 24) * 18 - 48 - 24 + 'px' }">
                             <a-empty  />
                         </div>
@@ -42,12 +45,12 @@
                             </span>
                             <span class="left-title-radio" v-if="personData && personData.grew < 0">
                                 <img class="title-radio-img" src="@/assets/up.png" alt="">
-                                {{ personData.grew ? personData.grew + '%' : '-' }}
+                                {{  personData.grew + '%'  }}
                             </span>
                             <!-- TODO 这个是下降的样式,后续优化  -->
                             <span class="left-title-radio-down" v-else-if="personData && personData.grew >= 0">
                                 <img class="title-radio-img" src="@/assets/down.png" alt="">
-                                {{personData.grew ? personData.grew + '%':'-'}}
+                                {{ personData.grew + '%' }}
                             </span>
                             <a-tooltip class="">
                                 <template slot="title">
@@ -60,19 +63,19 @@
                         <div class="header-left-title-else">
                             <span class="title-label">账户数:</span>
                             <span>
-                                {{ personData.accouuntCount ? personData.accouuntCount : '-' }}
+                                {{ personData.accouuntCount }}
                             </span>
                         </div>
                         <div class="header-left-title-else">
                             <span class="title-label">本周消耗:</span>
                             <span>
-                                {{ personData.weekCharge ? personData.weekCharge : '-' }}
+                                {{ personData.weekCharge }}
                             </span>
                         </div>
                         <div class="header-left-title-else">
                             <span class="title-label">上周消耗:</span>
                             <span>
-                                {{ personData.lweekCharge ? personData.lweekCharge : '-' }}
+                                {{ personData.lweekCharge }}
                             </span>
                         </div>
                         <div class="header-left-title-else">
@@ -80,12 +83,12 @@
                                 周消耗环比:
                             </span>
                             <span class="left-title-radio" v-if="personData && personData.grew < 0">
-                                {{ personData.weekGrew ? personData.weekGrew + '%' : '-' }}
+                                {{ personData.weekGrew + '%'  }}
                                 <img class="title-radio-img" src="@/assets/up.png" alt="">
                             </span>
                             <!-- TODO 这个是下降的样式,后续优化  -->
                             <span class="left-title-radio-down" v-else-if="personData && personData.grew >= 0">
-                                {{personData.grew ? personData.grew + '%':'-'}}
+                                {{ personData.grew + '%' }}
                                 <img class="title-radio-img" src="@/assets/down.png" alt="">
                             </span>
                         </div>
@@ -331,6 +334,7 @@ export default {
             target: 'cost',
             order: 'descend',
             clientWidth: 0,
+            updateAccountEchart: null,
             ipagination: {
                 current: 1,
                 pageSize: 10,
@@ -523,6 +527,7 @@ export default {
                 this.columnsFixd = keepPersonData.setNoDeleteProjectColumns();
             }
             this.showChange = true;
+            this.showColumn();
             this.getPersonList();
         },
 
@@ -628,7 +633,8 @@ export default {
             params.endTime = this.dateEchart.length === 2 ? moment(this.dateEchart[1]).format('YYYY-MM-DD') : null;
             this.postDataAction('/etl/reportAccountHourly/queryNewlyData',params).then(res => {
                 if(res.success){
-                    this.initEchart('accountIndexEchart',this.initAccountIndexEchart(res.result))
+                    this.initEchart('accountIndexEchart',this.initAccountIndexEchart(res.result.data))
+                    this.updateAccountEchart = res.result.updateTime
                 }
             }).catch(error => {
                 console.log(error)