From 275ba221572abc6b58a4e748dbbf8c4591ad60e1 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Tue, 16 Sep 2025 09:41:15 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=80=BB=E8=BF=9B=E5=BA=A6=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=AF=BC=E5=85=A5=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 +-- .../constructionSchedulePlan/types.ts | 1 + .../constructionSchedulePlan/index.vue | 43 +++++++++++++------ 3 files changed, 33 insertions(+), 17 deletions(-) diff --git a/.env.development b/.env.development index c17e50e..54a314d 100644 --- a/.env.development +++ b/.env.development @@ -9,13 +9,13 @@ VITE_APP_ENV = 'development' # 李陈杰 209 # VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 李陈杰 209 -# VITE_APP_BASE_API = 'http://192.168.110.209:8899' + VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' +# VITE_APP_BASE_API = 'http://192.168.110.149:8899' # 罗成 # VITE_APP_BASE_API = 'http://192.168.110.188:8899' # 朱银 -VITE_APP_BASE_API = 'http://192.168.110.149:8899' +# VITE_APP_BASE_API = 'http://192.168.110.149:8899' #曾涛 # VITE_APP_BASE_API = 'http://192.168.110.171:8899' # 屈展航 diff --git a/src/api/progress/constructionSchedulePlan/types.ts b/src/api/progress/constructionSchedulePlan/types.ts index a75768b..864ed67 100644 --- a/src/api/progress/constructionSchedulePlan/types.ts +++ b/src/api/progress/constructionSchedulePlan/types.ts @@ -66,6 +66,7 @@ export interface ConstructionSchedulePlanForm extends BaseEntity { */ id?: string | number; parentId?: string | number; + projectStructureName?: string; /** * 项目ID */ diff --git a/src/views/progress/constructionSchedulePlan/index.vue b/src/views/progress/constructionSchedulePlan/index.vue index d99a8fe..3d4f00a 100644 --- a/src/views/progress/constructionSchedulePlan/index.vue +++ b/src/views/progress/constructionSchedulePlan/index.vue @@ -27,6 +27,21 @@ 新增 + + + 导入 + + + + 导出 + 展开/折叠 @@ -126,22 +141,10 @@ - + - + @@ -221,6 +224,7 @@ const initFormData = { remark: undefined, projectStructureName: undefined }; +const file = ref(); const data = reactive>({ form: { ...initFormData }, @@ -279,6 +283,17 @@ const cancel = () => { dialog.visible = false; }; +const handleExport = async () => { + const ids = queryParams.value.projectId; + proxy?.download('/progress/constructionSchedulePlan/exportTemplate/' + ids, {}, `施工里程碑计划模版.xlsx`, true); +}; + +const handleSuccess = () => { + console.log(111); + proxy.$modal.msgSuccess('操作成功'); + getList(); +}; + // 表单重置 const reset = () => { form.value = { ...initFormData }; From 72b8f7162f14ffd058d8f197f84efc7b0c214e21 Mon Sep 17 00:00:00 2001 From: tcy <1193318383@qq.com> Date: Tue, 16 Sep 2025 10:21:54 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix(safetyLog):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=97=A5=E5=BF=97=E9=A1=B5=E9=9D=A2=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=96=87=E5=AD=97=E9=94=99=E8=AF=AF=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(safetyLog): 在安全日志详情中添加文件预览功能 新增PDF和图片文件的预览功能,优化文件展示样式 style(documentSafetyMeeting): 调整文件管理页面代码格式 统一代码缩进和换行格式,提升代码可读性 --- .../safety/documentSafetyMeeting/index.vue | 77 +++++++++++-------- .../component/SafetyLogDetailDialog.vue | 48 ++++++++++-- src/views/safety/safetyLog/index.vue | 5 +- 3 files changed, 87 insertions(+), 43 deletions(-) diff --git a/src/views/safety/documentSafetyMeeting/index.vue b/src/views/safety/documentSafetyMeeting/index.vue index a3cb462..a54ea91 100644 --- a/src/views/safety/documentSafetyMeeting/index.vue +++ b/src/views/safety/documentSafetyMeeting/index.vue @@ -2,12 +2,12 @@ - 新建文件夹 - 上传文件 + + + 新建文件夹 + + + 上传文件 @@ -18,16 +18,19 @@ - 批量操作 + + + 批量操作 - 取消操作 + + + 取消操作 - 删除 + + + 删除 @@ -40,17 +43,9 @@ - + {{ item.fileName }} @@ -104,7 +99,7 @@ export default defineComponent({ const { proxy } = getCurrentInstance(); const RecyclingStationRef = ref(); // 字典选项数据 - const {} = proxy.useDict(); + const { } = proxy.useDict(); // 文件下载 const onExport = (event) => { event.stopPropagation(); @@ -242,7 +237,7 @@ export default defineComponent({ } }); }) - .catch(() => {}); + .catch(() => { }); } else { // 竣工图 proxy.mittBus.emit('bigUploader.uploadFile', { type: 100, types: 1010, accept: [] }); @@ -295,7 +290,7 @@ export default defineComponent({ } }); }) - .catch(() => {}); + .catch(() => { }); }; const handleClick = (val) => { if (state.activeName == 'second') { @@ -356,7 +351,7 @@ export default defineComponent({ } }); }) - .catch(() => {}); + .catch(() => { }); }; // 批量删除 const onDeleteAll = () => { @@ -420,23 +415,28 @@ export default defineComponent({ align-items: center; width: 100%; padding-right: 10px; + .tool-All { display: flex; align-items: center; - > div { + + >div { display: flex; align-items: center; } } + .batch { width: 24px; } } + .file_detail { position: relative; width: 100%; height: 66vh; overflow: auto; + .right_box { position: absolute; z-index: 999; @@ -448,7 +448,8 @@ export default defineComponent({ display: none; border-radius: 6px; padding: 14px 4px; - > div { + + >div { font-size: 16px; font-weight: bold; color: #fff; @@ -457,10 +458,12 @@ export default defineComponent({ font-family: revert; border-radius: 5px; } - > div:hover { + + >div:hover { background-color: rgb(0 0 0 / 80%); } } + .file_style { // height: 100px; width: 90px; @@ -472,22 +475,26 @@ export default defineComponent({ animation: 0.5s ease; position: relative; margin-bottom: 10px; - > div { + + >div { width: 100%; // height: 70%; height: 80px; - > img { + + >img { width: 100%; height: 100%; } } + .checkbox-box { position: absolute; top: -8px; left: 60px; z-index: 1000; } - > span { + + >span { font-size: 12px; width: 100%; display: block; @@ -498,10 +505,12 @@ export default defineComponent({ word-wrap: break-word; } } + .file_style:hover { background-color: rgba(189, 189, 189, 0.322); border-radius: 5px; } + .fileActive { display: block; top: 0; @@ -515,9 +524,11 @@ export default defineComponent({ } } } + .colBlock { display: block; } + .colNone { display: none; } diff --git a/src/views/safety/safetyLog/component/SafetyLogDetailDialog.vue b/src/views/safety/safetyLog/component/SafetyLogDetailDialog.vue index ad971b4..2d57f1e 100644 --- a/src/views/safety/safetyLog/component/SafetyLogDetailDialog.vue +++ b/src/views/safety/safetyLog/component/SafetyLogDetailDialog.vue @@ -6,8 +6,10 @@ 记录时间:{{ safetyLogDetail?.createTime }} - {{ currentProject?.name }} - {{ safetyLogDetail?.dateOfOccurrence }} + {{ currentProject?.name }} + + {{ safetyLogDetail?.dateOfOccurrence }} + 最高:{{ safetyLogDetail?.airTemperatureMax }}(℃) 最低:{{ safetyLogDetail?.airTemperatureMin }}(℃) @@ -36,20 +38,44 @@ {{ safetyLogDetail?.safetyInspectionCondition }} - {{ safetyLogDetail?.stoppageOrOvertime }} + {{ safetyLogDetail?.stoppageOrOvertime }} + {{ safetyLogDetail?.otherCondition }} - - {{ item.originalName }} - + + + {{ item.originalName }} + + + + + + + + {{ item.originalName }} + + + + + - {{ safetyLogDetail?.remark }} + {{ safetyLogDetail?.remark }} + + + + + + + +