add 增加工作流权限标识符
This commit is contained in:
@@ -53,11 +53,19 @@
|
||||
<h3>流程定义</h3>
|
||||
</div>
|
||||
<div class="toolbar-actions">
|
||||
<el-button type="primary" icon="Plus" @click="handleAdd()">添加</el-button>
|
||||
<el-button type="success" icon="Edit" :disabled="single" @click="handleUpdate()">修改</el-button>
|
||||
<el-button type="danger" icon="Delete" :disabled="multiple" @click="handleDelete()">删除</el-button>
|
||||
<el-button type="primary" icon="UploadFilled" @click="uploadDialog.visible = true">部署流程文件</el-button>
|
||||
<el-button type="warning" icon="Download" :disabled="single" @click="handleExportDef">导出</el-button>
|
||||
<el-button v-hasPermi="['workflow:definition:add']" type="primary" icon="Plus" @click="handleAdd()">添加</el-button>
|
||||
<el-button v-hasPermi="['workflow:definition:edit']" type="success" icon="Edit" :disabled="single" @click="handleUpdate()"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button v-hasPermi="['workflow:definition:remove']" type="danger" icon="Delete" :disabled="multiple" @click="handleDelete()"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button v-hasPermi="['workflow:definition:import']" type="primary" icon="UploadFilled" @click="uploadDialog.visible = true"
|
||||
>部署流程文件</el-button
|
||||
>
|
||||
<el-button v-hasPermi="['workflow:definition:export']" type="warning" icon="Download" :disabled="single" @click="handleExportDef"
|
||||
>导出</el-button
|
||||
>
|
||||
<right-toolbar v-model:show-search="showSearch" :search="false" @query-table="handleQuery"></right-toolbar>
|
||||
</div>
|
||||
</div>
|
||||
@@ -77,6 +85,7 @@
|
||||
<el-table-column align="center" prop="activityStatus" label="激活状态" width="130">
|
||||
<template #default="scope">
|
||||
<el-switch
|
||||
v-hasPermi="['workflow:definition:active']"
|
||||
v-model="scope.row.activityStatus"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
@@ -94,13 +103,54 @@
|
||||
<el-table-column fixed="right" label="操作" align="center" width="236" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<div class="process-action-group">
|
||||
<el-button link type="primary" size="small" icon="Delete" @click="handleDelete(scope.row)">删除流程</el-button>
|
||||
<el-button link type="primary" size="small" icon="CopyDocument" @click="handleCopyDef(scope.row)">复制流程</el-button>
|
||||
<el-button link type="primary" v-if="scope.row.isPublish === 0" icon="Pointer" size="small" @click="design(scope.row)">
|
||||
<el-button
|
||||
v-hasPermi="['workflow:definition:remove']"
|
||||
link
|
||||
type="primary"
|
||||
size="small"
|
||||
icon="Delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
>删除流程</el-button
|
||||
>
|
||||
<el-button
|
||||
v-hasPermi="['workflow:definition:copy']"
|
||||
link
|
||||
type="primary"
|
||||
size="small"
|
||||
icon="CopyDocument"
|
||||
@click="handleCopyDef(scope.row)"
|
||||
>复制流程</el-button
|
||||
>
|
||||
<el-button
|
||||
v-hasPermi="['workflow:definition:query']"
|
||||
link
|
||||
type="primary"
|
||||
v-if="scope.row.isPublish === 0"
|
||||
icon="Pointer"
|
||||
size="small"
|
||||
@click="design(scope.row)"
|
||||
>
|
||||
流程设计
|
||||
</el-button>
|
||||
<el-button link type="primary" v-else icon="View" size="small" @click="designView(scope.row)">查看流程</el-button>
|
||||
<el-button link type="primary" v-if="scope.row.isPublish !== 1" size="small" icon="CircleCheck" @click="handlePublish(scope.row)">
|
||||
<el-button
|
||||
v-hasPermi="['workflow:definition:query']"
|
||||
link
|
||||
type="primary"
|
||||
v-else
|
||||
icon="View"
|
||||
size="small"
|
||||
@click="designView(scope.row)"
|
||||
>查看流程</el-button
|
||||
>
|
||||
<el-button
|
||||
v-hasPermi="['workflow:definition:publish']"
|
||||
link
|
||||
type="primary"
|
||||
v-if="scope.row.isPublish !== 1"
|
||||
size="small"
|
||||
icon="CircleCheck"
|
||||
@click="handlePublish(scope.row)"
|
||||
>
|
||||
发布流程
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user