437 lines
8.8 KiB
JavaScript
437 lines
8.8 KiB
JavaScript
import variable from '@/api/commonVariable.js'
|
||
|
||
// 司机端接口
|
||
let api = {
|
||
|
||
// 公共key
|
||
baseUrl: variable.baseUrl,
|
||
|
||
|
||
user_login: '/user/login', // 登录
|
||
selFs_time: '/selFs/time', //主页查看施肥机历史数据
|
||
user_logout: '/user/logout', //退出
|
||
user_upload: '/user/upload', //上传logo
|
||
update_user: "/api/update/user", //用户更新个人信息,修改昵称密码等
|
||
sel_user: "/api/sel/user", //根据id查询用户信息
|
||
getFs_rtdata: "/getFs/rtdata", //主页查看施肥机实时数据
|
||
selFs_time: "/selFs/time", //主页查看施肥机历史数据
|
||
sel_eqbyid: "/sel/eqbyid/", //根据用户id查询对应的设备数据
|
||
chart_fsdata: "/chart/fsdata", //实时数据折线图
|
||
user_update_pwd: "/user/update/pwd", //用户修改密码
|
||
|
||
readFs_state: "/readFs/state", //根据设备ID获取实时数据
|
||
writeFs: "/writeFs", //根据设备ID获取实时数据
|
||
readFs_reg: "/readFs/reg", //根据设备ID获取实时数据
|
||
readJinHuaControl_reg: "/readJinHuaControl/reg", //读取所有寄存器的状态值
|
||
writeJinHuaControl_write: "/writeJinHuaControl/write", //控制器写入数据(金华)
|
||
getcontrol_rtdata: "/getcontrol/rtdata", //主页查看控制器实时数据
|
||
getcontrol_fsdata: "/getcontrol/fsdata", //控制器实时数据折线图
|
||
|
||
getcontrol_cpermission: '/getcontrol/cpermission', //根据设备id查询控制器权限
|
||
getControl_getState: '/readControl/getState', //控制器 设备运行状态
|
||
getReadControlliShuiControl: '/readControl/liShuiControl', //控制器 顶模和风机
|
||
|
||
readControl_fiveControl: '/readControl/fiveControl', //读取(五防项目)控制器
|
||
getcontrol_wxgetpermission: '/getcontrol/wxgetpermission', //小程序手机控制权限数据
|
||
|
||
readControl_solenoidValve1: '/readControl/solenoidValve1', //1#电磁阀
|
||
readControl_solenoidValve2: '/readControl/solenoidValve2', //2#电磁阀
|
||
readControl_solenoidValve3: '/readControl/solenoidValve3', //3#电磁阀
|
||
readControl_solenoidValve4: '/readControl/solenoidValve4', //4#电磁阀
|
||
readControl_solenoidValve5: '/readControl/solenoidValve5', //5#电磁阀
|
||
readControl_solenoidValve6: '/readControl/solenoidValve6', //6#电磁阀
|
||
readControl_solenoidValve7: '/readControl/solenoidValve7', //7#电磁阀
|
||
readControl_solenoidValve8: '/readControl/solenoidValve8', //8#电磁阀
|
||
|
||
readControl_readfilllight: '/readControl/readfilllight', //读取(补光灯)控制器
|
||
readControl_readcirculationfan: '/readControl/readcirculationfan', //读取(环流风扇)控制器
|
||
readControl_fanwetcurtain: '/readControl/fanwetcurtain', //读取(风机湿帘)控制器
|
||
|
||
readControl_innercurtain: '/readControl/innercurtain', //内遮阳
|
||
readControl_externalsunshade: '/readControl/externalsunshade', //外遮阳
|
||
readControl_readskylight: '/readControl/readskylight', //通风窗
|
||
readControl_highpressuremist: '/readControl/highpressuremist', //读取(高压微雾)控制器
|
||
|
||
camera_gethls: '/camera/gethls', //获取摄像头得地址
|
||
camera_getphonehls: '/camera/getphonehls', //获取摄像头得地址 Copy Copy Copy Copy
|
||
|
||
getFi_getName: '/getFi/getName', //查看用户智能灌溉组名称信息
|
||
readFs_byid: '/readFs/byid', //查看用户施肥机名称信息
|
||
getFiState: "/getFI/getState", //智能灌溉控制器读取.
|
||
getFi_rtdata: "/getFi/rtdata", //首页智能灌溉
|
||
writeFi_write: "/writeFi/write", //智能灌溉组写入
|
||
chart_fidata: '/chart/fidata', //智能灌溉的折线图
|
||
getcontrol_geteqetdata: '/getcontrol/geteqetdata', //小程序气象站显示
|
||
|
||
getcontrol_rtDatastation: '/getcontrol/rtDatastation', //主页查看控制器气象站实时数据
|
||
|
||
readControl_interiorthermalinsulation: '/readControl/interiorthermalinsulation', //读取(内保温)控制器
|
||
|
||
readControl_facadeinsulation: '/readControl/facadeinsulation', //读取(立面保温)控制器
|
||
|
||
equip_chartdata: '/equip/chartdata', //气象站实时数据折线图
|
||
|
||
camera_start: '/camera/start', //摄像头开始
|
||
camera_stop: '/camera/stop', //摄像头结束
|
||
|
||
|
||
//countType计算类型 0是原数据 1是原数据-400 2是原数据/10 3是(原数据-400) / 10 4是(原数据-1000)/10
|
||
typeList: [{
|
||
label: '无意义的传感器',
|
||
value: 0,
|
||
countType: 0,
|
||
unit: ''
|
||
},
|
||
{
|
||
label: '空气温度',
|
||
value: 1,
|
||
countType: 3,
|
||
unit: '℃'
|
||
},
|
||
{
|
||
label: '空气湿度',
|
||
value: 2,
|
||
countType: 2,
|
||
unit: '%'
|
||
},
|
||
{
|
||
label: '光亮度',
|
||
value: 3,
|
||
countType: 2,
|
||
unit: 'Klux'
|
||
},
|
||
{
|
||
label: '二氧化碳',
|
||
value: 4,
|
||
countType: 0,
|
||
unit: 'ppm'
|
||
},
|
||
{
|
||
label: '土壤温度',
|
||
value: 5,
|
||
countType: 3,
|
||
unit: '℃'
|
||
},
|
||
{
|
||
label: '土壤湿度',
|
||
value: 6,
|
||
countType: 2,
|
||
unit: '%'
|
||
},
|
||
{
|
||
label: '水温',
|
||
value: 7,
|
||
countType: 3,
|
||
unit: '℃'
|
||
},
|
||
{
|
||
label: '水肥PH',
|
||
value: 8,
|
||
countType: 2,
|
||
unit: ''
|
||
},
|
||
{
|
||
label: '水肥EC',
|
||
value: 9,
|
||
countType: 2,
|
||
unit: 'mS/cm'
|
||
},
|
||
{
|
||
label: '压差',
|
||
value: 10,
|
||
countType: 0,
|
||
unit: 'Pa'
|
||
},
|
||
{
|
||
label: '风速',
|
||
value: 11,
|
||
countType: 2,
|
||
unit: 'm/s'
|
||
},
|
||
{
|
||
label: '风向',
|
||
value: 12,
|
||
countType: 0,
|
||
unit: '°'
|
||
},
|
||
{
|
||
label: '雨雪信号',
|
||
value: 13,
|
||
countType: 0,
|
||
unit: ''
|
||
},
|
||
{
|
||
label: '降雨量',
|
||
value: 14,
|
||
countType: 2,
|
||
unit: 'mm'
|
||
},
|
||
{
|
||
label: '光合有效辐射',
|
||
value: 15,
|
||
countType: 2,
|
||
unit: 'umol/m2.s'
|
||
},
|
||
{
|
||
label: '太阳总辐射',
|
||
value: 16,
|
||
countType: 0,
|
||
unit: 'W/m2'
|
||
},
|
||
{
|
||
label: '流量',
|
||
value: 17,
|
||
countType: 0,
|
||
unit: 'L/H'
|
||
},
|
||
{
|
||
label: '大气压强',
|
||
value: 18,
|
||
countType: 2,
|
||
unit: 'KPa'
|
||
},
|
||
{
|
||
label: '土壤PH',
|
||
value: 19,
|
||
countType: 2,
|
||
unit: ''
|
||
},
|
||
{
|
||
label: '土壤EC',
|
||
value: 20,
|
||
countType: 0,
|
||
unit: 'uS/cm'
|
||
},
|
||
{
|
||
label: '叶面温度',
|
||
value: 21,
|
||
countType: 3,
|
||
unit: '℃'
|
||
},
|
||
{
|
||
label: '叶面湿度',
|
||
value: 22,
|
||
countType: 2,
|
||
unit: '%'
|
||
},
|
||
{
|
||
label: '果实直径',
|
||
value: 23,
|
||
countType: 0,
|
||
unit: 'mm'
|
||
},
|
||
{
|
||
label: '茎秆直径',
|
||
value: 24,
|
||
countType: 0,
|
||
unit: 'mm'
|
||
},
|
||
{
|
||
label: '流速',
|
||
value: 25,
|
||
countType: 2,
|
||
unit: 'm/s'
|
||
},
|
||
{
|
||
label: '瞬时流量',
|
||
value: 26,
|
||
countType: 2,
|
||
unit: 'm3'
|
||
},
|
||
{
|
||
label: '当日流量',
|
||
value: 27,
|
||
countType: 2,
|
||
unit: 'T'
|
||
},
|
||
{
|
||
label: '累计流量',
|
||
value: 28,
|
||
countType: 0,
|
||
unit: 'T'
|
||
},
|
||
{
|
||
label: '无线气象站电池电压',
|
||
value: 29,
|
||
countType: 2,
|
||
unit: 'V'
|
||
},
|
||
{
|
||
label: '无线气象站无线信号强度',
|
||
value: 30,
|
||
countType: 1,
|
||
unit: 'dBm'
|
||
},
|
||
{
|
||
label: '无线气象站信噪比(SNR)',
|
||
value: 31,
|
||
countType: 1,
|
||
unit: 'dB'
|
||
},
|
||
{
|
||
label: 'PM1.0',
|
||
value: 32,
|
||
countType: 0,
|
||
unit: 'μg/m2'
|
||
},
|
||
{
|
||
label: 'PM2.5',
|
||
value: 33,
|
||
countType: 0,
|
||
unit: 'μg/m2'
|
||
},
|
||
{
|
||
label: 'PM10',
|
||
value: 34,
|
||
countType: 0,
|
||
unit: 'μg/m2'
|
||
},
|
||
{
|
||
label: '紫外辐射',
|
||
value: 35,
|
||
countType: 0,
|
||
unit: 'W/m2'
|
||
},
|
||
{
|
||
label: '蒸发量',
|
||
value: 36,
|
||
countType: 2,
|
||
unit: 'mm'
|
||
},
|
||
{
|
||
label: '负氧离子',
|
||
value: 37,
|
||
countType: 0,
|
||
unit: '个/cm3'
|
||
},
|
||
{
|
||
label: '露点温度',
|
||
value: 38,
|
||
countType: 3,
|
||
unit: '℃'
|
||
},
|
||
{
|
||
label: '一氧化碳',
|
||
value: 39,
|
||
countType: 0,
|
||
unit: 'ppm'
|
||
},
|
||
{
|
||
label: '氨氮',
|
||
value: 40,
|
||
countType: 2,
|
||
unit: 'mg/L'
|
||
},
|
||
{
|
||
label: '土壤氮含量',
|
||
value: 41,
|
||
countType: 0,
|
||
unit: 'mg/kg'
|
||
},
|
||
{
|
||
label: '土壤磷含量',
|
||
value: 42,
|
||
countType: 0,
|
||
unit: 'mg/kg'
|
||
},
|
||
{
|
||
label: '土壤钾含量',
|
||
value: 43,
|
||
countType: 0,
|
||
unit: 'mg/kg'
|
||
},
|
||
{
|
||
label: '管道压力',
|
||
value: 44,
|
||
countType: 0,
|
||
unit: 'Kpa'
|
||
},
|
||
{
|
||
label: '水位',
|
||
value: 45,
|
||
countType: 0,
|
||
unit: 'cm'
|
||
},
|
||
{
|
||
label: '氨气',
|
||
value: 46,
|
||
countType: 0,
|
||
unit: 'ppm'
|
||
},
|
||
{
|
||
label: '浊度',
|
||
value: 47,
|
||
countType: 0,
|
||
unit: 'NTU'
|
||
},
|
||
{
|
||
label: '氧气',
|
||
value: 48,
|
||
countType: 2,
|
||
unit: '%vol'
|
||
},
|
||
{
|
||
label: '土壤张力',
|
||
value: 49,
|
||
countType: 4,
|
||
unit: 'KPa'
|
||
},
|
||
{
|
||
label: '铜(CU)',
|
||
value: 50,
|
||
countType: 0,
|
||
unit: 'mg/kg'
|
||
},
|
||
{
|
||
label: '镉(CD)',
|
||
value: 51,
|
||
countType: 2,
|
||
unit: 'mg/kg'
|
||
},
|
||
{
|
||
label: '铅(PB)',
|
||
value: 52,
|
||
countType: 0,
|
||
unit: 'mg/kg'
|
||
},
|
||
{
|
||
label: '噪声',
|
||
value: 53,
|
||
countType: 0,
|
||
unit: 'dB'
|
||
},
|
||
{
|
||
label: '溶解氧',
|
||
value: 54,
|
||
countType: 2,
|
||
unit: 'mg/L'
|
||
},
|
||
{
|
||
label: '虫数量',
|
||
value: 55,
|
||
countType: 0,
|
||
unit: '个'
|
||
},
|
||
{
|
||
label: '无线传感器电池电压',
|
||
value: 56,
|
||
countType: 2,
|
||
unit: 'V'
|
||
},
|
||
{
|
||
label: '无线传感器无线信号强度',
|
||
value: 57,
|
||
countType: 1,
|
||
unit: 'dBm'
|
||
},
|
||
{
|
||
label: '无线传感器信噪比(SNR)',
|
||
value: 58,
|
||
countType: 1,
|
||
unit: 'dB'
|
||
},
|
||
]
|
||
}
|
||
|
||
|
||
export default api |