From 52e7ef15412674d40a3cf5c0dc7a44473bd80d08 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 6 Nov 2023 15:13:36 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B9=80=E0=B8=81=E0=B9=89=20UI?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=AA?= =?UTF-8?q?=E0=B8=B7=E0=B8=9A=E0=B8=AA=E0=B8=A7=E0=B8=99=E0=B8=82=E0=B9=89?= =?UTF-8?q?=E0=B8=AD=E0=B9=80=E0=B8=97=E0=B9=87=E0=B8=88=E0=B8=88=E0=B8=A3?= =?UTF-8?q?=E0=B8=B4=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/2_InvestigateFacts/AddPage.vue | 485 +----------------- .../2_InvestigateFacts/EditPage.vue | 72 +++ .../components/2_InvestigateFacts/Form.vue | 469 +++++++++++++++++ .../2_InvestigateFacts/MainPage.vue | 33 +- .../11_discipline/interface/index/Main.ts | 1 + .../interface/request/director.ts | 1 + src/modules/11_discipline/router.ts | 12 + .../store/InvestigateFactStore.ts | 1 + 8 files changed, 605 insertions(+), 469 deletions(-) create mode 100644 src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue create mode 100644 src/modules/11_discipline/components/2_InvestigateFacts/Form.vue diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/AddPage.vue b/src/modules/11_discipline/components/2_InvestigateFacts/AddPage.vue index d92db89a6..d45ed6d06 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/AddPage.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/AddPage.vue @@ -1,467 +1,32 @@ diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue b/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue new file mode 100644 index 000000000..0e9f1fbc9 --- /dev/null +++ b/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue @@ -0,0 +1,72 @@ + + diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue new file mode 100644 index 000000000..e45ff916e --- /dev/null +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -0,0 +1,469 @@ + + diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue b/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue index 72eb8c80f..f5cd3ca97 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue @@ -41,13 +41,13 @@ const pagination = ref({ rowsPerPage: 10, }); - const clickAdd = () => { router.push(`/discipline/investigatefacts/add`); }; -onMounted(async() => { - await fecthList([ +onMounted(async () => { + await fecthList([ { + id: "001", subject: "ทุจริตในหน้าที่", interrogated: "ศิรินภา คงน้อยี่", fault: "1", @@ -55,6 +55,7 @@ onMounted(async() => { active: "1", }, { + id: "002", subject: "ทุจริตในหน้าที่", interrogated: "นายนครชัย วันดี", fault: "1", @@ -62,6 +63,7 @@ onMounted(async() => { active: "1", }, { + id: "003", subject: "กระทำทุจริตเงินกองทุน", interrogated: "นายกัณฐิมา กาฬสินธ์ุ", fault: "0", @@ -69,6 +71,7 @@ onMounted(async() => { active: "1", }, { + id: "004", subject: "พูดจาไม่สุภาพ", interrogated: "นายปิยรมย์ ศิริธาราฟ", fault: "0", @@ -77,6 +80,9 @@ onMounted(async() => { }, ]); }); +function editPage(id: string) { + router.push(`/discipline/investigatefacts/${id}`); +}