-
+
+
+
+ เพิ่มรายการสืบสวนข้อเท็จจริง
-
+
+
+
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 @@
+
+
+
+
+
+ แก้ไขรายการสืบสวนข้อเท็จจริง {{ id }}#id
+
+
+
+
+
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}`);
+}
@@ -86,7 +92,7 @@ onMounted(async() => {
{
{
{
-
+
{{ props.rowIndex + 1 }}
@@ -178,7 +189,11 @@ onMounted(async() => {
{{ col.value }}
-
+
{{ props.row.active }}
@@ -187,7 +202,7 @@ onMounted(async() => {
v-if="props.row.status === 'ยุติเรื่อง'"
for="#cancel"
dense
- unelevated
+ unelevated
color="primary"
class="q-px-sm"
>ยกเลิกยุติเรื่อง
import("@/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue");
const investigatefactsAdd = () =>
import("@/modules/11_discipline/components/2_InvestigateFacts/AddPage.vue");
+const investigatefactsEdit = () =>
+ import("@/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue");
const disciplinaryMain = () =>
import(
"@/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue"
@@ -165,6 +167,16 @@ export default [
Role: "coin",
},
},
+ {
+ path: "/discipline/investigatefacts/:id",
+ name: "/discipline-investigatefactsEdit",
+ component: investigatefactsEdit,
+ meta: {
+ Auth: true,
+ Key: [11.2],
+ Role: "coin",
+ },
+ },
{
path: "/discipline/InvestigateDisciplinary/add",
name: "/discipline-InvestigateDisciplinaryAdd",
diff --git a/src/modules/11_discipline/store/InvestigateFactStore.ts b/src/modules/11_discipline/store/InvestigateFactStore.ts
index 9b645d940..7974497dc 100644
--- a/src/modules/11_discipline/store/InvestigateFactStore.ts
+++ b/src/modules/11_discipline/store/InvestigateFactStore.ts
@@ -108,6 +108,7 @@ export const useInvestigateFactStore = defineStore("DisciplineInvestigateFact",
function fecthList(data: investigatefactsDataRowType[]) {
let datalist: investigatefactsDataRowType[] = data.map((e: investigatefactsDataRowType) => {
return {
+ id:e.id,
subject: e.subject,
interrogated: e.interrogated,
fault: e.fault ? convertFault(e.fault):'-',