Browse Source

单机饱和度模块完成

yangxiao 3 years ago
parent
commit
296e93af30
2 changed files with 6 additions and 6 deletions
  1. 4 2
      src/views/wtSaturability/index.vue
  2. 2 4
      src/views/wtSaturability/tab3.vue

+ 4 - 2
src/views/wtSaturability/index.vue

@@ -12,7 +12,7 @@
       <Tab2 />
     </div>
     <div class="curHeight" v-if="tabIndex == 2">
-      222
+      <Tab3 />
     </div>
   </div>
 </template>
@@ -20,6 +20,7 @@
 <script>
 import Tab1 from "./tab1.vue";
 import Tab2 from "./tab2.vue";
+import Tab3 from "./tab3.vue";
 export default {
   // 名称
   name: "wtSaturability",
@@ -27,7 +28,8 @@ export default {
   // 使用组件
   components: {
     Tab1,
-    Tab2
+    Tab2,
+    Tab3
   },
 
   // 数据

+ 2 - 4
src/views/wtSaturability/tab3.vue

@@ -184,8 +184,7 @@ export default {
         subUrl: "powersaturation/powersaturationlist",
         data: {
           wtId: that.wtId,
-          year: new Date(that.recorddate).getFullYear(),
-          month: (new Date(that.recorddate).getMonth() + 1)
+          recorddate: that.recorddate
         },
         success (res) {
           that.tableData.data = res.data.list;
@@ -202,8 +201,7 @@ export default {
         subUrl: "powersaturation/powersaturationchart",
         data: {
           wtId: that.wtId,
-          year: new Date(that.recorddate).getFullYear(),
-          month: (new Date(that.recorddate).getMonth() + 1)
+          recorddate: that.recorddate
         },
         success (res) {