This commit is contained in:
@@ -174,7 +174,8 @@ export default {
|
||||
"AttachFile",
|
||||
"AttachmentNotes",
|
||||
"Upload",
|
||||
"AttachmentFileName"
|
||||
"AttachmentFileName",
|
||||
"FileAttachment"
|
||||
],
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</v-list-item-content>
|
||||
|
||||
<v-list-item-action>
|
||||
<v-btn icon>
|
||||
<v-btn @click="openEditMenu(item, $event)" icon>
|
||||
<v-icon>fa-edit</v-icon>
|
||||
</v-btn>
|
||||
<v-btn @click="remove(item)" icon>
|
||||
@@ -108,6 +108,8 @@ export default {
|
||||
tab: null,
|
||||
uploadFiles: [],
|
||||
editMenu: false,
|
||||
menuX: 10,
|
||||
menuY: 10,
|
||||
editNotes: null,
|
||||
editName: null,
|
||||
editId: null
|
||||
@@ -218,7 +220,21 @@ export default {
|
||||
});
|
||||
}
|
||||
this.displayList = ret;
|
||||
},
|
||||
openEditMenu(item, e) {
|
||||
e.preventDefault();
|
||||
this.editMenu = false;
|
||||
this.editName = item.name;
|
||||
this.editNotes = item.notes;
|
||||
this.editId = item.id;
|
||||
|
||||
this.menuX = e.clientX;
|
||||
this.menuY = e.clientY;
|
||||
this.$nextTick(() => {
|
||||
this.editMenu = true;
|
||||
});
|
||||
}
|
||||
//-----
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user