0
点赞
收藏
分享

微信扫一扫

ElmentUI的提示对话框

小时候是个乖乖 2022-03-31 阅读 72

    // 解锁
    getTaskUnlock(data){
       this.$confirm(data.qualityinspector+'质检中,是否确认解锁?', '确定解锁', {
        confirmButtonText: '确定解锁',
        cancelButtonText: '取消',
        type: 'warning'}).then(() => {
          this.$store.dispatch("loading/CHANGE_LOADING", true);
          let params ={
            clmnum:data.clmnum,//理赔号
            jobno:this.userInfo.account//当前账号
          }
          getTaskUnlockApi(params).then((res) => {
            this.$store.dispatch("loading/CHANGE_LOADING", false);
            if (res.resultCode === 0) {
                // 解锁成功 0成功  500失败
                // data.unlocksign='2'
                this.$message({ message: res.resultMsg, type: "success",showClose: true});
                this.intDataList();
            }else{
                this.$message({ message: res.resultMsg, type: "warning",showClose: true});
            } 
          }).catch((err) => {
              this.$store.dispatch("loading/CHANGE_LOADING", false);
              // this.$message({ message: err, type: "warning", showClose: true });
          });
      })
    },


举报

相关推荐

0 条评论