add translation label

This commit is contained in:
2024-08-19 16:13:33 +07:00
parent 08e181f3ce
commit a6f4c60cb2
5 changed files with 155 additions and 83 deletions

View File

@@ -2,7 +2,7 @@
<div>
<v-container class="bg-white rounded-lg" fluid>
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
<h3 class="primary-lighten">PASIEN</h3>
<h3 class="primary-lighten">{{ $t('message.tablePatient.title') }}</h3>
</div>
<v-data-table
v-model="selected_patients"
@@ -49,7 +49,15 @@ export default {
selectedItems: [],
headers: [
{
title: "TANGGAL",
title: this.$t('message.tablePatient.date'),
align: "start",
sortable: false,
key: "name",
width: "15%",
class: "font-weight-bold",
},
{
title: this.$t('message.tablePatient.noreg'),
align: "start",
sortable: false,
key: "name",
@@ -57,35 +65,27 @@ export default {
class: "font-weight-bold",
},
{
title: "NO. REG",
title: this.$t('message.tablePatient.group'),
align: "start",
sortable: false,
key: "name",
width: "20%",
width: "25%",
class: "font-weight-bold",
},
{
title: "KEL. PELANGGAN",
title: this.$t('message.tablePatient.name'),
align: "start",
sortable: false,
key: "name",
width: "20%",
width: "25%",
class: "font-weight-bold",
},
{
title: "NAMA",
title: this.$t('message.tablePatient.status'),
align: "start",
sortable: false,
key: "name",
width: "20%",
class: "font-weight-bold",
},
{
title: "STATUS",
align: "start",
sortable: false,
key: "name",
width: "20%",
width: "15%",
class: "font-weight-bold",
},
],
@@ -93,20 +93,21 @@ export default {
},
computed: {
patients() {
return this.$store.state.collection.patients
return this.$store.state.collection.patients;
},
selected_patients: {
get() {
return this.$store.state.collection.selected_patients
return this.$store.state.collection.selected_patients;
},
set(data) {
this.$store.commit("setSelectedPatients", data)
this.$store.commit("setSelectedPatients", data);
}
}
},
methods: {
selectItem(data) {
this.$store.commit("setSelectedPatients", data);
// this.$store.commit("setSelectedPatients", data);
this.selected_patients = data;
},
isItemSelected(data) {
return data.noreg === this.$store.state.collection.selected_patients.noreg