common_api.js 710 B

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