forked from drone/command-center-dashboard

罗广辉
2025-04-02 e1699c4851f6ca397cd0ad1ff63f32c737654836
src/api/system/dict.js
@@ -1,4 +1,4 @@
import request from '@/axios';
import request from '@/axios'
export const getList = (current, size, params) => {
  return request({
@@ -9,8 +9,8 @@
      current,
      size,
    },
  });
};
   })
}
export const getParentList = (current, size, params) => {
  return request({
@@ -21,8 +21,8 @@
      current,
      size,
    },
  });
};
   })
}
export const getChildList = (current, size, parentId, params) => {
  return request({
@@ -34,8 +34,8 @@
      size,
      parentId: parentId,
    },
  });
};
   })
}
export const remove = ids => {
  return request({
@@ -44,24 +44,24 @@
    params: {
      ids,
    },
  });
};
   })
}
export const add = row => {
  return request({
    url: '/blade-system/dict/submit',
    method: 'post',
    data: row,
  });
};
   })
}
export const update = row => {
  return request({
    url: '/blade-system/dict/submit',
    method: 'post',
    data: row,
  });
};
   })
}
export const getDict = id => {
  return request({
@@ -70,19 +70,19 @@
    params: {
      id,
    },
  });
};
   })
}
export const getDictTree = () => {
  return request({
    url: '/blade-system/dict/tree?code=DICT',
    method: 'get',
  });
};
   })
}
export const getDictionary = params => {
  return request({
    url: '/blade-system/dict/dictionary',
    method: 'get',
    params,
  });
};
   })
}