This commit is contained in:
PC-202306242200\Administrator
2024-09-26 14:53:14 +08:00
parent dd7d2c3f8b
commit 76f37cae6f
9 changed files with 23 additions and 13 deletions

View File

@@ -4,7 +4,7 @@
* @Date: 2022-04-03 10:53:25
*/
import { incomedayPage } from '@/services/piles';
import { incomedayPage,getDeviceInfoVO } from '@/services/piles';
import React, { useState, useEffect, useRef } from 'react';
import {
Modal,
@@ -94,13 +94,10 @@ export default ({ values, modalOpenState, onModalOpenState }) => {
labelWidth: 120,
}}
request={async (params, sorter, filter) => {
params.deviceNo = values?.deviceNo
params.orderId = values?.orderId
params.userId = values?.userId
let { data } = await incomedayPage(params)
let { data } = await getDeviceInfoVO({id:values?.userId})
return {
data: data?.records || [],
total: data?.total,
data: data || [],
total: data.length,
};
}}
columns={columns}

View File

@@ -20,6 +20,19 @@ export async function incomedayPage(body) {
});
}
export async function getDeviceInfoVO(params) {
return request('/api/device/getDeviceInfoVO', {
method: 'GET',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
params
});
}
export async function importDeviceData(body) {
return request('/api/device/importDeviceData ', {
method: 'POST',