|
|
|
|
@ -3,55 +3,55 @@ import { LoadingInstance } from 'element-plus/es/components/loading/src/loading'
|
|
|
|
|
let loadingInstance: LoadingInstance;
|
|
|
|
|
export default {
|
|
|
|
|
// 消息提示
|
|
|
|
|
msg(content: string) {
|
|
|
|
|
msg(content: any) {
|
|
|
|
|
ElMessage.info(content);
|
|
|
|
|
},
|
|
|
|
|
// 错误消息
|
|
|
|
|
msgError(content: string) {
|
|
|
|
|
msgError(content: any) {
|
|
|
|
|
ElMessage.error(content);
|
|
|
|
|
},
|
|
|
|
|
// 成功消息
|
|
|
|
|
msgSuccess(content: string) {
|
|
|
|
|
msgSuccess(content: any) {
|
|
|
|
|
ElMessage.success(content);
|
|
|
|
|
},
|
|
|
|
|
// 警告消息
|
|
|
|
|
msgWarning(content: string) {
|
|
|
|
|
msgWarning(content: any) {
|
|
|
|
|
ElMessage.warning(content);
|
|
|
|
|
},
|
|
|
|
|
// 弹出提示
|
|
|
|
|
alert(content: string) {
|
|
|
|
|
alert(content: any) {
|
|
|
|
|
ElMessageBox.alert(content, '系统提示');
|
|
|
|
|
},
|
|
|
|
|
// 错误提示
|
|
|
|
|
alertError(content: string) {
|
|
|
|
|
alertError(content: any) {
|
|
|
|
|
ElMessageBox.alert(content, '系统提示', { type: 'error' });
|
|
|
|
|
},
|
|
|
|
|
// 成功提示
|
|
|
|
|
alertSuccess(content: string) {
|
|
|
|
|
alertSuccess(content: any) {
|
|
|
|
|
ElMessageBox.alert(content, '系统提示', { type: 'success' });
|
|
|
|
|
},
|
|
|
|
|
// 警告提示
|
|
|
|
|
alertWarning(content: string) {
|
|
|
|
|
alertWarning(content: any) {
|
|
|
|
|
ElMessageBox.alert(content, '系统提示', { type: 'warning' });
|
|
|
|
|
},
|
|
|
|
|
// 通知提示
|
|
|
|
|
notify(content: string) {
|
|
|
|
|
notify(content: any) {
|
|
|
|
|
ElNotification.info(content);
|
|
|
|
|
},
|
|
|
|
|
// 错误通知
|
|
|
|
|
notifyError(content: string) {
|
|
|
|
|
notifyError(content: any) {
|
|
|
|
|
ElNotification.error(content);
|
|
|
|
|
},
|
|
|
|
|
// 成功通知
|
|
|
|
|
notifySuccess(content: string) {
|
|
|
|
|
notifySuccess(content: any) {
|
|
|
|
|
ElNotification.success(content);
|
|
|
|
|
},
|
|
|
|
|
// 警告通知
|
|
|
|
|
notifyWarning(content: string) {
|
|
|
|
|
notifyWarning(content: any) {
|
|
|
|
|
ElNotification.warning(content);
|
|
|
|
|
},
|
|
|
|
|
// 确认窗体
|
|
|
|
|
confirm(content: string): Promise<MessageBoxData> {
|
|
|
|
|
confirm(content: any): Promise<MessageBoxData> {
|
|
|
|
|
return ElMessageBox.confirm(content, '系统提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
@ -59,7 +59,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 提交内容
|
|
|
|
|
prompt(content: string) {
|
|
|
|
|
prompt(content: any) {
|
|
|
|
|
return ElMessageBox.prompt(content, '系统提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
|