|
|
@ -91,14 +91,19 @@ const route = useRoute() // 路由信息 |
|
|
|
const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(Itempackaging.allSchemas.tableColumns) |
|
|
|
|
|
|
|
if(routeName.value.includes('SCP')){ |
|
|
|
tableColumns.value = tableColumns.value.filter(item=>item.field!='action') |
|
|
|
} |
|
|
|
// 字段设置 更新主列表字段 |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
if(routeName.value.includes('SCP')){ |
|
|
|
val = val.filter(item=>item.field!='action') |
|
|
|
} |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: ItempackagingApi.getItempackagingPageTree // 分页接口 |
|
|
|
getListApi:routeName.value.includes('SCP')?ItempackagingApi.getItempackagingPageTreeSCP:ItempackagingApi.getItempackagingPageTree // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
|