0ab34084 by lihua

同步过来的数据不能查看样例数据,不能编辑删除

1 parent 4a37e5f0
......@@ -627,21 +627,23 @@ const assetDataTableInfo = ref({
})
}
});
btns.push({
label: "查看样例数据", value: "viewData", click: (scope) => {
let row = scope.row;
router.push({
path: route.query.dataSources == '1' ? '/data-asset/authordata-catalog/damTableDataView' : '/data-asset/register-catalog/damTableDataView',
// name: 'damTableDataView',
query: {
guid: row.guid,
name: row.tableChName,
damName: detailInfo.value.damName,
dataSources: route.query.dataSources
}
});
}
});
if (!detailInfo.value.nodeId) {
btns.push({
label: "查看样例数据", value: "viewData", click: (scope) => {
let row = scope.row;
router.push({
path: route.query.dataSources == '1' ? '/data-asset/authordata-catalog/damTableDataView' : '/data-asset/register-catalog/damTableDataView',
// name: 'damTableDataView',
query: {
guid: row.guid,
name: row.tableChName,
damName: detailInfo.value.damName,
dataSources: route.query.dataSources
}
});
}
});
}
}
return btns;
}
......
......@@ -1449,7 +1449,7 @@ const respParamsTableInfo = ref({
<span>{{ scope.row["updateTime"] || '--' }}</span>
</template>
</el-table-column>
<el-table-column label="操作" minWidth="120px" align="left" fixed="right" show-overflow-tooltip>
<el-table-column label="操作" v-if="!detailInfo.nodeId" minWidth="120px" align="left" fixed="right" show-overflow-tooltip>
<template #default="scope">
<span class="text_btn" @click="handleTableViewData(scope)">查看样例数据</span>
</template>
......
......@@ -439,11 +439,11 @@ const handleUploadClose = (itemGuid) => {
</div>
<div class="v-bottom">
<!-- TODO,上架之后不可以删除, 上架可以编辑,下架之后以及数据交付后可以删除。数据在交付状态不可以编辑。只有数据交付之后才可以编辑 -->
<el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 2) && item.listingStatus != 'Y'"
<el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 2) && item.listingStatus != 'Y' && !item.nodeId"
@click.stop="tableBtnClick(item, 'delete')">删除</el-button>
<el-button plain v-if="!(item.isRegister == 'Y') && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5" @click.stop="handleDataClick(item)">编辑</el-button>
<el-button plain v-if="!(item.isRegister == 'Y') && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5 && !item.nodeId" @click.stop="handleDataClick(item)">编辑</el-button>
<!-- <el-button plain @click.stop="handleClickUploadBtn(item)" v-if="item.isRegister == 'Y' && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5">上传交付物</el-button> -->
<el-button plain @click.stop="handleDataClick(item)" v-if="(item.isRegister == 'Y' || item.foundMode == 3 || item.foundMode == 4 || item.foundMode == 5)">详情</el-button>
<el-button plain @click.stop="handleDataClick(item)" v-if="(item.isRegister == 'Y' || item.foundMode == 3 || item.foundMode == 4 || item.foundMode == 5 || item.nodeId)">详情</el-button>
</div>
</div>
</div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!