弹出确认框

this.$confirm("是否确认标记为作废?", "提示", {
        iconClass: "el-icon-question", //自定义图标样式
        confirmButtonText: "确认", //确认按钮文字更换
        cancelButtonText: "取消", //取消按钮文字更换
        showClose: true, //是否显示右上角关闭按钮
        type: "warning", //提示类型  success/info/warning/error
      })
        .then(function () {  //选择确认进入此方法
          //确认操作
          return updateZFPZ(row.dlmc, row.hkls, "9");  
        })
        .then(() => {  //上一个then()执行成功后执行后续方法
          this.getList();
          this.$modal.msgSuccess("修改成功");
        })
        .catch(function (err) { //取消按钮会视为erro
          debugger;
          //捕获异常
          console.log(err);
        });
    },
Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐