zxh vor 1 Jahr
Ursprung
Commit
63d9ded11c
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/views/spectrum/common/historyCurve/index.vue

+ 2 - 2
src/views/spectrum/common/historyCurve/index.vue

@@ -117,7 +117,7 @@ export default {
       pickerOptions: {
         shortcuts: [
           {
-            text: '昨天',
+            text: '近24小时',
             onClick(picker) {
               const start = new Date()
               const end = new Date()
@@ -585,7 +585,7 @@ export default {
       let legends = []
       seriesList.forEach((item) => {
         const siteInfo = item.type == 'X1' ? this.getDivice(this.form.siteId[1]) : this.getDivice(this.form.siteId2[1])
-        const siteName = siteInfo.site.siteName || '未知站点'
+        const siteName = (item.type == 'X1' ? siteInfo.site.siteName : `${siteInfo.site.siteName}(对比)`) || '未知站点'
         legends.push(siteName)
         series.push({
           name: siteName,