diff --git a/src/api/setting/passwords.js b/src/api/setting/passwords.js index 1aa5a252..4bc5c000 100644 --- a/src/api/setting/passwords.js +++ b/src/api/setting/passwords.js @@ -9,46 +9,12 @@ export function createPasswords(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) { +export function getPasswords() { return request({ - url: '/setting/passwords/page', + url: '/setting/passwords/getLastPasswords', method: 'get', - params: query + }) -} - -// 导出数据密码 Excel -export function exportPasswordsExcel(query) { - return request({ - url: '/setting/passwords/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} +} \ No newline at end of file diff --git a/src/views/setting/passwords/index.vue b/src/views/setting/passwords/index.vue index 1b78b0d5..95809d4d 100644 --- a/src/views/setting/passwords/index.vue +++ b/src/views/setting/passwords/index.vue @@ -1,284 +1,85 @@ + +