profileId
This commit is contained in:
parent
d714562571
commit
2263302976
2 changed files with 14 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, watch } from "vue";
|
||||
import { ref, watch, computed } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
|
|
@ -53,6 +53,17 @@ const pagination = ref({
|
|||
rowsPerPage: 10,
|
||||
});
|
||||
|
||||
const dataMapToSend = computed(() => {
|
||||
return selected.value.map((i: any) => ({
|
||||
id: i.personal_id,
|
||||
profileId: i.personal_id,
|
||||
prefix: i.prefixName,
|
||||
firstName: i.firstName,
|
||||
lastName: i.lastName,
|
||||
citizenId: i.idcard,
|
||||
}));
|
||||
});
|
||||
|
||||
/** ข้อมูลที่เเสดง */
|
||||
const visibleColumns = ref<string[]>([
|
||||
"no",
|
||||
|
|
@ -406,6 +417,6 @@ watch(
|
|||
<DialogCreateCommand
|
||||
v-model:modal="modalCommand"
|
||||
:command-type-code="commandType"
|
||||
:persons="selected"
|
||||
:persons="selected ? dataMapToSend : []"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -389,10 +389,8 @@ onMounted(async () => {
|
|||
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
||||
<div class="row q-col-gutter-sm">
|
||||
<div class="row col-12 q-col-gutter-sm">
|
||||
<div class="col-6">
|
||||
<div class="row">
|
||||
<q-select
|
||||
class="col-5 col-sm-3 col-md-4 "
|
||||
v-model="fillter"
|
||||
label="สถานะ"
|
||||
dense
|
||||
|
|
@ -449,7 +447,7 @@ onMounted(async () => {
|
|||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<q-space />
|
||||
|
||||
<q-input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue