แก้ กำหนดหน้าที่จัดการโครงสร้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-26 16:19:25 +07:00
parent 0d870a5ae4
commit ae55c3b489

View file

@ -116,6 +116,7 @@ async function onSearchListPerson(newPage: boolean = false) {
* เมอเพมเสรจจะดงขอมลรายชอคนททธดการโครงสรางตามหนวยงาน
*/
function onSubmitPerson() {
const arrayId = selected.value.map((e: DataProfile) => e.id);
dialogConfirm(
$q,
async () => {
@ -123,7 +124,7 @@ function onSubmitPerson() {
const person = selected.value[0];
const body = {
nodeId: orgId.value,
personId: person.id,
personId: arrayId,
};
await http
.post(config.API.permissionOrg, body)
@ -232,13 +233,20 @@ watch(
bordered
dense
:rows-per-page-options="[10, 25, 50, 100]"
selection="single"
selection="multiple"
v-model:selected="selected"
@update:pagination="updatePagination"
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width />
<q-th auto-width>
<q-checkbox
keep-color
color="primary"
dense
v-model="props.selected"
/>
</q-th>
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>