Ver código fonte

修改快照图表

zhangjiaqi 4 anos atrás
pai
commit
2205c68882

+ 5 - 1
src/views/evaluate/evCard.vue

@@ -72,7 +72,7 @@
                 </div>
             </div>
             <div class='view-dialog'>
-                <el-dialog title='策略推出时状况' :visible.sync='viewSnapshots' :close-on-click-modal='false' width='1260px' :key="time">
+                <el-dialog title='策略推出时状况' :visible.sync='viewSnapshots' :close-on-click-modal='false' width='100%' :key="time">
                     <ev-snapshots-dialog v-if='date && time' :appDate='date' :time='time'></ev-snapshots-dialog>
                 </el-dialog>
             </div>
@@ -317,4 +317,8 @@ export default {
         padding-top: 0;
     }
 }
+.el-dialog{
+    margin: 0px !important;
+    width: 100%;
+}
 </style>

+ 5 - 4
src/views/evaluate/evSnapshotsDialog.vue

@@ -147,7 +147,8 @@
             </div>
         </div>
         <div class='snapshotss-foot'>
-            <strategy-line :chillerList='chillerHourList' v-if='chillerHourList.length>=0'></strategy-line>
+            <!-- <strategy-line :chillerList='chillerHourList' v-if='chillerHourList.length>=0'></strategy-line> -->
+            <iframe :src="`http://10.199.143.85:9910/SmartCoolControlFrontend/pcProjectPlot?isfromsgy=true&projectId=${store.state.projectId}&startFrom=${appDate}`" frameborder="0" style="width:100%"></iframe>
         </div>
     </div>
 </template>
@@ -156,7 +157,7 @@ import echarts from 'echarts'
 import { queryQuickData } from '@/api/strategy/strategy.js'
 import strategyLine from '@/components/strategyLine'
 import { formatterRes } from '@/utils/moment.js'
-
+import store from '@/store'
 export default {
     props: ['appDate', 'time'],
     data() {
@@ -190,7 +191,7 @@ export default {
             queryQuickData(params).then(res => {
                 this.chillerOrg = res.chillerOrg || {}
                 this.chillerCommand = res.chillerOrg || {}
-                this.chillerHourList = res.chillerHourList || []
+                // this.chillerHourList = res.chillerHourList || []
             })
         }
     }
@@ -374,7 +375,7 @@ export default {
     }
     .snapshotss-foot {
         padding-bottom: 20px;
-        height: 280px;
+        height: 800px;
         display: flex;
         justify-content: space-between;
     }