Jelajahi Sumber

代码提交

cxs 1 bulan lalu
induk
melakukan
b09c51ee7f
1 mengubah file dengan 17 tambahan dan 1 penghapusan
  1. 17 1
      src/views/query/queryObservationData/index.vue

+ 17 - 1
src/views/query/queryObservationData/index.vue

@@ -6,7 +6,7 @@
         <div class="header-button-lf">
           <el-form :model="pageable" label-width="auto" :inline="true">
             <el-form-item label="自动站:">
-              <el-checkbox v-model="isStand" label="多站"/>
+              <el-checkbox v-model="isStand" @change="changeStand" label="多站"/>
 
               <!--多站选择-->
               <el-select v-if="isStand" v-model="pageable.as_code_list"  multiple collapse-tags   filterable placeholder="请搜索自动站" remote reserve-keyword clearable  style="width: 200px;margin: 0 10px">
@@ -282,6 +282,21 @@ const dialog = reactive<any>({
   title: ''
 });
 
+const changeStand=()=>{
+  pageable.value = {
+    data_type: false,
+    time_order: 0,
+    time_space:60,
+    begin_time:undefined,
+    end_time: undefined,
+    as_code_list:[],
+    data_items:[],
+    pageNum: 1,
+    pageSize: 20,
+    total: 0
+  }
+  pageable.value.data_items = [...customizeColumns.value];
+}
 
 const cancel = () => {
   dialog.visible = false;
@@ -431,6 +446,7 @@ const resetQuery = () => {
     pageSize: 20,
     total: 0
   }
+  pageable.value.data_items = [...customizeColumns.value];
   getList();
 };