Browse Source

调整工时管家数据统计执行人分配echarts的tooltip显示异常问题

Lijy 1 year ago
parent
commit
b88846e2ae
1 changed files with 15 additions and 4 deletions
  1. 15 4
      fhKeeper/formulahousekeeper/timesheet/src/views/project/summary.vue

+ 15 - 4
fhKeeper/formulahousekeeper/timesheet/src/views/project/summary.vue

@@ -698,10 +698,21 @@ export default {
                 tooltip: {
                     trigger: 'axis',
                     formatter: function (params, ticket, callback) {
-                        var res = params[0].name + "" + " : " + params[0].data.value
-                            + (_this.sumListRadio == _this.$t('plantime') ? _this.$t('time.hour') : _this.$t('ge'));
-                        _this.params = params;
-                        return res;
+                        let res = ''
+                        if(_this.user.userNameNeedTranslate == 1) {
+                            res = params[0].data.value
+                                + (_this.sumListRadio == _this.$t('plantime') ? _this.$t('time.hour') : _this.$t('ge'));
+                            _this.params = params;
+                        } else {
+                            res = params[0].name + "" + " : " + params[0].data.value
+                                + (_this.sumListRadio == _this.$t('plantime') ? _this.$t('time.hour') : _this.$t('ge'));
+                            _this.params = params;
+                        }
+                        return res
+                        // var res = params[0].name + "" + " : " + params[0].data.value
+                        //     + (_this.sumListRadio == _this.$t('plantime') ? _this.$t('time.hour') : _this.$t('ge'));
+                        // _this.params = params;
+                        // return res;
                     }
                 },
                 xAxis: {