From c8e23745b75911d2017d34b93d9f4713db7e75a0 Mon Sep 17 00:00:00 2001 From: yanfeiyong <2060201549@qq.com> Date: Tue, 27 May 2025 14:11:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 19 +-- src/views/{tongjifenxi => Home}/index.vue | 117 +++++++++--------- src/views/compilation/handbook/index.vue | 11 +- src/views/compilation/handbook/yulan.vue | 60 --------- .../{onecailiao => monolithic}/index.vue | 2 +- src/views/evalute/configtable/index.vue | 1 + src/views/index.vue | 2 +- src/views/manage-info/index.vue | 73 ++++++++--- src/views/manage/index.vue | 1 + src/views/models/badlist/index.vue | 1 + src/views/orientedtwo/content/index.vue | 1 + src/views/orientedtwo/subdivide/index.vue | 1 + 12 files changed, 128 insertions(+), 161 deletions(-) rename src/views/{tongjifenxi => Home}/index.vue (65%) delete mode 100644 src/views/compilation/handbook/yulan.vue rename src/views/compilation/{onecailiao => monolithic}/index.vue (99%) diff --git a/src/permission.js b/src/permission.js index 5b2db54..a14b5a5 100644 --- a/src/permission.js +++ b/src/permission.js @@ -32,9 +32,7 @@ router.beforeEach((to, from, next) => { const signature = params.get("signature"); const timespan = params.get("timespan"); - // ============================= - // 🔑 新增:处理 clienttoken 登录企业单点登录逻辑 - // ============================= + // clienttoken 企业单点登录 if (window.location.href.includes("clienttoken=")) { const reg = /[?&]clienttoken=([^&#]+)/; const match = window.location.href.match(reg); @@ -58,9 +56,6 @@ router.beforeEach((to, from, next) => { .dispatch("SingleSignOnGetInfo", { clientToken: clienttoken }) .then(() => { isRelogin.show = false; - console.log("✅ 单点登录成功"); - console.log("当前 token:", getToken()); - console.log("当前角色:", store.getters.roles); // 清除 URL 中的 clienttoken 并刷新页面 window.history.replaceState({}, "", modifiedUrl); @@ -75,8 +70,8 @@ router.beforeEach((to, from, next) => { // console.error("单点登录失败:", err); store.dispatch("LogOut").then(() => { Message.error("单点登录失败,请重试"); - // window.location.href = - // "https://qytt.sipac.gov.cn/ecobrainportal/index.html"; + window.location.href = + "https://qytt.sipac.gov.cn/ecobrainportal/index.html"; }); }); @@ -85,9 +80,7 @@ router.beforeEach((to, from, next) => { } } - // ============================= - // 📦 原有政务参数处理逻辑 - // ============================= + // 政务单点登录 if (from.path === to.path && store.getters.token) { next(); return; @@ -155,9 +148,7 @@ router.beforeEach((to, from, next) => { return; } - // ============================= - // 🔐 原始本地登录逻辑 - // ============================= + //调用原始登录 if (getToken()) { to.meta.title && store.dispatch("settings/setTitle", to.meta.title); /* has token*/ diff --git a/src/views/tongjifenxi/index.vue b/src/views/Home/index.vue similarity index 65% rename from src/views/tongjifenxi/index.vue rename to src/views/Home/index.vue index 91eee4f..2602779 100644 --- a/src/views/tongjifenxi/index.vue +++ b/src/views/Home/index.vue @@ -20,19 +20,32 @@
关联项目
-
+
-
+
-
{{ item.name }}
+
+ {{ item.name }} +
-
- 现状分类: +
+ 现状分类:
总投资额:{{ item.ztze }}
填报时间:{{ item.updateTime }}
-
- 状态: +
+ 状态: +
@@ -41,9 +54,7 @@
-
- 暂无数据 -
+
暂无数据
@@ -59,39 +70,28 @@ \ No newline at end of file diff --git a/src/views/compilation/onecailiao/index.vue b/src/views/compilation/monolithic/index.vue similarity index 99% rename from src/views/compilation/onecailiao/index.vue rename to src/views/compilation/monolithic/index.vue index 76d988d..63f0f85 100644 --- a/src/views/compilation/onecailiao/index.vue +++ b/src/views/compilation/monolithic/index.vue @@ -114,7 +114,7 @@ export default { title: undefined, startTime: undefined, }, - // 所有数据(模拟从后端获取) + // 该页面使用默认数据 allPostList: [ { id: 1, diff --git a/src/views/evalute/configtable/index.vue b/src/views/evalute/configtable/index.vue index 26a0181..e88fa6b 100644 --- a/src/views/evalute/configtable/index.vue +++ b/src/views/evalute/configtable/index.vue @@ -208,6 +208,7 @@ export default { this.$modal.confirm(`是否确认删除"${pjys}"的数据项?`).then(() => { return deleteProjectEvaluation(postIds); }).then(() => { + this.queryParams.current = 1; this.getList(); this.$modal.msgSuccess('删除成功'); }).catch(() => { }); diff --git a/src/views/index.vue b/src/views/index.vue index 6a9bc69..3294d2a 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -18,7 +18,7 @@ export default { this.$router.push({path:"/statistics"}) }else{ //企业人员 - this.$router.push({path:"/tongjifenxi"}) + this.$router.push({path:"/Home"}) } } }; diff --git a/src/views/manage-info/index.vue b/src/views/manage-info/index.vue index a7b47ce..c5f0626 100644 --- a/src/views/manage-info/index.vue +++ b/src/views/manage-info/index.vue @@ -252,6 +252,9 @@ export default { zjzmj: 0, ztze: 0, zydmj: 0, + jhtze: "", + ml: "", + xfcy: "", }, planInformation: { bzcjzmj: 0, @@ -314,7 +317,7 @@ export default { } }, methods: { - async fetchOtherInfo() { + async fetchOtherInfo() { try { const response = await getzwBasicInformationById(this.projectId); const data = response.data; @@ -457,7 +460,6 @@ export default { }, // 提交数据 async submitAll() { - // 创建全局加载动画 const loading = this.$loading({ lock: true, @@ -465,14 +467,52 @@ export default { spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", }); - + // 校验 basicInformation + const basicRequiredFields = [ + "acceptanceTime", + "begainTime", + "endTime", + "fj", + "introduction", + "issuingTime", + "jsdd", + "jsjd", + "jsms", + "label", + "latitude", + "longitude", + "name", + "nature", + "phone", + "prioritize", + "projectLeader", + "sgdw", + "sjdw", + "ssgnq", + "tyshxydm", + "unitIntroduction", + "xmfrdwxz", + "xzfl", + "ztze", + "jhtze", + "ml", + "xfcy", + ]; + const basicMissingFields = basicRequiredFields.filter( + (field) => !this.basicInformation[field] + ); + if (basicMissingFields.length > 0) { + this.$message.error("请填写完整的基本信息"); + loading.close(); + return; + } // 校验建筑信息是否填写 if (!this.hasBuildingData) { this.$message.error("请填写建筑信息"); loading.close(); return; } - + // 校验 wysmxInformations if ( this.wysmxInformations.length === 0 || @@ -496,8 +536,16 @@ export default { "zydmj", "rjl", "zjzmj", + "bzcjzmj", + "jrjljzmj", + "jzmd", + "ldl", "jzds", + "dsjzmj", + "dxjzmj", "zgjzcs", + "jdctcw", + "fjdctcw", "fhdj", ]; const planMissingFields = planRequiredFields.filter( @@ -509,22 +557,7 @@ export default { return; } - // 校验 basicInformation - const basicRequiredFields = [ - "ssgnq", - "begainTime", - "endTime", - "xzfl", - "jsms", - ]; - const basicMissingFields = basicRequiredFields.filter( - (field) => !this.basicInformation[field] - ); - if (basicMissingFields.length > 0) { - this.$message.error("请填写完整的基本信息"); - loading.close(); - return; - } + // 准备数据并提交 const submitData = this.prepareSubmitData(); diff --git a/src/views/manage/index.vue b/src/views/manage/index.vue index 5dcc14d..c0986dd 100644 --- a/src/views/manage/index.vue +++ b/src/views/manage/index.vue @@ -669,6 +669,7 @@ export default { return deleteBasicInformation(ids); }) .then(() => { + this.queryParams.current = 1; this.getList(); this.$modal.msgSuccess("删除成功"); }) diff --git a/src/views/models/badlist/index.vue b/src/views/models/badlist/index.vue index fb13433..d59637a 100644 --- a/src/views/models/badlist/index.vue +++ b/src/views/models/badlist/index.vue @@ -299,6 +299,7 @@ export default { return deleteBasicInformation(ids); }) .then(() => { + this.queryParams.current = 1; // 重置页码 this.getList(); this.$modal.msgSuccess("删除成功"); }) diff --git a/src/views/orientedtwo/content/index.vue b/src/views/orientedtwo/content/index.vue index 477117d..afd77c2 100644 --- a/src/views/orientedtwo/content/index.vue +++ b/src/views/orientedtwo/content/index.vue @@ -476,6 +476,7 @@ export default { return deleteCatalog([catalogIds]); }) .then(() => { + this.queryParams.current = 1; this.getList(catalogIds); this.$modal.msgSuccess("删除成功"); }) diff --git a/src/views/orientedtwo/subdivide/index.vue b/src/views/orientedtwo/subdivide/index.vue index ce71205..16c041e 100644 --- a/src/views/orientedtwo/subdivide/index.vue +++ b/src/views/orientedtwo/subdivide/index.vue @@ -491,6 +491,7 @@ export default { return deleteXfcygl([catalogIds]); }) .then(() => { + this.queryParams.current = 1; this.getList(); this.$modal.msgSuccess("删除成功"); })