|
|
|
@ -41,19 +41,22 @@
|
|
|
|
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: {
|
|
|
|
|
|
|
|
editor() {
|
|
|
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
|
|
|
},
|
|
|
|
handleClose(tag) {
|
|
|
|
handleClose(tag) {
|
|
|
|
destroy({
|
|
|
|
destroy({
|
|
|
|
id: tag.id
|
|
|
|
id: tag.id
|
|
|
|
}).then(response => {
|
|
|
|
}).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("操作失败");
|
|
|
|
|