外部接口传的数据不可编辑和删除
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -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: { | ... | ... |
-
Please register or sign in to post a comment