|
@ -77,14 +77,14 @@ const route = useRoute() //路由信息 |
|
|
const routeName = ref() |
|
|
const routeName = ref() |
|
|
routeName.value = route.name |
|
|
routeName.value = route.name |
|
|
const tableColumns = ref(Supplieritem.allSchemas.tableColumns) |
|
|
const tableColumns = ref(Supplieritem.allSchemas.tableColumns) |
|
|
if(routeName.value.includes('SCP')){ |
|
|
// if(routeName.value.includes('SCP')){ |
|
|
tableColumns.value = tableColumns.value.filter(item=>item.field!='action') |
|
|
// tableColumns.value = tableColumns.value.filter(item=>item.field!='action') |
|
|
} |
|
|
// } |
|
|
//字段设置 更新主列表字段 |
|
|
//字段设置 更新主列表字段 |
|
|
const updataTableColumns = (val) => { |
|
|
const updataTableColumns = (val) => { |
|
|
if(routeName.value.includes('SCP')){ |
|
|
// if(routeName.value.includes('SCP')){ |
|
|
val = val.filter(item=>item.field!='action') |
|
|
// val = val.filter(item=>item.field!='action') |
|
|
} |
|
|
// } |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|