แก้ กำหนดหน้าที่จัดการโครงสร้าง
This commit is contained in:
parent
0d870a5ae4
commit
ae55c3b489
1 changed files with 11 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue