dictionaries.js 1.89 KB
import request from '@/utils/request'

class dictionaries {
    // 获取所有字典接口
    async getDictionary(data){
        return request({
            url: '/system/sysDictionary/getDictionary',
            method: 'get',
            params: data,
        })
    }
    // 获取字典根据字典标识码
    async getDdicById (id) {
        return request({
            url: '/system/sysDictionary/getDdicById',
            method: 'get',
            params: {
                id: id
            },
        })
    }
       //入住管理 导出
       async checkexportData(data){
        return request({
            url:'/rent/zLiveManage/exportData',
            method:'post',
            data,
            responseType: 'blob'
        })
    }
    //  获取字典根据字典名称
    async getDdicByMC (mc) {
        return request({
            url: '/system/sysDictionary/getDdicByMC',
            method: 'get',
            params: {
                mc: mc
            },
        })
    }
    //  
    async getDetail () {
        return request({
            url: '/system/sysUser/getAddressInfo',
            method: 'get',
        })
    }
    // 根据市id,获取行政区-县区
    async getDistByCity () {
        return request({
            url: '/xzq/getDistByCity',
            method: 'get',
            params: {
                id: '350200000000'
            },
        })
    }
  // 行政区-县区-街道
  async getXzq () {
    return request({
      url: '/xzq/getXzq',
      method: 'get'
    })
  }

 
    // 联想查询接口
    async searchDepartmentByKeys () {
        return request({
            url: '/resource/fDepartment/searchDepartmentByKeys',
            method: 'get',
        })
    }
    async getAllDepartment(){
        return request({
            url:'/resource/fDepartment/getAllDepartment',
            method:'get'
        })
    }
}
export default new dictionaries()