จัดโค้ด

This commit is contained in:
setthawutttty 2023-12-08 14:26:16 +07:00
parent a5335df0b6
commit a42d7b91ba
12 changed files with 216 additions and 413 deletions

View file

@ -5,6 +5,7 @@ import PopupSendToNext from "@/modules/11_discipline/components/PopupSendToNext.
import { useRouter, useRoute } from "vue-router";
import { useQuasar } from "quasar";
import type { QTableProps } from "quasar";
import config from "@/app.config";
import http from "@/plugins/http";
@ -17,17 +18,16 @@ import { useCounterMixin } from "@/stores/mixin";
import { useComplainstDataStore } from "@/modules/11_discipline/store/ComplaintsStore";
import { useDisciplineMainStore } from "@/modules/11_discipline/store/main";
const complainstStore = useComplainstDataStore();
const mainStore = useDisciplineMainStore();
const $q = useQuasar();
const mixin = useCounterMixin();
const {
dialogConfirm,
showLoader,
hideLoader,
success,
messageError,
dialogMessageNotify,
messageError
} = mixin;
const router = useRouter();
const route = useRoute();
@ -164,6 +164,7 @@ const visibleColumns = ref<string[]>([
"organization",
]);
/** ดึงข้อมูล */
async function getData() {
showLoader();
await http
@ -195,6 +196,7 @@ async function getData() {
hideLoader();
});
}
/** ฟังชั่น แก้ไข */
async function onSubmit(data: any) {
showLoader();
@ -210,7 +212,6 @@ async function onSubmit(data: any) {
getData();
hideLoader();
});
// router.push(`/discipline/complaints`);
}
/** ยืนยัน มีมูลส่งไปสืบสวน */
@ -227,6 +228,7 @@ function sentInvestigate() {
}
}
/** ส่งไปสืบสวน */
function sentConfirmNoPerson() {
showLoader();
http
@ -244,6 +246,7 @@ function sentConfirmNoPerson() {
});
}
/** ปิด dialog */
function closePopup() {
modalPopup.value = false;
}
@ -379,4 +382,4 @@ onMounted(() => {
/>
</div>
</template>
@/modules/11_discipline/store/store
@/modules/11_discipline/store/store