df16a21f by lihua

外部接口传的数据不可编辑和删除

1 parent f9747dd6
......@@ -51,7 +51,7 @@ const tableInfo = ref({
{ label: "数据集名称", field: "taskName", width: 160 },
{
label: "数据来源", field: "dataSource", width: 100, getName: (scope) => {
return scope.row.dataSource && dataSourceTypeList.find(f => f.value == scope.row.dataSource)?.label || '--';
return scope.row.dataSource == 4 ? '外部数据' : (scope.row.dataSource && dataSourceTypeList.find(f => f.value == scope.row.dataSource)?.label || '--');
}
},
{ label: "任务状态", field: "sensitiveIdentifyTaskStatus", width: TableColumnWidth.STATE, align: 'center', type: "tag" },
......@@ -73,7 +73,7 @@ const tableInfo = ref({
fixed: 'right',
btns: (scope) => {
return [{
label: "编辑", value: "edit", disabled: scope.row.isConfirm == 'Y', click: (scope) => {
label: "编辑", value: "edit", disabled: scope.row.isConfirm == 'Y' || scope.row.dataSource == 4, click: (scope) => {
router.push({
name: 'anonTaskCreate',
query: {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!