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