From a97f5bf79e977d058e74ad070644d42fb41dba03 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Wed, 14 Aug 2024 11:19:41 +0800 Subject: [PATCH] sc --- .env.base | 4 ++-- src/api/home/salary.js | 5 +++++ src/views/Home/Salary/index.vue | 13 +++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.env.base b/.env.base index cbfa635..1cbc08d 100644 --- a/.env.base +++ b/.env.base @@ -4,8 +4,8 @@ VITE_NODE_ENV=development VITE_DEV=true # 请求路径 -VITE_BASE_URL='http://118.31.23.45:48080' -# VITE_BASE_URL='http://114.55.169.15:48080' +# VITE_BASE_URL='http://118.31.23.45:48080' +VITE_BASE_URL='http://114.55.169.15:48080' # 上传路径 VITE_UPLOAD_URL='http://118.31.23.45:48080/admin-api/system/file/upload' diff --git a/src/api/home/salary.js b/src/api/home/salary.js index 7f566d5..7516502 100644 --- a/src/api/home/salary.js +++ b/src/api/home/salary.js @@ -49,3 +49,8 @@ export const getLinkHistorySalary = async () => { url: '/admin-api/oa/user-salary-grant/get-import-template/history' }) } + +// 查询提成明细 +export const getCommissionDetail = async (params) => { + return await request.get({ url: '/admin-api/oa/user-salary-grant/detail', params }) +} diff --git a/src/views/Home/Salary/index.vue b/src/views/Home/Salary/index.vue index b57eb8c..b72d66f 100644 --- a/src/views/Home/Salary/index.vue +++ b/src/views/Home/Salary/index.vue @@ -295,6 +295,9 @@ 封存 已封存 + + 提成明细 + @@ -423,6 +426,16 @@ async function handleSealup(row) { console.log(err) } } + +async function handleDetail(row) { + try { + const data = await SalaryApi.getCommissionDetail({ id: row.grantId }) + message.alert(data) + } catch (error) { + message.error(error) + console.log(error) + } +}