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