edit select person in probation system

This commit is contained in:
Warunee Tamkoo 2024-11-07 15:42:52 +07:00
parent 884fe69e2c
commit 1ae929acbf
5 changed files with 46 additions and 14 deletions

View file

@ -316,7 +316,6 @@ watch(
map-options
:options="columns"
option-value="name"
style="min-width: 140px"
class="gt-xs q-ml-sm"
/>
@ -328,7 +327,7 @@ watch(
:filter="filter"
row-key="personal_id"
:visible-columns="visibleColumns"
selection="multiple"
selection="single"
v-model:selected="selected"
:rows-per-page-options="[10, 25, 50, 100]"
@update:pagination="updatePagination"

View file

@ -177,7 +177,6 @@ watchEffect(() => {
map-options
:options="columns"
option-value="name"
style="min-width: 140px"
class="gt-xs q-ml-sm"
/>
@ -247,7 +246,7 @@ watchEffect(() => {
<DialogCreateCommand
v-model:modal="modalCommand"
:command-type-code="'C-PM-10'"
:persons="selected ? dataMapToSend:[]"
:persons="selected ? dataMapToSend : []"
:not-person="false"
/>
</template>

View file

@ -143,6 +143,11 @@ const probation_statusOP = ref<any>([
label: "ดึงรายชื่อไปออกคำสั่งแล้ว",
disable: true,
},
{
id: 9,
label: "ออกคำสั่งเสร็จแล้ว",
disable: true,
},
]);
/** get ข้อมูล งานที่ได้รับมอบหมาย */
@ -371,7 +376,10 @@ onMounted(async () => {
<div class="row col-12 q-col-gutter-sm">
<div>
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
v-if="
checkPermission($route)?.attrIsUpdate &&
(probation_status == 1 || probation_status == 7)
"
@click="router.push(`/probation/add/${personalId}`)"
flat
round
@ -414,7 +422,6 @@ onMounted(async () => {
map-options
:options="columns"
option-value="name"
style="min-width: 140px"
class="col-xs-12 col-sm-3 col-md-2"
/>
@ -462,7 +469,10 @@ onMounted(async () => {
<q-tooltip>รายละเอยด</q-tooltip>
</q-btn>
<q-btn
v-if="checkPermission($route)?.attrIsUpdate"
v-if="
checkPermission($route)?.attrIsUpdate &&
(probation_status == 1 || probation_status == 7)
"
flat
dense
round