Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计全科技
jeepay-ui
提交
b522b151
jeepay-ui
项目概览
计全科技
/
jeepay-ui
通知
11
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
jeepay-ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b522b151
编写于
6月 16, 2021
作者:
X
xiaoyu
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue
上级
f9b5b5e4
a207eb76
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
16 deletion
+18
-16
jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue
jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue
+18
-16
未找到文件。
jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue
浏览文件 @
b522b151
...
...
@@ -56,22 +56,27 @@
</a-radio-group>
</a-form-model-item>
<a-divider
orientation=
"left"
>
<a-tag
color=
"#FF4B33"
>
账户安全
</a-tag>
</a-divider>
<a-form-model-item
label=
"重置密码:"
v-if=
"resetIsShow"
>
<a-checkbox
v-model=
"sysPassword.resetPass"
></a-checkbox>
</a-form-model-item>
<div
v-if=
"sysPassword.resetPass"
>
<a-form-model-item
label=
"
恢复默认密码
:"
>
<a-form-model-item
label=
"
使用默认密码重置
:"
>
<a-checkbox
v-model=
"sysPassword.defaultPass"
@
click=
"isResetPass"
></a-checkbox>
</a-form-model-item>
<div>
<!--
<div
v-if=
"sysPassword.defaultPass"
>
<a-form-model-item
label=
"新密码:"
>
<a-input-password
v-model=
"sysPassword.newPwd"
:disabled=
"sysPassword.defaultPass"
/>
</a-form-model-item>
<a-form-model-item
label=
"确认新密码:"
>
<a-input-password
v-model=
"sysPassword.confirmPwd"
:disabled=
"sysPassword.defaultPass"
/>
</a-form-model-item>
</div>
-->
<!--
<div
v-else
>
-->
<div
v-show=
"!this.sysPassword.defaultPass"
>
<div>
<a-form-model-item
label=
"新密码:"
prop=
"newPwd"
>
<a-input-password
autocomplete=
"new-password"
v-model=
"sysPassword.newPwd"
:disabled=
"sysPassword.defaultPass"
/>
</a-form-model-item>
...
...
@@ -81,6 +86,7 @@
</a-form-model-item>
</div>
</div>
</div>
<div
class=
"drawer-btn-center"
>
...
...
@@ -123,20 +129,15 @@ export default {
telphone
:
[{
required
:
true
,
pattern
:
/^
[
1
][
0-9
]{10}
$/
,
message
:
'
请输入正确的手机号码
'
,
trigger
:
'
blur
'
}],
userNo
:
[{
required
:
true
,
message
:
'
请输入编号
'
,
trigger
:
'
blur
'
}],
loginUsername
:
[],
newPwd
:
[{
required
:
false
,
trigger
:
'
blur
'
},
{
newPwd
:
[{
required
:
false
,
min
:
6
,
max
:
12
,
message
:
'
请输入6-12位新密码
'
,
trigger
:
'
blur
'
},
{
validator
:
(
rule
,
value
,
callBack
)
=>
{
if
(
!
this
.
sysPassword
.
defaultPass
)
{
if
(
this
.
sysPassword
.
newPwd
.
length
<
6
||
this
.
sysPassword
.
newPwd
.
length
>
12
)
{
callBack
(
'
请输入6-12位新密码
'
)
}
}
callBack
()
this
.
sysPassword
.
defaultPass
===
true
?
callBack
()
:
callBack
(
'
请输入6-12位新密码
'
)
}
}],
// 新密码
confirmPwd
:
[{
required
:
false
,
trigger
:
'
blur
'
},
{
confirmPwd
:
[{
required
:
false
,
message
:
'
请确认输入新密码
'
,
trigger
:
'
blur
'
},
{
validator
:
(
rule
,
value
,
callBack
)
=>
{
if
(
!
this
.
sysPassword
.
defaultPass
)
{
this
.
sysPassword
.
newPwd
===
this
.
sysPassword
.
confirmPwd
?
callBack
()
:
callBack
(
'
新密码与确认密码不一致
'
)
this
.
sysPassword
.
newPwd
===
value
?
callBack
()
:
callBack
(
'
新密码与确认密码不一致
'
)
}
else
{
callBack
()
}
...
...
@@ -225,6 +226,7 @@ export default {
// 使用默认密码重置是否为true
isResetPass
()
{
if
(
!
this
.
sysPassword
.
defaultPass
)
{
console
.
log
(
0
)
this
.
sysPassword
.
newPwd
=
''
this
.
sysPassword
.
confirmPwd
=
''
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录