Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中汽测评-信息安全测评系统
web
Commits
9a8cee55
Commit
9a8cee55
authored
Apr 01, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 70833
parent
6fe60adb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
7 deletions
+38
-7
login.vue
src/views/login.vue
+12
-1
index.vue
src/views/processing/carTest/review-form/index.vue
+6
-3
index.vue
src/views/system/user/index.vue
+3
-2
resetPwd.vue
src/views/system/user/profile/resetPwd.vue
+17
-1
No files found.
src/views/login.vue
View file @
9a8cee55
...
...
@@ -102,7 +102,18 @@ export default {
{
required
:
true
,
trigger
:
'blur'
,
message
:
'请输入您的账号'
}
],
password
:
[
{
required
:
true
,
trigger
:
'blur'
,
message
:
'请输入您的密码'
}
{
required
:
true
,
trigger
:
'blur'
,
message
:
'请输入您的密码'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
const
pattern
=
/^
(?=
.*
\d)(?=
.*
[
a-zA-Z
])(?=
.*
[^\d
a-zA-Z
])
.
{8,}
$/
if
(
!
pattern
.
test
(
value
))
{
callback
(
new
Error
(
'字段必须包含数字、字母和英文字符'
))
}
else
{
callback
()
}
},
trigger
:
'blur'
}
],
code
:
[{
required
:
true
,
trigger
:
'change'
,
message
:
'请输入验证码'
}]
},
...
...
src/views/processing/carTest/review-form/index.vue
View file @
9a8cee55
...
...
@@ -87,7 +87,7 @@
</div>
</div>
<div
class=
"standard-result"
>
<el-button
type=
"text"
@
click=
"testmMthod"
<el-button
type=
"text"
@
click=
"testmMthod
(item)
"
>
标准测试方法
</el-button
>
</div>
...
...
@@ -140,6 +140,7 @@
</div>
</div>
<el-dialog
title=
"标准测试方法"
:visible
.
sync=
"open"
append-to-body
>
{{ activeValue }}
</el-dialog>
</task-standard>
</template>
...
...
@@ -169,7 +170,8 @@ export default {
detailsList
:
[]
},
task
:
{},
loading
:
false
loading
:
false
,
activeValue
:
''
}
},
mounted
()
{
...
...
@@ -194,8 +196,9 @@ export default {
closeAll
()
{
this
.
activeNames
=
[]
},
testmMthod
()
{
testmMthod
(
i
)
{
this
.
open
=
true
this
.
activeValue
=
i
.
testMethod
},
getTest
()
{
getBySubtaskId
({
id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
...
...
src/views/system/user/index.vue
View file @
9a8cee55
...
...
@@ -779,8 +779,9 @@ export default {
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
closeOnClickModal
:
false
,
inputPattern
:
/^.
{6,20}
$/
,
inputErrorMessage
:
'用户密码长度必须介于 6 和 20 之间'
inputPattern
:
/^
(?=
.*
\d)(?=
.*
[
a-zA-Z
])(?=
.*
[^\d
a-zA-Z
])
.
{6,20}
$/
,
inputErrorMessage
:
'用户密码必须包含数字、字母和英文字符,长度必须介于 6 和 20 之间'
})
.
then
(({
value
})
=>
{
resetUserPwd
(
row
.
userId
,
value
).
then
(
response
=>
{
...
...
src/views/system/user/profile/resetPwd.vue
View file @
9a8cee55
...
...
@@ -56,7 +56,23 @@ export default {
],
newPassword
:
[
{
required
:
true
,
message
:
'新密码不能为空'
,
trigger
:
'blur'
},
{
min
:
6
,
max
:
20
,
message
:
'长度在 6 到 20 个字符'
,
trigger
:
'blur'
}
{
min
:
6
,
max
:
20
,
message
:
'长度在 6 到 20 个字符'
,
trigger
:
'blur'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
const
pattern
=
/^
(?=
.*
\d)(?=
.*
[
a-zA-Z
])(?=
.*
[^\d
a-zA-Z
])
.
{8,}
$/
if
(
!
pattern
.
test
(
value
))
{
callback
(
new
Error
(
'字段必须包含数字、字母和英文字符'
))
}
else
{
callback
()
}
},
trigger
:
'blur'
}
],
confirmPassword
:
[
{
required
:
true
,
message
:
'确认密码不能为空'
,
trigger
:
'blur'
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment