Преглед на файлове

提交公式成本统计切换提示报错信息的问题

Lijy преди 10 месеца
родител
ревизия
7ccfae65c3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      fhKeeper/formulahousekeeper/timesheet/src/views/project/cost.vue

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/project/cost.vue

@@ -716,7 +716,7 @@
                                         if(!name) {
                                             return ''
                                         }
-                                        const unit = yAxisValue == 0 ? this.$t('yuan') : this.$t('time.hour');
+                                        const unit = yAxisValue == 0 ? _this.$t('yuan') : _this.$t('time.hour');
                                         console.log(nameObj, name, nameObj[name], params)
                                         const totalValue = yAxisValue == 0 ? nameObj[name].moneyTol : nameObj[name].timeTol;
                                         return seriesName === cerName ? `${totalValue ? totalValue.toFixed(0) : 0} ${unit}` : '';