windfinding.data.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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: 'fsectarea',
  102. component: 'InputNumber',
  103. },
  104. {
  105. label: '所属分站',
  106. field: 'nsubstationid',
  107. component: 'ApiSelect',
  108. componentProps: {
  109. api: list,
  110. labelField: 'strname',
  111. valueField: 'nsubstationid',
  112. },
  113. },
  114. {
  115. label: '点表',
  116. field: 'strtype',
  117. component: 'JDictSelectTag',
  118. componentProps: {
  119. dictCode: 'windrectkind',
  120. placeholder: '请选择状态',
  121. },
  122. },
  123. {
  124. label: '监测类型',
  125. field: 'monitorflag_dictText',
  126. component: 'JDictSelectTag',
  127. componentProps: {
  128. dictCode: 'monitorflag',
  129. placeholder: '请选择状态',
  130. },
  131. },
  132. {
  133. label: '是否模拟数据',
  134. field: 'testflag',
  135. component: 'RadioGroup',
  136. defaultValue: 1,
  137. componentProps: () => {
  138. return {
  139. options: [
  140. { label: '是', value: 1, key: '1' },
  141. { label: '否', value: 0, key: '2' },
  142. ],
  143. };
  144. },
  145. },
  146. ];