From 301e4f9dabfa889e1de0964aeccbaf4765bfbace Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 8 Dec 2023 18:00:25 +0700 Subject: [PATCH] inputgreen --- .../6_BasicInformation/Channel/Form.vue | 12 +++++++++--- .../6_BasicInformation/Director/Form.vue | 17 ++++++++++++++++- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue b/src/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue index 20fb8c993..cf539e738 100644 --- a/src/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue +++ b/src/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue @@ -5,7 +5,7 @@ import { useDisciplineChannelDataStore } from "@/modules/11_discipline/store/Cha const dataStore = useDisciplineChannelDataStore(); const channel = ref(dataStore.type); const channelRef = ref(); - +const isReadonly = ref(false); // อ่านได้อย่างเดียว /** * รับ props มาจาก page หลัก */ @@ -26,7 +26,6 @@ const props = defineProps({ * เก็บข้อมูลลง formData */ - /** ฟังชั่นตรวจสอบความถูกต้องก่อน บันทึก */ function save() { channelRef.value.validate().then(async (result: boolean) => { @@ -38,6 +37,13 @@ function save() { } }); } + +function inputEdit(val: boolean) { + return { + "full-width cursor-pointer ": val, + "full-width cursor-pointer inputgreen": !val, + }; +}