KPI สิทธิ์
This commit is contained in:
parent
0496b01da1
commit
6aa405e688
12 changed files with 126 additions and 44 deletions
|
|
@ -17,6 +17,8 @@ import { useKpiDataStore } from "@/modules/14_KPI/store";
|
|||
const numLevel = ref<string>("");
|
||||
const store = useKpiDataStore();
|
||||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const checkRoutePermisson = ref<boolean>(route.name == "KPIDetailPage");
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
dialogConfirm,
|
||||
|
|
@ -254,9 +256,10 @@ watch(
|
|||
<div class="q-pa-sm">
|
||||
<q-btn
|
||||
v-if="
|
||||
type == 'capacity' ||
|
||||
type == 'development' ||
|
||||
(type != 'capacity' &&
|
||||
(!checkRoutePermisson && type == 'capacity') ||
|
||||
(!checkRoutePermisson && type == 'development') ||
|
||||
(!checkRoutePermisson &&
|
||||
type != 'capacity' &&
|
||||
type != 'development' &&
|
||||
store.rolePerson == 'USER')
|
||||
"
|
||||
|
|
@ -407,6 +410,7 @@ watch(
|
|||
outlined
|
||||
dense
|
||||
:readonly="
|
||||
checkRoutePermisson ||
|
||||
formDataView.reasonEvaluator !== null ||
|
||||
store.rolePerson !== 'EVALUATOR'
|
||||
"
|
||||
|
|
@ -422,6 +426,7 @@ watch(
|
|||
|
||||
<div
|
||||
v-if="
|
||||
!checkRoutePermisson &&
|
||||
formDataView.reasonEvaluator == null &&
|
||||
store.rolePerson == 'EVALUATOR'
|
||||
"
|
||||
|
|
@ -463,6 +468,7 @@ watch(
|
|||
class="inputgreen"
|
||||
lazy-rules
|
||||
:readonly="
|
||||
checkRoutePermisson ||
|
||||
formDataView.reasonCommander !== null ||
|
||||
store.rolePerson !== 'COMMANDER'
|
||||
"
|
||||
|
|
@ -473,6 +479,7 @@ watch(
|
|||
|
||||
<div
|
||||
v-if="
|
||||
!checkRoutePermisson &&
|
||||
formDataView.reasonCommander == null &&
|
||||
store.rolePerson == 'COMMANDER'
|
||||
"
|
||||
|
|
@ -513,6 +520,7 @@ watch(
|
|||
class="inputgreen"
|
||||
lazy-rules
|
||||
:readonly="
|
||||
checkRoutePermisson ||
|
||||
formDataView.reasonCommanderHigh !== null ||
|
||||
store.rolePerson !== 'COMMANDERHIGH'
|
||||
"
|
||||
|
|
@ -523,6 +531,7 @@ watch(
|
|||
|
||||
<div
|
||||
v-if="
|
||||
!checkRoutePermisson &&
|
||||
formDataView.reasonCommanderHigh == null &&
|
||||
store.rolePerson == 'COMMANDERHIGH'
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue