From 66fdfda9b62b7db3b8204d0ba04c75b0c257dc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Fri, 22 Nov 2024 13:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=8F=E8=A7=81=E4=B8=BB=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E6=97=A5=E5=B8=B8=E5=BE=81=E9=9B=86=E5=8A=A0=E4=B8=8A=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/env.production.js | 4 ++-- .../peoSuggestion/SpecialsolicitationFill.vue | 15 +++++++++++++-- src/views/peoSuggestion/solicitationDaily.vue | 4 ++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/config/env.production.js b/src/config/env.production.js index fe105ea..ca79b2d 100644 --- a/src/config/env.production.js +++ b/src/config/env.production.js @@ -14,8 +14,8 @@ module.exports = { version: 'V1.0.0', technicalSupport: '', copyright: 'Copyright @ 2023 版权所有', - baseUrl: 'https://epmet-preview.elinkservice.cn/', // 项目地址 - baseApi: 'https://epmet-preview.elinkservice.cn/api', + baseUrl: 'https://epmet-test.elinkservice.cn/', // 项目地址 + baseApi: 'https://epmet-test.elinkservice.cn/api-140-proxy', wxId: 'wx1078fa1e99424de9', secret: 'ebecf6b88ab455f1cdf4a5b6357407b8', mapKey: '5D6BZ-KHLW4-JUXU5-XIM47-5Q2DJ-IPBBT' diff --git a/src/views/peoSuggestion/SpecialsolicitationFill.vue b/src/views/peoSuggestion/SpecialsolicitationFill.vue index f8e7fcd..ebeb61c 100644 --- a/src/views/peoSuggestion/SpecialsolicitationFill.vue +++ b/src/views/peoSuggestion/SpecialsolicitationFill.vue @@ -112,8 +112,19 @@ export default { ...this.formData } icEventOldAdd(params).then(res=>{ - this.$toast.success('提交成功') - console.log(res,"sdl;kjdsjls;kdgj"); + if (res.code==0) { + console.log(res,"sdl;kjdsjls;kdgj"); + this.$toast.success({ + message: '上报成功', + duration: 3000, // 显示时间为 3000 毫秒(3 秒) + }); + setTimeout(() => { + this.$router.push('/peoSuggestion'); // 替换为目标页面的路由 + }, 3000); + + }else{ + this.$toast.fail(res.message) + } }) }, diff --git a/src/views/peoSuggestion/solicitationDaily.vue b/src/views/peoSuggestion/solicitationDaily.vue index 7bcd7e9..87dc239 100644 --- a/src/views/peoSuggestion/solicitationDaily.vue +++ b/src/views/peoSuggestion/solicitationDaily.vue @@ -2,7 +2,7 @@