DataConfig.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. /*
  2. * @Author: Liugh
  3. * @Date: 2021-05-17 15:38:23
  4. * @LastEditTime: 2021-05-20 10:41:50
  5. * @LastEditors: Do not edit
  6. * @Description:
  7. */
  8. import { appRestApi } from '@/api/application';
  9. const pageOptList = ['导入', '同步'];
  10. const userPropConditionForm = [
  11. {
  12. label: '用户类型',
  13. name: 'userType',
  14. op: '=',
  15. value: '',
  16. component: 'DgSelect',
  17. attr: {
  18. enum: 'UserTypeEnum'
  19. }
  20. },
  21. {
  22. label: '姓名',
  23. name: 'name',
  24. op: 'like',
  25. value: '',
  26. component: 'ElInput'
  27. },
  28. {
  29. label: '身份证号码',
  30. name: 'idcard',
  31. op: 'like',
  32. value: '',
  33. component: 'ElInput'
  34. },
  35. {
  36. label: '单位名称',
  37. name: 'orgId',
  38. op: '=',
  39. value: '',
  40. apiName: 'getOrgTree',
  41. nodeKey: 'id',
  42. type: 'APP',
  43. component: 'SelectOrgTree'
  44. }
  45. ];
  46. const UserTableData = [
  47. {
  48. label: '用户类型',
  49. prop: 'userType',
  50. enum: 'UserTypeEnum'
  51. },
  52. {
  53. label: '姓名',
  54. prop: 'name'
  55. },
  56. {
  57. label: '身份证号码',
  58. prop: 'idcard'
  59. },
  60. // {
  61. // label: '编号',
  62. // prop: 'policeNumber'
  63. // },
  64. {
  65. label: '单位名称',
  66. prop: 'orgName'
  67. },
  68. {
  69. label: '人员类型',
  70. prop: 'manType',
  71. custom: true
  72. },
  73. {
  74. label: '警种',
  75. prop: 'policeCategory',
  76. code: 'T_MD_POLICE_TYPE',
  77. custom: true
  78. }
  79. ];
  80. const appConditionForm = [
  81. {
  82. label: '应用系统名称',
  83. name: 'applyName',
  84. op: '=',
  85. value: '',
  86. component: 'SelectApp',
  87. apiUrl: appRestApi.table,
  88. valueName: 'applyName',
  89. labelName: 'applyName'
  90. },
  91. {
  92. label: '应用系统在用标识',
  93. name: 'applyStatus',
  94. op: '=',
  95. value: '',
  96. component: 'DgSelect',
  97. attr: {
  98. code: 'DM_APPLY_STATUS'
  99. }
  100. },
  101. {
  102. label: '上线日期',
  103. name: 'lineTime',
  104. value: '',
  105. op: 'between',
  106. type: 'DATE',
  107. valueFormat: 'yyyyMMddHHmmss',
  108. component: 'DgDatePicker'
  109. }
  110. ];
  111. const appConditonForm2 = [
  112. {
  113. label: '应用系统名称',
  114. name: 'applyName',
  115. op: '=',
  116. value: '',
  117. component: 'SelectApp',
  118. apiUrl: appRestApi.table,
  119. valueName: 'applyName',
  120. labelName: 'applyName'
  121. }
  122. ];
  123. const appConditionForm3 = [
  124. {
  125. label: '应用系统名称',
  126. name: 'name',
  127. op: 'like',
  128. value: '',
  129. component: 'SelectApp',
  130. apiUrl: appRestApi.table,
  131. valueName: 'applyName',
  132. labelName: 'applyName'
  133. },
  134. {
  135. label: '应用系统在用标识',
  136. name: 'status',
  137. op: '=',
  138. value: '',
  139. component: 'DgSelect',
  140. attr: {
  141. code: 'DM_APPLY_STATUS'
  142. }
  143. }
  144. ];
  145. const appTableHeader = [
  146. {
  147. label: '应用系统名称',
  148. prop: 'applyName'
  149. },
  150. {
  151. label: '应用系统编号',
  152. prop: 'applyCode'
  153. },
  154. {
  155. label: '应用英文名称',
  156. prop: 'appEnglishName'
  157. },
  158. {
  159. label: '应用系统在用标识',
  160. prop: 'applyStatus',
  161. code: 'DM_APPLY_STATUS'
  162. },
  163. {
  164. label: '上线日期',
  165. prop: 'lineTime',
  166. dateFormat: 'YYYY-MM-DD'
  167. },
  168. {
  169. label: '应用系统运维单位名称',
  170. width: '180px',
  171. prop: 'appOpsDepName'
  172. }
  173. ];
  174. const cardPersonnelList = [
  175. {
  176. label: '姓名',
  177. prop: ''
  178. },
  179. {
  180. label: '身份证号码',
  181. prop: ''
  182. },
  183. {
  184. label: '单位名称',
  185. prop: ''
  186. }
  187. ];
  188. const cardAddPersonnelList = [
  189. {
  190. label: '姓名',
  191. prop: ''
  192. },
  193. {
  194. label: '身份证号码',
  195. prop: ''
  196. }
  197. ];
  198. const cardApplicationList = [
  199. {
  200. label: '单位名称',
  201. prop: ''
  202. },
  203. {
  204. label: '机构代码',
  205. prop: ''
  206. },
  207. {
  208. label: '行政区划',
  209. prop: ''
  210. }
  211. ];
  212. const cardAgencylist = [
  213. {
  214. label: '应用系统名称',
  215. prop: 'applyName'
  216. },
  217. {
  218. label: '应用系统编号',
  219. prop: 'applyCode'
  220. },
  221. {
  222. label: '应用系统在用标识',
  223. prop: 'applyStatus',
  224. code: 'DM_APPLY_STATUS'
  225. }
  226. ];
  227. const cardFunctionList = [
  228. {
  229. label: '功能名称',
  230. prop: ''
  231. },
  232. {
  233. label: '功能编号',
  234. prop: ''
  235. },
  236. {
  237. label: '所属系统',
  238. prop: ''
  239. }
  240. ];
  241. const cardServiceList = [
  242. {
  243. label: '服务资源名称',
  244. prop: ''
  245. },
  246. {
  247. label: '所属系统',
  248. prop: ''
  249. }
  250. ];
  251. const typeData = {
  252. 10: [
  253. { label: '姓名', value: 'name' },
  254. { label: '性别', value: 'sex', code: 'DM_SEX' },
  255. { label: '身份证号码', value: 'idcard' },
  256. { label: '省份', value: 'area', code: 'DM_AREA_CODE' },
  257. { label: '警号', value: 'policeNumber' },
  258. { label: '人员类型', value: 'userType', code: 'DM_MAN_TYPE' },
  259. { label: '职级', value: 'title', code: 'DM_CERT_DUTY_LEVEL' },
  260. // { label: "用户类别", value: "userType", enum: "UserTypeEnum" },
  261. { label: '单位名称', value: 'orgName' },
  262. { label: '警衔', value: 'rank', code: 'DM_POLICE_RANK' },
  263. { label: '警种', value: 'policeCategory', code: 'T_MD_POLICE_TYPE' },
  264. { label: '业务域', value: 'policeBusiness', span: 24 }
  265. ],
  266. 20: [
  267. { label: '姓名', value: 'name' },
  268. { label: '性别', value: 'sex', code: 'DM_SEX' },
  269. { label: '身份证号码', value: 'idcard' },
  270. { label: '警号', value: 'policeNumber' },
  271. { label: '单位名称', value: 'orgName' },
  272. { label: '人员类型', value: 'auxiliaryType', code: 'DM_AUXILIARY_TYPE' },
  273. // { label: "用户类别", value: "userType", enum: "UserTypeEnum" },
  274. { label: '警种', value: 'policeCategory', code: 'T_MD_POLICE_TYPE' },
  275. { label: '业务域', value: 'policeBusiness', span: 24 }
  276. ],
  277. 30: [
  278. { label: '姓名', value: 'name' },
  279. { label: '性别', value: 'sex', code: 'DM_SEX' },
  280. { label: '身份证号码', value: 'idcard' },
  281. { label: '编号', value: 'policeNumber' }
  282. // { label: "人员类型", value: "manType", code: "DM_MAN_TYPE" },
  283. // { label: "用户类别", value: "userType", enum: "UserTypeEnum" }
  284. ]
  285. };
  286. const orgDetail = [
  287. { label: '上级行政机构', value: 'upGovName' },
  288. { label: '机构类型', value: 'orgKind', enum: 'OrgKindEnum' },
  289. { label: '单位名称', value: 'fullName' },
  290. { label: '行政区划', value: 'areaCode', code: 'T_MD_AREA_CODE' },
  291. { label: '机构代码', value: 'code' },
  292. { label: '机构类别', value: 'orgType', code: 'T_MD_ORGTYPE' },
  293. { label: '单位层级', value: 'orgLevel', code: 'T_MD_ORG_LEVEL' },
  294. { label: '单位级别', value: 'orgRank', code: 'T_MD_ORG_RANK' },
  295. { label: '单位类别', value: 'unitClass', url: '/duacm/codeSon/v2/data/T_MD_UNIT_CLASS' }
  296. ];
  297. const applicationField = [
  298. { label: '应用系统名称', value: 'applyName' },
  299. { label: '应用系统编号', value: 'applyCode' },
  300. { label: '应用英文名称', value: 'appEnglishName' },
  301. { label: '应用系统在用标识', value: 'applyStatus', code: 'DM_APPLY_STATUS' },
  302. { label: '上线日期', value: 'lineTime' },
  303. { label: '应用系统事权单位代码', value: 'managerOrgCode' },
  304. { label: '应用负责人姓名', value: 'fzr' },
  305. { label: '应用系统运维单位名称', value: 'appOpsDepName' },
  306. { label: '应用系统管理单位名称', value: 'managerOrgName' },
  307. { label: '应用系统说明', value: 'managerDescribe' }
  308. ];
  309. const orgConditonForm = [
  310. {
  311. label: '单位名称',
  312. name: 'orgId',
  313. op: '=',
  314. value: '',
  315. apiName: 'getOrgTree',
  316. nodeKey: 'id',
  317. type: 'APP',
  318. component: 'SelectOrgTree',
  319. placeholder: '请选择单位名称'
  320. }
  321. ];
  322. export {
  323. pageOptList,
  324. userPropConditionForm,
  325. UserTableData,
  326. typeData,
  327. orgDetail,
  328. appConditionForm,
  329. appConditonForm2,
  330. appConditionForm3,
  331. appTableHeader,
  332. applicationField,
  333. cardPersonnelList,
  334. cardApplicationList,
  335. cardAgencylist,
  336. cardAddPersonnelList,
  337. cardFunctionList,
  338. cardServiceList,
  339. orgConditonForm
  340. };