长时间未操作锁定弹框密码添加展示按钮
parent
8f6434f123
commit
aee2a78205
34
src/main.js
34
src/main.js
|
@ -299,7 +299,8 @@ async function VueInit() {
|
||||||
data: {
|
data: {
|
||||||
unlock: {
|
unlock: {
|
||||||
my_username: null,
|
my_username: null,
|
||||||
my_password: null
|
my_password: null,
|
||||||
|
view: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
render: h => h(App)
|
render: h => h(App)
|
||||||
|
@ -443,7 +444,8 @@ async function VueInit() {
|
||||||
_vm.$message.success(_vm.$t("env:lock:msgBox:lockSuccess"))
|
_vm.$message.success(_vm.$t("env:lock:msgBox:lockSuccess"))
|
||||||
_vm.unlock = {
|
_vm.unlock = {
|
||||||
my_username: null,
|
my_username: null,
|
||||||
my_password: null
|
my_password: null,
|
||||||
|
view: false
|
||||||
}
|
}
|
||||||
isOpen = false
|
isOpen = false
|
||||||
count = 0;
|
count = 0;
|
||||||
|
@ -507,16 +509,21 @@ async function VueInit() {
|
||||||
]),
|
]),
|
||||||
h('el-form-item', {
|
h('el-form-item', {
|
||||||
props: { label: _vm.$t("env:lock:msgBox:form:Password") },
|
props: { label: _vm.$t("env:lock:msgBox:form:Password") },
|
||||||
|
attrs: {
|
||||||
|
style: "position: relative;"
|
||||||
|
}
|
||||||
}, [
|
}, [
|
||||||
h('input', {
|
h('input', {
|
||||||
props: {
|
props: {
|
||||||
value: _vm.unlock.my_password
|
value: _vm.unlock.my_password
|
||||||
},
|
},
|
||||||
|
ref: "unlock_my_password_input",
|
||||||
attrs: {
|
attrs: {
|
||||||
id: 'my_password',
|
id: 'my_password',
|
||||||
class: 'el-input__inner',
|
class: 'el-input__inner',
|
||||||
type: 'password',
|
type: _vm.unlock.view ? 'text' : 'password',
|
||||||
autocomplete: 'new-password'
|
autocomplete: 'new-password',
|
||||||
|
style: "padding-right:25px"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
change: (event) => {
|
change: (event) => {
|
||||||
|
@ -526,7 +533,24 @@ async function VueInit() {
|
||||||
_vm.unlock.my_password = event.target.value
|
_vm.unlock.my_password = event.target.value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
}),
|
||||||
|
h('i', {
|
||||||
|
attrs: {
|
||||||
|
id: 'my_password_view',
|
||||||
|
class: "el-icon-view",
|
||||||
|
style: "cursor: pointer;position: absolute;top:35%;right:10px"
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: (event) => {
|
||||||
|
_vm.unlock.view = !_vm.unlock.view
|
||||||
|
if (_vm.unlock.view) {
|
||||||
|
_vm.$refs['unlock_my_password_input'].type = "text"
|
||||||
|
} else {
|
||||||
|
_vm.$refs['unlock_my_password_input'].type = "password"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}),
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue