diff --git a/package.json b/package.json index 11506a6..4f81fce 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "mitt": "^3.0.1", "path": "^0.12.7", "prettier": "^3.1.0", + "qs": "^6.11.2", "vue": "^3.3.4", "vue-router": "^4.2.5", "vue3-seamless-scroll": "^2.0.1" diff --git a/src/api/request.ts b/src/api/request.ts index 58390ed..0360c96 100644 --- a/src/api/request.ts +++ b/src/api/request.ts @@ -1,5 +1,4 @@ import axios from 'axios'; -import requestURL from './url'; import { getAppEnvConfig } from '../utils/env.ts'; const { VITE_GLOB_API_URL } = getAppEnvConfig(); @@ -29,4 +28,15 @@ export const get = (url, params) => { reject(err.data); }); }); -}; \ No newline at end of file +}; +export const post = (url: string, params: any) => + new Promise((resolve, reject) => { + service + .post(url, params) + .then((res: any) => { + resolve(res.data); + }) + .catch((err: any) => { + reject(err); + }); + }); \ No newline at end of file diff --git a/src/components/body-d-left/bodyLeftHooks.ts b/src/components/body-d-left/bodyLeftHooks.ts index eb9f132..b3a0649 100644 --- a/src/components/body-d-left/bodyLeftHooks.ts +++ b/src/components/body-d-left/bodyLeftHooks.ts @@ -30,7 +30,6 @@ export function useStatistics() { const { key } = item; item.value = data[key]; }); - console.log('fffffff', statistics.value); } return { diff --git a/src/components/body-d-left/oneL.vue b/src/components/body-d-left/oneL.vue index af9cc6d..4fd57cb 100644 --- a/src/components/body-d-left/oneL.vue +++ b/src/components/body-d-left/oneL.vue @@ -23,6 +23,7 @@ + \ No newline at end of file diff --git a/src/views/index.api.ts b/src/views/index.api.ts new file mode 100644 index 0000000..f864e36 --- /dev/null +++ b/src/views/index.api.ts @@ -0,0 +1,8 @@ +import { get } from '/@/api/request'; + +export enum Api { + deleteWatchNo = 'health-watch/watch/watchMonitorData/delete', +} + +//获取全部部门 +export const deleteWatchNo = (params: any) => get(Api.deleteWatchNo, params); \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index 00d655f..df30f7a 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -23,10 +23,11 @@
+