18 lines
521 B
TypeScript
18 lines
521 B
TypeScript
|
|
import createAxios from '@/utils/request'
|
||
|
|
|
||
|
|
// 装置基础数据和模板数据
|
||
|
|
export function getDeviceData(deviceId: string, type: string, lineId = '') {
|
||
|
|
let form = new FormData()
|
||
|
|
form.append('deviceId', deviceId)
|
||
|
|
form.append('lineId', lineId)
|
||
|
|
form.append('type', type)
|
||
|
|
return createAxios({
|
||
|
|
url: '/cs-device-boot/EquipmentDelivery/deviceData',
|
||
|
|
method: 'POST',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||
|
|
},
|
||
|
|
data: form
|
||
|
|
})
|
||
|
|
}
|