diff --git a/src/config/getData2.js b/src/config/getData2.js index cdf537a..63a2ac0 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -20,23 +20,23 @@ export const updatePass = (Rfold, Rfnew) => post2('api/pda/updatePass', { /** 站点管理 */ // 1.1查询所有区域信息 -// export const queryArea = () => post2('api/hand/queryArea', {}) -export const queryArea = () => { - let res = { - result: [{region_code: '1', region_name: 'JLDFJLLJ'}, {region_code: '2', region_name: 'JLDFJLLJ'}, {region_code: '3', region_name: 'JLDFJLLJ'}] - } - return res -} +export const queryArea = () => post2('api/hand/queryArea', {}) +// export const queryArea = () => { +// let res = { +// result: [{region_code: '1', region_name: 'JLDFJLLJ'}, {region_code: '2', region_name: 'JLDFJLLJ'}, {region_code: '3', region_name: 'JLDFJLLJ'}] +// } +// return res +// } // 1.2根据区域查询设备编号及状态 -// export const queryPointByArea = (code) => post2('api/hand/queryPointByArea', { -// areaCode: code -// }) -export const queryPointByArea = (code) => { - let res = { - result: [{device_code: '1', device_name: 'JLDFJLLJ', input_material: '1', status: '0'}, {device_code: '2', device_name: 'fffdf', status: '1'}, {device_code: '3', device_name: 'dffsfg', status: '2'}] - } - return res -} +export const queryPointByArea = (code) => post2('api/hand/queryPointByArea', { + areaCode: code +}) +// export const queryPointByArea = (code) => { +// let res = { +// result: [{device_code: '1', device_name: 'JLDFJLLJ', input_material: '1', status: '0'}, {device_code: '2', device_name: 'fffdf', status: '1'}, {device_code: '3', device_name: 'dffsfg', status: '2'}] +// } +// return res +// } // 1.3查询物料 export const queryMaterial = () => post2('api/hand/queryMaterial', {}) // 1.4点位状态绑定