0ab34084 by lihua

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

1 parent 4a37e5f0
...@@ -627,21 +627,23 @@ const assetDataTableInfo = ref({ ...@@ -627,21 +627,23 @@ const assetDataTableInfo = ref({
627 }) 627 })
628 } 628 }
629 }); 629 });
630 btns.push({ 630 if (!detailInfo.value.nodeId) {
631 label: "查看样例数据", value: "viewData", click: (scope) => { 631 btns.push({
632 let row = scope.row; 632 label: "查看样例数据", value: "viewData", click: (scope) => {
633 router.push({ 633 let row = scope.row;
634 path: route.query.dataSources == '1' ? '/data-asset/authordata-catalog/damTableDataView' : '/data-asset/register-catalog/damTableDataView', 634 router.push({
635 // name: 'damTableDataView', 635 path: route.query.dataSources == '1' ? '/data-asset/authordata-catalog/damTableDataView' : '/data-asset/register-catalog/damTableDataView',
636 query: { 636 // name: 'damTableDataView',
637 guid: row.guid, 637 query: {
638 name: row.tableChName, 638 guid: row.guid,
639 damName: detailInfo.value.damName, 639 name: row.tableChName,
640 dataSources: route.query.dataSources 640 damName: detailInfo.value.damName,
641 } 641 dataSources: route.query.dataSources
642 }); 642 }
643 } 643 });
644 }); 644 }
645 });
646 }
645 } 647 }
646 return btns; 648 return btns;
647 } 649 }
......
...@@ -1449,7 +1449,7 @@ const respParamsTableInfo = ref({ ...@@ -1449,7 +1449,7 @@ const respParamsTableInfo = ref({
1449 <span>{{ scope.row["updateTime"] || '--' }}</span> 1449 <span>{{ scope.row["updateTime"] || '--' }}</span>
1450 </template> 1450 </template>
1451 </el-table-column> 1451 </el-table-column>
1452 <el-table-column label="操作" minWidth="120px" align="left" fixed="right" show-overflow-tooltip> 1452 <el-table-column label="操作" v-if="!detailInfo.nodeId" minWidth="120px" align="left" fixed="right" show-overflow-tooltip>
1453 <template #default="scope"> 1453 <template #default="scope">
1454 <span class="text_btn" @click="handleTableViewData(scope)">查看样例数据</span> 1454 <span class="text_btn" @click="handleTableViewData(scope)">查看样例数据</span>
1455 </template> 1455 </template>
......
...@@ -439,11 +439,11 @@ const handleUploadClose = (itemGuid) => { ...@@ -439,11 +439,11 @@ const handleUploadClose = (itemGuid) => {
439 </div> 439 </div>
440 <div class="v-bottom"> 440 <div class="v-bottom">
441 <!-- TODO,上架之后不可以删除, 上架可以编辑,下架之后以及数据交付后可以删除。数据在交付状态不可以编辑。只有数据交付之后才可以编辑 --> 441 <!-- TODO,上架之后不可以删除, 上架可以编辑,下架之后以及数据交付后可以删除。数据在交付状态不可以编辑。只有数据交付之后才可以编辑 -->
442 <el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 2) && item.listingStatus != 'Y'" 442 <el-button plain v-if="!(item.isRegister == 'Y' || item.foundMode == 2) && item.listingStatus != 'Y' && !item.nodeId"
443 @click.stop="tableBtnClick(item, 'delete')">删除</el-button> 443 @click.stop="tableBtnClick(item, 'delete')">删除</el-button>
444 <el-button plain v-if="!(item.isRegister == 'Y') && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5" @click.stop="handleDataClick(item)">编辑</el-button> 444 <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>
445 <!-- <el-button plain @click.stop="handleClickUploadBtn(item)" v-if="item.isRegister == 'Y' && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5">上传交付物</el-button> --> 445 <!-- <el-button plain @click.stop="handleClickUploadBtn(item)" v-if="item.isRegister == 'Y' && item.foundMode != 3 && item.foundMode != 4 && item.foundMode != 5">上传交付物</el-button> -->
446 <el-button plain @click.stop="handleDataClick(item)" v-if="(item.isRegister == 'Y' || item.foundMode == 3 || item.foundMode == 4 || item.foundMode == 5)">详情</el-button> 446 <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>
447 </div> 447 </div>
448 </div> 448 </div>
449 </div> 449 </div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!