恢复查看详情按钮
This commit is contained in:
@@ -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('通用.编辑'),
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user