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