|
@@ -15,6 +15,7 @@ import CreateDialog from '/@/views/sku-manage/product-attribute/component/manage
|
|
import EditDrawer from '/@/views/sku-manage/product-attribute/component/manage-enum/component/EditDrawer.vue';
|
|
import EditDrawer from '/@/views/sku-manage/product-attribute/component/manage-enum/component/EditDrawer.vue';
|
|
import EditLabelDialog from '/@/views/product-manage/comment-detail/component/EditLabelDialog.vue';
|
|
import EditLabelDialog from '/@/views/product-manage/comment-detail/component/EditLabelDialog.vue';
|
|
import ShowEnumDrawer from '/@/views/sku-manage/product-attribute/component/manage-enum/component/ShowEnumDrawer.vue';
|
|
import ShowEnumDrawer from '/@/views/sku-manage/product-attribute/component/manage-enum/component/ShowEnumDrawer.vue';
|
|
|
|
+import { hasPermission } from '/@/utils/hasPermission';
|
|
|
|
|
|
const manageOpen = defineModel({ default: false });
|
|
const manageOpen = defineModel({ default: false });
|
|
|
|
|
|
@@ -159,7 +160,7 @@ onMounted(() => {
|
|
<vxe-grid ref="gridRef" :cell-style="cellStyle" v-bind="gridOptions">
|
|
<vxe-grid ref="gridRef" :cell-style="cellStyle" v-bind="gridOptions">
|
|
<template #toolbar_buttons>
|
|
<template #toolbar_buttons>
|
|
<div class="flex gap-2">
|
|
<div class="flex gap-2">
|
|
- <PermissionButton :icon="Plus" plain round type="primary" @click="handleCreate"> 新 增</PermissionButton>
|
|
|
|
|
|
+ <PermissionButton :icon="Plus" v-if="hasPermission('AttrCreate')" plain round type="primary" @click="handleCreate"> 新 增</PermissionButton>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template #status="{ row }">
|
|
<template #status="{ row }">
|
|
@@ -168,12 +169,15 @@ onMounted(() => {
|
|
</template>
|
|
</template>
|
|
<template #operate="{ row }">
|
|
<template #operate="{ row }">
|
|
<div class="flex justify-center gap-2">
|
|
<div class="flex justify-center gap-2">
|
|
- <el-button size="small" circle plain type="success" :icon="View" @click="handleView(row)"></el-button>
|
|
|
|
- <PermissionButton circle plain type="warning" size="small" @click="handleEdit(row)">
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <el-button size="small" circle plain type="success" :icon="View" @click="handleView(row)"></el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <PermissionButton v-if="hasPermission('AttrUpdate')" circle plain type="warning" size="small" @click="handleEdit(row)">
|
|
<el-icon>
|
|
<el-icon>
|
|
<Operation />
|
|
<Operation />
|
|
</el-icon>
|
|
</el-icon>
|
|
</PermissionButton>
|
|
</PermissionButton>
|
|
|
|
+ <div v-if="hasPermission('AttrDelete')">
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
:icon="InfoFilled"
|
|
:icon="InfoFilled"
|
|
icon-color="#626AEF"
|
|
icon-color="#626AEF"
|
|
@@ -199,6 +203,7 @@ onMounted(() => {
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template #pager>
|
|
<template #pager>
|