refactor(change-round): add permission check using attrIsUpdate for change round button
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
9e550fc5bf
commit
598492b61e
2 changed files with 3 additions and 2 deletions
|
|
@ -4,8 +4,8 @@ interface DataPost {
|
||||||
lastName: string;
|
lastName: string;
|
||||||
page: number;
|
page: number;
|
||||||
pageSize: number;
|
pageSize: number;
|
||||||
selectedNodeId: string | null;
|
selectedNodeId?: string | null;
|
||||||
selectedNode: string;
|
selectedNode?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DataOption {
|
interface DataOption {
|
||||||
|
|
|
||||||
|
|
@ -410,6 +410,7 @@ onMounted(() => {
|
||||||
@click="selectAllRows()"
|
@click="selectAllRows()"
|
||||||
/> -->
|
/> -->
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="checkPermission($route)?.attrIsUpdate"
|
||||||
:disable="selected.length === 0 || isLoadingAll"
|
:disable="selected.length === 0 || isLoadingAll"
|
||||||
:color="selected.length === 0 ? 'grey' : 'info'"
|
:color="selected.length === 0 ? 'grey' : 'info'"
|
||||||
dense
|
dense
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue