1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import request from '@/utils/request'
- import qs from 'qs'
- export function getDictsWithCondition(params) {
- return request({
- url: './sys/sysDicts',
- method: 'get',
- params: params
- });
- }
- export function getDicts(type) {
- if (!type) {
- return Promise.reject("参数为空");
- }
- return request({
- url: './sys/sysDicts',
- method: 'get',
- params: {
- type
- }
- });
- }
- export function getDictByTypeValue(typeCode,value) {
- return request({
- url: './sys/sysDicts/getDictByTypeValue',
- method: 'get',
- params: {
- typeCode,
- value
- }
- });
- }
- export function getDictTypes(type) {
- return request({
- url: './sys/sysDictTypes',
- method: 'get',
- params: {
- type
- }
- });
- }
|