123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853 |
- // 判断设备是否需要参数设置
- function getDeviceFeatures(devType) {
- // 默认参数设置(脉冲信息设置);默认没有端口管理
- var paramDefault = 'device-param.html';
- // portConfig: stop:远程停止设备, toggle: 禁用或启用设备
- var reObj = {param: paramDefault, port: false, portConfig: {stop: false, toggle: false}};
- //单机版或设备没有在线特性,不需要参数设置;某些蓝牙也需要参数设置就要特殊配置。
- if (!devType.online) {
- reObj.param = false;
- }
- var code = devType.code;
- var mcuVersion = devType.mcuVersion;
- var list = [
- {"code": "100310", "param": 'device-function-100310.html',},
- //足疗机,
- {"code": "100901", "param": false,},
- // 纸巾机,
- {"code": "110300", "param": 'device-function-rsd-110300.html',},
- //通用的串口洗衣机,
- {"code": "100308", "param": 'device-function.html',},
- //汇腾
- {"code": "100309", "param": 'device-function-huiteng-100309.html',},
- //红派
- {
- "code": "100902", "param": 'device-function-100902.html',
- paramOfflineSet: true,//该设备离线也能配置参数
- paramShow: function (callback) {
- getFeatureList("dealer", {list: ['free_24_hours']}, function (payload) {
- if (callback) {
- callback(payload.free_24_hours)
- }
- });
- }
- },
- // 喝水充电
- {"code": "110903", "param": 'device-function-110903.html', port: false,},
- {"code": "110904", "param": 'device-function-110903.html', port: false,},
- {"code": "110905", "param": 'device-function-110903.html', port: false,},
- //艾亚欣 吹风机
- {"code": "110102", "param": 'device-function-110102.html',},
- // 自己的洗衣机一体板
- {"code": "100127", "param": 'device-function-100127.html',},
- // 微付乐吹风机一体板
- {"code": "110100", "param": 'device-function-110100.html',},
- // 加水机
- {"code": "110700", "param": 'device-function-110700.html', port: true, portConfig: {stop: true, toggle: true}},
- // 文智嘉盛加水机
- {"code": "110901", "param": 'device-function-110901.html', port: true, portConfig: {stop: true, toggle: true}},
- //凯源新能充电桩,//问题单号1654892# 凯源新能:把设备管理中的参数配置去掉
- {"code": "100200", "param": false, port: true, portConfig: {stop: true, toggle: true}},
- //"郑州劲能电子",
- {
- "code": "100202",
- "param": 'device-function-100202.html',
- serverParam: 'serverParam-100206.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- //多利源100203:脉冲版本
- {"code": "100203", "param": paramDefault, port: true, portConfig: {stop: true}},
- // "助行电子" 没有该设备 不再开发
- {"code": "100204", "param": 'device-function-zixia.html'},
- //"子夏科技",
- {
- "code": "100205",
- "param": 'device-function-100205.html',
- serverParam: 'serverParam-100205.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- //墨小智 久恒
- {
- "code": "100206",
- "param": 'device-function-100206.html',
- serverParam: 'serverParam-100206.html',
- serviceFeePackage: 'service-fee.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 功率计费
- {
- "code": "101206",
- "param": 'device-function-101206.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 支持和动新的刷卡协议 刷卡流程 0x10 -- 0x2D
- {
- "code": "1002061",
- "param": 'device-function-100202.html',
- serverParam: 'serverParam-100206.html',
- serviceFeePackage: 'service-fee.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 久恒投币设置保险丝版本(投币可以设置3种投币时间)
- {
- "code": "1002062",
- "param": 'device-function-1002062.html',
- serverParam: 'serverParam-100206.html',
- serviceFeePackage: 'service-fee.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 和现网兼容. 已经有客户使用该类型. 所有配置和100206一致. 后续可以在100206基础上建立服务费计费类型
- {
- "code": "1002063",
- "param": 'device-function-100206.html',
- serverParam: 'serverParam-100206.html',
- serviceFeePackage: 'service-fee.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- //墨小智v2
- {"code": "100207", "param": 'device-function-100207.html', port: true, portConfig: {stop: true, toggle: true}},
- //中创
- {"code": "100209", "param": 'device-function-zc.html', port: true},
- //"电川科技新版本",
- {
- "code": "100210",
- "multiple": [
- {
- version: "default",
- "param": 'device-function-100205.html',
- serverParam: 'serverParam-100205.html',
- port: true,
- portConfig: {stop: true,}
- },
- {
- version: "0x0005",
- "param": 'device-function-dcv2.html',
- port: true,
- portConfig: {stop: true,}
- },
- ]
- },
- {
- "code": "1002101",
- "param": 'device-function-1002101.html',
- serverParam: 'serverParam-100205.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "102210",
- "param": 'device-function-100205.html',
- serverParam: 'serverParam-100205.html',
- serviceFeePackage: 'service-fee.html',
- port: true,
- portConfig: {stop: true,}
- },
- {
- "code": "103210",
- "multiple": [
- {
- version: "default",
- "param": 'device-function-100205.html',
- serverParam: 'serverParam-100205.html',
- port: true,
- portConfig: {stop: true,}
- },
- {
- version: "0x0005",
- "param": 'device-function-dcv2.html',
- port: true,
- portConfig: {stop: true,}
- },
- ]
- },
- // 墨小智v3
- {"code": "100211", "param": 'device-function-mo-v3.html', port: true, portConfig: {stop: true, toggle: true}},
- //海鸟100212
- {"code": "100212", "param": 'device-function-hainiao.html', port: true, portConfig: {stop: true}},
- {"code": "1002121", "param": 'device-function-1002121.html', port: true, portConfig: {stop: true}},
- {"code": "1012121", "param": 'device-function-1012121.html', port: true, portConfig: {stop: true}},
- {"code": "1002122", "param": 'device-function-1002122.html', port: true, portConfig: {stop: true}},
- // 海鸟新主板对接参数设置
- {"code": "1002123", "param": 'device-function-1002123.html', port: true, portConfig: {stop: true}},
- //四江100213
- {
- "code": "100213",
- "param": 'device-function-huisijiang.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- //芜湖100214
- {"code": "100214", "param": false, port: true, portConfig: {toggle: true}},
- //鸿卓100215
- {
- "code": "100215",
- "param": 'device-function-hongzhuo.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- //朗鑫100216
- {
- "code": "100216",
- "param": 'device-function-huisijiang.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- code: '1002161',
- param: 'device-function-1002161.html',
- port: true,
- portConfig: { stop: true, toggle: true },
- },
- //长兴聚展 100217
- {"code": "100217", "param": "device-function-100217.html", port: true, portConfig: {stop: true}},
- // 长兴聚展 烟感版本
- {"code": "1002171", "param": "device-function-1002171.html", port: true, portConfig: {stop: true}},
- // 长兴聚展 烟感版本
- {"code": "101217", "param": "device-function-101217.html", port: true, portConfig: {stop: true}},
- //德力西
- {"code": "100218", "param": "device-function-100218.html", port: true, portConfig: {stop: true}},
- //雪影
- {"code": "100219", "param": "device-function-xy.html", port: true},
- // 宇泽
- {"code": "100220", "param": 'device-function-zixia.html', port: true, portConfig: {stop: true, toggle: true}},
- // 艾亚欣5档
- {"code": "100221", "param": 'device-function-100221.html', port: true, portConfig: {stop: true, toggle: true}},
- // 苏州高博锐五档
- {"code": "100272", "param": 'device-function-100272.html', port: true, portConfig: {stop: true, toggle: true}},
- //安心智能
- {"code": "100222", "param": 'device-function-100222.html', port: true, portConfig: {stop: true, toggle: true}},
- // 金泽 只有从机管理,没有参数设置
- {"code": "100223", "param": false},
- // 久恒保险丝版本的特性
- {"code": "100224", "param": "device-function-100224.html", port: true, portConfig: {stop: true, toggle: true}},
- // 宇泽5档参数设置页面
- {"code": "100225", "param": 'device-function-100225.html', port: true, portConfig: {stop: true, toggle: true}},
- // 宇泽5档参数设置页面
- {"code": "100278", "param": 'device-function-100278.html', port: true, portConfig: {stop: true, toggle: true}},
- // 宇泽5档参数设置页面
- {"code": "100279", "param": 'device-function-100279.html', port: true, portConfig: {stop: true, toggle: true}},
- // 和100210功能一样2019.7.10
- {
- "code": "100226", "param": 'device-function-zixia.html',
- port: true,
- portConfig: {stop: true}
- },
- // 航鑫
- {"code": "100227", "param": "device-function-100227.html"},
- {"code": "1002271", "param": "device-function-1002271.html"},
- // 海鸟3路
- // {"code": "100229 需要修改", "param": 'device-function-hainiao3.html', port: true, portConfig: {stop: true}},
- // 旭洲电子
- {"code": "100229", "param": 'device-function-100229.html', port: true, portConfig: {stop: true}},
- // 安骑换电柜
- {"code": "100230", "param": 'device-function-100230.html', port: true, portConfig: {toggle: true}},
- {"code": "1002301", "param": 'device-function-100230.html', port: true, portConfig: {toggle: true, charge: true}},
- {
- "code": "100231",
- "param": 'device-function-huisijiang.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 电川应用版
- {"code": "100232", "param": 'device-function-100232.html', port: true, portConfig: {stop: true, toggle: true}},
- // 光法充电桩
- {
- "code": "100233",
- "param": 'device-function-100206.html',
- serverParam: 'serverParam-100206.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- //【朗鑫答标】支持充电桩的温感控制----支持门限配置
- {"code": "100234", "param": 'device-function-100234.html',},
- // 得康
- {"code": "100235", "param": 'device-function-100235.html', port: true, portConfig: {stop: true}},
- // 宝来的设备
- {"code": "100236", "param": 'device-function-100236.html', port: true, portConfig: {stop: true, toggle: true}},
- // 微付乐
- {"code": "100239", "param": 'device-function-100239.html', port: true, portConfig: {stop: true, toggle: true}},
- {
- "code": "100249",
- "param": 'device-function-100249.html',
- serviceFeePackage: 'service-fee-100249.html',
- port: true,
- portConfig:
- {
- stop: true,
- toggle: true
- }
- },
- //
- {"code": "100240", "param": 'device-function-100240.html', port: true, portConfig: {toggle: true}},
- {"code": "100241", "param": 'device-function-100241.html'},
- {"code": "100242", "param": 'device-function-100242.html', port: true, portConfig: {stop: true}},
- // 海鸟V2
- {"code": "100243", "param": 'device-function-hainiao.html', port: true, portConfig: {stop: true}},
- // 强隆
- {"code": "100246", "param": 'device-100246.html', port: true, portConfig: {stop: true}},
- {"code": "100247", "param": 'device-100247.html', port: true, portConfig: {stop: true}},
- // 云充充电桩
- {"code": "100248", "param": 'device-function-100248.html', port: true, portConfig: {stop: true, toggle: true}},
- // 2106179# 新增设备参数设置 100250,表单展开到一级的模式
- {"code": "100250", "param": 'device-function-100250.html', port: true, portConfig: {stop: true}},
- // 一体板 精简版
- {"code": "100251", "param": 'device-function-100251.html', port: true, portConfig: {stop: true, toggle: true}},
- {
- "code": "100252",
- "param": 'device-function-100252.html',
- serverParam: 'serverParam-100205.html',
- port: true,
- portConfig: {stop: true}
- },
- // 1002104,1002524 丰图 高博锐充电桩
- {
- "code": "1002104",
- "param": 'device-function-100205.html',
- serverParam: 'serverParam-1002104.html',
- port: true,
- portConfig: {stop: true}
- },
- {
- "code": "1002524",
- "param": 'device-function-100205.html',
- serverParam: 'serverParam-1002104.html',
- port: true,
- portConfig: {stop: true}
- },
- {"code": "100255", "param": 'device-function-100255.html', port: true, portConfig: {stop: true, toggle: true}},
- {
- "code": "101255",
- "param": 'device-function-101255.html',
- serviceFeePackage: 'service-fee-101255.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 小科豆
- {
- "code": "100256", "param": 'device-function-100256.html', port: true,
- serviceFeePackage: 'service-fee-100256.html',
- serverParam: 'serverParam-100256.html',
- portConfig: {stop: true, toggle: true}
- },
- // 小科豆
- {
- "code": "102256", "param": 'device-function-100256.html', port: true, portConfig: {stop: true, toggle: true}
- },
- // 微付乐汽车充电桩
- {"code": "100257", "param": 'device-function-100257.html', port: true, portConfig: {stop: true}},
- // 微付乐汽车充电桩双枪
- {"code": "100608", "param": 'device-function-100608.html', port: true, portConfig: {stop: true, toggle: true}},
- // 久恒双串口
- {
- "code": "100258",
- "param": 'device-function-100258.html',
- serverParam: 'serverParam-100206.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 和动V3
- {
- "code": "100259",
- "param": 'device-function-100259-all.html',
- serverParam: 'serverParam-100259.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 超辰
- {"code": "100260", "param": "device-function-100260.html", port: true, portConfig: {stop: true}},
- // 支持德力西 对接柏来的充电插座
- {
- "code": "100261",
- "param": false,// 暂时没有参数
- "nodeManager": true,//主节点只有节点管理
- port: false,// 暂时没有端口,后续可能有主节点的批量设置子节点的端口
- },
- {
- "code": "100262", "param": "device-function-100262.html",
- port: true,
- portConfig: {stop: true, toggle: false}
- },
- // 电川插座 组网
- {
- "code": "100263",
- "nodeManager": true,
- "param": false,//网关没有参数配置
- port: false,//网关没有端口管理
- },
- {
- "code": "100264", "param": "device-function-100264.html",
- port: true,
- portConfig: {stop: true, toggle: false}
- },
- // 100267 昌源10路,表单展开到一级的模式
- {
- "code": "100267", "param": "device-function-100267.html",
- port: true,
- portConfig: {stop: true}
- },
- // 1002671 昌原6代十路机
- {
- "code": "1002671", "param": "device-function-1002671.html",
- port: true,
- portConfig: {stop: true}
- },
- // 102267 昌原5代十路机,支持在线卡
- {
- "code": "102267", "param": "device-function-102267.html",
- port: true,
- portConfig: { stop: true }
- },
- // 基于100202 劲能 复制
- {
- "code": "100268",
- "param": "device-function-100268.html",
- serverParam: 'serverParam-100268.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 微付乐插座100269; 单表单全保存、跳转单独设置部分参数、vue渲染的模式
- {
- "code": "100269", "param": "device-function-100269.html",
- // serverParam: 'serverParam-100269.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "100273", "param": "device-function-100273.html",
- // serverParam: 'serverParam-100273.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "100280", "param": "device-function-100280.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 微付乐mini板100270; 单表单全保存、跳转单独设置部分参数、vue渲染的模式
- {
- "code": "100270", "param": "device-function-100270.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "101270", "param": "device-function-101270.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "100271", "param": "device-function-100271.html",
- // serverParam: 'serverParam-100271.html',
- port: true,
- },
- // 奥强 插座网关
- {
- "code": "100274", "param": "device-function-100275.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 奥强 插座子节点
- {
- "code": "100275", "param": "device-function-100275.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 高博锐自己主板
- {
- "code": "100276",
- "param": 'device-function-100276.html',
- // serverParam: 'serverParam-100259.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 柏来主节点新版本:本身自带两个插座
- {
- "code": "100277",
- "param": 'device-function-100262.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 郑州科航的设备 仿造DC
- {
- "code": "100281",
- "param": 'device-function-100281.html',
- port: true,
- portConfig: {stop: true}
- },
- {
- "code": "101281",
- "param": 'device-function-101281.html',
- port: true,
- portConfig: {stop: true}
- },
- {
- "code": "101280", "param": "device-function-101280.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "102280", "param": "device-function-101280.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "101249", "param": "device-function-101249.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "100284", "param": "device-function-100284.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 苏州贝斯云新设备配置页面
- {
- "code": "100286", "param": "device-function-100286.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 苏州贝斯云新设备配置页面
- {
- "code": "100288", "param": "device-function-100288.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 宇泽5档新版本
- {
- "code": "100289",
- "param": 'device-function-100289.html',
- serverParam: 'serverParam-100205.html',
- port: true,
- portConfig: {stop: true, toggle: true},
- },
- // 宇泽5档新版本服务费版本
- {
- "code": "101289",
- "param": 'device-function-100289.html',
- serverParam: 'serverParam-100205.html',
- serviceFeePackage: 'service-fee.html',
- port: true,
- portConfig: {stop: true, toggle: true},
- },
- //杭州电川科技协议5.6版本
- {
- "code": "100290",
- "param": 'device-function-100290.html',
- port: true,
- portConfig: {stop: true, toggle: true},
- },
- {
- "code": "100291", "param": "device-function-100291.html",
- port: true,
- serverParam: 'serverParam-100291.html',
- portConfig: {stop: true, toggle: false}
- },
- {
- // 有特殊的1-12端口的vue配置
- "code": "100292", "param": "device-function-100292.html",
- port: true,
- portConfig: {stop: true, toggle: false}
- },
- //"创维洗衣机",
- {"code": "100300", "param": false,},
- //投石洗衣机
- {"code": "100303", "param": 'device-function-100303.html',},
- //彩忆洗衣机的
- {"code": "100305", "param": 'device-function-100305.html',},
- {"code": "100306", "param": false,},
- {"code": "1003051", "param": 'device-function-1003051.html',},
- {"code": "101305", "param": 'device-function-1003051.html',},
- {"code": "1003053", "param": 'device-function-1003053.html',},
- //宇川一卡通
- {"code": "1003052", "param": 'device-function-1003052.html',},
- // 沥森洗车机
- {"code": "100500", "param": 'device-function-lisen.html',},
- // 蓝光科技
- {"code": "100501", "param": 'device-function-100501.html'},
- // 昌源的
- {"code": "100600", "param": 'device-function-100600.html', port: true, portConfig: {stop: true}},
- {"code": "100605", "param": 'device-function-100600.html', port: true, portConfig: {stop: true}},
- // 郑州和喜 完全模拟昌原协议做的 有分离的趋势
- {"code": "1006001", "param": 'device-function-100600.html', port: true, portConfig: {stop: true}},
- // 坤元的
- {"code": "100607", "param": 'device-function-100607.html', port: true, portConfig: {stop: true}},
- // 100601用芯科技 没有端口
- {"code": "100601", "param": 'device-function-100601.html', port: true},
- {"code": "100602", "param": false},
- {"code": "100604", "param": 'device-function-100604.html', port: true, portConfig: {stop: true, toggle: true}},
- // 全部保存模式
- {"code": "100606", "param": 'device-function-100606.html', port: true, portConfig: {stop: true, toggle: true}},
- // 电川汽车桩添加电费配置页面
- {
- "code": "100610",
- "param": '/dealer/index.html#/device/params/100610',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "100611", "param": "device-function-100611.html",
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {"code": "100612", "param": 'device-function-100608.html', port: true, portConfig: {stop: true, toggle: true}},
- // 微服乐home
- {
- "code": "100614",
- "param": '/dealer/index.html#/device/params/100614',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 微服乐home 双枪
- {
- "code": "100615",
- "param": '/dealer/index.html#/device/params/100614',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 水控设备
- {"code": "110400", "param": 'device-function-shuikong.html',},
- // 售货柜
- {"code": "110000", "param": false, stockPath: '/stock/stockDetailForMultiple'},
- {"code": "111000", "param": false, stockPath: '/stock/stockDetailForMultiple'},
- {
- "code": "100237",
- "param": 'device-function-100237.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "100803",
- "param": 'device-function-100803.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- {
- "code": "1008031",
- "param": 'device-function-1008031.html',
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- // 储物柜 ;'/dealer/index.html#/locker'
- {"code": "110005", "param": 'device-function-110005.html', port: true, portConfig: {unlock: true}},
- // 门禁系统
- {"code": "101000", "param": 'device-function-101000.html',},
- // 设备管理需要精简很多菜单
- {
- "code": "110602", "param": 'device-function-110602.html',
- paramOfflineSet: true,
- accountParam: 'accountParam-110602.html'
- },
- // 真谷多饮料机
- {"code": "101100", "param": 'device-function-101100.html',},
- // 娃娃机
- {"code": "110200", stockPath: '/stock/stockDetailForGoods'},
- {"code": "110201", "param": 'device-function-110201.html', stockPath: '/stock/stockDetailForGoods'},
- {"code": "110202", "param": 'device-function-110202.html', stockPath: '/stock/stockDetailForGoods'},
- {"code": "110203", "param": 'device-function-110203.html', stockPath: '/stock/stockDetailForGoods'},
- // 兑币机
- {"code": "110204", "param": 'device-function-110204.html',},
- // ywt 粤万通换电柜
- {"code": "130001", "param": 'device-function-130001.html', port: true, portConfig: {toggle: true, charge: true}},
- //以下为蓝牙设备
- {"code": "200001", "param": paramDefault},
- {"code": "200002", "param": paramDefault},
- {"code": "200003", "param": paramDefault},
- {"code": "200005", "param": paramDefault},
- {"code": "200006", "param": paramDefault},
- // 云快充 分时电价
- {
- "code": "300001",
- "param": false,
- port: true,
- portConfig: {stop: true, toggle: true}
- },
- ];
- for (var index in list) {
- var item = list[index];
- if (item.code == code) {
- if (item.multiple) {
- // 有的设备有不同的版本,需要特殊适配
- var mList = item.multiple
- reObj = mList[0];//默认取第0个
- for (var index2 in mList) {
- var mItem = mList[index2];
- if (mcuVersion === mItem.version) {
- reObj = mItem;
- break
- }
- }
- } else {
- reObj = item;
- }
- break;
- }
- }
- if (reObj.param) {
- if (reObj.param.indexOf('/dealer/') === 0) {
- // nothing
- } else {
- reObj.param = '/app/device-param/' + reObj.param
- }
- }
- if (reObj.serverParam) {
- if (reObj.serverParam.indexOf('/dealer/') === 0) {
- // nothing
- } else {
- reObj.serverParam = '/app/device-param/' + reObj.serverParam
- }
- }
- if (reObj.accountParam) {
- if (reObj.accountParam.indexOf('/dealer/') === 0) {
- // nothing
- } else {
- reObj.accountParam = '/app/device-param/' + reObj.accountParam
- }
- }
- if (reObj.serviceFeePackage) {
- if (reObj.serviceFeePackage.indexOf('/dealer/') === 0) {
- // nothing
- } else {
- reObj.serviceFeePackage = '/app/device-service-fee/' + reObj.serviceFeePackage
- }
- }
- if (reObj.portConfig && reObj.portConfig.param) {
- reObj.portConfig.param = '/app/device-port/' + reObj.portConfig.param
- }
- return reObj;
- }
|