模板字符串使用
deleteClick(row) {
this.$confirm(`是否删除当前${row.userName}成员?", "提示`, {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
let oParam = {
// userId: row.userId || null,
gatherId: this.projectUserId,
deleteId: row.userId
};
console.log("🚀 ~ modifyUser ~ oParam:", oParam);
UseroperationApi(oParam).then((res) => {
if (res.code == "200") {
this.$message({
message: `删除${row.userName}成功!`,
type: "success"
});
this.getUserData();
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除"
});
});
console.log("🚀 ~ deleteClick ~ row:", row);
},
推荐阅读:
扫描二维码,在手机上阅读