mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 04:54:58 +08:00
MessageBox可拖动
This commit is contained in:
parent
8d20b14a59
commit
a0980c367a
|
@ -6,7 +6,7 @@ export const tableRemoveRow = (params: any, callback: (res: boolean) => void) =>
|
|||
if (!params.data) params.data = []
|
||||
if (Array.isArray(params.data)) {
|
||||
if (params.data.length < 1) {
|
||||
ElMessageBox.alert('请至少选择一条数据进行删除', '系统提醒', { type: 'warning' })
|
||||
ElMessageBox.alert('请至少选择一条数据进行删除', '系统提醒', { type: 'warning', draggable: true })
|
||||
return callback(false)
|
||||
}
|
||||
ElMessageBox.confirm(
|
||||
|
@ -16,6 +16,7 @@ export const tableRemoveRow = (params: any, callback: (res: boolean) => void) =>
|
|||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
draggable: true
|
||||
}
|
||||
).then(() => {
|
||||
ElMessage.success('删除成功!')
|
||||
|
@ -31,6 +32,7 @@ export const tableRemoveRow = (params: any, callback: (res: boolean) => void) =>
|
|||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
draggable: true
|
||||
}
|
||||
).then(() => {
|
||||
ElMessage.success('删除成功!')
|
||||
|
|
|
@ -135,6 +135,7 @@ const removeData = () => {
|
|||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
draggable: true
|
||||
}
|
||||
).then(() => {
|
||||
ElMessage.success('删除成功!')
|
||||
|
|
|
@ -150,6 +150,7 @@ const remoteRecord = (item: any, index: number) => {
|
|||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
draggable: true
|
||||
}
|
||||
).then(() => {
|
||||
ElMessage.success('删除成功!')
|
||||
|
|
|
@ -130,6 +130,7 @@ const selectHospital = (e: any) => {
|
|||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'success',
|
||||
draggable: true
|
||||
}
|
||||
).then(() => {
|
||||
useLoginStore().setlogin('hospital', e)
|
||||
|
|
|
@ -208,6 +208,7 @@ const register = async () => {
|
|||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'success',
|
||||
draggable: true
|
||||
}
|
||||
).then(() => {
|
||||
loginParams.value.account = registerFormRef.value.account
|
||||
|
|
|
@ -119,7 +119,7 @@ const enableChange = (e: any) => {
|
|||
ElMessage.success(e.enable ? '启用成功' : '禁用成功')
|
||||
}
|
||||
const resetPassword = (e: any) => {
|
||||
ElMessageBox.confirm('是否确定要重置密码?', '系统提醒', { type: 'warning' }).then(() => {
|
||||
ElMessageBox.confirm('是否确定要重置密码?', '系统提醒', { type: 'warning', draggable: true }).then(() => {
|
||||
ElMessage.success('重置成功!')
|
||||
}).catch(() => { })
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ const enableChange = (e: any) => {
|
|||
ElMessage.success(e.enable ? '启用成功' : '禁用成功')
|
||||
}
|
||||
const resetPassword = (e: any) => {
|
||||
ElMessageBox.confirm('是否确定要重置密码?', '系统提醒', { type: 'warning' }).then(() => {
|
||||
ElMessageBox.confirm('是否确定要重置密码?', '系统提醒', { type: 'warning', draggable: true }).then(() => {
|
||||
ElMessage.success('重置成功!')
|
||||
}).catch(() => { })
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user