@@ -126,24 +128,26 @@
{{ $t('label.currency') }}: {{ currency }}
-
-
- -
-
-
- {{ props.text }}
-
-
- {{ props.text }}
-
-
-
-
+
+
+
+ -
+
+
+ {{ text }}
+
+
+ {{ text }}
+
+
+
+
{{ text }}
{{ parseFloat(text).toFixed(2) }}
+
@@ -183,31 +187,33 @@
:rowKey="record => record.tariffname + '-' + record.startdate"
:pagination="false"
:scroll="{ y: '55vh' }">
-
- {{ $t('label.currency') }}: {{ currency }}
-
-
-
- {{ props.text }}
-
-
- {{ props.text }}
-
-
-
- {{ text }}
-
-
- {{ $toLocaleDate(text) }}
-
-
-
-
- {{ text }}
+
+ {{ $t('label.currency') }}: {{ currency }}
+
+
+
+
+ {{ text }}
+
+
+ {{ text }}
+
- {{ parseFloat(text).toFixed(2) }}
-
-
+
+ {{ $toLocaleDate(text) }}
+
+
+ {{ $toLocaleDate(text) }}
+
+
+
+
+ {{ text }}
+
+ {{ parseFloat(text).toFixed(2) }}
+
+
+
@@ -278,21 +284,18 @@ export default {
title: this.$t('label.quota.type.name'),
dataIndex: 'name',
width: 'calc(100% / 3)',
- slots: { customRender: 'nameRedirect' },
sorter: (a, b) => a.name.localeCompare(b.name)
},
{
title: this.$t('label.quota.type.unit'),
dataIndex: 'unit',
width: 'calc(100% / 3)',
- slots: { customRender: 'unit' },
sorter: (a, b) => a.unit.localeCompare(b.unit)
},
{
title: this.$t('label.quota.consumed'),
dataIndex: 'quota',
width: 'calc(100% / 3)',
- slots: { customRender: 'quota' },
sorter: (a, b) => a.quota - b.quota,
defaultSortOrder: 'descend'
}
@@ -304,7 +307,6 @@ export default {
title: this.$t('label.resource'),
dataIndex: 'displayname',
width: '50%',
- slots: { customRender: 'displayName' },
sorter: (a, b) => a.displayname.localeCompare(b.displayname),
defaultSortOrder: 'ascend'
},
@@ -312,7 +314,6 @@ export default {
title: this.$t('label.quota.consumed'),
dataIndex: 'quotaconsumed',
width: '50%',
- slots: { customRender: 'quota' },
sorter: (a, b) => a.quotaconsumed - b.quotaconsumed
}
]
@@ -322,26 +323,22 @@ export default {
{
title: this.$t('label.quota.tariff'),
dataIndex: 'tariffname',
- slots: { customRender: 'tariffName' },
sorter: (a, b) => a.tariffname.localeCompare(b.tariffname)
},
{
title: this.$t('label.start.date'),
dataIndex: 'startdate',
- slots: { customRender: 'startDate' },
sorter: (a, b) => a.startdate.localeCompare(b.startdate),
defaultSortOrder: 'descend'
},
{
title: this.$t('label.end.date'),
dataIndex: 'enddate',
- slots: { customRender: 'endDate' },
sorter: (a, b) => a.enddate.localeCompare(b.enddate)
},
{
title: this.$t('label.quota.consumed'),
dataIndex: 'quotaconsumed',
- slots: { customRender: 'quota' },
sorter: (a, b) => a.quotaused - b.quotaused
}
]