提交 d277ea95 作者: 郁骅焌

删除提示修改

上级 93c83954
......@@ -168,7 +168,7 @@ const handleUpdate = (row: any = {}) => {
/** 删除按钮操作 */
const handleDelete = (row: any = {}) => {
if (row.deptId) {
$baseConfirm(`是否确认删除名称为"${row.deptName}"的数据项?`, null, async () => {
$baseConfirm(`是否确认删除部门名称为"${row.deptName}"的数据项吗?`, null, async () => {
const { msg }: any = await doDelete(row.deptId)
$baseMessage(msg, 'success', 'hey')
await fetchData()
......
......@@ -183,7 +183,7 @@ const handleUpdate = (row: any = {}) => {
/** 删除按钮操作 */
const handleDelete = (row: any = {}) => {
if (row.menuId) {
$baseConfirm(`是否确认删除名称为"${row.menuName}"的数据项?`, null, async () => {
$baseConfirm(`是否确认删除菜单名称为"${row.menuName}"的数据项吗?`, null, async () => {
const { msg }: any = await doDelete(row.menuId)
$baseMessage(msg, 'success', 'hey')
await fetchData()
......
......@@ -227,7 +227,7 @@ function handleUpdate(row: any) {
/** 删除按钮操作 */
const handleDelete = (row: any = {}) => {
if (row.postId) {
$baseConfirm('您确定要删除当前项吗', null, async () => {
$baseConfirm(`您确定要删除岗位名称为“${row.postName}”的数据项吗`, null, async () => {
const { msg }: any = await doDelete(row.postId)
$baseMessage(msg, 'success', 'hey')
await fetchData()
......
......@@ -396,7 +396,7 @@ function handleUpdate(row: any) {
/** 删除按钮操作 */
const handleDelete = (row: any = {}) => {
if (row.userId) {
$baseConfirm('您确定要删除当前项吗', null, async () => {
$baseConfirm(`您确定要删除用户名称为${row.userName}的数据项吗`, null, async () => {
const { msg }: any = await doDelete(row.userId)
$baseMessage(msg, 'success', 'hey')
await fetchData()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论