t20-common-lib 0.10.3 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -315,7 +315,7 @@ export default {
|
|
|
315
315
|
methods: {
|
|
316
316
|
applyDefaultShortcut() {
|
|
317
317
|
const defaultKey = localStorage.getItem('t20-datepicker-default-shortcut')
|
|
318
|
-
if (defaultKey
|
|
318
|
+
if (defaultKey) {
|
|
319
319
|
const allShortcuts = getShortcutDefinitions()
|
|
320
320
|
const shortcut = allShortcuts[defaultKey]
|
|
321
321
|
if (shortcut) {
|
|
@@ -164,6 +164,10 @@ export default {
|
|
|
164
164
|
}
|
|
165
165
|
const allStatistics = []
|
|
166
166
|
const selectedStatistics = []
|
|
167
|
+
let defaultCurrencyName = this.$l('人民币')
|
|
168
|
+
if (this.$store && this.$store.state && this.$store.state.user && this.$store.state.user.defaultCurrencyName) {
|
|
169
|
+
defaultCurrencyName = this.$store.state.user.defaultCurrencyName
|
|
170
|
+
}
|
|
167
171
|
this.views.forEach(item => {
|
|
168
172
|
allStatistics.push({
|
|
169
173
|
title: item.currencyName,
|
|
@@ -171,7 +175,16 @@ export default {
|
|
|
171
175
|
statis: [
|
|
172
176
|
{
|
|
173
177
|
type: this.$l('全部合计'), //全部合计
|
|
174
|
-
list: this.config.map(
|
|
178
|
+
list: this.config.map((c, i) => {
|
|
179
|
+
let label = c.label
|
|
180
|
+
if (i !== 0) {
|
|
181
|
+
label = c.currencyType === 'origin' ? `${c.label}(${this.$l('原币')})` : `${c.label}(${this.$l('折')}${this.$l(defaultCurrencyName)})`
|
|
182
|
+
}
|
|
183
|
+
return {
|
|
184
|
+
label,
|
|
185
|
+
value: item[c.code] || '0'
|
|
186
|
+
}
|
|
187
|
+
})
|
|
175
188
|
}
|
|
176
189
|
]
|
|
177
190
|
})
|