12345678910111213141516171819202122232425262728293031323334353637 |
- import axios from '@/libs/axios.js';
- // 根据字典code查询选项
- export const getLookUpDatas = (params) => {
- return axios.request({
- url: `lookup/findByLookup/${params.type}`,
- method: 'get'
- })
- }
- // 开箱操作
- export const openDevice = (params) => {
- return axios.request({
- url: `device/ctl/open`,
- method: 'post',
- data: params
- })
- }
- //查询省
- export const getProvince = () => {
- return axios.request({
- url: `area/PROVINCE`,
- method: 'get'
- })
- }
- //查询市
- export const getCityByPro = params => {
- return axios.request({
- url: `area/CITY/${params.id}`,
- method: 'get'
- })
- }
- //查询区
- export const getDistrictByCity = params => {
- return axios.request({
- url: `area/DISTRICT/${params.id}`,
- method: 'get'
- })
- }
|