refactor: update role task order can edit
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
This commit is contained in:
parent
48a1800b54
commit
3c4573192f
2 changed files with 7 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import { storeToRefs } from 'pinia';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
import { canAccess } from 'src/stores/utils';
|
||||||
|
|
||||||
// NOTE: Components
|
// NOTE: Components
|
||||||
import StatCardComponent from 'src/components/StatCardComponent.vue';
|
import StatCardComponent from 'src/components/StatCardComponent.vue';
|
||||||
|
|
@ -172,6 +173,7 @@ watch(
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<FloatingActionButton
|
<FloatingActionButton
|
||||||
|
v-if="canAccess('related', 'edit')"
|
||||||
style="z-index: 999"
|
style="z-index: 999"
|
||||||
:hide-icon="!pageState.isMessenger"
|
:hide-icon="!pageState.isMessenger"
|
||||||
@click.stop="
|
@click.stop="
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { QTableProps, QTableSlots } from 'quasar';
|
import { QTableProps, QTableSlots } from 'quasar';
|
||||||
|
|
||||||
|
import { canAccess } from 'src/stores/utils';
|
||||||
|
|
||||||
import QuotationCard from 'src/components/05_quotation/QuotationCard.vue';
|
import QuotationCard from 'src/components/05_quotation/QuotationCard.vue';
|
||||||
import BadgeComponent from 'src/components/BadgeComponent.vue';
|
import BadgeComponent from 'src/components/BadgeComponent.vue';
|
||||||
import KebabAction from 'src/components/shared/KebabAction.vue';
|
import KebabAction from 'src/components/shared/KebabAction.vue';
|
||||||
|
|
@ -214,7 +216,9 @@ const emit = defineEmits<{
|
||||||
/>
|
/>
|
||||||
<KebabAction
|
<KebabAction
|
||||||
v-if="
|
v-if="
|
||||||
!receive && props.row.taskOrderStatus === TaskOrderStatus.Pending
|
canAccess('related', 'edit') &&
|
||||||
|
!receive &&
|
||||||
|
props.row.taskOrderStatus === TaskOrderStatus.Pending
|
||||||
"
|
"
|
||||||
:idName="`btn-kebab-${props.row.taskName}`"
|
:idName="`btn-kebab-${props.row.taskName}`"
|
||||||
status="'ACTIVE'"
|
status="'ACTIVE'"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue