소스 검색

时间选择器

Maxx 1 년 전
부모
커밋
05b9cf9ec1
2개의 변경된 파일21개의 추가작업 그리고 7개의 파일을 삭제
  1. 12 2
      src/views/cockpitNew1/stxf.vue
  2. 9 5
      src/views/viewer.vue

+ 12 - 2
src/views/cockpitNew1/stxf.vue

@@ -60,8 +60,18 @@ export default {
       this.$nextTick(() => {
         this.$refs.echartRef.setOptions(v);
       });
-      // let option = this.options3d(v);
-      // myChart.setOption(option);
+      // this.GetQueryListztsh(datas)
+      // this.GetQueryListztsh(datas)
+    },
+    GetQueryListztsh(datas) {
+      let params = {
+        ...datas,
+        jscType: "jsc_wpjc_ztsh",
+        id: 46
+      };
+      QueryList(params).then(res => {
+        // this.sdata = res.data && res.data.length > 0 ? res.data[0] : {};
+      });
     },
     GetQueryListztsh(datas) {
       let params = {

+ 9 - 5
src/views/viewer.vue

@@ -1,14 +1,14 @@
 <template>
     <div v-show="flag">
-        <datePicker @deteChange="deteChange"></datePicker>
+        <datePicker @dateChange="dateChange"></datePicker>
         <ser-center></ser-center>
         <JSYD />
         <TDSC />
         <HYSY ref="hysy_ref" />
         <TDSY />
-        <GDBH />
-        <STXF />
-        <WPJG />
+        <GDBH ref="gdbh_ref"/>
+        <STXF ref="stxf_ref"/>
+        <WPJG ref="wpjg_ref"/>
     </div>
 </template>
 
@@ -46,7 +46,11 @@ export default {
         switch() {
             this.flag = !this.flag;
         },
-        deteChange(date) {
+        dateChange(date) {
+            let params = { beginTime: date[0], endTime: date[1] };
+            this.$refs.gdbh_ref.setData(params);
+            this.$refs.stxf_ref.setData(params);
+            this.$refs.wpjg_ref.setData(params);
 
         },
         async hysyq(address) {