Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
72ac4ce1
Commit
72ac4ce1
authored
Jun 29, 2021
by
季圣华
Browse files
用户增加状态的修改
parent
fedc101e
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/UserList.vue
View file @
72ac4ce1
...
...
@@ -31,6 +31,8 @@
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-menu-item
key=
"2"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(0)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu-item
key=
"3"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(2)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
批量操作
...
...
@@ -66,6 +68,11 @@
<a>
重置密码
</a>
</a-popconfirm>
</span>
<!-- 状态渲染模板 -->
<template
slot=
"customRenderFlag"
slot-scope=
"status"
>
<a-tag
v-if=
"status===0"
color=
"green"
>
启用
</a-tag>
<a-tag
v-if=
"status===2"
color=
"orange"
>
禁用
</a-tag>
</
template
>
</a-table>
</div>
<!-- table区域-end -->
...
...
@@ -117,6 +124,9 @@
{
title
:
'
机构
'
,
dataIndex
:
'
orgAbr
'
,
width
:
115
,
align
:
"
center
"
},
{
title
:
'
电话号码
'
,
dataIndex
:
'
phonenum
'
,
width
:
120
,
align
:
"
center
"
},
{
title
:
'
排序
'
,
dataIndex
:
'
userBlngOrgaDsplSeq
'
,
width
:
60
,
align
:
"
center
"
},
{
title
:
'
状态
'
,
dataIndex
:
'
status
'
,
width
:
70
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderFlag
'
}
},
{
title
:
'
操作
'
,
dataIndex
:
'
action
'
,
...
...
@@ -129,7 +139,8 @@
list
:
"
/user/list
"
,
delete
:
"
/user/delete
"
,
deleteBatch
:
"
/user/deleteBatch
"
,
resetPwd
:
"
/user/resetPwd
"
resetPwd
:
"
/user/resetPwd
"
,
batchSetStatusUrl
:
"
/user/batchSetStatus
"
},
}
},
...
...
Write
Preview
Supports
Markdown
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