จัดโค้ดวินัย

This commit is contained in:
setthawutttty 2023-12-25 16:31:24 +07:00
parent 71d3b54ef0
commit 7262000680
37 changed files with 492 additions and 697 deletions

View file

@ -3,7 +3,6 @@ import { ref, onMounted } from "vue";
import { useQuasar } from "quasar";
import { useRouter, useRoute } from "vue-router";
import { useCounterMixin } from "@/stores/mixin";
import type { QTableProps } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
import Form from '@/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue'
@ -23,24 +22,11 @@ const {
success,
dialogMessageNotify,
} = mixin;
const router = useRouter();
const route = useRoute();
//form data input
const edit = ref<boolean>(false);
/**
* เรยกขอมลจากรายการ
*/
onMounted(async () => {});
const fetchData = async () => {};
/**
* ลบขอม
* @param id ไอดของขอมลทองการลบ
*/
const deleteData = async (id: string) => {};
/* บันทึกข้อมูล**/
function onSubmit(channelReturn:string){
dialogConfirm($q,()=>saveData(channelReturn))
@ -67,7 +53,7 @@ function saveData(channelReturn:string){
/**
* อนกลบหนารายการ
*/
const clickBack = () => {
function clickBack(){
router.push(`/discipline/channel`);
};
</script>

View file

@ -15,13 +15,6 @@ const $q = useQuasar();
const mixin = useCounterMixin();
const { messageError, showLoader, hideLoader, dialogConfirm, success } = mixin;
/**
* เรยกใชงาน fetchData เพอดงขอม
*/
onMounted(() => {
fetchData();
});
/**
* get อมลเกากรณแกไขขอม
*/
@ -71,6 +64,13 @@ function putData(type: string) {
router.push(`/discipline/channel`);
});
}
/**
* เรยกใชงาน fetchData เพอดงขอม
*/
onMounted(() => {
fetchData();
});
</script>
<template>
<div class="col-xs-12 col-sm-12 col-md-11">

View file

@ -1,6 +1,5 @@
<script setup lang="ts">
import { ref, useAttrs, onMounted } from "vue";
import type { QTableProps } from "quasar";
import router from "@/router";
import { useCounterMixin } from "@/stores/mixin";
import { useQuasar } from "quasar";
@ -39,7 +38,7 @@ const pagination = ref({
/**
* clickไปหนาเพมchanel
*/
const clickAdd = () => {
function clickAdd(){
dataStore.getType('')
router.push(`/discipline/channel/add`);
};