|
@@ -103,13 +103,21 @@
|
|
|
<template #caozuo-column-value="{ scope }">
|
|
|
<div class="__czr-table-operations">
|
|
|
<CzrButton
|
|
|
- v-if="AppStore.hasPermission($route.name, 'edit')"
|
|
|
+ v-if="
|
|
|
+ AppStore.isSuperAdmin &&
|
|
|
+ state.query.form.tenantId === AppStore.tenantInfo.id &&
|
|
|
+ AppStore.hasPermission($route.name, 'edit')
|
|
|
+ "
|
|
|
type="table"
|
|
|
title="编辑"
|
|
|
@click="onEdit(scope.row)"
|
|
|
/>
|
|
|
<CzrButton
|
|
|
- v-if="AppStore.hasPermission($route.name, 'del')"
|
|
|
+ v-if="
|
|
|
+ AppStore.isSuperAdmin &&
|
|
|
+ state.query.form.tenantId === AppStore.tenantInfo.id &&
|
|
|
+ AppStore.hasPermission($route.name, 'del')
|
|
|
+ "
|
|
|
type="table-del"
|
|
|
@click="onDel(scope.row)"
|
|
|
/>
|