From 0d04f6a3b5218caa58e00e8acca05fafcb312f04 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 5 Jun 2024 10:12:31 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=A5=E0=B8=AB=E0=B8=A5=E0=B8=B1=E0=B8=81=20=3D>=20fix=20bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/insignia/InsigniaList.vue | 202 +++++++++--------- .../components/insignia/InsigniaType.vue | 3 + .../components/personal/01ListPrefix.vue | 38 ++-- .../components/personal/DialogForm.vue | 20 +- .../position-employee/01ListPosition.vue | 3 + .../position-employee/02ListType.vue | 6 + .../components/position/01ListPosition.vue | 79 +++---- .../components/position/02ListType.vue | 5 + .../components/position/05ListLevelDetail.vue | 196 +++++++++-------- .../components/position/DialogAddPosition.vue | 77 +++---- .../interface/request/position/index.ts | 11 - src/modules/01_metadata/views/personal.vue | 11 +- src/modules/01_metadata/views/position.vue | 5 +- 13 files changed, 336 insertions(+), 320 deletions(-) diff --git a/src/modules/01_metadata/components/insignia/InsigniaList.vue b/src/modules/01_metadata/components/insignia/InsigniaList.vue index d4e8900f..899eb7a0 100644 --- a/src/modules/01_metadata/components/insignia/InsigniaList.vue +++ b/src/modules/01_metadata/components/insignia/InsigniaList.vue @@ -158,6 +158,10 @@ const visibleColumns = ref([ function closeDialog() { dialog.value = false; + name.value = ""; + isActive.value = false; + shortName.value = ""; + note.value = ""; } function validateForm() { @@ -210,7 +214,7 @@ async function addData() { name: name.value, isActive: isActive.value, shortName: shortName.value, - note: note.value == "" ? "-" : note.value, + note: note.value == "" || note.value == null ? "" : note.value, insigniaTypeId: id.value, }) .then(() => { @@ -231,7 +235,7 @@ async function editData(idData: string) { name: name.value, isActive: isActive.value, shortName: shortName.value, - note: note.value == "" ? "-" : note.value, + note: note.value == "" || note.value == null ? "" : note.value, insigniaTypeId: id.value, }) .then(() => { @@ -261,8 +265,6 @@ async function deleteData(idData: string) { }); } -import { defineEmits } from "vue"; - const emit = defineEmits(["nameType"]); const dialogOrder = ref(false); @@ -403,101 +405,105 @@ const dialogOrder = ref(false); - - - -
- - - - - - -
- -
-
- -
-
- -
-
- -
-
-
-

สถานะการใช้งาน

- -
-
-
- - - - บันทึกข้อมูล - - - -
-
+ + + +
+ + + + + + +
+ +
+
+ +
+
+ +
+
+ +
+
+
+

สถานะการใช้งาน

+ +
+
+
+ + + + บันทึกข้อมูล + + + +
+