|
|
|
@ -816,23 +816,16 @@ export default {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.collectFlag = true;
|
|
|
|
|
addFavorList({ list: [this.zztermId], type: 1 }).then((res) => {
|
|
|
|
|
this.getupdateFavorTreeList();
|
|
|
|
|
});
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "添加成功!",
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "info",
|
|
|
|
|
message: "已取消该操作",
|
|
|
|
|
});
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.collectFlag = true;
|
|
|
|
|
addFavorList({ list: [this.zztermId], type: 1 }).then((res) => {
|
|
|
|
|
this.getupdateFavorTreeList();
|
|
|
|
|
});
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "添加成功!",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$confirm("此操作将取消收藏, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
@ -841,16 +834,11 @@ export default {
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.collectFlag = false;
|
|
|
|
|
addFavorList({ list: [this.zztermId], type: 0 }).then((res) => {
|
|
|
|
|
this.getFavorTreeList();
|
|
|
|
|
this.getupdateFavorTreeList();
|
|
|
|
|
});
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "取消收藏!",
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "info",
|
|
|
|
|
message: "已取消该操作",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|