From 659da1c8dccbbe3fc44c68052436ec375c5d9faf Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 13 Oct 2023 11:44:23 +0800 Subject: [PATCH] fix --- src/api/bank.ts | 1 + src/api/judgment.ts | 2 + src/components/Panel/index.vue | 331 ++++++++++++++-------------- src/layout/index.vue | 2 + src/views/product/bank/Add.vue | 3 +- src/views/product/bank/Approve.vue | 3 +- src/views/product/bank/CardList.vue | 2 +- src/views/product/bank/Config.vue | 3 +- src/views/product/strategy/150.vue | 1 + src/views/product/strategy/151.vue | 1 + 10 files changed, 178 insertions(+), 171 deletions(-) diff --git a/src/api/bank.ts b/src/api/bank.ts index 4db4a51..08baca2 100644 --- a/src/api/bank.ts +++ b/src/api/bank.ts @@ -20,3 +20,4 @@ export const examineAndApprove = async (id: number | string, opinionDescription: export const update = async (data: Record): Promise => (await axios.post(`/product/product/bank/products/update`, data)).data; export const cancelCollection = async (id: number): Promise => (await axios.post(`/product/checkPointCollect/cancelCollection?favoriteId=${id}`)).data; export const collect = async (data: Record): Promise => (await axios.post(`/product/checkPointCollect/collect`, data)).data; +export const submitOpe = async (data: Record): Promise => (await axios.post(`/product/product/bank/operation/submit`, data)).data; diff --git a/src/api/judgment.ts b/src/api/judgment.ts index b6e8c8c..5915fef 100644 --- a/src/api/judgment.ts +++ b/src/api/judgment.ts @@ -6,3 +6,5 @@ export const getProcessInformationBasedOnRoles = async (id: number): Promise): Promise => (await axios.post('/product/product/bank/operation/addOperation', data)).data; export const checkPointList = async (projectId: number): Promise => (await axios.post(`/judgment/judgment/stRecord/checkPointList?projectId=${projectId}`)).data; +export const deleteCache = async (projectId: number, checkpoint: number): Promise => + (await axios.get(`/product/product/bank/operation/deleteCache?projectId=${projectId}&checkpoint=${checkpoint}`)).data; diff --git a/src/components/Panel/index.vue b/src/components/Panel/index.vue index 1b65533..b528a0a 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -47,7 +47,7 @@ v-show="per == 0">重新开始 提交 @@ -101,13 +101,21 @@ width="60" align="center"> @@ -201,14 +209,16 @@ diff --git a/src/layout/index.vue b/src/layout/index.vue index d0b828d..025e03c 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -7,6 +7,7 @@ :class="{ 'md:ml-sidebar': !hideNav }"> + @@ -16,6 +17,7 @@ import { useRoute } from 'vue-router'; import Setting from '@/settings'; import { AppSidebar, AppHeader, AppMain } from './components'; import useResizeHandler from './composables/useResizeHandler'; +// import Panel from '@/components/Panel/index.vue'; export default defineComponent({ name: 'Layout', diff --git a/src/views/product/bank/Add.vue b/src/views/product/bank/Add.vue index 0e3eac7..ef819b5 100644 --- a/src/views/product/bank/Add.vue +++ b/src/views/product/bank/Add.vue @@ -507,9 +507,10 @@ const addRecord = async (data: Record) => { data.whetherToSupportEarlyRepayment && lcRule.push(handleId(58, '', '', preIds + ',58', '')); await addOperation({ + checkpointId: +Cookies.get('sand-level'), parentId: preIds, lcJudgmentRuleReq: lcRule, - projectId: 1, + projectId: +Cookies.get('sand-projectId'), }); }; onMounted(() => { diff --git a/src/views/product/bank/Approve.vue b/src/views/product/bank/Approve.vue index 7eff944..efaf564 100644 --- a/src/views/product/bank/Approve.vue +++ b/src/views/product/bank/Approve.vue @@ -116,9 +116,10 @@ const addRecord = async (data: Record, newId: number) => { const lcRule = []>[handleId(145, 69, data.status, preIds + ',145', 1), handleId(146, 70, data.opinionDescription, preIds + ',146', 3)]; await addOperation({ + checkpointId: +Cookies.get('sand-level'), parentId: preIds, lcJudgmentRuleReq: lcRule, - projectId: 1, + projectId: +Cookies.get('sand-projectId'), }); }; onMounted(() => { diff --git a/src/views/product/bank/CardList.vue b/src/views/product/bank/CardList.vue index 80425ec..eb39633 100644 --- a/src/views/product/bank/CardList.vue +++ b/src/views/product/bank/CardList.vue @@ -39,7 +39,7 @@
-
diff --git a/src/views/product/bank/Config.vue b/src/views/product/bank/Config.vue index c6b8de6..9d96841 100644 --- a/src/views/product/bank/Config.vue +++ b/src/views/product/bank/Config.vue @@ -622,9 +622,10 @@ const addRecord = async (data: Record) => { } await addOperation({ + checkpointId: +Cookies.get('sand-level'), parentId: preIds, lcJudgmentRuleReq: lcRule, - projectId: 1, + projectId: +Cookies.get('sand-projectId'), }); }; diff --git a/src/views/product/strategy/150.vue b/src/views/product/strategy/150.vue index 7c79086..dd20bb6 100644 --- a/src/views/product/strategy/150.vue +++ b/src/views/product/strategy/150.vue @@ -300,6 +300,7 @@ const addRecord = async (data: Record) => { }); await addOperation({ + checkpointId: +Cookies.get('sand-level'), parentId: preIds, lcJudgmentRuleReq: rule, projectId, diff --git a/src/views/product/strategy/151.vue b/src/views/product/strategy/151.vue index 0aa817a..8e4c5a9 100644 --- a/src/views/product/strategy/151.vue +++ b/src/views/product/strategy/151.vue @@ -242,6 +242,7 @@ const addRecord = async (data: Record) => { }); await addOperation({ + checkpointId: +Cookies.get('sand-level'), parentId: preIds, lcJudgmentRuleReq: rule, projectId,