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] =?UTF-8?q?=E6=80=BB=E8=BF=9B=E5=BA=A6=E8=AE=A1=E5=88=92?= =?UTF-8?q?=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 };