How to use the element-ui.Message.success function in element-ui

To help you get started, we’ve selected a few element-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Hzy0913 / my-blog / admin / src / component / PublicArticleEdit.vue View on Github external
respone => {
                Message.success('文章发布成功')
            // 如果文章信息保存成功就给父组件派发一个事件通知它刷新文章列表
            self.$emit('saveArticleInformation')
        },
            respone => Message.error('文章发布失败')
github Hzy0913 / my-blog / admin / src / component / ArticleEdit.vue View on Github external
respone => {
                    this.loading=false;
                Message.success('文章保存成功')

                // 如果文章信息保存成功就给父组件派发一个事件通知它刷新文章列表
                self.$emit('saveArticleInformation')
            },
                respone => {
github labulaka521 / crocodile / web / src / views / login / index.vue View on Github external
.then(resp => {
              if (resp.code === 0) {
                this.startqueryinstallstatus();
                this.installloading = false;
                this.needinstall = false;
                Message.success("恭喜你已经安装成功🎉");
              } else {
                Message.error(resp.msg);
                this.installloading = false;
                this.needinstall = false;
              }
            })
            .catch(err => {
github linguowei / myblog / admin / src / component / ArticleLabel.vue View on Github external
respone => {
                        if(respone.body.error){
                            Message.error(respone.body.msg);
                            return;
                        }
            		    Message.success('标签保存成功')
                        this.articleLabel.push(obj)
                    },
                    respone => Message.error('标签保存失败')
github labulaka521 / crocodile / web / src / views / hosts / index.vue View on Github external
deletehost(deldata).then(resp => {
        if (resp.code === 0) {
          Message.success("删除成功");
          this.startgethost();
        } else {
          Message.warning(`删除失败 ${resp.msg}`);
        }
      });
    }
github eyebluecn / blog-front / src / backyard / comment / widget / CommentList.vue View on Github external
floorCreateSuccess () {
        Message.success('评论成功!')
        this.refresh()
        //清空楼层回复中的内容
        this.floorComment.content = null
      },
github labulaka521 / crocodile / web / src / views / user / index.vue View on Github external
adminchangeinfo(this.user).then((resp) => {
          if (resp.code === 0) {
            Message.success(`修改用户 ${name} 成功`);
            this.startgetallusers();
            this.is_change = false;
          } else {
            Message.error(`修改用户 ${name} 失败: ${resp.msg}`);
          }
        });
      } else {
github mojowork / admin-lite / src / utils / request.js View on Github external
} catch (error) {
          result = response;
        }

        if (result.code < 0 ) {
          if (result.code == -2 || result.code == -10) {
            Message.error({
              message: result.msg
            });
            Promise.reject(result);
          }else{
            Promise.reject(result);
          }
        } else {
          if (result.code == 2) {
            Message.success({
              message: result.msg
            });
          } else if (result.code == 3) {
            Message.warning({
              message: result.msg
            });
          } else if (result.code == 4) {
            MessageBox.alert(result.msg, '提示', {
              confirmButtonText: '确定',
              type:'warning'
            });
          }
          Promise.resolve(result.data);
        }
    },
    error => {
github ITCNZ / Nuxt-ssr / utils / ui.js View on Github external
toast : function(message,type){
    let option = {
      'message' : message,
      'duration' : 2200
    };
    if(type == 'error'){
      Message.error(option)
    }
    else if (type == "success"){
      Message.success(option);
    }
    else if (type == "warning"){
      Message.warning(option);
    }
    else{
      Message.info(option);
    }
  },