添加忽略以及修改医院
This commit is contained in:
@@ -23,3 +23,6 @@ dist-ssr
|
|||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
/docs/
|
/docs/
|
||||||
|
auto-imports.d.ts
|
||||||
|
components.d.ts
|
||||||
|
pnpm-lock.yaml
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tsconfig/node22": "^22.0.2",
|
"@tsconfig/node22": "^22.0.2",
|
||||||
"@types/node": "^24.12.2",
|
"@types/node": "^24.12.2",
|
||||||
|
"@types/proj4": "^2.19.0",
|
||||||
"@vitejs/plugin-vue": "^6.0.5",
|
"@vitejs/plugin-vue": "^6.0.5",
|
||||||
"@vue/eslint-config-prettier": "^10.2.0",
|
"@vue/eslint-config-prettier": "^10.2.0",
|
||||||
"@vue/eslint-config-typescript": "^14.6.0",
|
"@vue/eslint-config-typescript": "^14.6.0",
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@ import type { DisasterType } from '@/types/common/DisasterType.ts'
|
|||||||
import { getSm2PublicKey } from './crypto'
|
import { getSm2PublicKey } from './crypto'
|
||||||
import { getBasePoins as getHiddenDangerBasePoints, getPointDetailById as getHiddenDangerPointDetailById} from './hidden-danger-spots'
|
import { getBasePoins as getHiddenDangerBasePoints, getPointDetailById as getHiddenDangerPointDetailById} from './hidden-danger-spots'
|
||||||
import { getBasePoins as getRiskBasePoints, getPointDetailById as getRiskPointDetailById} from './risk-spots'
|
import { getBasePoins as getRiskBasePoints, getPointDetailById as getRiskPointDetailById} from './risk-spots'
|
||||||
import { getBasePoins as getHospitalsBasePoints, getPointDetailById as getHospitalsPointDetailById} from './hospitals'
|
import { getBasePoints as getHospitalsBasePoints, getPointDetailById as getHospitalsPointDetailById} from './hospitals'
|
||||||
import { getBasePoints as getDangerousSourceBasePoints, getPointDetailById as getDangerousSourcePointDetailById} from './dangerous-source'
|
import { getBasePoints as getDangerousSourceBasePoints, getPointDetailById as getDangerousSourcePointDetailById} from './dangerous-source'
|
||||||
import { getBasePoints as getEmergencyShelterBasePoints, getPointDetailById as getEmergencyShelterPointDetailById} from './emergency-shelter'
|
import { getBasePoints as getEmergencyShelterBasePoints, getPointDetailById as getEmergencyShelterPointDetailById} from './emergency-shelter'
|
||||||
import { getBasePoints as getFirefighterBasePoints, getPointDetailById as getFirefighterPointDetailById} from './firefighter'
|
import { getBasePoints as getFirefighterBasePoints, getPointDetailById as getFirefighterPointDetailById} from './firefighter'
|
||||||
@@ -71,7 +71,7 @@ export const $api = {
|
|||||||
* 获取所有基础医院
|
* 获取所有基础医院
|
||||||
* @returns 医院数据数组
|
* @returns 医院数据数组
|
||||||
*/
|
*/
|
||||||
getBasePoins: (): Promise<ApiResponse<XianHospitals[]>> => getHospitalsBasePoints(),
|
getBasePoints: (): Promise<ApiResponse<XianHospitals[]>> => getHospitalsBasePoints(),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据id获取医院详情
|
* 根据id获取医院详情
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import httpInstance from "@/utils/request/http"
|
|||||||
* 获取医院基础数据
|
* 获取医院基础数据
|
||||||
* @returns 医院数据数组
|
* @returns 医院数据数组
|
||||||
*/
|
*/
|
||||||
export const getBasePoins = (): Promise<ApiResponse<XianHospitals[]>> => {
|
export const getBasePoints = (): Promise<ApiResponse<XianHospitals[]>> => {
|
||||||
return httpInstance.get('/hospitals/base-points')
|
return httpInstance.get('/hospitals/base-points')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
// 获取钩子函数
|
// 获取钩子函数
|
||||||
const { field, getDisasterIcon } = useHospitalPoint();
|
const { field, getDisasterIcon } = useHospitalPoint();
|
||||||
|
|
||||||
$api.hospitals.getBasePoins().then((res) => {
|
$api.hospitals.getBasePoints().then((res) => {
|
||||||
hospitalPoints.value = res.data;
|
hospitalPoints.value = res.data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user