6/22完善引入,

This commit is contained in:
Zy
2026-06-22 08:14:35 +08:00
parent ea8129216b
commit 826bf3c782
208 changed files with 1122 additions and 1685 deletions

View File

@@ -42,25 +42,25 @@
<template #header>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button v-hasPermi="['workflow:definition:add']" type="primary" icon="Plus" @click="handleAdd()">添加</el-button>
<el-button v-has-permi="['workflow:definition:add']" type="primary" icon="Plus" @click="handleAdd()">添加</el-button>
</el-col>
<el-col :span="1.5">
<el-button v-hasPermi="['workflow:definition:edit']" type="success" icon="Edit" :disabled="single" @click="handleUpdate()"
<el-button v-has-permi="['workflow:definition:edit']" type="success" icon="Edit" :disabled="single" @click="handleUpdate()"
>修改</el-button
>
</el-col>
<el-col :span="1.5">
<el-button v-hasPermi="['workflow:definition:remove']" type="danger" icon="Delete" :disabled="multiple" @click="handleDelete()"
<el-button v-has-permi="['workflow:definition:remove']" type="danger" icon="Delete" :disabled="multiple" @click="handleDelete()"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button v-hasPermi="['workflow:definition:import']" type="primary" icon="UploadFilled" @click="uploadDialog.visible = true"
<el-button v-has-permi="['workflow:definition:import']" type="primary" icon="UploadFilled" @click="uploadDialog.visible = true"
>部署流程文件</el-button
>
</el-col>
<el-col :span="1.5">
<el-button v-hasPermi="['workflow:definition:export']" type="warning" icon="Download" :disabled="single" @click="handleExportDef"
<el-button v-has-permi="['workflow:definition:export']" type="warning" icon="Download" :disabled="single" @click="handleExportDef"
>导出</el-button
>
</el-col>
@@ -82,7 +82,7 @@
<el-table-column align="center" prop="activityStatus" label="激活状态" width="130">
<template #default="scope">
<el-switch
v-hasPermi="['workflow:definition:active']"
v-has-permi="['workflow:definition:active']"
v-model="scope.row.activityStatus"
:active-value="1"
:inactive-value="0"
@@ -102,7 +102,7 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
v-hasPermi="['workflow:definition:remove']"
v-has-permi="['workflow:definition:remove']"
link
type="primary"
size="small"
@@ -113,7 +113,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['workflow:definition:copy']"
v-has-permi="['workflow:definition:copy']"
link
type="primary"
size="small"
@@ -126,7 +126,7 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
v-hasPermi="['workflow:definition:query']"
v-has-permi="['workflow:definition:query']"
link
type="primary"
v-if="scope.row.isPublish === 0"
@@ -136,7 +136,7 @@
>流程设计</el-button
>
<el-button
v-hasPermi="['workflow:definition:query']"
v-has-permi="['workflow:definition:query']"
link
type="primary"
v-else
@@ -148,7 +148,7 @@
</el-col>
<el-col v-if="scope.row.isPublish !== 1" :span="1.5">
<el-button
v-hasPermi="['workflow:definition:publish']"
v-has-permi="['workflow:definition:publish']"
link
type="primary"
size="small"
@@ -262,6 +262,7 @@ import { CategoryTreeVO } from '@/api/workflow/category/types';
import { FlowDefinitionQuery, FlowDefinitionVo, FlowDefinitionForm } from '@/api/workflow/definition/types';
import { UploadRequestOptions, TabsPaneContext } from 'element-plus';
import { ElMessageBoxOptions } from 'element-plus/es/components/message-box/src/message-box.type';
import { UploadFilled } from '@element-plus/icons-vue';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;