mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 10:14:26 +08:00
code refactor
This commit is contained in:
@@ -189,8 +189,8 @@
|
|||||||
v-model:opened="showTransactionTemplatePopover">
|
v-model:opened="showTransactionTemplatePopover">
|
||||||
<f7-list dividers v-if="allTransactionTemplates">
|
<f7-list dividers v-if="allTransactionTemplates">
|
||||||
<f7-list-item :title="template.name" :key="template.id"
|
<f7-list-item :title="template.name" :key="template.id"
|
||||||
v-for="template in allTransactionTemplates"
|
:link="'/transaction/add?templateId=' + template.id"
|
||||||
@click="addTransaction(template)">
|
v-for="template in allTransactionTemplates">
|
||||||
<template #media>
|
<template #media>
|
||||||
<f7-icon f7="doc_plaintext"></f7-icon>
|
<f7-icon f7="doc_plaintext"></f7-icon>
|
||||||
</template>
|
</template>
|
||||||
@@ -320,11 +320,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addTransaction(template) {
|
|
||||||
if (template && template.id) {
|
|
||||||
this.f7router.navigate('/transaction/add?templateId=' + template.id);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
openTransactionTemplatePopover() {
|
openTransactionTemplatePopover() {
|
||||||
if (this.allTransactionTemplates && this.allTransactionTemplates.length) {
|
if (this.allTransactionTemplates && this.allTransactionTemplates.length) {
|
||||||
this.showTransactionTemplatePopover = true;
|
this.showTransactionTemplatePopover = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user