diff --git a/.env.development b/.env.development index e5ac055..26d386d 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VITE_APP_TITLE = 新能源项目管理平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.2:8899' +VITE_APP_BASE_API = 'http://192.168.110.6:8899' # 应用访问路径 例如使用前缀 /admin/ VITE_APP_CONTEXT_PATH = '/' diff --git a/src/api/safety/safetyInspection/types.ts b/src/api/safety/safetyInspection/types.ts index 2400920..8552f79 100644 --- a/src/api/safety/safetyInspection/types.ts +++ b/src/api/safety/safetyInspection/types.ts @@ -49,6 +49,11 @@ export interface SafetyInspectionVO { */ correctorName: string; + /** + * 整改期限 + */ + rectificationDeadline: string; + /** * 是否回复(1回复 2不回复) */ @@ -171,6 +176,11 @@ export interface SafetyInspectionForm extends BaseEntity { */ correctorId?: string | number; + /** + * 整改期限 + */ + rectificationDeadline: string; + /** * 是否回复(1回复 2不回复) */ diff --git a/src/views/safety/safetyInspection/component/SafetyInspectionDetailDialog.vue b/src/views/safety/safetyInspection/component/SafetyInspectionDetailDialog.vue index d9f4810..aa8dacb 100644 --- a/src/views/safety/safetyInspection/component/SafetyInspectionDetailDialog.vue +++ b/src/views/safety/safetyInspection/component/SafetyInspectionDetailDialog.vue @@ -16,7 +16,9 @@ {{ safetyInspectionDetail?.checkTime }} {{ safetyInspectionDetail?.creatorName }} {{ safetyInspectionDetail?.correctorName }} - {{ safetyInspectionDetail?.rectificationTime }} + + {{ dayjs(safetyInspectionDetail?.rectificationDeadline).format('YYYY 年 MM 月 DD 日') }} +
巡检结果
@@ -78,6 +80,7 @@ import { SafetyInspectionVO } from '@/api/safety/safetyInspection/types'; import { getSafetyInspection } from '@/api/safety/safetyInspection'; import { listByIds } from '@/api/system/oss'; import { OssVO } from '@/api/system/oss/types'; +import dayjs from 'dayjs'; interface Props { safetyInspectionId?: string | number; @@ -121,6 +124,8 @@ watch( () => props.safetyInspectionId, (newId, oldId) => { if (newId !== oldId) { + checkFileList.value = undefined; + rectificationFileList.value = undefined; get(); } } diff --git a/src/views/safety/safetyInspection/index.vue b/src/views/safety/safetyInspection/index.vue index aaa484b..1a5d85d 100644 --- a/src/views/safety/safetyInspection/index.vue +++ b/src/views/safety/safetyInspection/index.vue @@ -14,21 +14,11 @@ - - - - - - - - - - 搜索 重置 @@ -82,21 +72,15 @@ - - - - - +