From e9261a339b0c277a385bbbb3db914593758f7f63 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Wed, 20 Sep 2023 13:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=95=B0=E6=8D=AE=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/setting/passwords.js | 42 +--- src/views/setting/passwords/index.vue | 325 +++++--------------------- 2 files changed, 67 insertions(+), 300 deletions(-) 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 @@ + +