bug修复
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-11-06 09:13:37 +08:00
parent 62d5b39036
commit 9bd6c1f433
3 changed files with 29 additions and 19 deletions

View File

@ -456,10 +456,12 @@ export default {
},
//
setPassword(val) {
console.log(val)
if (this.isShowPassword) {
this.loginForm.password = val
} else {
let reg = /[0-9a-zA-Z]/g //
let reg =
/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[-_.@^+\$!%#*?&\$~])[A-Za-z0-9-~_.@^+\$~!%#*?&]{8,32}$/g //
let nDot = /[^●]/g //
let index = -1 //
let lastChar = void 0 //
@ -475,25 +477,31 @@ export default {
}
})
//
if (lastChar && !reg.test(lastChar)) {
coverArr.splice(index, 1)
this.pwdCover = coverArr.join('')
return
}
if (realLen < coverLen) {
//
realArr.splice(index, 0, lastChar)
} else if (coverLen <= realLen && index !== -1) {
//
realArr.splice(index, realLen - (coverLen - 1), lastChar)
} else {
// val password val
let pos = document.getElementById('pwd').selectionEnd //
realArr.splice(pos, realLen - coverLen)
// if (lastChar && !reg.test(lastChar)) {
// coverArr.splice(index, 1)
// this.pwdCover = coverArr.join('')
// console.log(111111111111111, lastChar)
// // return
// }
if (coverLen - realLen <= 2) {
if (realLen < coverLen) {
//
realArr.splice(index, 0, lastChar)
} else if (coverLen <= realLen && index !== -1) {
//
realArr.splice(index, realLen - (coverLen - 1), lastChar)
} else {
// val password val
let pos = document.getElementById('pwd').selectionEnd //
realArr.splice(pos, realLen - coverLen)
}
}
// pwdCover
this.pwdCover = val.replace(/\S/g, '●')
this.loginForm.password = realArr.join('')
let v = val.replace(/●/g, '')
this.loginForm.password =
coverLen - realLen >= 2 ? realArr.join('') + v : realArr.join('')
}
},
//

View File

@ -494,11 +494,13 @@ export default {
openEdit() {
this.form = defaultForm()
Object.keys(this.form).forEach((key) => {
if (this.DATA[key]) {
if (this.DATA[key] || this.DATA[key] == 0) {
this.form[key] = this.DATA[key]
}
})
this.model_cfg.visible = true
console.log(this.form)
console.log(this.DATA)
},
handleCancle() {
this.form = defaultForm()

View File

@ -73,7 +73,7 @@ export default {
}
let id = await this.useUserIDGetDoctorID()
const routeData = this.$router.resolve({
path: `/curriculumVitae?id=${id}&&lang=${this.$i18n.locale}`,
path: `/curriculumVitae?Id=${id}&&lang=${this.$i18n.locale}`,
})
this.open = window.open(routeData.href, '_blank')
} else {