|
|
@ -73,10 +73,20 @@ import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(InspectionRecordMain.allSchemas.tableColumns) |
|
|
|
|
|
|
|
if(routeName.value=='InspectRecordMain'){ |
|
|
|
tableColumns.value = tableColumns.value.filter(item=>{ |
|
|
|
return item.label!='操作' |
|
|
|
}) |
|
|
|
} |
|
|
|
// 字段设置 更新主列表字段 |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
if(routeName.value=='InspectRecordMain'){ |
|
|
|
tableColumns.value = val.filter(item=>{ |
|
|
|
return item.label!='操作' |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|