feat(WorkerFormation): is-editable and use-model
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2024-06-12 11:00:10 +02:00
parent c3409a9d5c
commit d7237463ea
1 changed files with 5 additions and 12 deletions

View File

@ -3,7 +3,6 @@ import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import VnTable from 'components/VnTable/VnTable.vue'; import VnTable from 'components/VnTable/VnTable.vue';
import VnInputDate from 'components/common/VnInputDate.vue';
const tableRef = ref(); const tableRef = ref();
const { t } = useI18n(); const { t } = useI18n();
const route = useRoute(); const route = useRoute();
@ -36,16 +35,12 @@ const columns = computed(() => [
url: 'TrainingCourseTypes', url: 'TrainingCourseTypes',
fields: ['id', 'name'], fields: ['id', 'name'],
}, },
disable: false,
columnFilter: {
inWhere: true,
},
}, },
{ {
align: 'left', align: 'left',
name: 'started', name: 'started',
label: t('worker.formation.tableVisibleColumns.startDate'), label: t('worker.formation.tableVisibleColumns.startDate'),
component: VnInputDate, component: 'date',
field: 'started', field: 'started',
create: true, create: true,
cardVisible: true, cardVisible: true,
@ -54,7 +49,7 @@ const columns = computed(() => [
align: 'left', align: 'left',
name: 'ended', name: 'ended',
label: t('worker.formation.tableVisibleColumns.endDate'), label: t('worker.formation.tableVisibleColumns.endDate'),
component: VnInputDate, component: 'date',
field: 'ended', field: 'ended',
create: true, create: true,
}, },
@ -68,10 +63,6 @@ const columns = computed(() => [
url: 'TrainingCenters', url: 'TrainingCenters',
fields: ['id', 'name'], fields: ['id', 'name'],
}, },
disable: false,
columnFilter: {
inWhere: true,
},
}, },
{ {
align: 'left', align: 'left',
@ -92,8 +83,8 @@ const columns = computed(() => [
align: 'left', align: 'left',
name: 'remark', name: 'remark',
label: t('worker.formation.tableVisibleColumns.remark'), label: t('worker.formation.tableVisibleColumns.remark'),
create: true,
component: 'checkbox', component: 'checkbox',
create: true,
}, },
{ {
align: 'left', align: 'left',
@ -124,5 +115,7 @@ const columns = computed(() => [
default-mode="table" default-mode="table"
auto-load auto-load
:right-search="false" :right-search="false"
:is-editable="true"
:use-model="true"
/> />
</template> </template>