Commit 881791c4b67500f4bc6e5aa646132e3f34737ee4
1 parent
f6e08b6f
fix: DEFECT-1268 修复设备详情任务中心重置表单为进行查询
Showing
1 changed file
with
5 additions
and
2 deletions
... | ... | @@ -30,6 +30,9 @@ |
30 | 30 | submitFunc: async () => { |
31 | 31 | getDataSource(); |
32 | 32 | }, |
33 | + resetFunc: async () => { | |
34 | + getDataSource(true); | |
35 | + }, | |
33 | 36 | }); |
34 | 37 | |
35 | 38 | const paginationChange = (page: number, pageSize: number) => { |
... | ... | @@ -52,7 +55,7 @@ |
52 | 55 | const dataSource = ref<TaskRecordType[]>([]); |
53 | 56 | const loading = ref(false); |
54 | 57 | |
55 | - const getDataSource = async () => { | |
58 | + const getDataSource = async (reset = false) => { | |
56 | 59 | try { |
57 | 60 | loading.value = true; |
58 | 61 | const params = getFieldsValue() || {}; |
... | ... | @@ -60,7 +63,7 @@ |
60 | 63 | page: pagination.current, |
61 | 64 | pageSize: pagination.pageSize, |
62 | 65 | tbDeviceId: props.tbDeviceId, |
63 | - ...params, | |
66 | + ...(reset ? {} : params), | |
64 | 67 | }); |
65 | 68 | pagination.total = total; |
66 | 69 | dataSource.value = items; | ... | ... |