部署列表

This commit is contained in:
cxc
2022-12-20 17:27:12 +08:00
parent 9b33e7e846
commit 750f66aaf4
6 changed files with 49 additions and 45 deletions

View File

@ -171,6 +171,7 @@
</template>
<script setup>
import { download } from "@/utils/request";
import {
listAllCategory,
// getCategory,
@ -341,10 +342,10 @@ function handleDelete(row) {
}
/** 导出按钮操作 */
function handleExport() {
this.download(
download(
"workflow/category/export",
{
...this.queryParams,
...queryParams.value,
},
`category_${new Date().getTime()}.xlsx`
);

View File

@ -71,7 +71,7 @@
<el-button
type="danger"
plain
icon="el-icon-delete"
icon="delete"
size="small"
:disabled="multiple"
@click="handleDelete"
@ -104,9 +104,9 @@
align="center"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<el-button type="text" @click="handleProcessView(scope.row)">
<span>{{ scope.row.processName }}</span>
<template #default="{ row }">
<el-button link @click="handleProcessView(row)">
<span>{{ row.processName }}</span>
</el-button>
</template>
</el-table-column>
@ -117,14 +117,14 @@
:formatter="categoryFormat"
/>
<el-table-column label="流程版本" align="center">
<template slot-scope="scope">
<el-tag size="default">v{{ scope.row.version }}</el-tag>
<template #default="{ row }">
<el-tag size="default">v{{ row.version }}</el-tag>
</template>
</el-table-column>
<el-table-column label="状态" align="center">
<template slot-scope="scope">
<el-tag type="success" v-if="!scope.row.suspended">激活</el-tag>
<el-tag type="warning" v-if="scope.row.suspended">挂起</el-tag>
<template #default="{ row }">
<el-tag type="success" v-if="!row.suspended">激活</el-tag>
<el-tag type="warning" v-if="row.suspended">挂起</el-tag>
</template>
</el-table-column>
<el-table-column
@ -138,20 +138,20 @@
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
<template #default="{ row }">
<el-button
type="text"
link
size="small"
icon="el-icon-price-tag"
@click.native="handlePublish(scope.row)"
icon="price-tag"
@click.native="handlePublish(row)"
v-hasPermi="['workflow:deploy:list']"
>版本管理</el-button
>
<el-button
type="text"
link
size="small"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
icon="delete"
@click="handleDelete(row)"
v-hasPermi="['workflow:deploy:remove']"
>删除</el-button
>
@ -201,21 +201,21 @@
align="center"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<el-button type="text" @click="handleProcessView(scope.row)">
<span>{{ scope.row.processName }}</span>
<template #default="{ row }">
<el-button link @click="handleProcessView(row)">
<span>{{ row.processName }}</span>
</el-button>
</template>
</el-table-column>
<el-table-column label="流程版本" align="center">
<template slot-scope="scope">
<el-tag size="default">v{{ scope.row.version }}</el-tag>
<template #default="{ row }">
<el-tag size="default">v{{ row.version }}</el-tag>
</template>
</el-table-column>
<el-table-column label="状态" align="center">
<template slot-scope="scope">
<el-tag type="success" v-if="!scope.row.suspended">激活</el-tag>
<el-tag type="warning" v-if="scope.row.suspended">挂起</el-tag>
<template #default="{ row }">
<el-tag type="success" v-if="!row.suspended">激活</el-tag>
<el-tag type="warning" v-if="row.suspended">挂起</el-tag>
</template>
</el-table-column>
<el-table-column
@ -223,30 +223,30 @@
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
<template #default="{ row }">
<el-button
type="text"
link
size="small"
icon="video-pause"
v-if="!scope.row.suspended"
@click.native="handleChangeState(scope.row, 'suspended')"
v-if="!row.suspended"
@click.native="handleChangeState(row, 'suspended')"
v-hasPermi="['workflow:deploy:status']"
>挂起</el-button
>
<el-button
type="text"
link
size="small"
icon="video-play"
v-if="scope.row.suspended"
@click.native="handleChangeState(scope.row, 'active')"
v-if="row.suspended"
@click.native="handleChangeState(row, 'active')"
v-hasPermi="['workflow:deploy:status']"
>激活</el-button
>
<el-button
type="text"
link
size="small"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
icon="delete"
@click="handleDelete(row)"
v-hasPermi="['workflow:deploy:remove']"
>删除</el-button
>
@ -329,7 +329,9 @@ getList();
/** 查询流程分类列表 */
function getCategoryList() {
listAllCategory().then((response) => (categoryOptions.value = response.data));
listAllCategory().then((response) => {
categoryOptions.value = response.rows;
});
}
/** 查询流程部署列表 */
function getList() {

View File

@ -277,9 +277,10 @@ function handleAdd() {
}
/** 修改按钮操作 */
function handleUpdate(row) {
const id = row?.formId ?? ids.value[0];
router.push({
path: "/flowable/form/build",
query: { formId: row.formId },
query: { formId: id },
});
}
/** 提交按钮 */

View File

@ -526,7 +526,7 @@ const submitForm = () => {
drawingList.value = [];
idGlobal.value = 100;
open.value = false;
//TODO: 关闭当前标签页并返回上个页面
// 关闭当前标签页并返回上个页面
tab.closeOpenPage();
router.back();
}