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 @@