|
@@ -33,22 +33,9 @@ import { getHydrology } from '../common.api';
|
|
import { usePermission } from '/@/hooks/web/usePermission';
|
|
import { usePermission } from '/@/hooks/web/usePermission';
|
|
import { useRouter } from 'vue-router';
|
|
import { useRouter } from 'vue-router';
|
|
import { columns } from '../common.data';
|
|
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 { hasPermission } = usePermission();
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
-const tableData = ref<sensorInfo[]>([]);
|
|
|
|
|
|
+const tableData = ref([]);
|
|
|
|
|
|
//分页切换
|
|
//分页切换
|
|
const pageChange = (val) => {
|
|
const pageChange = (val) => {
|
|
@@ -73,10 +60,8 @@ async function getListData() {
|
|
pageSize: pagination.pageSize,
|
|
pageSize: pagination.pageSize,
|
|
};
|
|
};
|
|
const res = await getHydrology({ ...params });
|
|
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(() => {
|
|
onMounted(() => {
|
|
getListData();
|
|
getListData();
|