diff --git a/src/api/user/type.js b/src/api/user/type.js new file mode 100644 index 0000000..aa5b608 --- /dev/null +++ b/src/api/user/type.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询证件类型列表 +export function listType(query) { + return request({ + url: '/user/type/list', + method: 'get', + params: query + }) +} + +// 查询证件类型详细 +export function getType(id) { + return request({ + url: '/user/type/' + id, + method: 'get' + }) +} + +// 新增证件类型 +export function addType(data) { + return request({ + url: '/user/type', + method: 'post', + data: data + }) +} + +// 修改证件类型 +export function updateType(data) { + return request({ + url: '/user/type', + method: 'put', + data: data + }) +} + +// 删除证件类型 +export function delType(id) { + return request({ + url: '/user/type/' + id, + method: 'delete' + }) +} + +// 导出证件类型 +export function exportType(query) { + return request({ + url: '/user/type/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/user/UserCertification/index.vue b/src/views/user/UserCertification/index.vue index 1a6a979..3497554 100644 --- a/src/views/user/UserCertification/index.vue +++ b/src/views/user/UserCertification/index.vue @@ -114,6 +114,7 @@ +