Commit 881791c4b67500f4bc6e5aa646132e3f34737ee4

Authored by ww
1 parent f6e08b6f

fix: DEFECT-1268 修复设备详情任务中心重置表单为进行查询

@@ -30,6 +30,9 @@ @@ -30,6 +30,9 @@
30 submitFunc: async () => { 30 submitFunc: async () => {
31 getDataSource(); 31 getDataSource();
32 }, 32 },
  33 + resetFunc: async () => {
  34 + getDataSource(true);
  35 + },
33 }); 36 });
34 37
35 const paginationChange = (page: number, pageSize: number) => { 38 const paginationChange = (page: number, pageSize: number) => {
@@ -52,7 +55,7 @@ @@ -52,7 +55,7 @@
52 const dataSource = ref<TaskRecordType[]>([]); 55 const dataSource = ref<TaskRecordType[]>([]);
53 const loading = ref(false); 56 const loading = ref(false);
54 57
55 - const getDataSource = async () => { 58 + const getDataSource = async (reset = false) => {
56 try { 59 try {
57 loading.value = true; 60 loading.value = true;
58 const params = getFieldsValue() || {}; 61 const params = getFieldsValue() || {};
@@ -60,7 +63,7 @@ @@ -60,7 +63,7 @@
60 page: pagination.current, 63 page: pagination.current,
61 pageSize: pagination.pageSize, 64 pageSize: pagination.pageSize,
62 tbDeviceId: props.tbDeviceId, 65 tbDeviceId: props.tbDeviceId,
63 - ...params, 66 + ...(reset ? {} : params),
64 }); 67 });
65 pagination.total = total; 68 pagination.total = total;
66 dataSource.value = items; 69 dataSource.value = items;