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) { setPassword(val) {
console.log(val)
if (this.isShowPassword) { if (this.isShowPassword) {
this.loginForm.password = val this.loginForm.password = val
} else { } 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 nDot = /[^●]/g //
let index = -1 // let index = -1 //
let lastChar = void 0 // let lastChar = void 0 //
@ -475,11 +477,13 @@ export default {
} }
}) })
// //
if (lastChar && !reg.test(lastChar)) { // if (lastChar && !reg.test(lastChar)) {
coverArr.splice(index, 1) // coverArr.splice(index, 1)
this.pwdCover = coverArr.join('') // this.pwdCover = coverArr.join('')
return // console.log(111111111111111, lastChar)
} // // return
// }
if (coverLen - realLen <= 2) {
if (realLen < coverLen) { if (realLen < coverLen) {
// //
realArr.splice(index, 0, lastChar) realArr.splice(index, 0, lastChar)
@ -491,9 +495,13 @@ export default {
let pos = document.getElementById('pwd').selectionEnd // let pos = document.getElementById('pwd').selectionEnd //
realArr.splice(pos, realLen - coverLen) realArr.splice(pos, realLen - coverLen)
} }
}
// pwdCover // pwdCover
this.pwdCover = val.replace(/\S/g, '●') 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() { openEdit() {
this.form = defaultForm() this.form = defaultForm()
Object.keys(this.form).forEach((key) => { 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.form[key] = this.DATA[key]
} }
}) })
this.model_cfg.visible = true this.model_cfg.visible = true
console.log(this.form)
console.log(this.DATA)
}, },
handleCancle() { handleCancle() {
this.form = defaultForm() this.form = defaultForm()

View File

@ -73,7 +73,7 @@ export default {
} }
let id = await this.useUserIDGetDoctorID() let id = await this.useUserIDGetDoctorID()
const routeData = this.$router.resolve({ 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') this.open = window.open(routeData.href, '_blank')
} else { } else {