select.js 490 B

123456789101112131415161718192021
  1. import API from "@/api";
  2. //字典选择器配置
  3. export default {
  4. dicApiObj: API.system.dic.get, //获取字典接口对象
  5. parseData: function (res) {
  6. return {
  7. data: res.data, //分析行数据字段结构
  8. msg: res.message, //分析描述字段结构
  9. code: res.code //分析状态字段结构
  10. }
  11. },
  12. request: {
  13. name: 'name' //规定搜索字段
  14. },
  15. props: {
  16. label: 'label', //映射label显示字段
  17. value: 'value', //映射value值字段
  18. }
  19. }