diff --git a/src/api/setting/passwords.js b/src/api/setting/passwords.js new file mode 100644 index 00000000..1aa5a252 --- /dev/null +++ b/src/api/setting/passwords.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建数据密码 +export function createPasswords(data) { + return request({ + url: '/setting/passwords/create', + method: 'post', + data: data + }) +} + +// 更新数据密码 +export function updatePasswords(data) { + return request({ + url: '/setting/passwords/update', + method: 'put', + data: data + }) +} + +// 删除数据密码 +export function deletePasswords(id) { + return request({ + url: '/setting/passwords/delete?id=' + id, + method: 'delete' + }) +} + +// 获得数据密码 +export function getPasswords(id) { + return request({ + url: '/setting/passwords/get?id=' + id, + method: 'get' + }) +} + +// 获得数据密码分页 +export function getPasswordsPage(query) { + return request({ + url: '/setting/passwords/page', + method: 'get', + params: query + }) +} + +// 导出数据密码 Excel +export function exportPasswordsExcel(query) { + return request({ + url: '/setting/passwords/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/setting/passwords/index.vue b/src/views/setting/passwords/index.vue new file mode 100644 index 00000000..1b78b0d5 --- /dev/null +++ b/src/views/setting/passwords/index.vue @@ -0,0 +1,284 @@ + + +