|
@@ -110,7 +110,13 @@
|
|
|
const searchParams2 = ref<any>({ deviceName: '' });
|
|
|
const { tableContext: tx2 } = useListPage({
|
|
|
tableProps: {
|
|
|
- api: () => taskDetailsList({ taskId: selectedRow.value.id, ...searchParams2.value }),
|
|
|
+ api: taskDetailsList,
|
|
|
+ beforeFetch: (params) => {
|
|
|
+ Object.assign(params, {
|
|
|
+ ...searchParams2.value,
|
|
|
+ taskId: selectedRow.value.id,
|
|
|
+ });
|
|
|
+ },
|
|
|
columns: taskDetailsColumns,
|
|
|
pagination,
|
|
|
showActionColumn: false,
|
|
@@ -123,7 +129,13 @@
|
|
|
const searchParams3 = ref<any>({ deviceName: '' });
|
|
|
const { tableContext: tx3 } = useListPage({
|
|
|
tableProps: {
|
|
|
- api: () => getManageTasklist({ taskId: selectedRow.value.id, ...searchParams3.value }).then((r) => r.map((e, i) => ({ id: i, ...e }))),
|
|
|
+ api: getManageTasklist,
|
|
|
+ beforeFetch: (params) => {
|
|
|
+ Object.assign(params, {
|
|
|
+ ...searchParams3.value,
|
|
|
+ taskId: selectedRow.value.id,
|
|
|
+ });
|
|
|
+ },
|
|
|
rowSelection: {
|
|
|
type: 'checkbox',
|
|
|
getCheckboxProps: (record) => {
|
|
@@ -132,13 +144,13 @@
|
|
|
};
|
|
|
},
|
|
|
},
|
|
|
+ canResize: false,
|
|
|
columns: taskManageColumns,
|
|
|
- pagination,
|
|
|
showActionColumn: false,
|
|
|
showTableSetting: false,
|
|
|
useSearchForm: false,
|
|
|
},
|
|
|
- pagination: true,
|
|
|
+ // pagination: false,
|
|
|
});
|
|
|
const [registerTable1, tableContext1] = tx1;
|
|
|
const [registerTable2, tableContext2] = tx2;
|