From dc9291fad9d34a5f5705b325b0652dd92d1ba875 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 7 Jun 2023 16:22:30 +0700 Subject: [PATCH] no message --- .../components/PlacementTable.vue | 116 ++++++++++-------- 1 file changed, 65 insertions(+), 51 deletions(-) diff --git a/src/modules/05_placement/components/PlacementTable.vue b/src/modules/05_placement/components/PlacementTable.vue index 7200e46e9..96be09380 100644 --- a/src/modules/05_placement/components/PlacementTable.vue +++ b/src/modules/05_placement/components/PlacementTable.vue @@ -26,9 +26,17 @@ const ReportingDate = ref(); const BMAOfficer = ref(); const Status = ref(); const checkList = ref(); - +const positionMasterUserNote = ref(); const $q = useQuasar(); // show dialog - +const clickEditRow = () => { + editRow.value = true; +}; +const getClass = (val: boolean) => { + return { + "full-width inputgreen cursor-pointer": val, + "full-width cursor-pointer": !val, + }; +}; const selectData = (props: TableName) => { if (editvisible.value == true) { editRow.value = false; @@ -50,15 +58,14 @@ const selectData = (props: TableName) => { edit.value = true; } }; -const editDetail = (props:TableName, action:string) => { - if (action === 'cancel') { +const editDetail = (props: TableName, action: string) => { + if (action === "cancel") { editRow.value = false; modalEdit.value = false; modal_right.value = true; edit.value = true; Name.value = props.Name; - - } else if(action === 'wait'){ + } else if (action === "wait") { editRow.value = false; modalEdit.value = true; modal_right.value = true; @@ -88,8 +95,6 @@ const columns = ref([ field: "position", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { name: "Name", @@ -110,8 +115,6 @@ const columns = ref([ field: "ExamOrder", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { name: "Unit", @@ -143,8 +146,6 @@ const columns = ref([ field: "BMAOfficer", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { name: "Status", @@ -331,46 +332,59 @@ const clickClose = async () => { - - - - - - - text - - - - - - - - - - - - - text - - - - - + + + + + + + text + + + + + + + + + + + + +
+ + +
+
+ + +
+
+