diff --git a/src/filters/index.js b/src/filters/index.js index a92d2eb07..bf1429aee 100644 --- a/src/filters/index.js +++ b/src/filters/index.js @@ -16,6 +16,7 @@ import getUpdatedValues from './getUpdatedValues'; import getParamWhere from './getParamWhere'; import parsePhone from './parsePhone'; import isDialogOpened from './isDialogOpened'; +import toCelsius from './toCelsius'; export { getUpdatedValues, @@ -36,4 +37,5 @@ export { dashIfEmpty, dateRange, getParamWhere, + toCelsius, }; diff --git a/src/filters/toCelsius.js b/src/filters/toCelsius.js new file mode 100644 index 000000000..83cab32ca --- /dev/null +++ b/src/filters/toCelsius.js @@ -0,0 +1,3 @@ +export default function toCelsius(value) { + return value ? `${value}°C` : ''; +} diff --git a/src/pages/Entry/Card/EntryBasicData.vue b/src/pages/Entry/Card/EntryBasicData.vue index 147287837..68d666fc0 100644 --- a/src/pages/Entry/Card/EntryBasicData.vue +++ b/src/pages/Entry/Card/EntryBasicData.vue @@ -3,7 +3,6 @@ import { ref } from 'vue'; import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; import { useRole } from 'src/composables/useRole'; - import FetchData from 'components/FetchData.vue'; import FormModel from 'components/FormModel.vue'; import VnRow from 'components/ui/VnRow.vue'; @@ -11,7 +10,7 @@ import VnInput from 'src/components/common/VnInput.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelectDialog from 'src/components/common/VnSelectDialog.vue'; import FilterTravelForm from 'src/components/FilterTravelForm.vue'; - +import VnInputNumber from 'src/components/common/VnInputNumber.vue'; import { toDate } from 'src/filters'; const route = useRoute(); @@ -26,6 +25,7 @@ const onFilterTravelSelected = (formData, id) => { formData.travelFk = id; }; +