From c83df20a60b2890f9e1c20752c4298a76d5177b0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 4 Jun 2024 17:20:26 +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>=20?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=82?= =?UTF-8?q?=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B9=80=E0=B8=84?= =?UTF-8?q?=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=8A=E0=B8=AD=E0=B8=B4=E0=B8=AA=E0=B8=A3=E0=B8=B4=E0=B8=A2?= =?UTF-8?q?=E0=B8=B2=E0=B8=A0=E0=B8=A3=E0=B8=93=E0=B9=8C=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 +++++++++--------- 1 file changed, 106 insertions(+), 96 deletions(-) diff --git a/src/modules/01_metadataNew/components/insignia/InsigniaList.vue b/src/modules/01_metadataNew/components/insignia/InsigniaList.vue index 8274f9163..ad974494c 100644 --- a/src/modules/01_metadataNew/components/insignia/InsigniaList.vue +++ b/src/modules/01_metadataNew/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(() => { @@ -226,12 +230,14 @@ async function addData() { } async function editData(idData: string) { + console.log(note.value); + await http .put(config.API.insigniaNewIdOrg(idData), { 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(() => { @@ -403,101 +409,105 @@ const dialogOrder = ref(false); - - - -
- - - - - - -
- -
-
- -
-
- -
-
- -
-
-
-

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

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

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

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