From c416424253af34e322d1829e6b3b8d9a88cc6262 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 2 Jun 2024 16:12:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E3=80=81=E4=B8=93=E9=A1=B9=E8=B5=84=E9=87=91?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E3=80=81=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E3=80=81=E6=B5=81=E7=A8=8B=E6=96=B0=E5=A2=9E=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/special-fund/index.js | 6 +++ src/components/DetailComponent/Opinion.vue | 9 +++- .../DetailComponent/SpecialFundDetail.vue | 10 +++-- .../DetailComponent/SummaryDetail.vue | 2 +- src/components/Tinymce.vue | 2 +- src/views/home/index.vue | 12 +++++- .../project-management/filing/conclusion.vue | 25 ++++++----- .../project-management/initiation/apply.vue | 41 +++++++++++-------- src/views/special-fund/add.vue | 12 +++--- src/views/special-fund/index.vue | 21 +++++++--- src/views/workflow/process/ProcessEdit.vue | 1 + src/views/workflow/process/index.vue | 5 ++- 12 files changed, 94 insertions(+), 52 deletions(-) diff --git a/src/api/special-fund/index.js b/src/api/special-fund/index.js index f76b2c4..2f662e1 100644 --- a/src/api/special-fund/index.js +++ b/src/api/special-fund/index.js @@ -38,3 +38,9 @@ export const resubmitFund= (data) => { data }); }; +export const deleteFund = (id) => { + return request({ + url: `/workflow/mosr/special/fund/${id}`, + method: "delete" + }); +}; diff --git a/src/components/DetailComponent/Opinion.vue b/src/components/DetailComponent/Opinion.vue index 4e60ebb..dc50ef1 100644 --- a/src/components/DetailComponent/Opinion.vue +++ b/src/components/DetailComponent/Opinion.vue @@ -11,7 +11,8 @@ import {ElNotification} from 'element-plus'; import {agreeTask, rejectTask} from "@/api/project-demand/index.js"; -import { useTagsView } from '@/stores/tagsview.js' +import {useTagsView} from '@/stores/tagsview.js' + const tagsViewStore = useTagsView() const route = useRoute() const router = useRouter() @@ -84,7 +85,11 @@ const back = () => { } break; case 'Fund/detail': - router.push({name: 'Fund'}) + if (route.query.source === 'home') { + router.push('/home') + } else { + router.push({name: 'Fund'}) + } break; case 'Share/detail': router.push({name: 'Expense/share'}) diff --git a/src/components/DetailComponent/SpecialFundDetail.vue b/src/components/DetailComponent/SpecialFundDetail.vue index 68ba4fb..140f81f 100644 --- a/src/components/DetailComponent/SpecialFundDetail.vue +++ b/src/components/DetailComponent/SpecialFundDetail.vue @@ -30,7 +30,7 @@ -