This commit is contained in:
2025-08-14 16:41:39 +08:00
8 changed files with 259 additions and 124 deletions

View File

@ -42,6 +42,15 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button
link
type="primary"
v-if="scope.row.status !== 'draft'"
icon="Edit"
@click="handleView(scope.row)"
v-hasPermi="['design:PrelimScheme:edit']"
>查看流程</el-button
>
<el-button
link
type="primary"
@ -198,14 +207,12 @@ const handleDelete = async (row?: PrelimSchemeVO) => {
};
/** 导出按钮操作 */
const handleExport = () => {
proxy?.download(
'design/scheme/export',
{
...queryParams.value
},
`scheme_${new Date().getTime()}.xlsx`
);
const handleView = (row?: PrelimSchemeVO) => {
proxy.$tab.closePage(route);
proxy.$tab.openPage(`/design-management/prelimScheme/indexEdit`, '', {
id: row.id,
type: 'view'
});
};
onMounted(() => {

View File

@ -42,6 +42,15 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button
link
type="primary"
v-if="scope.row.status !== 'draft'"
icon="Edit"
@click="handleView(scope.row)"
v-hasPermi="['design:PrelimScheme:edit']"
>查看流程</el-button
>
<el-button
link
type="primary"
@ -196,15 +205,12 @@ const handleDelete = async (row?: SchemeVO) => {
await getList();
};
/** 导出按钮操作 */
const handleExport = () => {
proxy?.download(
'design/scheme/export',
{
...queryParams.value
},
`scheme_${new Date().getTime()}.xlsx`
);
const handleView = (row?: SchemeVO) => {
proxy.$tab.closePage(route);
proxy.$tab.openPage(`/design-management/scheme/indexEdit`, '', {
id: row.id,
type: 'view'
});
};
onMounted(() => {

View File

@ -106,7 +106,7 @@
link
type="primary"
icon="View"
v-if="scope.row.auditStatus != 'draft' && scope.row.auditStatus != 'finish'"
v-if="scope.row.auditStatus != 'draft'"
@click="handleAuditView(scope.row)"
v-hasPermi="['out:monthPlan:remove']"
>查看流程</el-button