Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计全科技
jeepay-ui
提交
5eb0689b
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 搜索 >>
提交
5eb0689b
编写于
6月 16, 2021
作者:
qq_40137331
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1. 操作员管理增加删除按钮 2,操作员增加重置密码选项
上级
56ccfa47
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
89 addition
and
6 deletion
+89
-6
jeepay-ui-manager/src/global.less
jeepay-ui-manager/src/global.less
+1
-1
jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue
jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue
+77
-5
jeepay-ui-manager/src/views/sysuser/SysUserPage.vue
jeepay-ui-manager/src/views/sysuser/SysUserPage.vue
+11
-0
未找到文件。
jeepay-ui-manager/src/global.less
浏览文件 @
5eb0689b
...
...
@@ -287,7 +287,7 @@ ul, ol {
padding: 10px 16px;
background: rgb(255, 255, 255);
text-align: center;
z-index:
1
;
z-index:
2
;
&:first-child {
margin-right: 80px;
...
...
jeepay-ui-manager/src/views/sysuser/AddOrEdit.vue
浏览文件 @
5eb0689b
...
...
@@ -11,7 +11,13 @@
>
<!--
<a-modal
:confirmLoading=
"confirmLoading"
>
-->
<a-form-model
ref=
"infoFormModel"
:model=
"saveObject"
:label-col=
"
{span: 8}" :wrapper-col="{span: 12}" :rules="rules">
<a-form-model
ref=
"infoFormModel"
:model=
"saveObject"
:label-col=
"
{span: 8}"
:wrapper-col="{span: 12}"
:rules="rules"
style="padding-bottom:50px">
<a-form-model-item
label=
"用户登录名:"
prop=
"loginUsername"
>
<a-input
v-model=
"saveObject.loginUsername"
:disabled=
"!isAdd"
/>
...
...
@@ -50,6 +56,39 @@
</a-radio-group>
</a-form-model-item>
<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-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>
<a-form-model-item
label=
"新密码:"
prop=
"newPwd"
>
<a-input-password
autocomplete=
"new-password"
v-model=
"sysPassword.newPwd"
:disabled=
"sysPassword.defaultPass"
/>
</a-form-model-item>
<a-form-model-item
label=
"确认新密码:"
prop=
"confirmPwd"
>
<a-input-password
autocomplete=
"new-password"
v-model=
"sysPassword.confirmPwd"
:disabled=
"sysPassword.defaultPass"
/>
</a-form-model-item>
</div>
</div>
</div>
<div
class=
"drawer-btn-center"
>
<a-button
:style=
"
{ marginRight: '8px' }" @click="onClose" icon="close">取消
</a-button>
<a-button
type=
"primary"
@
click=
"handleOkFunc"
icon=
"check"
:loading=
"confirmLoading"
>
保存
</a-button>
...
...
@@ -71,6 +110,13 @@ export default {
data
()
{
return
{
resetIsShow
:
false
,
// 重置密码是否展现
sysPassword
:
{
resetPass
:
false
,
// 重置密码
defaultPass
:
true
,
// 使用默认密码
newPwd
:
''
,
// 新密码
confirmPwd
:
''
// 确认密码
},
loading
:
false
,
// 按钮上的loading
value
:
1
,
// 单选框默认的值
confirmLoading
:
false
,
// 显示确定按钮loading图标
...
...
@@ -82,7 +128,15 @@ export default {
realname
:
[{
required
:
true
,
message
:
'
请输入用户姓名
'
,
trigger
:
'
blur
'
}],
telphone
:
[{
required
:
true
,
pattern
:
/^
[
1
][
0-9
]{10}
$/
,
message
:
'
请输入正确的手机号码
'
,
trigger
:
'
blur
'
}],
userNo
:
[{
required
:
true
,
message
:
'
请输入编号
'
,
trigger
:
'
blur
'
}],
loginUsername
:
[]
loginUsername
:
[],
newPwd
:
[{
required
:
true
,
min
:
6
,
max
:
12
,
message
:
'
请输入6-12位新密码
'
,
trigger
:
'
blur
'
}],
// 新密码
confirmPwd
:
[{
required
:
true
,
message
:
'
请确认输入新密码
'
,
trigger
:
'
blur
'
},
{
validator
:
(
rule
,
value
,
callBack
)
=>
{
console
.
log
(
value
)
console
.
log
(
this
.
sysPassword
.
newPwd
)
this
.
sysPassword
.
newPwd
===
value
?
callBack
()
:
callBack
(
'
新密码与确认密码不一致
'
)
}
}]
// 确认新密码
}
}
},
...
...
@@ -115,6 +169,7 @@ export default {
const
that
=
this
if
(
!
this
.
isAdd
)
{
// 修改信息 延迟展示弹层
that
.
resetIsShow
=
true
// 展示重置密码板块
that
.
recordId
=
recordId
req
.
getById
(
API_URL_SYS_USER_LIST
,
recordId
).
then
(
res
=>
{
that
.
saveObject
=
res
})
this
.
isShow
=
true
...
...
@@ -139,19 +194,36 @@ export default {
that
.
confirmLoading
=
false
})
}
else
{
Object
.
assign
(
that
.
saveObject
,
that
.
sysPassword
)
// 拼接对象
console
.
log
(
that
.
saveObject
)
req
.
updateById
(
API_URL_SYS_USER_LIST
,
that
.
recordId
,
that
.
saveObject
).
then
(
res
=>
{
that
.
$message
.
success
(
'
修改成功
'
)
that
.
isShow
=
false
that
.
callbackFunc
()
// 刷新列表
}).
catch
(
res
=>
{
that
.
confirmLoading
=
false
})
that
.
resetIsShow
=
false
// 取消展示
that
.
sysPassword
.
resetPass
=
false
}).
catch
(
res
=>
{
that
.
confirmLoading
=
false
that
.
resetIsShow
=
false
// 取消展示
that
.
sysPassword
.
resetPass
=
false
})
}
}
})
},
//
点击遮罩层
关闭抽屉
// 关闭抽屉
onClose
()
{
this
.
isShow
=
false
this
.
resetIsShow
=
false
// 取消重置密码板块展示
this
.
sysPassword
.
resetPass
=
false
},
// 使用默认密码重置是否为true
isResetPass
()
{
if
(
!
this
.
sysPassword
.
defaultPass
)
{
console
.
log
(
0
)
this
.
sysPassword
.
newPwd
=
''
this
.
sysPassword
.
confirmPwd
=
''
}
}
}
}
...
...
jeepay-ui-manager/src/views/sysuser/SysUserPage.vue
浏览文件 @
5eb0689b
...
...
@@ -42,6 +42,7 @@
<JeepayTableColumns>
<a
v-if=
"$access('ENT_UR_USER_UPD_ROLE')"
@
click=
"roleDist(record.sysUserId)"
>
变更角色
</a>
<a
v-if=
"$access('ENT_UR_USER_EDIT')"
@
click=
"editFunc(record.sysUserId)"
>
修改
</a>
<a
style=
"color: red"
@
click=
"delFunc(record.sysUserId)"
>
删除
</a>
</JeepayTableColumns>
</
template
>
</JeepayTable>
...
...
@@ -117,6 +118,16 @@ export default {
this
.
$refs
.
infoAddOrEdit
.
show
(
recordId
)
},
delFunc
:
function
(
recordId
)
{
// 业务通用【删除】 函数
const
that
=
this
this
.
$infoBox
.
confirmDanger
(
'
确认删除?
'
,
''
,
()
=>
{
return
req
.
delById
(
API_URL_SYS_USER_LIST
,
recordId
).
then
(
res
=>
{
that
.
$message
.
success
(
'
删除成功!
'
)
that
.
$refs
.
infoTable
.
refTable
(
false
)
})
})
},
roleDist
:
function
(
recordId
)
{
// 【分配权限】 按钮点击事件
this
.
$refs
.
roleDist
.
show
(
recordId
)
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录