data.config.ts 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. import { requestMagicApi } from '/@/api/magicApi';
  2. import { getDataOption } from '/@/api/system/dic';
  3. import { getClassOption, getMajorSetOption } from '/@/api/userMagic';
  4. import { BasicColumn, FormSchema } from '/@/components/Table';
  5. export const table2Columns: BasicColumn[] = [
  6. {
  7. title: '专业方向',
  8. dataIndex: 'majorSetId',
  9. align: 'left',
  10. width: 250,
  11. editRow: true,
  12. editRule: true,
  13. editComponent: 'ApiSelect',
  14. editComponentProps: {
  15. api: getMajorSetOption,
  16. getPopupContainer: () => document.body,
  17. },
  18. },
  19. {
  20. title: '班级名称',
  21. dataIndex: 'name',
  22. align: 'left',
  23. editRow: true,
  24. editRule: true,
  25. editComponent: 'Input',
  26. },
  27. {
  28. title: '班级人数',
  29. dataIndex: 'number',
  30. align: 'left',
  31. width: 80,
  32. editRow: true,
  33. editRule: true,
  34. editComponent: 'InputNumber',
  35. editComponentProps: {
  36. min: 0,
  37. },
  38. },
  39. {
  40. title: '班主任',
  41. dataIndex: 'teacherId',
  42. align: 'left',
  43. editRow: true,
  44. editRule: true,
  45. editComponent: 'ApiSelect',
  46. editComponentProps: {
  47. api: requestMagicApi,
  48. params: { url: 'baseData/user/list?type=1' },
  49. getPopupContainer: () => document.body,
  50. },
  51. width: 200,
  52. },
  53. {
  54. title: '固定教室',
  55. dataIndex: 'classroomId',
  56. align: 'left',
  57. editRow: true,
  58. editRule: true,
  59. editComponent: 'ApiSelect',
  60. editComponentProps: {
  61. api: requestMagicApi,
  62. params: { url: 'baseData/classroom/option' },
  63. getPopupContainer: () => document.body,
  64. },
  65. width: 150,
  66. },
  67. {
  68. title: '是否订单班',
  69. dataIndex: 'isOrderClass',
  70. align: 'left',
  71. width: 100,
  72. editRow: true,
  73. editComponent: 'Checkbox',
  74. editValueMap: (value) => {
  75. return value ? '是' : '否';
  76. },
  77. },
  78. {
  79. title: '分班排序',
  80. dataIndex: 'sortCode',
  81. align: 'left',
  82. width: 80,
  83. editRow: true,
  84. editRule: true,
  85. editComponent: 'InputNumber',
  86. editComponentProps: {
  87. min: 0,
  88. },
  89. },
  90. ];
  91. export const table3Columns: BasicColumn[] = [
  92. {
  93. title: '专业方向',
  94. dataIndex: 'majorSetName',
  95. align: 'left',
  96. width: 250,
  97. },
  98. {
  99. title: '第一志愿报名数',
  100. dataIndex: 'firstAmbitionCount',
  101. align: 'left',
  102. width: 150,
  103. },
  104. {
  105. title: '第二志愿报名数',
  106. dataIndex: 'secondAmbitionCount',
  107. align: 'left',
  108. width: 150,
  109. },
  110. {
  111. title: '分班班级',
  112. dataIndex: 'name',
  113. align: 'left',
  114. },
  115. {
  116. title: '班级人数',
  117. dataIndex: 'number',
  118. align: 'left',
  119. width: 80,
  120. },
  121. {
  122. title: '分班排序',
  123. dataIndex: 'sortCode',
  124. align: 'left',
  125. width: 80,
  126. },
  127. {
  128. title: '限制身高大于(cm)',
  129. dataIndex: 'height',
  130. align: 'left',
  131. width: 150,
  132. },
  133. {
  134. title: '限制成绩高于(分)',
  135. dataIndex: 'score',
  136. align: 'left',
  137. width: 150,
  138. },
  139. {
  140. title: '满足人数',
  141. dataIndex: 'satisfyCount',
  142. width: 80,
  143. },
  144. {
  145. title: '剩余人数',
  146. dataIndex: 'surplusCount',
  147. width: 80,
  148. },
  149. ];
  150. export const table4Columns: BasicColumn[] = [
  151. {
  152. title: '学号',
  153. dataIndex: 'credentialNumber',
  154. align: 'left',
  155. },
  156. {
  157. title: '姓名',
  158. dataIndex: 'name',
  159. align: 'left',
  160. width: 120,
  161. },
  162. {
  163. title: '性别',
  164. dataIndex: 'genderCn',
  165. align: 'left',
  166. width: 80,
  167. },
  168. {
  169. title: '毕业学校',
  170. dataIndex: 'graduateSchool',
  171. align: 'left',
  172. width: 180,
  173. },
  174. {
  175. title: '毕业班级',
  176. dataIndex: 'graduateClass',
  177. align: 'left',
  178. width: 120,
  179. },
  180. {
  181. title: '住宿类型',
  182. dataIndex: 'stduyStatusCn',
  183. align: 'left',
  184. width: 100,
  185. },
  186. {
  187. title: '身高',
  188. dataIndex: 'height',
  189. align: 'left',
  190. width: 80,
  191. },
  192. {
  193. title: '体重',
  194. dataIndex: 'weight',
  195. align: 'left',
  196. width: 80,
  197. },
  198. {
  199. title: '成绩',
  200. dataIndex: 'score',
  201. align: 'left',
  202. width: 120,
  203. },
  204. {
  205. title: '班级名称',
  206. dataIndex: 'className',
  207. align: 'left',
  208. width: 120,
  209. },
  210. {
  211. title: '班主任',
  212. dataIndex: 'teacherName',
  213. align: 'left',
  214. width: 120,
  215. },
  216. ];
  217. export const searchForm4Schema: FormSchema[] = [
  218. {
  219. field: 'credentialNumber',
  220. label: '学号',
  221. component: 'Input',
  222. colProps: { span: 8 },
  223. },
  224. {
  225. field: 'name',
  226. label: '姓名',
  227. component: 'Input',
  228. colProps: { span: 8 },
  229. },
  230. {
  231. field: 'graduateSchool',
  232. label: '毕业学校',
  233. component: 'Input',
  234. colProps: { span: 8 },
  235. },
  236. {
  237. field: 'graduateClass',
  238. label: '毕业班级',
  239. component: 'Input',
  240. colProps: { span: 8 },
  241. },
  242. {
  243. field: 'stduyStatus',
  244. label: '就读方式',
  245. component: 'ApiSelect',
  246. componentProps: {
  247. getPopupContainer: () => document.body,
  248. api: getDataOption,
  249. params: { code: 'stduy_status' },
  250. },
  251. colProps: { span: 8 },
  252. },
  253. {
  254. field: 'status',
  255. label: '班级状态',
  256. component: 'Select',
  257. componentProps: {
  258. getPopupContainer: () => document.body,
  259. options: [
  260. { label: '未分班', value: '0' },
  261. { label: '已分班', value: '' },
  262. ],
  263. },
  264. colProps: { span: 8 },
  265. },
  266. {
  267. field: 'className',
  268. label: '班级',
  269. component: 'Input',
  270. componentProps: {
  271. getPopupContainer: () => document.body,
  272. api: getClassOption,
  273. },
  274. colProps: { span: 8 },
  275. },
  276. ];
  277. export const form4Schema: FormSchema[] = [
  278. {
  279. field: 'studentIds',
  280. label: '调整学生',
  281. component: 'Input',
  282. colProps: { span: 24 },
  283. slot: 'studentIds',
  284. },
  285. {
  286. field: 'bandingTaskClassId',
  287. label: '调到班级',
  288. component: 'Select',
  289. colProps: { span: 24 },
  290. componentProps: {
  291. getPopupContainer: () => document.body,
  292. },
  293. },
  294. ];
  295. export const table5Columns: BasicColumn[] = [
  296. {
  297. title: '专业方向',
  298. dataIndex: 'majorSetName',
  299. align: 'left',
  300. },
  301. {
  302. title: '班级名称',
  303. dataIndex: 'name',
  304. align: 'left',
  305. width: 120,
  306. },
  307. {
  308. title: '班主任',
  309. dataIndex: 'teacherName',
  310. align: 'left',
  311. width: 80,
  312. },
  313. {
  314. title: '固定教室',
  315. dataIndex: 'classroomName',
  316. align: 'left',
  317. width: 180,
  318. },
  319. {
  320. title: '是否订单班',
  321. dataIndex: 'isOrdeClass',
  322. align: 'left',
  323. width: 120,
  324. },
  325. {
  326. title: '班级人数',
  327. dataIndex: 'number',
  328. align: 'left',
  329. width: 100,
  330. },
  331. {
  332. title: '男生人数',
  333. dataIndex: 'maleCount',
  334. align: 'left',
  335. width: 80,
  336. },
  337. {
  338. title: '女生人数',
  339. dataIndex: 'femaleCount',
  340. align: 'left',
  341. width: 80,
  342. },
  343. {
  344. title: '住校人数',
  345. dataIndex: 'stayCount',
  346. align: 'left',
  347. width: 120,
  348. },
  349. {
  350. title: '走读人数',
  351. dataIndex: 'notStayCount',
  352. align: 'left',
  353. width: 120,
  354. },
  355. ];
  356. export const tableSatisfyColumns: BasicColumn[] = [
  357. {
  358. title: '毕业学校',
  359. dataIndex: 'graduateSchool',
  360. align: 'left',
  361. width: 180,
  362. },
  363. {
  364. title: '学生姓名',
  365. dataIndex: 'name',
  366. align: 'left',
  367. width: 120,
  368. },
  369. {
  370. title: '性别',
  371. dataIndex: 'genderCn',
  372. align: 'left',
  373. width: 80,
  374. },
  375. {
  376. title: '身份证号',
  377. dataIndex: 'credentialNumber',
  378. align: 'left',
  379. },
  380. {
  381. title: '身高(cm)',
  382. dataIndex: 'height',
  383. align: 'left',
  384. width: 80,
  385. },
  386. {
  387. title: '体重(kg)',
  388. dataIndex: 'weight',
  389. align: 'left',
  390. width: 80,
  391. },
  392. {
  393. title: '成绩',
  394. dataIndex: 'score',
  395. align: 'left',
  396. width: 120,
  397. },
  398. {
  399. title: '毕业班级',
  400. dataIndex: 'graduateClass',
  401. align: 'left',
  402. width: 120,
  403. },
  404. {
  405. title: '学生来源',
  406. dataIndex: 'source',
  407. align: 'left',
  408. width: 100,
  409. },
  410. {
  411. title: '住宿类型',
  412. dataIndex: 'stduyStatusCn',
  413. align: 'left',
  414. width: 100,
  415. },
  416. {
  417. title: '手机号',
  418. dataIndex: 'mobile',
  419. align: 'left',
  420. width: 120,
  421. },
  422. {
  423. title: '第一志愿',
  424. dataIndex: 'firstAmbition',
  425. align: 'left',
  426. width: 120,
  427. },
  428. {
  429. title: '第二志愿',
  430. dataIndex: 'secondAmbition',
  431. align: 'left',
  432. width: 120,
  433. },
  434. ];
  435. export const table6Columns: BasicColumn[] = [
  436. {
  437. title: '专业方向',
  438. dataIndex: 'majorSetName',
  439. align: 'left',
  440. width: 250,
  441. },
  442. {
  443. title: '限制身高大于(cm)',
  444. dataIndex: 'height',
  445. align: 'left',
  446. width: 150,
  447. },
  448. {
  449. title: '限制成绩高于(分)',
  450. dataIndex: 'score',
  451. align: 'left',
  452. width: 150,
  453. },
  454. ];