|
@@ -54,13 +54,9 @@ class RoleManageFragment : BaseFragment<FragmentRoleManageBinding>() {
|
|
|
title = CommonUtils.getStr("action_failed"),
|
|
title = CommonUtils.getStr("action_failed"),
|
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
|
msg = CommonUtils.getStr("role_key_already_exists"),
|
|
msg = CommonUtils.getStr("role_key_already_exists"),
|
|
|
- countDownTime = 10,
|
|
|
|
|
showCancel = false,
|
|
showCancel = false,
|
|
|
onConfirmClick = {
|
|
onConfirmClick = {
|
|
|
getRoleData(nextPage = false)
|
|
getRoleData(nextPage = false)
|
|
|
- },
|
|
|
|
|
- onCancelClick = {
|
|
|
|
|
- getRoleData(nextPage = false)
|
|
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
return@show
|
|
return@show
|
|
@@ -73,13 +69,9 @@ class RoleManageFragment : BaseFragment<FragmentRoleManageBinding>() {
|
|
|
title = CommonUtils.getStr("action_succeed"),
|
|
title = CommonUtils.getStr("action_succeed"),
|
|
|
dialogType = TipDialog.DialogType.SUCCESS,
|
|
dialogType = TipDialog.DialogType.SUCCESS,
|
|
|
msg = CommonUtils.getStr("add_role_succeed"),
|
|
msg = CommonUtils.getStr("add_role_succeed"),
|
|
|
- countDownTime = 10,
|
|
|
|
|
showCancel = false,
|
|
showCancel = false,
|
|
|
onConfirmClick = {
|
|
onConfirmClick = {
|
|
|
getRoleData(nextPage = false)
|
|
getRoleData(nextPage = false)
|
|
|
- },
|
|
|
|
|
- onCancelClick = {
|
|
|
|
|
- getRoleData(nextPage = false)
|
|
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
} else {
|
|
} else {
|
|
@@ -87,13 +79,9 @@ class RoleManageFragment : BaseFragment<FragmentRoleManageBinding>() {
|
|
|
title = CommonUtils.getStr("action_failed"),
|
|
title = CommonUtils.getStr("action_failed"),
|
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
|
msg = CommonUtils.getStr("add_role_failed"),
|
|
msg = CommonUtils.getStr("add_role_failed"),
|
|
|
- countDownTime = 10,
|
|
|
|
|
showCancel = false,
|
|
showCancel = false,
|
|
|
onConfirmClick = {
|
|
onConfirmClick = {
|
|
|
getRoleData(nextPage = false)
|
|
getRoleData(nextPage = false)
|
|
|
- },
|
|
|
|
|
- onCancelClick = {
|
|
|
|
|
- getRoleData(nextPage = false)
|
|
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
@@ -178,13 +166,9 @@ class RoleManageFragment : BaseFragment<FragmentRoleManageBinding>() {
|
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
|
msg = CommonUtils.getStr("role_key_already_exists")
|
|
msg = CommonUtils.getStr("role_key_already_exists")
|
|
|
.toString(),
|
|
.toString(),
|
|
|
- countDownTime = 10,
|
|
|
|
|
showCancel = false,
|
|
showCancel = false,
|
|
|
onConfirmClick = {
|
|
onConfirmClick = {
|
|
|
getRoleData(nextPage = false)
|
|
getRoleData(nextPage = false)
|
|
|
- },
|
|
|
|
|
- onCancelClick = {
|
|
|
|
|
- getRoleData(nextPage = false)
|
|
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
return@show
|
|
return@show
|
|
@@ -196,13 +180,9 @@ class RoleManageFragment : BaseFragment<FragmentRoleManageBinding>() {
|
|
|
title = CommonUtils.getStr("action_succeed"),
|
|
title = CommonUtils.getStr("action_succeed"),
|
|
|
dialogType = TipDialog.DialogType.SUCCESS,
|
|
dialogType = TipDialog.DialogType.SUCCESS,
|
|
|
msg = CommonUtils.getStr("update_role_succeed"),
|
|
msg = CommonUtils.getStr("update_role_succeed"),
|
|
|
- countDownTime = 10,
|
|
|
|
|
showCancel = false,
|
|
showCancel = false,
|
|
|
onConfirmClick = {
|
|
onConfirmClick = {
|
|
|
getRoleData(nextPage = false)
|
|
getRoleData(nextPage = false)
|
|
|
- },
|
|
|
|
|
- onCancelClick = {
|
|
|
|
|
- getRoleData(nextPage = false)
|
|
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
} else {
|
|
} else {
|
|
@@ -210,14 +190,10 @@ class RoleManageFragment : BaseFragment<FragmentRoleManageBinding>() {
|
|
|
title = CommonUtils.getStr("action_failed"),
|
|
title = CommonUtils.getStr("action_failed"),
|
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
|
msg = CommonUtils.getStr("update_role_failed"),
|
|
msg = CommonUtils.getStr("update_role_failed"),
|
|
|
- countDownTime = 10,
|
|
|
|
|
showCancel = false,
|
|
showCancel = false,
|
|
|
onConfirmClick = {
|
|
onConfirmClick = {
|
|
|
getRoleData(nextPage = false)
|
|
getRoleData(nextPage = false)
|
|
|
},
|
|
},
|
|
|
- onCancelClick = {
|
|
|
|
|
- getRoleData(nextPage = false)
|
|
|
|
|
- }
|
|
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -279,8 +255,7 @@ class RoleManageFragment : BaseFragment<FragmentRoleManageBinding>() {
|
|
|
TipDialog.show(
|
|
TipDialog.show(
|
|
|
dialogType = TipDialog.DialogType.SUCCESS,
|
|
dialogType = TipDialog.DialogType.SUCCESS,
|
|
|
msg = CommonUtils.getStr("role_manage_delete_succeed"),
|
|
msg = CommonUtils.getStr("role_manage_delete_succeed"),
|
|
|
- showCancel = false,
|
|
|
|
|
- countDownTime = 10
|
|
|
|
|
|
|
+ showCancel = false
|
|
|
)
|
|
)
|
|
|
getRoleData(false)
|
|
getRoleData(false)
|
|
|
} else {
|
|
} else {
|
|
@@ -288,7 +263,6 @@ class RoleManageFragment : BaseFragment<FragmentRoleManageBinding>() {
|
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
dialogType = TipDialog.DialogType.ERROR,
|
|
|
msg = CommonUtils.getStr("role_manage_delete_failed"),
|
|
msg = CommonUtils.getStr("role_manage_delete_failed"),
|
|
|
showCancel = false,
|
|
showCancel = false,
|
|
|
- countDownTime = 10
|
|
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|