windfinding.data.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { list } from '../substationTabel/substation.api';
  4. export const columns: BasicColumn[] = [
  5. {
  6. title: '名称',
  7. dataIndex: 'strname',
  8. width: 120,
  9. },
  10. {
  11. title: '安装位置',
  12. dataIndex: 'strinstallpos',
  13. width: 100,
  14. },
  15. {
  16. title: '安装位置巷道断面',
  17. dataIndex: 'ftunarea',
  18. width: 100,
  19. },
  20. {
  21. title: '风速传感器1修正系数',
  22. dataIndex: 'famendv1',
  23. width: 100,
  24. },
  25. {
  26. title: '风速传感器2修正系数',
  27. dataIndex: 'famendv2',
  28. width: 100,
  29. },
  30. {
  31. title: '风速传感器3修正系数',
  32. dataIndex: 'famendv3',
  33. width: 100,
  34. },
  35. {
  36. title: '所属分站',
  37. width: 150,
  38. dataIndex: 'stationname',
  39. },
  40. ];
  41. export const recycleColumns: BasicColumn[] = [
  42. {
  43. title: '名称',
  44. dataIndex: 'strname',
  45. width: 100,
  46. },
  47. {
  48. title: '是否为常闭型',
  49. dataIndex: 'bnormalclose',
  50. width: 100,
  51. },
  52. {
  53. title: '所属分站',
  54. width: 150,
  55. dataIndex: 'stationname',
  56. },
  57. ];
  58. export const searchFormSchema: FormSchema[] = [
  59. {
  60. label: '名称',
  61. field: 'strname',
  62. component: 'Input',
  63. colProps: { span: 6 },
  64. },
  65. {
  66. label: '安装位置',
  67. field: 'strinstallpos',
  68. component: 'Input',
  69. colProps: { span: 6 },
  70. },
  71. {
  72. label: '所属分站',
  73. field: 'nsubstationid',
  74. component: 'ApiSelect',
  75. componentProps: {
  76. api: list,
  77. labelField: 'strname',
  78. valueField: 'nsubstationid',
  79. },
  80. },
  81. ];
  82. export const formSchema: FormSchema[] = [
  83. {
  84. label: '',
  85. field: 'id',
  86. component: 'Input',
  87. show: false,
  88. },
  89. {
  90. label: '名称',
  91. field: 'strname',
  92. component: 'Input',
  93. },
  94. {
  95. label: '安装位置',
  96. field: 'strinstallpos',
  97. component: 'Input',
  98. },
  99. {
  100. label: '安装位置巷道断面',
  101. field: 'ftunarea',
  102. component: 'InputNumber',
  103. },
  104. {
  105. label: '风速传感器1修正系数',
  106. field: 'famendv1',
  107. component: 'InputNumber',
  108. },
  109. {
  110. label: '风速传感器2修正系数',
  111. field: 'famendv2',
  112. component: 'InputNumber',
  113. },
  114. {
  115. label: '风速传感器3修正系数',
  116. field: 'famendv3',
  117. component: 'InputNumber',
  118. },
  119. {
  120. label: '所属分站',
  121. field: 'nsubstationid',
  122. component: 'ApiSelect',
  123. componentProps: {
  124. api: list,
  125. labelField: 'strname',
  126. valueField: 'nsubstationid',
  127. },
  128. },
  129. ];