刘翔宇-旅管家 3 years ago
parent 9ec8022321
commit 7387348f2e

@ -40,23 +40,26 @@
}, },
watch: { watch: {
isShow(newVal) { isShow(newVal) {
if (newVal) { if (newVal) {
this.dynamicTags=[]; this.dynamicTags = [];
this.inputVisible=false; this.inputVisible = false;
this.load(); this.load();
} }
} }
}, },
methods: { methods: {
handleClose(tag) { editor() {
destroy({ this.isShow = false;
id: tag.id },
}).then(response => { handleClose(tag) {
destroy({
id: tag.id
}).then(response => {
this.$message.success("操作成功"); this.$message.success("操作成功");
this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
}).catch(error => { }).catch(error => {
//reject(error) //reject(error)
this.$message.error("操作失败"); this.$message.error("操作失败");
}) })
}, },
@ -104,7 +107,7 @@
</script> </script>
<style> <style>
.el-tag+.el-tag { .el-tag+.el-tag {
margin-left: 10px; margin-left: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
@ -179,4 +182,4 @@
z-index: 2; z-index: 2;
} }
} }
</style> </style>
Loading…
Cancel
Save