提交 4f844ff2 作者: 郁骅焌

状态修改

上级 05256707
...@@ -232,11 +232,11 @@ const setSelectRows = (value: string) => { ...@@ -232,11 +232,11 @@ const setSelectRows = (value: string) => {
selectRows.value = value selectRows.value = value
} }
/** 用户状态修改 */ /** 角色状态修改 */
function handleStatusChange(row: any) { function handleStatusChange(row: any) {
const text = row.status === '0' ? '启用' : '停用' const text = row.status === '0' ? '启用' : '停用'
$baseConfirm( $baseConfirm(
`确认要"${text}" "${row.userName}"用户吗?`, `确认要${text}${row.roleName}”角色吗?`,
null, null,
async () => { async () => {
await changeRoleStatus(row.roleId, row.status) await changeRoleStatus(row.roleId, row.status)
......
...@@ -328,7 +328,7 @@ const setSelectRows = (value: string) => { ...@@ -328,7 +328,7 @@ const setSelectRows = (value: string) => {
function handleStatusChange(row: any) { function handleStatusChange(row: any) {
const text = row.status === '0' ? '启用' : '停用' const text = row.status === '0' ? '启用' : '停用'
$baseConfirm( $baseConfirm(
`确认要"${text}" "${row.userName}"用户吗?`, `确认要${text}${row.userName}用户吗?`,
null, null,
async () => { async () => {
await changeUserStatus(row.userId, row.status) await changeUserStatus(row.userId, row.status)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论