zxh 1 year ago
parent
commit
63d9ded11c
1 changed files with 2 additions and 2 deletions
  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: {
       pickerOptions: {
         shortcuts: [
         shortcuts: [
           {
           {
-            text: '昨天',
+            text: '近24小时',
             onClick(picker) {
             onClick(picker) {
               const start = new Date()
               const start = new Date()
               const end = new Date()
               const end = new Date()
@@ -585,7 +585,7 @@ export default {
       let legends = []
       let legends = []
       seriesList.forEach((item) => {
       seriesList.forEach((item) => {
         const siteInfo = item.type == 'X1' ? this.getDivice(this.form.siteId[1]) : this.getDivice(this.form.siteId2[1])
         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)
         legends.push(siteName)
         series.push({
         series.push({
           name: siteName,
           name: siteName,