dictionaries.js 926 Bytes
import request from '@/utils/request'

class dictionaries {
  // 获取整个字典数据
  async getDicData (data) {
    return request({
      url: '/SysDict/getJson',
      method: 'get'
    })
  }
  // 编辑
  async editSysDict (data) {
    return request({
      url: '/SysDict/editSysDictByTypeId',
      method: 'post',
      data
    })
  }
  // 获取字典表父级集合
  async getSysDictParent (data) {
    return request({
      url: '/SysDict/getSysDictParent',
      method: 'post',
      data
    })
  }
  // 编辑界面获取指定字典编码子集
  async getSysDictByTypeId (id) {
    return request({
      url: '/SysDict/getSysDictByTypeId',
      method: 'get',
      params: {
        typeId: id
      }
    })
  }
  // 接入业务信息表
  async getAllSysJrywxx () {
    return request({
      url: '/sysJrywxx/getAllSysJrywxx',
      method: 'get'
    })
  }
}
export default new dictionaries()