|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
import { Delete, InfoFilled, Key, Operation, Tools, View } from '@element-plus/icons-vue';
|
|
import { Delete, InfoFilled, Key, Operation, Tools, View } from '@element-plus/icons-vue';
|
|
import PermissionButton from '/@/components/PermissionButton/index.vue';
|
|
import PermissionButton from '/@/components/PermissionButton/index.vue';
|
|
|
|
+import { hasPermission } from '/@/utils/hasPermission';
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
const props = defineProps<{
|
|
@@ -40,14 +41,14 @@ function handleManage() {
|
|
<div class="font-medium">
|
|
<div class="font-medium">
|
|
<div v-if="field === 'operate'">
|
|
<div v-if="field === 'operate'">
|
|
<div class="flex justify-center gap-2">
|
|
<div class="flex justify-center gap-2">
|
|
- <div>
|
|
|
|
|
|
+ <div v-if="hasPermission('SkuAttrUpdate')">
|
|
<PermissionButton circle plain type="warning" @click="handleEdit">
|
|
<PermissionButton circle plain type="warning" @click="handleEdit">
|
|
<el-icon>
|
|
<el-icon>
|
|
<Operation />
|
|
<Operation />
|
|
</el-icon>
|
|
</el-icon>
|
|
</PermissionButton>
|
|
</PermissionButton>
|
|
</div>
|
|
</div>
|
|
- <div>
|
|
|
|
|
|
+ <div v-if="hasPermission('SkuAttrDelete')">
|
|
<el-popconfirm :icon="InfoFilled" icon-color="#626AEF" title="你确定要删除此项吗?" width="220" @confirm="onConfirm">
|
|
<el-popconfirm :icon="InfoFilled" icon-color="#626AEF" title="你确定要删除此项吗?" width="220" @confirm="onConfirm">
|
|
<template #reference>
|
|
<template #reference>
|
|
<PermissionButton circle plain type="danger">
|
|
<PermissionButton circle plain type="danger">
|