diff --git a/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue b/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue index afb3f7a64..5c6f15141 100644 --- a/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue +++ b/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue @@ -35,6 +35,8 @@ const { dialogMessageNotify, } = mixin; +const checkRoute = ref(route.name == 'KPIIndicatorByPlanView') + const id = ref(route.params.id ? route.params.id.toLocaleString() : ""); const editCheck = ref(route.params.id ? true : false); const isView = ref(route.name === "KPIIndicatorByPlanView"); @@ -264,6 +266,7 @@ onMounted(async () => { class="inputgreen" :rules="[(val:string) => !!val || `${'กรุณากรอกชิ่อตัวชี้วัด'}`]" hide-bottom-space + :readonly="checkRoute" />