Sfoglia il codice sorgente

水文监测bug修改

bobo04052021@163.com 2 giorni fa
parent
commit
58ee4cf72f

+ 3 - 18
src/views/vent/monitorManager/alarmMonitor/warn/waterLevel.vue

@@ -33,22 +33,9 @@ import { getHydrology } from '../common.api';
 import { usePermission } from '/@/hooks/web/usePermission';
 import { useRouter } from 'vue-router';
 import { columns } from '../common.data';
-interface sensorInfo {
-  reserviorName: String;
-  damBodyId: String;
-  s: String;
-  t: String;
-  pointUnit: String;
-  pointName: String;
-  v: String;
-  pointTypeName: String;
-  dambodyName: String;
-  pointType: String;
-  propertyId: String;
-}
 const { hasPermission } = usePermission();
 const router = useRouter();
-const tableData = ref<sensorInfo[]>([]);
+const tableData = ref([]);
 
 //分页切换
 const pageChange = (val) => {
@@ -73,10 +60,8 @@ async function getListData() {
     pageSize: pagination.pageSize,
   };
   const res = await getHydrology({ ...params });
-  if (res.success) {
-    tableData.value = res.data;
-    pagination.total = res.count;
-  }
+  tableData.value = res.data;
+  pagination.total = res.count;
 }
 onMounted(() => {
   getListData();