fix bug
This commit is contained in:
parent
aa9b04772b
commit
3b6c22027c
26 changed files with 155 additions and 134 deletions
|
|
@ -35,8 +35,8 @@ const profileId = ref<string>(
|
|||
/**
|
||||
* props
|
||||
*/
|
||||
const props = defineProps({
|
||||
isLeave: Boolean,
|
||||
const isLeave = defineModel<boolean>("isLeave", {
|
||||
required: true,
|
||||
});
|
||||
|
||||
const store = useSalaryDataStore();
|
||||
|
|
@ -628,7 +628,7 @@ onMounted(() => {
|
|||
<template>
|
||||
<div class="row items-center q-gutter-x-sm q-pb-sm">
|
||||
<q-btn
|
||||
v-if="!props.isLeave && checkPermission($route)?.attrIsUpdate"
|
||||
v-if="!isLeave && checkPermission($route)?.attrIsUpdate"
|
||||
flat
|
||||
color="primary"
|
||||
round
|
||||
|
|
@ -703,9 +703,7 @@ onMounted(() => {
|
|||
</q-btn>
|
||||
|
||||
<q-btn
|
||||
v-if="
|
||||
props.isLeave == false && checkPermission($route)?.attrIsUpdate
|
||||
"
|
||||
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
|
||||
flat
|
||||
dense
|
||||
round
|
||||
|
|
@ -717,9 +715,7 @@ onMounted(() => {
|
|||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||
</q-btn>
|
||||
<q-btn
|
||||
v-if="
|
||||
props.isLeave == false && checkPermission($route)?.attrIsUpdate
|
||||
"
|
||||
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
|
||||
dense
|
||||
flat
|
||||
round
|
||||
|
|
@ -731,9 +727,7 @@ onMounted(() => {
|
|||
</q-btn>
|
||||
|
||||
<q-btn
|
||||
v-if="
|
||||
props.isLeave == false && checkPermission($route)?.attrIsUpdate
|
||||
"
|
||||
v-if="isLeave == false && checkPermission($route)?.attrIsUpdate"
|
||||
dense
|
||||
flat
|
||||
round
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue