| | |
| | | import { Message, MessageBox, Notification, Loading } from 'element-ui'
|
| | |
|
| | | let loadingInstance;
|
| | | let loadingInstance
|
| | |
|
| | | export default {
|
| | | // 消息提示
|
| | |
| | | },
|
| | | // 错误通知
|
| | | notifyError(content) {
|
| | | Notification.error(content);
|
| | | Notification.error(content)
|
| | | },
|
| | | // 成功通知
|
| | | notifySuccess(content) {
|
| | |
| | | type: "warning",
|
| | | })
|
| | | },
|
| | | // 提交内容
|
| | | prompt(content) {
|
| | | return MessageBox.prompt(content, "系统提示", {
|
| | | confirmButtonText: '确定',
|
| | | cancelButtonText: '取消',
|
| | | type: "warning",
|
| | | })
|
| | | },
|
| | | // 打开遮罩层
|
| | | loading(content) {
|
| | | loadingInstance = Loading.service({
|
| | |
| | | },
|
| | | // 关闭遮罩层
|
| | | closeLoading() {
|
| | | loadingInstance.close();
|
| | | loadingInstance.close()
|
| | | }
|
| | | }
|