|
@@ -37,79 +37,52 @@ function handleManage() {
|
|
<template>
|
|
<template>
|
|
<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>
|
|
|
|
- <PermissionButton circle plain type="warning" @click="handleEdit">
|
|
|
|
- <el-icon>
|
|
|
|
- <Operation />
|
|
|
|
- </el-icon>
|
|
|
|
- </PermissionButton>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <el-popconfirm
|
|
|
|
- :icon="InfoFilled"
|
|
|
|
- icon-color="#626AEF"
|
|
|
|
- title="你确定要删除此项吗?"
|
|
|
|
- width="220"
|
|
|
|
- @confirm="onConfirm"
|
|
|
|
- >
|
|
|
|
- <template #reference>
|
|
|
|
- <PermissionButton circle plain type="danger">
|
|
|
|
|
|
+ <div class="font-medium">
|
|
|
|
+ <div v-if="field === 'operate'">
|
|
|
|
+ <div class="flex justify-center gap-2">
|
|
|
|
+ <div>
|
|
|
|
+ <el-button circle plain type="success" :icon="View" @click="handleView"></el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <PermissionButton circle plain type="warning" @click="handleEdit">
|
|
<el-icon>
|
|
<el-icon>
|
|
- <Delete />
|
|
|
|
|
|
+ <Operation />
|
|
</el-icon>
|
|
</el-icon>
|
|
</PermissionButton>
|
|
</PermissionButton>
|
|
- </template>
|
|
|
|
- <template #actions="{ confirm, cancel }">
|
|
|
|
- <el-button size="small" @click="cancel">No!</el-button>
|
|
|
|
- <el-button
|
|
|
|
- size="small"
|
|
|
|
- type="danger"
|
|
|
|
- @click="confirm"
|
|
|
|
- >
|
|
|
|
- Yes?
|
|
|
|
- </el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-popconfirm>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <el-popconfirm :icon="InfoFilled" icon-color="#626AEF" title="你确定要删除此项吗?" width="220" @confirm="onConfirm">
|
|
|
|
+ <template #reference>
|
|
|
|
+ <PermissionButton circle plain type="danger">
|
|
|
|
+ <el-icon>
|
|
|
|
+ <Delete />
|
|
|
|
+ </el-icon>
|
|
|
|
+ </PermissionButton>
|
|
|
|
+ </template>
|
|
|
|
+ <template #actions="{ confirm, cancel }">
|
|
|
|
+ <el-button size="small" @click="cancel">No!</el-button>
|
|
|
|
+ <el-button size="small" type="danger" @click="confirm"> Yes? </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <el-tooltip :enterable="false" :show-arrow="false" content="管理枚举" placement="top" popper-class="custom-btn-tooltip-2">
|
|
|
|
+ <el-button :icon="Key" circle color="#8d87e8" plain @click="handleManage"> </el-button>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>
|
|
|
|
+ {{ row[field] }}
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-else>
|
|
<div v-else>
|
|
{{ row[field] }}
|
|
{{ row[field] }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="font-medium">
|
|
|
|
- <div v-if="field === 'operate'">
|
|
|
|
- <div class="flex justify-center gap-2">
|
|
|
|
- <el-button circle plain type="success" :icon="View" @click="handleView"></el-button>
|
|
|
|
- <PermissionButton circle plain type="warning" @click="handleEdit">
|
|
|
|
- <el-icon>
|
|
|
|
- <Operation />
|
|
|
|
- </el-icon>
|
|
|
|
- </PermissionButton>
|
|
|
|
- <el-popconfirm :icon="InfoFilled" icon-color="#626AEF" title="你确定要删除此项吗?" width="220" @confirm="onConfirm">
|
|
|
|
- <template #reference>
|
|
|
|
- <PermissionButton circle plain type="danger">
|
|
|
|
- <el-icon>
|
|
|
|
- <Delete />
|
|
|
|
- </el-icon>
|
|
|
|
- </PermissionButton>
|
|
|
|
- </template>
|
|
|
|
- <template #actions="{ confirm, cancel }">
|
|
|
|
- <el-button size="small" @click="cancel">No!</el-button>
|
|
|
|
- <el-button size="small" type="danger" @click="confirm"> Yes? </el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- <el-tooltip :enterable="false" :show-arrow="false" content="管理枚举" placement="top" popper-class="custom-btn-tooltip-2">
|
|
|
|
- <el-button :icon="Key" circle color="#8d87e8" plain @click="handleManage"> </el-button>
|
|
|
|
- </el-tooltip>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div v-else>
|
|
|
|
- {{ row[field] }}
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|