data.config.ts 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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: 'Input',
  289. colProps: { span: 24 },
  290. },
  291. ];
  292. export const table5Columns: BasicColumn[] = [
  293. {
  294. title: '专业方向',
  295. dataIndex: 'majorSetName',
  296. align: 'left',
  297. },
  298. {
  299. title: '班级名称',
  300. dataIndex: 'name',
  301. align: 'left',
  302. width: 120,
  303. },
  304. {
  305. title: '班主任',
  306. dataIndex: 'teacherName',
  307. align: 'left',
  308. width: 80,
  309. },
  310. {
  311. title: '固定教室',
  312. dataIndex: 'classroomName',
  313. align: 'left',
  314. width: 180,
  315. },
  316. {
  317. title: '是否订单班',
  318. dataIndex: 'isOrdeClass',
  319. align: 'left',
  320. width: 120,
  321. },
  322. {
  323. title: '班级人数',
  324. dataIndex: 'number',
  325. align: 'left',
  326. width: 100,
  327. },
  328. {
  329. title: '男生人数',
  330. dataIndex: 'maleCount',
  331. align: 'left',
  332. width: 80,
  333. },
  334. {
  335. title: '女生人数',
  336. dataIndex: 'femaleCount',
  337. align: 'left',
  338. width: 80,
  339. },
  340. {
  341. title: '住校人数',
  342. dataIndex: 'stayCount',
  343. align: 'left',
  344. width: 120,
  345. },
  346. {
  347. title: '走读人数',
  348. dataIndex: 'notStayCount',
  349. align: 'left',
  350. width: 120,
  351. },
  352. ];
  353. export const tableSatisfyColumns: BasicColumn[] = [
  354. {
  355. title: '毕业学校',
  356. dataIndex: 'graduateSchool',
  357. align: 'left',
  358. width: 180,
  359. },
  360. {
  361. title: '学生姓名',
  362. dataIndex: 'name',
  363. align: 'left',
  364. width: 120,
  365. },
  366. {
  367. title: '性别',
  368. dataIndex: 'gender',
  369. align: 'left',
  370. width: 80,
  371. },
  372. {
  373. title: '身份证号',
  374. dataIndex: 'credentialNumber',
  375. align: 'left',
  376. },
  377. {
  378. title: '身高(cm)',
  379. dataIndex: 'height',
  380. align: 'left',
  381. width: 80,
  382. },
  383. {
  384. title: '体重(kg)',
  385. dataIndex: 'wg',
  386. align: 'left',
  387. width: 80,
  388. },
  389. {
  390. title: '成绩',
  391. dataIndex: 'score',
  392. align: 'left',
  393. width: 120,
  394. },
  395. {
  396. title: '毕业班级',
  397. dataIndex: 'graduateClass',
  398. align: 'left',
  399. width: 120,
  400. },
  401. {
  402. title: '学生来源',
  403. dataIndex: 'source',
  404. align: 'left',
  405. width: 100,
  406. },
  407. {
  408. title: '住宿类型',
  409. dataIndex: 'stateType',
  410. align: 'left',
  411. width: 100,
  412. },
  413. {
  414. title: '手机号',
  415. dataIndex: 'cName',
  416. align: 'left',
  417. width: 120,
  418. },
  419. {
  420. title: '第一志愿',
  421. dataIndex: 'firstAmbition',
  422. align: 'left',
  423. width: 120,
  424. },
  425. {
  426. title: '第二志愿',
  427. dataIndex: 'secondAmbition',
  428. align: 'left',
  429. width: 120,
  430. },
  431. ];
  432. export const table6Columns: BasicColumn[] = [
  433. {
  434. title: '专业方向',
  435. dataIndex: 'majorSetName',
  436. align: 'left',
  437. width: 250,
  438. },
  439. {
  440. title: '限制身高大于(cm)',
  441. dataIndex: 'height',
  442. align: 'left',
  443. width: 150,
  444. },
  445. {
  446. title: '限制成绩高于(分)',
  447. dataIndex: 'score',
  448. align: 'left',
  449. width: 150,
  450. },
  451. ];