663d5f54 by lihua

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

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