|
@ -210,11 +210,6 @@ export function getDeviceList(deviceType, options) { |
|
|
// Message.error(`${DeviceTypeMap[deviceType]}设备加载失败!`);
|
|
|
// Message.error(`${DeviceTypeMap[deviceType]}设备加载失败!`);
|
|
|
return reject(); |
|
|
return reject(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// const data = {
|
|
|
|
|
|
// deviceType,
|
|
|
|
|
|
// ...options,
|
|
|
|
|
|
// };
|
|
|
|
|
|
let newEndStakeMark = []; |
|
|
let newEndStakeMark = []; |
|
|
let newStartStakeMark = []; |
|
|
let newStartStakeMark = []; |
|
|
|
|
|
|
|
@ -224,16 +219,20 @@ export function getDeviceList(deviceType, options) { |
|
|
options.startStakeMark.forEach((item) => { |
|
|
options.startStakeMark.forEach((item) => { |
|
|
newStartStakeMark.push(String(item)); |
|
|
newStartStakeMark.push(String(item)); |
|
|
}); |
|
|
}); |
|
|
|
|
|
let data = { |
|
|
|
|
|
deviceType, |
|
|
|
|
|
endStakeMark: newEndStakeMark, |
|
|
|
|
|
startStakeMark: newStartStakeMark |
|
|
|
|
|
} |
|
|
|
|
|
if(options.deviceState && options.deviceState !== ''){ |
|
|
|
|
|
data['deviceState'] = options.deviceState |
|
|
|
|
|
} |
|
|
request( |
|
|
request( |
|
|
Object.keys(options || {}).length |
|
|
Object.keys(options || {}).length |
|
|
? { |
|
|
? { |
|
|
url: "/business/device/pileNumberQuery", |
|
|
url: "/business/device/pileNumberQuery", |
|
|
method: "POST", |
|
|
method: "POST", |
|
|
data: { |
|
|
data, |
|
|
deviceType, |
|
|
|
|
|
endStakeMark: newEndStakeMark, |
|
|
|
|
|
startStakeMark: newStartStakeMark, |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
} |
|
|
: { |
|
|
: { |
|
|
url: "/business/device/query", |
|
|
url: "/business/device/query", |
|
|