Explorar el Código

驾驶舱模块功率复核部分组件传值新增传入max

yangxiao hace 3 años
padre
commit
1e5a82d526
Se han modificado 2 ficheros con 9 adiciones y 5 borrados
  1. 8 4
      src/views/Home/Home.vue
  2. 1 1
      src/views/Home/components/power-review.vue

+ 8 - 4
src/views/Home/Home.vue

@@ -625,28 +625,32 @@ export default {
             dialogTitle: "风速详情",
             subUrl: "genreset/findGLDetail",
             targetName: "ssfs",
-            dialogType: "powerLineChart"
+            dialogType: "powerLineChart",
+            max: res.data.jczbmap.zjts
           }, {
             title: "保证功率",
             value: res.data.jczbmap.bzgl,
             dialogTitle: "保证功率详情",
             subUrl: "genreset/findGLDetail",
             targetName: "bzgl",
-            dialogType: "powerLineChart"
+            dialogType: "powerLineChart",
+            max: res.data.jczbmap.zjts
           }, {
             title: "应发功率",
             value: res.data.jczbmap.yfgl,
             dialogTitle: "应发功率详情",
             subUrl: "genreset/findGLDetail",
             targetName: "yfgl",
-            dialogType: "powerLineChart"
+            dialogType: "powerLineChart",
+            max: res.data.jczbmap.zjts
           }, {
             title: "实际功率",
             value: res.data.jczbmap.sjgl,
             dialogTitle: "实际功率详情",
             subUrl: "genreset/findGLDetail",
             targetName: "sjgl",
-            dialogType: "powerLineChart"
+            dialogType: "powerLineChart",
+            max: res.data.jczbmap.zjts
           }];
 
           that.DayPower = DayPower;

+ 1 - 1
src/views/Home/components/power-review.vue

@@ -3,7 +3,7 @@
     <Row type="flex" justify="center" :align="'middle'">
       <!-- 功率复核 PowerLoad -->
       <Col v-for="item in PowerLoad" :key="item" :span="6">
-        <dash-pie-chart :title="item.title" :value="item.value" height="9.722vh" @click="openDialog(item.dialogTitle, item.subUrl, item.targetName, item.dialogType)" />
+        <dash-pie-chart :title="item.title" :value="item.value" :max="item.max" height="9.722vh" @click="openDialog(item.dialogTitle, item.subUrl, item.targetName, item.dialogType)" />
       </Col>
     </Row>
   </div>