恢复查看详情按钮

This commit is contained in:
weibl
2025-11-28 09:21:32 +08:00
parent 7f939f24fe
commit 75bf133e96
2 changed files with 14 additions and 2 deletions

View File

@@ -214,6 +214,7 @@ interface Props {
exportBtnVisible?: boolean; // 阶段uuid
showCheckBox?: boolean;
belongProject?: boolean;
specialActionList?: any;
}
const props = withDefaults(defineProps<Props>(), {
@@ -236,6 +237,7 @@ const props = withDefaults(defineProps<Props>(), {
exportBtnVisible: false,
showCheckBox: true,
belongProject: false, // 属于项目还是工况库
specialActionList: [],
});
const tagKeyMap = getTagKeyMap();
const disposeTreeData = (treeData: any[]) => {
@@ -410,6 +412,9 @@ const actionList = computed(() => {
if (!props.hasOperationColumn) {
return [];
}
if (props.specialActionList.length > 0) {
return props.specialActionList;
}
const baseActions = [
{
title: i18n?.global?.t('通用.编辑'),

View File

@@ -10,6 +10,13 @@
:data="tableList"
readonly
:loading="tableLoading"
:specialActionList="[{
title: '查看详情',
type: 'primary',
click: (row: any) => {
openTaskDetailDialogFun(row);
},
}]"
>
<template #otherLeftOptions>
<el-form label-width="60">
@@ -28,14 +35,14 @@
<!-- <template #exportBtn>
<el-button class="export-btn" @click="exportTaskFun">导出</el-button>
</template> -->
<template #otherTableActions="{ row }">
<!-- <template #otherTableActions="{ row }">
<el-button
type="primary"
v-if="row.nodeType === NODE_TYPE.TASK"
link
@click="openTaskDetailDialogFun(row)"
>查看详情</el-button>
</template>
</template> -->
</loadCaseTable>