diff --git a/src/api/member/level/index.js b/src/api/member/level/index.js index 723b83c..325a20d 100644 --- a/src/api/member/level/index.js +++ b/src/api/member/level/index.js @@ -1,53 +1,61 @@ -import request from '@/utils/request' - -// 创建会员等级 -export function createLevel(data) { - return request({ - url: '/member/level/create', - method: 'post', - data: data - }) -} - -// 更新会员等级 -export function updateLevel(data) { - return request({ - url: '/member/level/update', - method: 'put', - data: data - }) -} - -// 删除会员等级 -export function deleteLevel(id) { - return request({ - url: '/member/level/delete?id=' + id, - method: 'delete' - }) -} - -// 获得会员等级 -export function getLevel(id) { - return request({ - url: '/member/level/get?id=' + id, - method: 'get' - }) -} - -// 获得会员等级分页 -export function getLevelPage(params) { - return request({ - url: '/member/level/page', - method: 'get', - params - }) -} -// 导出会员等级 Excel -export function exportLevelExcel(params) { - return request({ - url: '/member/level/export-excel', - method: 'get', - params, - responseType: 'blob' - }) -} \ No newline at end of file +import request from '@/utils/request' + +// 创建会员等级 +export function createLevel(data) { + return request({ + url: '/member/level/create', + method: 'post', + data: data + }) +} + +// 更新会员等级 +export function updateLevel(data) { + return request({ + url: '/member/level/update', + method: 'put', + data: data + }) +} + +// 删除会员等级 +export function deleteLevel(id) { + return request({ + url: '/member/level/delete?id=' + id, + method: 'delete' + }) +} + +// 获得会员等级 +export function getLevel(id) { + return request({ + url: '/member/level/get?id=' + id, + method: 'get' + }) +} + +// 获得会员等级分页 +export function getLevelPage(params) { + return request({ + url: '/member/level/page', + method: 'get', + params + }) +} +// 导出会员等级 Excel +export function exportLevelExcel(params) { + return request({ + url: '/member/level/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} +// 查询所有会员 +export function getLevelAll(params) { + return request({ + url: '/member/level/all', + method: 'get', + params, + }) +} diff --git a/src/views/base/customer/CustomerMainForm.vue b/src/views/base/customer/CustomerMainForm.vue index 1bb7ec2..5982d1d 100644 --- a/src/views/base/customer/CustomerMainForm.vue +++ b/src/views/base/customer/CustomerMainForm.vue @@ -69,6 +69,16 @@ + + + + + + + + + @@ -144,6 +154,7 @@