update 任务详情下增加操作日志

This commit is contained in:
2026-03-12 16:24:52 +08:00
parent 7c9f3cde48
commit bd3d0eae3c
2 changed files with 30 additions and 26 deletions

View File

@@ -15,23 +15,6 @@
<knowledgeSelect v-model="standard" />
</template>
</TableForm>
<!-- 展示任务的操作日志 -->
<div class="oprate-log" v-if="false">
<BaseTable
listTitle="任务操作日志"
tableName="SYSTEM_LOGS"
:api="pageApi"
:actionList="[]"
:params="searchParams"
fullHeight
hideSearch
>
<template #logType="{ row }">
<el-tag type="success" v-if="row.logType === '0'">正常</el-tag>
<el-tag type="danger" v-else>异常</el-tag>
</template>
</BaseTable>
</div>
</div>
</template>
@@ -43,8 +26,6 @@ import { disposeTaskMembers, getMemberListIds } from '@/utils/task';
import flowTemplateSelect from '@/components/common/treeCaseTable/flowTemplateSelect.vue';
import knowledgeSelect from '@/components/common/treeCaseTable/knowledgeSelect.vue';
import { disposeTagKey } from '@/views/task/projectDetail/components/project';
import BaseTable from '@/components/common/table/baseTable.vue';
import { pageApi } from '@/api/system/systemLog';
const props = defineProps({
taskInfo: {
@@ -69,9 +50,6 @@ const formAttrs = ref({
step: 0.01,
},
});
const searchParams = ref<any>({
businessId: props.taskInfo.uuid,
});
const localDetail = ref<any>({});
@@ -189,9 +167,5 @@ onMounted(() => {});
margin-bottom: 18px !important;
}
}
.oprate-log {
// flex: 1;
height: calc(100% - 210px);
}
}
</style>

View File

@@ -37,6 +37,28 @@
>
</taskInfo>
</div>
<div class="task-tab-content-first">
<div class="task-tab-content-title">
<div class="title-info">操作日志</div>
</div>
<div class="oprate-log">
<BaseTable
tableName="SYSTEM_LOGS"
:api="pageApi"
:actionList="[]"
:params="searchParams"
fullHeight
hideSearch
:showSetting="false"
>
<template #logType="{ row }">
<el-tag type="success" v-if="row.logType === '0'">正常</el-tag>
<el-tag type="danger" v-else>异常</el-tag>
</template>
</BaseTable>
</div>
</div>
<div class="task-tab-content-first">
<div class="task-tab-content-title">
<div class="title-info">仿真报告</div>
@@ -310,6 +332,8 @@ import { isSimManagerOrExecutor, judgmentTaskCompletedFun } from '@/utils/task';
import { getNodeDetailApi } from '@/api/project/node';
import { jumpPage } from '@/utils/common';
import { enableConfigByTenant, TENANT_ENUM } from '@/tenants/tenant';
import BaseTable from '@/components/common/table/baseTable.vue';
import { pageApi } from '@/api/system/systemLog';
const emits = defineEmits(['closeFn', 'updateFn']);
const props = defineProps({
@@ -342,6 +366,9 @@ const props = defineProps({
default: true,
},
});
const searchParams = ref<any>({
businessId: props.currentTaskInfo.uuid,
});
const isPMemberOrEMember = isSimManagerOrExecutor(
props.currentTaskInfo?.pMemberList || [],
props.currentTaskInfo?.eMemberList || []
@@ -540,6 +567,9 @@ onMounted(async () => {
.report-table {
height: 400px;
}
.oprate-log {
height: 400px;
}
}
.set-tab-content {