fixing no probation
This commit is contained in:
parent
8b88e71273
commit
1689c96343
5 changed files with 12 additions and 1 deletions
|
|
@ -21,6 +21,13 @@ const props = defineProps({
|
|||
loop: {
|
||||
type: Number,
|
||||
},
|
||||
isMax: {
|
||||
required: false,
|
||||
type: Boolean,
|
||||
default() {
|
||||
return false;
|
||||
},
|
||||
},
|
||||
addData: {
|
||||
type: Function,
|
||||
default() {
|
||||
|
|
@ -114,7 +121,7 @@ function nextPage() {
|
|||
</q-tabs>
|
||||
<div>
|
||||
<q-btn
|
||||
v-if="!checkRoutePermisson && props.checkPermission"
|
||||
v-if="!checkRoutePermisson && props.checkPermission && !isMax"
|
||||
color="blue"
|
||||
flat
|
||||
dense
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@ onMounted(async () => {
|
|||
:loop="probationStore.tabs.length"
|
||||
:FileDownload="FileDownload"
|
||||
:checkPermission="probationStore?.dataPermissions?.tab2?.isEdit as boolean"
|
||||
:is-max="probationStore.tabs.length === 3"
|
||||
/>
|
||||
<q-tab-panels
|
||||
v-model="tab"
|
||||
|
|
|
|||
|
|
@ -146,6 +146,7 @@ onMounted(async () => {
|
|||
:loop="probationStore.tabs.length"
|
||||
:FileDownload="FileDownload"
|
||||
:checkPermission="probationStore?.dataPermissions?.tab3?.isEdit as boolean"
|
||||
:is-max="probationStore.tabs.length === 3"
|
||||
/>
|
||||
<q-tab-panels
|
||||
v-model="tab"
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@ onMounted(() => {
|
|||
:add-data="addData"
|
||||
:FileDownload="FileDownload"
|
||||
:checkPermission="probationStore?.dataPermissions?.tab4?.isEdit as boolean"
|
||||
:is-max="tabs.length === 2"
|
||||
/>
|
||||
|
||||
<q-tab-panels
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ const changeTab = (tabVal: string) => {
|
|||
:add-data="addData"
|
||||
:FileDownload="FileDownload"
|
||||
:checkPermission="probationStore?.dataPermissions?.tab5?.isEdit as boolean"
|
||||
:is-max="tabs.length === 2"
|
||||
/>
|
||||
|
||||
<q-tab-panels
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue