From 9f2a2b7c175dbf248f7f17677732620b2bbaf284 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Wed, 4 Mar 2026 10:39:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(ccdiProject):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=80=89=E6=8B=A9=E5=A4=84=E7=90=86=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E5=B9=B6=E6=B8=85=E7=90=86=E5=BA=9F=E5=BC=83=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/ccdiProject/detail.vue | 62 +++++++---------------- 1 file changed, 18 insertions(+), 44 deletions(-) diff --git a/ruoyi-ui/src/views/ccdiProject/detail.vue b/ruoyi-ui/src/views/ccdiProject/detail.vue index 998b34e..cabb6da 100644 --- a/ruoyi-ui/src/views/ccdiProject/detail.vue +++ b/ruoyi-ui/src/views/ccdiProject/detail.vue @@ -171,26 +171,27 @@ export default { handleBack() { this.$router.push("/ccdiProject"); }, + /** 菜单选择事件 */ + handleMenuSelect(index) { + console.log("菜单选择:", index); + this.activeTab = index; + + // 组件映射 + const componentMap = { + upload: "UploadData", + config: "ParamConfig", + overview: "PreliminaryCheck", + special: "SpecialCheck", + detail: "DetailQuery", + }; + + this.currentComponent = componentMap[index] || "UploadData"; + }, /** UploadData 组件:菜单切换 */ handleMenuChange({ key, route }) { console.log("切换到菜单:", key, route); - // 根据不同的菜单项跳转到不同的组件或页面 - switch (route) { - case "config": - this.$message.info("参数配置功能开发中"); - break; - case "overview": - this.$message.info("结果总览功能开发中"); - break; - case "special": - this.$message.info("专项排查功能开发中"); - break; - case "detail": - this.$message.info("流水明细查询功能开发中"); - break; - default: - break; - } + // 直接触发菜单选择 + this.handleMenuSelect(route); }, /** UploadData 组件:数据上传完成 */ handleDataUploaded({ type }) { @@ -212,33 +213,6 @@ export default { console.log("拉取本行信息"); this.$message.info("拉取本行信息功能开发中"); }, - /** 上传数据 (原方法,已由UploadData组件处理) */ - handleUploadData() { - console.log("上传数据"); - this.$message.info("上传数据功能已迁移至上传页面"); - }, - /** 参数配置 (原方法) */ - handleParamConfig() { - console.log("参数配置"); - this.$message.info("参数配置功能开发中"); - }, - /** 初核结果下拉菜单命令 */ - handleCheckResultCommand(command) { - console.log("初核结果命令:", command); - switch (command) { - case "overview": - this.$message.info("结果总览功能开发中"); - break; - case "special": - this.$message.info("专项排查功能开发中"); - break; - case "detail": - this.$message.info("流水明细查询功能开发中"); - break; - default: - break; - } - }, /** 数据上传完成 */ handleDataUploaded() { console.log("数据上传完成");