types.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import { ShallowRef } from 'vue'
  2. export interface TotalDemensionInter {
  3. companyName: string,
  4. list: DemensionPagesInter[]
  5. }
  6. export interface DemensionPagesInter {
  7. projectName: string,
  8. list: DemensionPagesListInter[]
  9. }
  10. export interface DemensionPagesListInter {
  11. code: string,
  12. routing: string,
  13. title: string,
  14. //是否有详情页
  15. hasDetail?: boolean,
  16. /**
  17. * 详情页不是返回body,而是返回其他的字段
  18. */
  19. detailValue?: string,
  20. detailList?: ViewListInter[],
  21. viewList?: ViewListInter[],
  22. /**
  23. * 中间展示的内容列表
  24. */
  25. contentList?: MenuListInter[],
  26. menuList?: MenuListInter[], //tab下面的下拉菜单列表
  27. tabs?: 'deleted' | [], //是否有tabs,历史列表deleted,普通tab传数组
  28. /**
  29. * 详情页所属司法案件所传的type
  30. */
  31. detailType?: string
  32. /**
  33. * 自定义数组数据处理方法
  34. */
  35. listFliter?: Function,
  36. listCustomRender?: any,
  37. detailCustomRender?: any,
  38. /**
  39. * 公司的ID,方便调试用
  40. */
  41. companyId?: string,
  42. /**
  43. * 是否不取dataList,是的话直接取
  44. */
  45. noDataList?: boolean,
  46. /**
  47. * apiUrl
  48. */
  49. apiUrl?: string,
  50. }
  51. //标准字段展示列表,必须有value,valueType表示展示字段的处理类型
  52. export interface ViewListInter {
  53. name?: string,
  54. value: string,
  55. //类型 时间、标题、万元、富文本、标题右边的tag,左边的logo,右边的关联企业,头像
  56. valueType?: 'date' | 'title' | 'w' | 'richText' | 'tag' | 'logo' | 'related' | 'avatar',
  57. //数组字段名
  58. listVal?: string,
  59. //需要跳转企业详情的ID和Name
  60. companyId?: string,
  61. companyName?: string,
  62. //自定义HTML元素
  63. solt?: Function | ShallowRef,
  64. customClick?: Function,
  65. /**
  66. * 是否有财产线索
  67. */
  68. isProperty?: boolean
  69. }
  70. export interface MenuListInter {
  71. /**
  72. * 提交给后端的字段名
  73. */
  74. paramsValue: string,
  75. /**
  76. * v-model绑定的值
  77. */
  78. value: string,
  79. /**
  80. * 对应后端的ID匹配数组
  81. */
  82. paramsId?: string
  83. /**
  84. * 点开更多所展示的标题,数量大于4的时候使用
  85. */
  86. name?: string,
  87. list: { text: string, value: string | number }[]
  88. }