fix(data-process): 按发布状态控制结果编辑
This commit is contained in:
@@ -647,7 +647,10 @@ onBeforeUnmount(() => {
|
||||
<section class="detail-section result-section" aria-labelledby="result-title" v-loading="resultLoading">
|
||||
<div class="result-toolbar">
|
||||
<div class="section-heading">
|
||||
<div><h2 id="result-title">结果明细</h2><p>查看、编辑或恢复处理结果</p></div>
|
||||
<div>
|
||||
<h2 id="result-title">结果明细</h2>
|
||||
<p>{{ hasCurrentPublishedDataset ? '查看生成结果与质量状态,已发布数据请前往数据集详情编辑' : '查看、编辑或恢复待发布结果' }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="result-filters">
|
||||
<el-input
|
||||
@@ -691,17 +694,11 @@ onBeforeUnmount(() => {
|
||||
<el-tag :type="resultStatusType(row.status)" size="small">{{ resultStatusLabel(row.status) }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="130" align="center" fixed="right">
|
||||
<el-table-column v-if="!hasCurrentPublishedDataset" label="操作" width="130" align="center" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button link type="primary" @click="openResultEditor(row as DataProcessResult)">编辑</el-button>
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
:disabled="Boolean(outputDatasetId)"
|
||||
@click="openResultEditor(row as DataProcessResult)"
|
||||
>编辑</el-button>
|
||||
<el-button
|
||||
link
|
||||
:disabled="Boolean(outputDatasetId)"
|
||||
:loading="restoringResultId === row.id"
|
||||
@click="restoreResult(row as DataProcessResult)"
|
||||
>恢复</el-button>
|
||||
|
||||
Reference in New Issue
Block a user