diff --git a/src/modules/11_discipline/components/6_BasicInformation/Channel/addChannel.vue b/src/modules/11_discipline/components/6_BasicInformation/Channel/AddPage.vue
similarity index 100%
rename from src/modules/11_discipline/components/6_BasicInformation/Channel/addChannel.vue
rename to src/modules/11_discipline/components/6_BasicInformation/Channel/AddPage.vue
diff --git a/src/modules/11_discipline/components/6_BasicInformation/Channel/MainPage.vue b/src/modules/11_discipline/components/6_BasicInformation/Channel/MainPage.vue
index 22e83bc1f..6b2a50487 100644
--- a/src/modules/11_discipline/components/6_BasicInformation/Channel/MainPage.vue
+++ b/src/modules/11_discipline/components/6_BasicInformation/Channel/MainPage.vue
@@ -93,20 +93,15 @@ const clickAdd = () => {
};
const clickDelete = (id: string) => {
- $q.dialog({
- title: "ยืนยันการลบช่องทาง",
- message: "ต้องการลบช่องทางนี้ใช่หรือไม่?",
- cancel: {
- flat: true,
- color: "negative",
+ dialogRemove(
+ $q,
+ async () => {
+ // await deleteData(id);
+ // await getData();
},
- persistent: true,
- })
- .onOk(async () => {
- console.log("delete");
- })
- .onCancel(() => {})
- .onDismiss(() => {});
+ `ลบข้อมูล`
+ // `ลบข้อมูลของ ${name}`
+ );
};
onMounted(() => {});
@@ -170,18 +165,11 @@ onMounted(() => {});
/>
-
+
diff --git a/src/modules/11_discipline/components/ุ6_Information/Channel/AddPage.vue b/src/modules/11_discipline/components/ุ6_Information/Channel/AddPage.vue
new file mode 100644
index 000000000..0a6c0eccb
--- /dev/null
+++ b/src/modules/11_discipline/components/ุ6_Information/Channel/AddPage.vue
@@ -0,0 +1,214 @@
+
+
+
+
+
+ {{ edit ? "ช่องทางการร้องเรียน" : "เพิ่มช่องทางการร้องเรียน" }}
+
+
+
+
+
+
+
+
+
+
+ {{ edit ? "แก้ไขข้อมูล" : "บันทึกข้อมูล" }}
+
+
+
+
+
+
+
diff --git a/src/modules/11_discipline/router.ts b/src/modules/11_discipline/router.ts
index d0a715198..3d4ce56dd 100644
--- a/src/modules/11_discipline/router.ts
+++ b/src/modules/11_discipline/router.ts
@@ -22,10 +22,10 @@ const channelMain = () =>
import(
"@/modules/11_discipline/components/6_BasicInformation/Channel/MainPage.vue"
);
- const channelAdd = () =>
+const channelAdd = () =>
import(
- "@/modules/11_discipline/components/6_BasicInformation/Channel/addChannel.vue"
- );
+ "@/modules/11_discipline/components/6_BasicInformation/Channel/AddPage.vue"
+ );
const complaintAdd = () =>
import("@/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue");
const reportType = () =>
@@ -35,7 +35,8 @@ const InvestigateDisciplinaryAdd = () =>
import(
"@/modules/11_discipline/components/3_InvestigateDisciplinary/addInvestigate.vue"
);
-const orderPage = () => import("@/modules/11_discipline/components/4_Order/OrderPage.vue")
+const orderPage = () =>
+ import("@/modules/11_discipline/components/4_Order/OrderPage.vue");
export default [
{
path: "/discipline/complaints",