mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
code refactor
This commit is contained in:
+1
-1
@@ -523,7 +523,7 @@ function getAllCurrencies(translateFn) {
|
||||
}
|
||||
|
||||
allCurrencies.push({
|
||||
code: currencyCode,
|
||||
currencyCode: currencyCode,
|
||||
displayName: getCurrencyName(currencyCode, translateFn)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
<v-col cols="12" md="6">
|
||||
<v-autocomplete
|
||||
item-title="displayName"
|
||||
item-value="code"
|
||||
item-value="currencyCode"
|
||||
auto-select-first
|
||||
:disabled="submitting || navigateToHomePage"
|
||||
:label="$t('Default Currency')"
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<v-col cols="12" md="12" v-if="account.type === allAccountTypes.SingleAccount || currentAccountIndex >= 0">
|
||||
<v-autocomplete
|
||||
item-title="displayName"
|
||||
item-value="code"
|
||||
item-value="currencyCode"
|
||||
auto-select-first
|
||||
persistent-placeholder
|
||||
:disabled="loading || submitting || !!editAccountId"
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
<v-col cols="12" md="6">
|
||||
<v-autocomplete
|
||||
item-title="displayName"
|
||||
item-value="code"
|
||||
item-value="currencyCode"
|
||||
auto-select-first
|
||||
persistent-placeholder
|
||||
:disabled="loading || saving"
|
||||
|
||||
@@ -85,8 +85,8 @@
|
||||
</f7-block>
|
||||
</template>
|
||||
<select autocomplete="transaction-currency" v-model="user.defaultCurrency">
|
||||
<option :value="currency.code"
|
||||
:key="currency.code"
|
||||
<option :value="currency.currencyCode"
|
||||
:key="currency.currencyCode"
|
||||
v-for="currency in allCurrencies">{{ currency.displayName }}</option>
|
||||
</select>
|
||||
</f7-list-item>
|
||||
|
||||
@@ -167,8 +167,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<select autocomplete="transaction-currency" v-model="account.currency">
|
||||
<option :value="currency.code"
|
||||
:key="currency.code"
|
||||
<option :value="currency.currencyCode"
|
||||
:key="currency.currencyCode"
|
||||
v-for="currency in allCurrencies">{{ currency.displayName }}</option>
|
||||
</select>
|
||||
</f7-list-item>
|
||||
@@ -360,8 +360,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<select autocomplete="transaction-currency" v-model="subAccount.currency">
|
||||
<option :value="currency.code"
|
||||
:key="currency.code"
|
||||
<option :value="currency.currencyCode"
|
||||
:key="currency.currencyCode"
|
||||
v-for="currency in allCurrencies">{{ currency.displayName }}</option>
|
||||
</select>
|
||||
</f7-list-item>
|
||||
|
||||
@@ -141,8 +141,8 @@
|
||||
</f7-block>
|
||||
</template>
|
||||
<select autocomplete="transaction-currency" v-model="newProfile.defaultCurrency">
|
||||
<option :value="currency.code"
|
||||
:key="currency.code"
|
||||
<option :value="currency.currencyCode"
|
||||
:key="currency.currencyCode"
|
||||
v-for="currency in allCurrencies">{{ currency.displayName }}</option>
|
||||
</select>
|
||||
</f7-list-item>
|
||||
|
||||
Reference in New Issue
Block a user