|
@@ -31,15 +31,17 @@ const configHandleChange = (currentPage: number, pageSize: number) => {
|
|
|
getInstrumentConfig();
|
|
|
// console.log(pageSize);
|
|
|
};
|
|
|
-
|
|
|
+const route = useRoute();
|
|
|
//测试仪器配置数组
|
|
|
const instrumentConfigList = ref([]);
|
|
|
//数据total
|
|
|
const instrumentConfigTotal = ref(1);
|
|
|
//请求数据
|
|
|
const getInstrumentConfig = () => {
|
|
|
- instrumentConfigPage(configParams.value).then((res) => {
|
|
|
- console.log(res);
|
|
|
+ instrumentConfigPage({
|
|
|
+ ...configParams.value,
|
|
|
+ engineeringId: route.params.engineerId,
|
|
|
+ }).then((res) => {
|
|
|
instrumentConfigList.value = res.data.records;
|
|
|
instrumentConfigTotal.value = res.data.totalCount;
|
|
|
});
|