diff --git a/src/api/airqualitycollection/index.ts b/src/api/airqualitycollection/index.ts new file mode 100644 index 0000000..2935677 --- /dev/null +++ b/src/api/airqualitycollection/index.ts @@ -0,0 +1,52 @@ +import request from '@/config/axios' + +// 空气质量采集 VO +export interface QualityCollectionVO { + id: number // 主键 + siteName: string // 站点名称 + city: string // 城市 + type: number // 数据类型 + pm25: number // PM2.s(ugim3) + pm10: number // PMo(ug/m3 + so2: number // sOz(ug/m3) + no2: number // NOz(ug/m3) + no: number // NO(Hg/m3) + nOx: number // NOx(Hg/m3) + co: number // CO(mg/m3) + o3: number // 0з(ug/m3) + remark: string // 备用1 + remark2: string // 备用2 +} + +// 空气质量采集 API +export const QualityCollectionApi = { + // 查询空气质量采集分页 + getQualityCollectionPage: async (params: any) => { + return await request.get({ url: `/system/quality-collection/page`, params }) + }, + + // 查询空气质量采集详情 + getQualityCollection: async (id: number) => { + return await request.get({ url: `/system/quality-collection/get?id=` + id }) + }, + + // 新增空气质量采集 + createQualityCollection: async (data: QualityCollectionVO) => { + return await request.post({ url: `/system/quality-collection/create`, data }) + }, + + // 修改空气质量采集 + updateQualityCollection: async (data: QualityCollectionVO) => { + return await request.put({ url: `/system/quality-collection/update`, data }) + }, + + // 删除空气质量采集 + deleteQualityCollection: async (id: number) => { + return await request.delete({ url: `/system/quality-collection/delete?id=` + id }) + }, + + // 导出空气质量采集 Excel + exportQualityCollection: async (params) => { + return await request.download({ url: `/system/quality-collection/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/api/enterprises/index.ts b/src/api/enterprises/index.ts index 4ddd013..604e631 100644 --- a/src/api/enterprises/index.ts +++ b/src/api/enterprises/index.ts @@ -17,7 +17,8 @@ export interface EnterprisesVO { establishmentDate: Date // 企业成立时间 gpsLocation: string // 企业经纬度 signRadius:string//签到半径 - managerDeptId: number // 管理部门 + managerDeptId: number, // 管理部门 + tagList: any } // 企业 API diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index fa7d4fb..9e9a8b4 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -16,6 +16,7 @@ export interface UserVO { remark: string loginDate: Date createTime: Date + area: string } diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts index 618f14a..bfbf2f1 100644 --- a/src/config/axios/service.ts +++ b/src/config/axios/service.ts @@ -12,6 +12,7 @@ import { deleteUserCache } from '@/hooks/web/useCache' const tenantEnable = import.meta.env.VITE_APP_TENANT_ENABLE const { result_code, base_url, request_timeout } = config + // 需要忽略的提示。忽略后,自动 Promise.reject('error') const ignoreMsgs = [ '无效的刷新令牌', // 刷新令牌被删除时,不用提示 diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 7b23207..c8d323f 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -144,6 +144,7 @@ export enum DICT_TYPE { TASK_EXEC_TIME = 'task_exec_time', TASK_STATE = 'task_state', INSPECTIONS_STATUS = 'Inspections_status', + AIR_COLLECTION_TYPE = 'air_collection_type', // ========== INFRA 模块 ========== INFRA_BOOLEAN_STRING = 'infra_boolean_string', INFRA_JOB_STATUS = 'infra_job_status', diff --git a/src/views/airqualitycollection/QualityCollectionForm.vue b/src/views/airqualitycollection/QualityCollectionForm.vue new file mode 100644 index 0000000..b53ac2a --- /dev/null +++ b/src/views/airqualitycollection/QualityCollectionForm.vue @@ -0,0 +1,159 @@ + + \ No newline at end of file diff --git a/src/views/airqualitycollection/index.vue b/src/views/airqualitycollection/index.vue new file mode 100644 index 0000000..d09af9d --- /dev/null +++ b/src/views/airqualitycollection/index.vue @@ -0,0 +1,259 @@ + + + + \ No newline at end of file diff --git a/src/views/enterpriseinspections/index.vue b/src/views/enterpriseinspections/index.vue index 0204ffb..fde4a14 100644 --- a/src/views/enterpriseinspections/index.vue +++ b/src/views/enterpriseinspections/index.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/task/create copy.vue b/src/views/task/create copy.vue index bdbcce0..6833895 100644 --- a/src/views/task/create copy.vue +++ b/src/views/task/create copy.vue @@ -14,8 +14,8 @@ format="YYYY年MM月DD日" range-separator="至" size="large" - start-placeholder="选择任务计划开始时间" - end-placeholder="选择任务计划结束时间" + start-placeholder="选择开始时间" + end-placeholder="选择结束时间" value-format="YYYY-MM-DD" /> @@ -24,23 +24,22 @@ type="textarea" v-model="formData.description" :autosize="{ - minRows: 4 + minRows: 5 }" placeholder="请输入描述" /> - + + + - + - + @@ -149,10 +148,10 @@ /> - - 搜索 + + 查询 - + 重置 @@ -175,10 +174,7 @@ }" > @@ -264,8 +260,8 @@