MessageBox可拖动

This commit is contained in:
gaofy 2023-12-28 10:18:10 +08:00
parent 8d20b14a59
commit a0980c367a
7 changed files with 9 additions and 3 deletions

View File

@ -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('删除成功!')

View File

@ -135,6 +135,7 @@ const removeData = () => {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
draggable: true
}
).then(() => {
ElMessage.success('删除成功!')

View File

@ -150,6 +150,7 @@ const remoteRecord = (item: any, index: number) => {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
draggable: true
}
).then(() => {
ElMessage.success('删除成功!')

View File

@ -130,6 +130,7 @@ const selectHospital = (e: any) => {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'success',
draggable: true
}
).then(() => {
useLoginStore().setlogin('hospital', e)

View File

@ -208,6 +208,7 @@ const register = async () => {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'success',
draggable: true
}
).then(() => {
loginParams.value.account = registerFormRef.value.account

View File

@ -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(() => { })
}

View File

@ -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(() => { })
}