/* * @Author: zouwenying * @Date: 2020-10-29 12:47:16 * @LastEditTime: 2020-10-29 12:48:20 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \WEB\src\api\common_api.js */ export default (http) => ({ /* 获取厂商/系列/型号树形数据 sysId: 系统id type: 类型 1:传感器 2;网关设备 */ getTreeData: (sysId = '', type = '') => http.get(`/common/getTreeData?sysId=${sysId}&type=${type}`), /*查询字典库数据*/ getDictionaryData: (parentDictCode = '') => http.post('/sc-user-center/dict/selectList',{parentDictCode}), /*获取相关gis服务 */ getGis:(serviceType='')=>http.post('/systemSetting/selectGis',{serviceType}), })