权限相关调整
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<el-button type="primary" icon="Search" @click="loadData">查询</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
<div class="spacer"></div>
|
||||
<el-button type="primary" icon="Plus" @click="openCreate">新增自定义变量</el-button>
|
||||
<el-button v-auth="'onboardingEntryConfigAdd'" type="primary" icon="Plus" @click="openCreate">新增自定义变量</el-button>
|
||||
</div>
|
||||
|
||||
<el-alert
|
||||
@@ -80,12 +80,23 @@
|
||||
<el-table-column label="操作" width="160" align="center" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<div style="display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;">
|
||||
<el-button link type="primary" icon="Edit" @click="openEdit(row)">编辑</el-button>
|
||||
<el-button
|
||||
v-auth="'onboardingEntryConfigEdit'"
|
||||
link
|
||||
type="primary"
|
||||
icon="Edit"
|
||||
:disabled="!canManage(row)"
|
||||
:title="disabledReason(row)"
|
||||
@click="openEdit(row)"
|
||||
>编辑</el-button>
|
||||
<el-button
|
||||
v-auth="'onboardingEntryConfigDelete'"
|
||||
v-if="!row.isBuiltIn"
|
||||
link
|
||||
type="danger"
|
||||
icon="Delete"
|
||||
:disabled="!canManage(row)"
|
||||
:title="disabledReason(row)"
|
||||
@click="remove(row)"
|
||||
>
|
||||
删除
|
||||
@@ -171,6 +182,9 @@ import { ref, reactive, onMounted } from "vue";
|
||||
import { ElMessage, ElMessageBox, FormInstance, FormRules } from "element-plus";
|
||||
import { onboardingTaskApi } from "@/api/modules/biz/onboarding";
|
||||
import { isMessageBoxConfirmed } from "@/utils/messageBox";
|
||||
import { useOnboardingPermission } from "@/utils/onboardingPermission";
|
||||
|
||||
const { canManage, disabledReason } = useOnboardingPermission("onboardingEntryConfigManageAll");
|
||||
|
||||
const loading = ref(false);
|
||||
const saving = ref(false);
|
||||
|
||||
Reference in New Issue
Block a user