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}`); +}