Browse Source

硬件设备加 id参数,改接口【ID1000881】

organize
刘嘉炜 3 years ago
parent
commit
1bdb5b14e3
  1. 3
      src/subpackage/device/js/device_api.js
  2. 3
      src/subpackage/device/pages/switch_manage/switch_manage.vue

3
src/subpackage/device/js/device_api.js

@ -23,7 +23,8 @@ export const DEVICE_API = {
hardwareInfo:`${ORIGIN}/admin/stadium/hardware/get/`, // 设备信息 hardwareInfo:`${ORIGIN}/admin/stadium/hardware/get/`, // 设备信息
hardwareList:`${ORIGIN}/admin/stadium/hardware/list`, // 设备列表 hardwareList:`${ORIGIN}/admin/stadium/hardware/list`, // 设备列表
ouxuanac:`${ORIGIN}/ouxuanac/sendPacket`, // 中控控制
// ouxuanac:`${ORIGIN}/ouxuanac/sendPacket`, // 中控控制
ouxuanac:`${ORIGIN}/stadiumOuxuanac/sendPacket`, // 中控控制 20220511 解决那个门禁的东东
// ouxuanac--> http://api.ouxuan.net/project/233/interface/api/10012 接口文档 // ouxuanac--> http://api.ouxuan.net/project/233/interface/api/10012 接口文档
// ouxuanac--> http://git.ouxuan.net/ouxuanac/ouxuanac-common/src/branch/master/cmd.ts // 接口参数结构 || ouxuanac.md // ouxuanac--> http://git.ouxuan.net/ouxuanac/ouxuanac-common/src/branch/master/cmd.ts // 接口参数结构 || ouxuanac.md

3
src/subpackage/device/pages/switch_manage/switch_manage.vue

@ -217,6 +217,7 @@ export default {
let _data = { let _data = {
device: curStoreInfo.device_name, // , device: curStoreInfo.device_name, // ,
data: _query, // src\subpackage\device\js\ouxuanac.md data: _query, // src\subpackage\device\js\ouxuanac.md
hardware_id: switchInfo.id + '', // 20220512
}; };
//2021-12-17 set-rpio set-rpio-lock () set-rpio-lock //2021-12-17 set-rpio set-rpio-lock () set-rpio-lock
@ -229,7 +230,7 @@ export default {
// 20220507 GateControl hardware_mac_addr device_name hardware_mac_addr // 20220507 GateControl hardware_mac_addr device_name hardware_mac_addr
// "hardware_id":id // "hardware_id":id
if(switchInfo.hardware_type === 'GateControl'&&!!switchInfo.hardware_mac_addr)_data['device'] = switchInfo.hardware_mac_addr; if(switchInfo.hardware_type === 'GateControl'&&!!switchInfo.hardware_mac_addr)_data['device'] = switchInfo.hardware_mac_addr;
if(switchInfo.hardware_type === 'GateControl')_data['hardware_id'] = switchInfo.id;
// if(switchInfo.hardware_type === 'GateControl')_data['hardware_id'] = switchInfo.id;
return _data; return _data;
}, },

Loading…
Cancel
Save