Commit 91647a88 by wusiyi

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

parent 0d37e7c4
......@@ -138,7 +138,10 @@
</div>
</el-form-item>
<el-form-item
v-if="dialogType === 'password' || currentMethod === 'superPassword'"
v-if="
(dialogType === 'password' && currentMethod === 'superPassword') ||
currentMethod === 'superPassword'
"
:label="dialogType === 'password' ? '原超级密码' : '超级密码'"
prop="superPassword">
<el-input
......@@ -261,10 +264,10 @@ export default {
const targetName = this.methodMap[this.currentTarget]?.name || '超级密码'
const actionMap = {
bind: this.securityData[this.currentTarget]
? `绑定新${targetName}`
: `绑定${targetName}`,
unbind: `解绑${targetName}`,
change: `验证原${targetName}`,
? `绑定新安全${targetName}`
: `绑定安全${targetName}`,
unbind: `解绑安全${targetName}`,
change: `验证原安全${targetName}`,
password: '修改超级密码',
addPassword: '新增超级密码'
}
......@@ -469,11 +472,11 @@ export default {
change: { url: '/sysSecuritySettings/check', message: '验证成功' },
password: {
url: '/sysSecuritySettings/updatePassword',
message: '密码修改成功'
message: '超级密码修改成功'
},
addPassword: {
url: '/sysSecuritySettings/updatePassword',
message: '密码修改成功'
message: '超级密码修改成功'
}
}
const { url, message } = actionConfig[this.dialogType]
......@@ -490,7 +493,7 @@ export default {
if (this.dialogType !== 'change') this.getList()
this.dialogVisible = false
if (this.dialogType === 'change') {
// 不再跳转下一步
this.openDialog(this.currentTarget, 'bind')
}
} catch (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