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