From 2b1203b2b17f9ab2c539897f6111778d4c50037e Mon Sep 17 00:00:00 2001 From: zhang chengzhi <3144712872@qq.com> Date: Fri, 9 Aug 2024 10:54:31 +0800 Subject: [PATCH] =?UTF-8?q?feat():=E5=A2=9E=E5=8A=A0=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=9A=84=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pay/customer.js | 71 ++++++ src/layout/components/Navbar.vue | 43 +--- src/views/pay/customer/index.vue | 356 ++++++++++++++++++++++++++++++ src/views/system/notice/index.vue | 3 - vue.config.js | 2 +- 5 files changed, 435 insertions(+), 40 deletions(-) create mode 100644 src/api/pay/customer.js create mode 100644 src/views/pay/customer/index.vue diff --git a/src/api/pay/customer.js b/src/api/pay/customer.js new file mode 100644 index 0000000..3765e84 --- /dev/null +++ b/src/api/pay/customer.js @@ -0,0 +1,71 @@ +import request from '@/utils/request' + +//查看客户列表 + +export function selectList(data){ + return request({ + url:"/pay/customer/list", + method:"post", + data:data + }) +} + +//未接入的nacos接口 + +export function customerAll(){ + return request({ + url: '/pay/customer/all', + method: 'GET' + }) +} + +//新增客户接口 +export function save(data){ + return request({ + url: '/pay/customer', + method: 'POST', + data:data + }) +} + +//修改客户接口 + +export function update(data){ + return request({ + url: `/pay/customer/${data.id}`, + method: 'PUT', + data:data + }) +} + + +//根据ID获取客户接口信息 +export function get(orderCustomerId){ + return request({ + url:'/pay/customer/'+orderCustomerId, + method: 'GET' + }) +} +//根据ID删除客户接口信息 +export function delite(orderCustomerId){ + return request({ + url:`/pay/customer/${orderCustomerId}`, + method: 'DELETE' + }) +} + +//通过ID禁用客户 +export function disable(orderCustomerId){ + return request({ + url:`/pay/customer/disable/${orderCustomerId}`, + method:'GET' + }) +} + +//通过ID启用客户 +export function enable(orderCustomerId){ + return request({ + url:`/pay/customer/enable/${orderCustomerId}`, + method:'GET' + }) +} diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 896d43d..5476321 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -8,7 +8,7 @@