Commit 91647a88 by wusiyi

fix: 安全管理中心界面bug修复

parent 0d37e7c4
...@@ -138,7 +138,10 @@ ...@@ -138,7 +138,10 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="dialogType === 'password' || currentMethod === 'superPassword'" v-if="
(dialogType === 'password' && currentMethod === 'superPassword') ||
currentMethod === 'superPassword'
"
:label="dialogType === 'password' ? '原超级密码' : '超级密码'" :label="dialogType === 'password' ? '原超级密码' : '超级密码'"
prop="superPassword"> prop="superPassword">
<el-input <el-input
...@@ -261,10 +264,10 @@ export default { ...@@ -261,10 +264,10 @@ export default {
const targetName = this.methodMap[this.currentTarget]?.name || '超级密码' const targetName = this.methodMap[this.currentTarget]?.name || '超级密码'
const actionMap = { const actionMap = {
bind: this.securityData[this.currentTarget] bind: this.securityData[this.currentTarget]
? `绑定新${targetName}` ? `绑定新安全${targetName}`
: `绑定${targetName}`, : `绑定安全${targetName}`,
unbind: `解绑${targetName}`, unbind: `解绑安全${targetName}`,
change: `验证原${targetName}`, change: `验证原安全${targetName}`,
password: '修改超级密码', password: '修改超级密码',
addPassword: '新增超级密码' addPassword: '新增超级密码'
} }
...@@ -469,11 +472,11 @@ export default { ...@@ -469,11 +472,11 @@ export default {
change: { url: '/sysSecuritySettings/check', message: '验证成功' }, change: { url: '/sysSecuritySettings/check', message: '验证成功' },
password: { password: {
url: '/sysSecuritySettings/updatePassword', url: '/sysSecuritySettings/updatePassword',
message: '密码修改成功' message: '超级密码修改成功'
}, },
addPassword: { addPassword: {
url: '/sysSecuritySettings/updatePassword', url: '/sysSecuritySettings/updatePassword',
message: '密码修改成功' message: '超级密码修改成功'
} }
} }
const { url, message } = actionConfig[this.dialogType] const { url, message } = actionConfig[this.dialogType]
...@@ -490,7 +493,7 @@ export default { ...@@ -490,7 +493,7 @@ export default {
if (this.dialogType !== 'change') this.getList() if (this.dialogType !== 'change') this.getList()
this.dialogVisible = false this.dialogVisible = false
if (this.dialogType === 'change') { if (this.dialogType === 'change') {
// 不再跳转下一步 this.openDialog(this.currentTarget, 'bind')
} }
} catch (error) { } catch (error) {
this.$message.error('操作失败') this.$message.error('操作失败')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment