From e6cff6dece1f9f97d131bc1e74caaecd0f473365 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 29 Nov 2024 18:16:49 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=A5=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/probation/DialogOrder.vue | 267 +++++++++--------- .../DialogOrder/DialogSendToCommand.vue | 160 +++++------ .../probation/FormAppoint/FormAppoint.vue | 43 ++- .../components/probation/MainAppoint.vue | 22 +- .../components/probation/MainProbation.vue | 28 +- .../components/probation/ProbationDetail.vue | 10 +- 6 files changed, 260 insertions(+), 270 deletions(-) diff --git a/src/modules/05_placement/components/probation/DialogOrder.vue b/src/modules/05_placement/components/probation/DialogOrder.vue index 1ee2e660b..657475af9 100644 --- a/src/modules/05_placement/components/probation/DialogOrder.vue +++ b/src/modules/05_placement/components/probation/DialogOrder.vue @@ -166,7 +166,6 @@ const columns = ref([ */ function filterSelector(val: string, update: Function) { update(() => { - commandType.value = val ? "" : commandType.value; commandOp.value = listCommand.value.filter( (v: any) => v.name.indexOf(val) > -1 ); @@ -200,7 +199,7 @@ async function getList() { config.API.probationPersonalList() + `?status=${commandType.value == "C-PM-11" ? 2 : 3}&page=${ pagination.value.page - }&pageSize=${pagination.value.rowsPerPage}` + }&pageSize=${pagination.value.rowsPerPage}&keyword=${filter.value}` ) .then(async (res) => { const data = await res.data.result.data; @@ -260,144 +259,150 @@ watch( -
- - - - - - - -
- - - - + + + +
diff --git a/src/modules/05_placement/components/probation/DialogOrder/DialogSendToCommand.vue b/src/modules/05_placement/components/probation/DialogOrder/DialogSendToCommand.vue index 886c06ea7..8a924175f 100644 --- a/src/modules/05_placement/components/probation/DialogOrder/DialogSendToCommand.vue +++ b/src/modules/05_placement/components/probation/DialogOrder/DialogSendToCommand.vue @@ -133,6 +133,7 @@ function convertText(val: string) { watchEffect(() => { if (props.modal === true) { selected.value = []; + filterKeyword.value = ""; } }); @@ -142,95 +143,94 @@ watchEffect(() => { - -
-
- - - - - - -
-
- - - + - - + + + +
diff --git a/src/modules/05_placement/components/probation/FormAppoint/FormAppoint.vue b/src/modules/05_placement/components/probation/FormAppoint/FormAppoint.vue index 063910c80..2274c5880 100644 --- a/src/modules/05_placement/components/probation/FormAppoint/FormAppoint.vue +++ b/src/modules/05_placement/components/probation/FormAppoint/FormAppoint.vue @@ -434,6 +434,8 @@ watch( () => modal.value, () => { if (modal.value) { + filterKeyword.value = ""; + optionsTypeMain.value = optionsType.value; const optionData = optionsType.value; const caregiverCount = rows.value.filter( @@ -611,23 +613,24 @@ onMounted(async () => {
+
+ + +
-
- - -
+ { outlined debounce="300" placeholder="ค้นหา" - @keydown.enter.prevent="getPerson()" + @keydown.enter.prevent="(pagination.page = 1), getPerson()" > diff --git a/src/modules/05_placement/components/probation/MainAppoint.vue b/src/modules/05_placement/components/probation/MainAppoint.vue index 3b6f3dd9d..0653421ca 100644 --- a/src/modules/05_placement/components/probation/MainAppoint.vue +++ b/src/modules/05_placement/components/probation/MainAppoint.vue @@ -158,6 +158,7 @@ onMounted(async () => { await getData(); }); +