diff --git a/src/api/authentication/authentication.js b/src/api/authentication/authentication.js new file mode 100644 index 0000000..2ed8a60 --- /dev/null +++ b/src/api/authentication/authentication.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询认证列表 +export function listAuthentication(query) { + return request({ + url: '/authentication/authentication/list', + method: 'get', + params: query + }) +} + +// 查询认证详细 +export function getAuthentication(id) { + return request({ + url: '/authentication/authentication/' + id, + method: 'get' + }) +} + +// 新增认证 +export function addAuthentication(data) { + return request({ + url: '/authentication/authentication', + method: 'post', + data: data + }) +} + +// 修改认证 +export function updateAuthentication(data) { + return request({ + url: '/authentication/authentication/'+data.id, + method: 'put', + data: data + }) +} + +// 删除认证 +export function delAuthentication(id) { + return request({ + url: '/authentication/authentication/' + id, + method: 'delete' + }) +} diff --git a/src/api/company/company.js b/src/api/authentication/company.js similarity index 58% rename from src/api/company/company.js rename to src/api/authentication/company.js index d1c5b7e..64acc07 100644 --- a/src/api/company/company.js +++ b/src/api/authentication/company.js @@ -1,42 +1,41 @@ import request from '@/utils/request' -// 查询company列表 -export function listCompany(queryParams) { - console.log("data是什么",queryParams) +// 查询企业列表 +export function listCompany(query) { return request({ - url: '/company/company/list', + url: '/authentication/company/list', method: 'get', - params: queryParams + params: query }) } -// 查询company详细 +// 查询企业详细 export function getCompany(id) { return request({ - url: '/company/company/' + id, + url: '/authentication/company/' + id, method: 'get' }) } -// 新增company +// 新增企业 export function addCompany(data) { return request({ - url: '/company/company', + url: '/authentication/company', method: 'post', data: data }) } -// 修改company +// 修改企业 export function updateCompany(data) { return request({ - url: '/company/company', + url: '/authentication/company/'+data.id, method: 'put', data: data }) } -// 删除company +// 删除企业 export function delCompany(id) { return request({ url: '/company/company/' + id, diff --git a/src/api/authentication/liberal.js b/src/api/authentication/liberal.js new file mode 100644 index 0000000..fdddb73 --- /dev/null +++ b/src/api/authentication/liberal.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询开通服务列表 +export function listLiberal(query) { + return request({ + url: '/authentication/liberal/list', + method: 'get', + params: query + }) +} + +// 查询开通服务详细 +export function getLiberal(id) { + return request({ + url: '/authentication/liberal/' + id, + method: 'get' + }) +} + +// 新增开通服务 +export function addLiberal(data) { + return request({ + url: '/authentication/liberal', + method: 'post', + data: data + }) +} + +// 修改开通服务 +export function updateLiberal(data) { + return request({ + url: '/authentication/liberal/'+data.id, + method: 'put', + data: data + }) +} + +// 删除开通服务 +export function delLiberal(id) { + return request({ + url: '/authentication/liberal/' + id, + method: 'delete' + }) +} diff --git a/src/api/authentication/pay.js b/src/api/authentication/pay.js new file mode 100644 index 0000000..328aad0 --- /dev/null +++ b/src/api/authentication/pay.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询支付列表 +export function listPay(query) { + return request({ + url: '/authentication/pay/list', + method: 'get', + params: query + }) +} + +// 查询支付详细 +export function getPay(id) { + return request({ + url: '/authentication/pay/' + id, + method: 'get' + }) +} + +// 新增支付 +export function addPay(data) { + return request({ + url: '/authentication/pay', + method: 'post', + data: data + }) +} + +// 修改支付 +export function updatePay(data) { + return request({ + url: '/authentication/pay/'+data.id, + method: 'put', + data: data + }) +} + +// 删除支付 +export function delPay(id) { + return request({ + url: '/authentication/pay/' + id, + method: 'delete' + }) +} diff --git a/src/api/authentication/payment.js b/src/api/authentication/payment.js new file mode 100644 index 0000000..26e51b3 --- /dev/null +++ b/src/api/authentication/payment.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询支付方式列表 +export function listPayment(query) { + return request({ + url: '/authentication/payment/list', + method: 'get', + params: query + }) +} + +// 查询支付方式详细 +export function getPayment(id) { + return request({ + url: '/authentication/payment/' + id, + method: 'get' + }) +} + +// 新增支付方式 +export function addPayment(data) { + return request({ + url: '/authentication/payment', + method: 'post', + data: data + }) +} + +// 修改支付方式 +export function updatePayment(data) { + return request({ + url: '/authentication/payment/'+data.id, + method: 'put', + data: data + }) +} + +// 删除支付方式 +export function delPayment(id) { + return request({ + url: '/authentication/payment/' + id, + method: 'delete' + }) +} diff --git a/src/views/authentication/authentication/index.vue b/src/views/authentication/authentication/index.vue new file mode 100644 index 0000000..23d8a32 --- /dev/null +++ b/src/views/authentication/authentication/index.vue @@ -0,0 +1,295 @@ + + + diff --git a/src/views/authentication/company/index.vue b/src/views/authentication/company/index.vue new file mode 100644 index 0000000..4fb2d55 --- /dev/null +++ b/src/views/authentication/company/index.vue @@ -0,0 +1,423 @@ + + + diff --git a/src/views/authentication/liberal/index.vue b/src/views/authentication/liberal/index.vue new file mode 100644 index 0000000..7ed9fb9 --- /dev/null +++ b/src/views/authentication/liberal/index.vue @@ -0,0 +1,267 @@ + + + diff --git a/src/views/authentication/pay/index.vue b/src/views/authentication/pay/index.vue new file mode 100644 index 0000000..648367e --- /dev/null +++ b/src/views/authentication/pay/index.vue @@ -0,0 +1,260 @@ + + + diff --git a/src/views/authentication/payment/index.vue b/src/views/authentication/payment/index.vue new file mode 100644 index 0000000..28f0b1e --- /dev/null +++ b/src/views/authentication/payment/index.vue @@ -0,0 +1,254 @@ + + + diff --git a/src/views/company/index.vue b/src/views/company/index.vue deleted file mode 100644 index 51740bc..0000000 --- a/src/views/company/index.vue +++ /dev/null @@ -1,357 +0,0 @@ - - -