From bc0d87ac9f282991806145d406bcda1e0c1d3e06 Mon Sep 17 00:00:00 2001 From: shenhan000 Date: Fri, 16 May 2025 17:24:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/email/index.js | 25 +- src/api/useTool/index.js | 33 +++ src/views/useTool/useList/index.vue | 339 ++++++++++++++++++++++++++++ 3 files changed, 376 insertions(+), 21 deletions(-) create mode 100644 src/api/useTool/index.js create mode 100644 src/views/useTool/useList/index.vue diff --git a/src/api/email/index.js b/src/api/email/index.js index ed4ad01..e9adef3 100644 --- a/src/api/email/index.js +++ b/src/api/email/index.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function emailList() { return request({ - url: '/email/listEmail', + url: 'sys/email/listEmail', method: 'get', }) } @@ -11,14 +11,14 @@ export function emailList() { export function deleteList(id) { return request({ - url: '/email/deleteEmail?emailId=' + id, + url: 'sys/email/deleteEmail?emailId=' + id, method: 'get', }) } export function updateList(data) { return request({ - url: `/email/updateEmail`, + url: `sys/email/updateEmail`, method: 'post', data: data }) @@ -26,25 +26,8 @@ export function emailList() { export function add(data) { return request({ - url: `/email/createEmail`, + url: `sys/email/createEmail`, method: 'post', data: data }) } - - - // 根据权益名称id查询权益 - export function getBenefitByBenefitId() { - return request({ - url: '/benefit/getBenefitByBenefitId', - method: 'get', - }) - } - // 添加权益 - export function addBenefit(data) { - return request({ - url: `/benefit/add`, - method: 'post', - data: data - }) - } \ No newline at end of file diff --git a/src/api/useTool/index.js b/src/api/useTool/index.js new file mode 100644 index 0000000..f12d9e2 --- /dev/null +++ b/src/api/useTool/index.js @@ -0,0 +1,33 @@ +import request from '@/utils/request' + +export function emailList() { + return request({ + url: 'sys/tool/listTool', + method: 'get', + }) + } + + + + export function deleteList(id) { + return request({ + url: 'sys/tool/delTool?toolId=' + id, + method: 'get', + }) + } + + export function updateList(data) { + return request({ + url: `sys/tool/editTool`, + method: 'post', + data: data + }) + } + + export function add(data) { + return request({ + url: `sys/tool/addTool`, + method: 'post', + data: data + }) + } diff --git a/src/views/useTool/useList/index.vue b/src/views/useTool/useList/index.vue new file mode 100644 index 0000000..16ffce0 --- /dev/null +++ b/src/views/useTool/useList/index.vue @@ -0,0 +1,339 @@ + + +