แก้วินัย
This commit is contained in:
parent
81b3daeab2
commit
71215cd009
7 changed files with 8 additions and 38 deletions
|
|
@ -2305,7 +2305,7 @@ const getClass = (val: boolean) => {
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<div class="flex justify-end q-pa-sm q-gutter-sm">
|
<div class="flex justify-end q-pa-sm q-gutter-sm">
|
||||||
<q-btn unelevated label="บันทึก" color="public" @click="submit">
|
<q-btn unelevated label="บันทึก" color="public" @click="submit">
|
||||||
<q-tooltip>บันทึก</q-tooltip>
|
<q-tooltip>บันทึกข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -620,6 +620,7 @@ const pagination = ref({
|
||||||
@click="save"
|
@click="save"
|
||||||
class="q-px-md"
|
class="q-px-md"
|
||||||
>
|
>
|
||||||
|
<q-tooltip>บันทึกข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -527,6 +527,7 @@ const updateData = (row: DataCopyOrder) => {
|
||||||
@click="saveDataCopyOrder"
|
@click="saveDataCopyOrder"
|
||||||
class="q-px-md"
|
class="q-px-md"
|
||||||
>
|
>
|
||||||
|
<q-tooltip>บันทึกข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1353,7 +1353,7 @@ onMounted(async () => {
|
||||||
type="submit"
|
type="submit"
|
||||||
label="บันทึก"
|
label="บันทึก"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
><q-tooltip>บันทึก</q-tooltip></q-btn
|
><q-tooltip>บันทึกข้อมูล</q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, reactive } from "vue";
|
import { ref } from "vue";
|
||||||
import Form from "@/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue";
|
import Form from "@/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
|
|
@ -7,38 +7,12 @@ import { useRoute } from "vue-router";
|
||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import type { FormData } from "@/modules/11_discipline/interface/request/director";
|
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const typeId = ref<string>(route.params.id.toString());
|
const typeId = ref<string>(route.params.id.toString());
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { messageError, showLoader, hideLoader, dialogConfirm, success } = mixin;
|
const { messageError, showLoader, dialogConfirm, success } = mixin;
|
||||||
|
|
||||||
/**
|
|
||||||
* get ข้อมูลเก่ากรณีแก้ไขข้อมูล
|
|
||||||
*/
|
|
||||||
const data = reactive<FormData>({
|
|
||||||
personalId:"",
|
|
||||||
prefix: "",
|
|
||||||
firstname: "",
|
|
||||||
lastname: "",
|
|
||||||
position: "",
|
|
||||||
phone: "",
|
|
||||||
email: "",
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ดึงค่าจาก api
|
|
||||||
*/
|
|
||||||
const fetchData = async () => {
|
|
||||||
data.prefix = "นาง";
|
|
||||||
data.firstname = "เกสินี";
|
|
||||||
data.lastname = "เจียรสุมัย";
|
|
||||||
data.position = "ครู";
|
|
||||||
data.phone = "0800808080";
|
|
||||||
data.email = "e@email.com";
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* บันทึกข้อมูลที่เเก้ไข
|
* บันทึกข้อมูลที่เเก้ไข
|
||||||
|
|
@ -68,13 +42,6 @@ function putData(type: string) {
|
||||||
router.push(`/discipline/channel`);
|
router.push(`/discipline/channel`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**เมื่อเริ่มโหลดหน้า
|
|
||||||
* เรียกใช้งาน fetchData เพื่อดึงข้อมูล
|
|
||||||
*/
|
|
||||||
onMounted(() => {
|
|
||||||
fetchData();
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="col-xs-12 col-sm-12 col-md-11">
|
<div class="col-xs-12 col-sm-12 col-md-11">
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ function inputEdit(val: boolean) {
|
||||||
color="public"
|
color="public"
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
>
|
||||||
|
<q-tooltip>บันทึกข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
|
||||||
|
|
@ -583,7 +583,7 @@ onMounted(() => {
|
||||||
<div class="row col-12 q-pa-sm">
|
<div class="row col-12 q-pa-sm">
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn id="onSubmit" type="submit" label="บันทึก" color="secondary"
|
<q-btn id="onSubmit" type="submit" label="บันทึก" color="secondary"
|
||||||
><q-tooltip>บันทึก</q-tooltip></q-btn
|
><q-tooltip>บันทึกข้อมูล</q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue