From 57c828a8a7b2d68f5c19b556f690cfeda24a2523 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 29 Jan 2024 16:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E6=95=B0=E9=87=8F=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/api/bank.ts | 1 + src/api/judgment.ts | 1 + src/components/Panel/index.vue | 1 + src/layout/components/AppSidebar/Menu.vue | 111 ++++++++++++++-------- src/utils/request.ts | 2 +- src/views/product/insurance/Add.vue | 4 +- src/views/product/strategy/150.vue | 9 +- 8 files changed, 88 insertions(+), 43 deletions(-) diff --git a/.env.production b/.env.production index 8d04c4b..01ed17a 100644 --- a/.env.production +++ b/.env.production @@ -1 +1 @@ -VITE_BASE_API=http://121.37.12.51 \ No newline at end of file +VITE_BASE_API=https://www.occupationlab.com \ No newline at end of file diff --git a/src/api/bank.ts b/src/api/bank.ts index 08baca2..0867144 100644 --- a/src/api/bank.ts +++ b/src/api/bank.ts @@ -21,3 +21,4 @@ export const update = async (data: Record): Promise => (await 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; +export const statistics = async (data: Record): Promise => (await axios.post(`/product/product/bank/products/statistics`, data)).data; diff --git a/src/api/judgment.ts b/src/api/judgment.ts index da7b477..f029737 100644 --- a/src/api/judgment.ts +++ b/src/api/judgment.ts @@ -13,3 +13,4 @@ export const deleteCache = async (data: Record): Promise => `/product/product/bank/operation/deleteCache?projectId=${data.projectId}&checkpoint=${data.checkpointId}&assessmentId=${data.assessmentId}&competitionId=${data.competitionId}`, ) ).data; +export const getOperation = async (params?: Record): Promise => (await axios.get('/product/product/bank/operation/getOperation', { params })).data; diff --git a/src/components/Panel/index.vue b/src/components/Panel/index.vue index ea55021..c3153f9 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -540,6 +540,7 @@ const submit = async () => { reportId.value = retMap.reportId; Cookies.set('sand-reportId', retMap.reportId); localStorage.setItem('sand-taskList', JSON.stringify(taskList.value)); + await deleteCache(getIds()); submiting.value = false; // 非练习 diff --git a/src/layout/components/AppSidebar/Menu.vue b/src/layout/components/AppSidebar/Menu.vue index b5068e3..fa26002 100644 --- a/src/layout/components/AppSidebar/Menu.vue +++ b/src/layout/components/AppSidebar/Menu.vue @@ -2,39 +2,45 @@
    -
  • - -

    审批产品

    -
  • + +
  • + +

    审批产品

    +
  • +
  • @@ -119,20 +127,47 @@