From 3a86ff2de5da3c95c96321703bca59887461cdf4 Mon Sep 17 00:00:00 2001 From: JilingLee <18850011309@139.com> Date: Mon, 18 Sep 2023 15:48:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=86=E7=A0=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/setting/passwords.js | 54 +++++ src/views/setting/passwords/index.vue | 284 ++++++++++++++++++++++++++ 2 files changed, 338 insertions(+) create mode 100644 src/api/setting/passwords.js create mode 100644 src/views/setting/passwords/index.vue 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 @@ + + +