From 924a31a69823479325ed8fbf591445a962cd95f5 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Mon, 9 Mar 2026 11:16:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=8A=A0=E5=AF=86IFS?= =?UTF-8?q?=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/sys/user.vue | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/views/modules/sys/user.vue b/src/views/modules/sys/user.vue index e1dc0dd..7774194 100644 --- a/src/views/modules/sys/user.vue +++ b/src/views/modules/sys/user.vue @@ -42,6 +42,7 @@ 部门管理 岗位管理 + 批量加密IFS密码 {}) }, + // ===== 批量加密IFS密码 ===== + batchEncryptIfsPassword () { + this.$confirm('此操作将把数据库中所有明文 IFS 密码转换为 AES 加密存储,已加密的会自动跳过。确认执行?', '批量加密IFS密码', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$http({ + url: this.$http.adornUrl('/sys/user/batchEncryptIfsPassword'), + method: 'post', + data: this.$http.adornData({}, false) + }).then(({ data }) => { + if (data && data.code === 0) { + this.$message.success(`操作成功,共处理 ${data.count} 条记录`) + } else { + this.$message.error(data.msg || '操作失败') + } + }) + }).catch(() => {}) + }, + // ===== 岗位管理 ===== openPostDialog () { this.postQuery = { site: this.$store.state.user.site, postNo: '', postName: '' }