ui: add B2B olmayan stok (orphans) page
This commit is contained in:
@@ -207,6 +207,7 @@ import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { usePermission } from 'src/composables/usePermission'
|
||||
import { useTranslationStore } from 'src/stores/translationStore'
|
||||
import { formatDataSourceLabel } from 'src/utils/formatters'
|
||||
|
||||
const $q = useQuasar()
|
||||
const store = useTranslationStore()
|
||||
@@ -231,15 +232,10 @@ const tablePagination = ref({
|
||||
let filterReloadTimer = null
|
||||
|
||||
const sourceTypeOptions = [
|
||||
{ label: 'dummy', value: 'dummy' },
|
||||
{ label: 'postgre', value: 'postgre' },
|
||||
{ label: 'mssql', value: 'mssql' }
|
||||
{ label: formatDataSourceLabel('dummy'), value: 'dummy' },
|
||||
{ label: formatDataSourceLabel('postgre'), value: 'postgre' },
|
||||
{ label: formatDataSourceLabel('mssql'), value: 'mssql' }
|
||||
]
|
||||
const sourceTypeLabelMap = {
|
||||
dummy: 'UI',
|
||||
postgre: 'PostgreSQL',
|
||||
mssql: 'MSSQL'
|
||||
}
|
||||
|
||||
const columns = [
|
||||
{ name: 'actions', label: 'Güncelle', field: 'actions', align: 'left' },
|
||||
@@ -413,7 +409,7 @@ function cellClass (key, field) {
|
||||
|
||||
function sourceTypeLabel (key) {
|
||||
const val = String(rowDraft(key).source_type || 'dummy').toLowerCase()
|
||||
return sourceTypeLabelMap[val] || val || '-'
|
||||
return formatDataSourceLabel(val)
|
||||
}
|
||||
|
||||
function toggleSelected (key, checked) {
|
||||
|
||||
Reference in New Issue
Block a user