highTechPersonSumList.js 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. export default {
  2. height: 'auto',
  3. calcHeight: 30,
  4. tip: false,
  5. searchShow: true,
  6. searchMenuSpan: 6,
  7. border: true,
  8. index: true,
  9. addBtn: false,
  10. viewBtn: true,
  11. menu: false,
  12. searchLabelWidth: 140,
  13. labelWidth: 140,
  14. menuWidth: 220,
  15. dialogClickModal: false,
  16. dialogWidth: 760,
  17. dialogType: "drawer",
  18. column: [
  19. {
  20. label: '姓名',
  21. prop: 'name',
  22. type: 'input',
  23. span: 12,
  24. search: true,
  25. width: 80,
  26. align: 'center',
  27. showOverflowTooltip: true,
  28. rules: [
  29. {
  30. required: true,
  31. message: '请输入姓名',
  32. trigger: 'blur',
  33. },
  34. ],
  35. },
  36. {
  37. label: '工号',
  38. prop: 'number',
  39. type: 'input',
  40. span: 12,
  41. width: 90,
  42. align: 'center',
  43. search: true,
  44. showOverflowTooltip: true,
  45. // rules: [
  46. // {
  47. // required: true,
  48. // message: '请输入工号',
  49. // trigger: 'blur',
  50. // },
  51. // ],
  52. },
  53. {
  54. label: '身份证号',
  55. prop: 'idCard',
  56. type: 'input',
  57. span: 12,
  58. search: true,
  59. width: 150,
  60. align: 'center',
  61. showOverflowTooltip: true,
  62. // rules: [
  63. // {
  64. // required: true,
  65. // message: '请输入身份证号',
  66. // trigger: 'blur',
  67. // },
  68. // ],
  69. },
  70. {
  71. label: '性别',
  72. prop: 'gender',
  73. type: 'select',
  74. dicUrl: '/api/kd-system/dict/dictionary?code=sex',
  75. props: {
  76. label: 'dictValue',
  77. value: 'dictKey',
  78. },
  79. span: 12,
  80. width: 50,
  81. align: 'center',
  82. showOverflowTooltip: true,
  83. rules: [
  84. {
  85. required: true,
  86. message: '请选择性别',
  87. trigger: 'change',
  88. },
  89. ],
  90. },
  91. {
  92. label: '出生日期',
  93. prop: 'birthday',
  94. type: 'date',
  95. valueFormat: 'yyyy-MM-DD',
  96. span: 12,
  97. width: 90,
  98. align: 'center',
  99. showOverflowTooltip: true,
  100. rules: [
  101. {
  102. required: true,
  103. message: '请选择出生日期',
  104. trigger: 'blur',
  105. },
  106. ],
  107. },
  108. {
  109. label: '民族',
  110. prop: 'ethnic',
  111. type: 'input',
  112. span: 12,
  113. width: 80,
  114. align: 'center',
  115. showOverflowTooltip: true,
  116. rules: [
  117. {
  118. required: true,
  119. message: '请输入民族',
  120. trigger: 'blur',
  121. },
  122. ],
  123. },
  124. {
  125. label: '所属二级单位/部门',
  126. prop: 'department',
  127. type: 'input',
  128. span: 12,
  129. width: 180,
  130. search: true,
  131. align: 'center',
  132. showOverflowTooltip: true,
  133. },
  134. {
  135. label: '岗位职务',
  136. prop: 'post',
  137. type: 'input',
  138. span: 12,
  139. width: 100,
  140. align: 'center',
  141. search: true,
  142. showOverflowTooltip: true,
  143. rules: [
  144. {
  145. required: true,
  146. message: '请输入岗位职务',
  147. trigger: 'blur',
  148. },
  149. ],
  150. },
  151. {
  152. label: '岗位所在地',
  153. prop: 'postLocation',
  154. type: 'input',
  155. span: 12,
  156. width: 100,
  157. align: 'center',
  158. showOverflowTooltip: true,
  159. rules: [
  160. {
  161. required: true,
  162. message: '请输入岗位所在地',
  163. trigger: 'blur',
  164. },
  165. ],
  166. },
  167. {
  168. label: '用工性质',
  169. prop: 'nature',
  170. type: 'select',
  171. span: 12,
  172. width: 80,
  173. align: 'center',
  174. search: true,
  175. dicUrl: '/api/kd-system/dict-biz/dictionary?code=yonggongxingzhi',
  176. props: {
  177. label: 'dictValue',
  178. value: 'dictKey',
  179. },
  180. showOverflowTooltip: true,
  181. rules: [
  182. {
  183. required: true,
  184. message: '请选择用工性质',
  185. trigger: 'change',
  186. },
  187. ],
  188. },
  189. {
  190. label: '入职时间',
  191. prop: 'hireDate',
  192. type: 'datetime',
  193. valueFormat: 'yyyy-MM-dd HH:mm:ss',
  194. span: 12,
  195. width: 90,
  196. align: 'center',
  197. search: true,
  198. showOverflowTooltip: true,
  199. rules: [
  200. {
  201. required: true,
  202. message: '请选择入职时间',
  203. trigger: 'blur',
  204. },
  205. ],
  206. },
  207. {
  208. label: '最高学历',
  209. prop: 'education',
  210. type: 'select',
  211. span: 12,
  212. width: 100,
  213. align: 'center',
  214. search: true,
  215. dicUrl: '/api/kd-system/dict-biz/dictionary?code=xueli',
  216. props: {
  217. label: 'dictValue',
  218. value: 'dictKey',
  219. },
  220. showOverflowTooltip: true,
  221. rules: [
  222. {
  223. required: true,
  224. message: '请选择最高学历',
  225. trigger: 'change',
  226. },
  227. ],
  228. },
  229. {
  230. label: '最高学位',
  231. prop: 'degree',
  232. type: 'select',
  233. span: 12,
  234. width: 70,
  235. align: 'center',
  236. search: true,
  237. dicUrl: '/api/kd-system/dict-biz/dictionary?code=xuewei',
  238. props: {
  239. label: 'dictValue',
  240. value: 'dictKey',
  241. },
  242. showOverflowTooltip: true,
  243. rules: [
  244. {
  245. required: true,
  246. message: '请选择最高学位',
  247. trigger: 'change',
  248. },
  249. ],
  250. },
  251. {
  252. label: '最高学历学校',
  253. prop: 'schoolName',
  254. type: 'input',
  255. span: 12,
  256. width: 130,
  257. align: 'center',
  258. showOverflowTooltip: true,
  259. rules: [
  260. {
  261. required: true,
  262. message: '请输入最高学历学校',
  263. trigger: 'blur',
  264. },
  265. ],
  266. },
  267. {
  268. label: '最高学历专业名称',
  269. prop: 'major',
  270. type: 'input',
  271. span: 12,
  272. width: 120,
  273. align: 'center',
  274. showOverflowTooltip: true,
  275. rules: [
  276. {
  277. required: true,
  278. message: '请输入最高学历专业名称',
  279. trigger: 'blur',
  280. },
  281. ],
  282. },
  283. {
  284. label: '职称',
  285. prop: 'rank',
  286. type: 'select',
  287. span: 12,
  288. width: 100,
  289. align: 'center',
  290. search: true,
  291. dicUrl: '/api/kd-system/dict-biz/dictionary?code=zhicheng',
  292. props: {
  293. label: 'dictValue',
  294. value: 'dictKey',
  295. },
  296. showOverflowTooltip: true,
  297. rules: [
  298. {
  299. required: true,
  300. message: '请选择职称',
  301. trigger: 'change',
  302. },
  303. ],
  304. },
  305. {
  306. label: '职业资格',
  307. prop: 'practicingRequirement',
  308. type: 'input',
  309. span: 12,
  310. width: 80,
  311. align: 'center',
  312. search: true,
  313. showOverflowTooltip: true,
  314. rules: [
  315. {
  316. required: true,
  317. message: '请输入职业资格',
  318. trigger: 'blur',
  319. },
  320. ],
  321. },
  322. {
  323. label: '参研情况',
  324. prop: 'situation',
  325. type: 'select',
  326. span: 12,
  327. width: 80,
  328. align: 'center',
  329. search: true,
  330. dicUrl: '/api/kd-system/dict-biz/dictionary?code=canyanqingkuang',
  331. props: {
  332. label: 'dictValue',
  333. value: 'dictKey',
  334. },
  335. showOverflowTooltip: true,
  336. rules: [
  337. {
  338. required: true,
  339. message: '请选择参研情况',
  340. trigger: 'change',
  341. },
  342. ],
  343. },
  344. {
  345. label: '人员类型',
  346. prop: 'personnelType',
  347. type: 'select',
  348. span: 12,
  349. width: 80,
  350. align: 'center',
  351. dicUrl: '/api/kd-system/dict-biz/dictionary?code=renyuanleixing',
  352. props: {
  353. label: 'dictValue',
  354. value: 'dictKey',
  355. },
  356. showOverflowTooltip: true,
  357. rules: [
  358. {
  359. required: true,
  360. message: '请选择人员类型',
  361. trigger: 'change',
  362. },
  363. ],
  364. },
  365. {
  366. label: '其他说明',
  367. prop: 'remark',
  368. type: 'textarea',
  369. span: 24,
  370. minWidth: 160,
  371. showOverflowTooltip: true,
  372. },
  373. {
  374. label: '本年度从事研发工作天数',
  375. prop: 'workDaysByYear',
  376. type: 'number',
  377. span: 12,
  378. width: 160,
  379. align: 'center',
  380. fixed: 'right',
  381. showOverflowTooltip: true,
  382. editDisplay: false,
  383. },
  384. ],
  385. };