1
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user