confirmDelete(row) {
      let that = this;
      let data = {
        id: row
      };
      that.$axios
        .post(api.destroymodule, data)
        .then(res => {
          if (res.data.success == true) {
            this.$message({
              message: "删除成功",
              type: "success",
              duration:500
            });
          }
        })
        .catch(error => {
          console.log(error);
           this.$message({
          message: '删除失败',
          type: 'error'
        });
        });
    },
    async remover_handleClick(row) {
      let that = this;

      this.$confirm("此操作将永久删除该模块, 是否继续?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      })
        .then(async () => {
          let msgRet = await this.confirmDelete(row.id);
        })
        .catch(() => {
          console.log("cancel");
        });
    },

 

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2021-04-03
  • 2021-06-20
  • 2021-11-19
  • 2022-01-09
  • 2021-08-22
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案