vue2-client 1.15.85 → 1.15.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (698) hide show
  1. package/.claude/settings.local.json +12 -0
  2. package/.cursorrules +19 -19
  3. package/.editorconfig +9 -9
  4. package/.env +20 -20
  5. package/.env.apply +19 -19
  6. package/.env.development +1 -1
  7. package/.env.gaslink +19 -19
  8. package/.env.his +19 -19
  9. package/.env.iot +19 -19
  10. package/.env.liuli +20 -20
  11. package/.env.message +19 -19
  12. package/.env.revenue +19 -19
  13. package/.env.runtime +19 -19
  14. package/.env.scada +19 -19
  15. package/.eslintrc.js +90 -90
  16. package/.eslintrc.json +5 -5
  17. package/CHANGELOG.md +824 -824
  18. package/CLAUDE.md +89 -89
  19. package/Components.md +60 -60
  20. package/README.md +65 -65
  21. package/babel.config.js +21 -21
  22. package/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +46 -46
  23. package/docs/LowCode/lowcode.md +155 -155
  24. package/docs/LowCode/lowcodeForDeveloper.md +230 -230
  25. package/docs/index.md +30 -30
  26. package/docs/notice.md +22 -22
  27. package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +179 -179
  28. package/index.js +31 -31
  29. package/jest-transform-stub.js +8 -8
  30. package/jest.config.js +22 -22
  31. package/jest.setup.js +7 -7
  32. package/jsconfig.json +19 -19
  33. package/package.json +111 -111
  34. package/public/his/editor/editor.html +51 -51
  35. package/public/his/editor/mock/bind_data.html +779 -779
  36. package/public/his/editor/mock/data_table.html +40 -40
  37. package/public/his/editor/mock/sign.html +75 -75
  38. package/public/his/editor/vender/JsBarcode.all.js +3669 -3669
  39. package/public/his/editor/vender/date97/My97DatePicker.htm +65 -65
  40. package/public/his/editor/vender/date97/WdatePicker.js +677 -677
  41. package/public/his/editor/vender/date97/calendar.js +4 -4
  42. package/public/his/editor/vender/date97/lang/en.js +13 -13
  43. package/public/his/editor/vender/date97/lang/zh-cn.js +13 -13
  44. package/public/his/editor/vender/date97/lang/zh-tw.js +13 -13
  45. package/public/his/editor/vender/date97/skin/WdatePicker.css +10 -10
  46. package/public/his/editor/vender/date97/skin/default/datepicker.css +328 -328
  47. package/public/his/editor/vender/date97/skin/ext/datepicker.css +308 -308
  48. package/public/his/editor/vender/date97/skin/whyGreen/datepicker.css +255 -255
  49. package/public/his/editor/vender/diff.js +1627 -1627
  50. package/public/his/editor/vender/editor.js +1 -1
  51. package/public/his/editor/vender/fabric.js +31187 -31187
  52. package/public/his/editor/vender/jquery/jquery.base64.js +190 -190
  53. package/public/his/editor/vender/jquery/jquery.js +10872 -10872
  54. package/public/his/editor/vender/jquery/jquery.print.js +255 -255
  55. package/public/his/editor/vender/jquery/zTreeStyle/zTreeStyle.css +96 -96
  56. package/public/his/editor/vender/mui/mui.min.css +4 -4
  57. package/public/his/editor/vender/mui/mui.min.js +5 -5
  58. package/public/his/editor/vender/mui/mui.picker.min.css +6 -6
  59. package/public/his/editor/vender/mui/mui.picker.min.js +6 -6
  60. package/public/his/editor/vender/qrcode.js +7 -7
  61. package/public/his/editor/vender/requirejs/require.js +2145 -2145
  62. package/public/his/editor/vender/signature/jSignature.CompressorSVG.js +518 -518
  63. package/public/his/editor/vender/signature/jSignature.UndoButton.js +164 -164
  64. package/public/his/editor/vender/signature/jSignature.js +1486 -1486
  65. package/public/his/editor/vender/validator.js +5094 -5094
  66. package/public/his/editor/vender/weui/weui.css +5659 -5659
  67. package/public/his/editor/vender/weui/weui.min.css +4 -4
  68. package/public/his/editor/vender/weui/weui.min.js +11 -11
  69. package/public/index.html +27 -27
  70. package/src/App.vue +196 -196
  71. package/src/ReportView.js +13 -13
  72. package/src/assets/img/querySlotDemo.svg +15 -15
  73. package/src/assets/svg/badtwo.svg +1 -1
  74. package/src/assets/svg/goodtwo.svg +1 -1
  75. package/src/base-client/components/AI/AskAiBtn.vue +136 -136
  76. package/src/base-client/components/AI/demo.vue +31 -31
  77. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +532 -532
  78. package/src/base-client/components/common/AddressSearchCombobox/IcMapIcon.vue +16 -16
  79. package/src/base-client/components/common/AddressSearchCombobox/demo.vue +36 -36
  80. package/src/base-client/components/common/AddressSearchCombobox/ic_map.svg +6 -6
  81. package/src/base-client/components/common/AddressSearchCombobox/index.js +3 -3
  82. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
  83. package/src/base-client/components/common/AmapMarker/index.js +3 -3
  84. package/src/base-client/components/common/CitySelect/CitySelect.vue +376 -376
  85. package/src/base-client/components/common/CitySelect/demo.vue +43 -43
  86. package/src/base-client/components/common/CitySelect/index.js +3 -3
  87. package/src/base-client/components/common/CitySelect/index.md +109 -109
  88. package/src/base-client/components/common/ColorPickerCombobox/ColorPickerCombobox.vue +99 -99
  89. package/src/base-client/components/common/ColorPickerCombobox/demo.vue +34 -34
  90. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
  91. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +1014 -1014
  92. package/src/base-client/components/common/CreateQuery/index.js +3 -3
  93. package/src/base-client/components/common/CreateQuery/index.md +42 -42
  94. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +452 -452
  95. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +511 -511
  96. package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
  97. package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
  98. package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +146 -146
  99. package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
  100. package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
  101. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
  102. package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
  103. package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
  104. package/src/base-client/components/common/JSONToTree/index.js +3 -3
  105. package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
  106. package/src/base-client/components/common/LowCodeComponent/LowCodeEditorModal.vue +108 -108
  107. package/src/base-client/components/common/LowCodeComponent/LowCodeEditorPanel.vue +413 -413
  108. package/src/base-client/components/common/LowCodeComponent/LowCodePageOrganization.vue +502 -502
  109. package/src/base-client/components/common/LowCodeComponent/LowCodeRender.vue +728 -728
  110. package/src/base-client/components/common/LowCodeComponent/LowCodeRenderEnter.vue +29 -29
  111. package/src/base-client/components/common/LowCodeComponent/LowCodeUIStore.vue +219 -219
  112. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeAddPageModal.vue +117 -117
  113. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeCustomJSModal.vue +80 -80
  114. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeEventEditorModal.vue +398 -398
  115. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeLifeCycleModal.vue +65 -65
  116. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeLogicCallbackModal.vue +64 -64
  117. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeLogicParamModal.vue +73 -73
  118. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeRunFunctionParamModal.vue +76 -76
  119. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
  120. package/src/base-client/components/common/PersonSetting/index.js +3 -3
  121. package/src/base-client/components/common/Recording/Recording.vue +243 -243
  122. package/src/base-client/components/common/Recording/index.js +3 -3
  123. package/src/base-client/components/common/Tree/Tree.vue +149 -149
  124. package/src/base-client/components/common/Tree/index.js +2 -2
  125. package/src/base-client/components/common/Upload/Upload.vue +323 -323
  126. package/src/base-client/components/common/Upload/index.js +3 -3
  127. package/src/base-client/components/common/XAddForm/XAddForm.vue +113 -113
  128. package/src/base-client/components/common/XAddForm/index.js +3 -3
  129. package/src/base-client/components/common/XAddForm/index.md +61 -61
  130. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1169 -1169
  131. package/src/base-client/components/common/XAddNativeForm/demo.vue +54 -40
  132. package/src/base-client/components/common/XAddNativeForm/index.js +3 -3
  133. package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
  134. package/src/base-client/components/common/XAddNativeFormOA/XAddNativeFormOA.vue +303 -303
  135. package/src/base-client/components/common/XAddNativeFormOA/index.js +3 -3
  136. package/src/base-client/components/common/XAddNativeFormOA/index.md +146 -146
  137. package/src/base-client/components/common/XAddReport/XAddReport.vue +212 -212
  138. package/src/base-client/components/common/XAddReport/index.js +3 -3
  139. package/src/base-client/components/common/XAddReport/index.md +56 -56
  140. package/src/base-client/components/common/XBadge/XBadge.vue +94 -94
  141. package/src/base-client/components/common/XBadge/index.js +3 -3
  142. package/src/base-client/components/common/XBadge/index.md +39 -39
  143. package/src/base-client/components/common/XButtons/XButtonDemo.vue +28 -28
  144. package/src/base-client/components/common/XButtons/XButtons.vue +284 -284
  145. package/src/base-client/components/common/XButtons/index.js +3 -3
  146. package/src/base-client/components/common/XButtons/index.md +61 -61
  147. package/src/base-client/components/common/XCalendar/XCalendar.vue +369 -369
  148. package/src/base-client/components/common/XCalendar/index.md +284 -284
  149. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  150. package/src/base-client/components/common/XCard/index.js +3 -3
  151. package/src/base-client/components/common/XCard/index.md +43 -43
  152. package/src/base-client/components/common/XCardSet/XCardSet.vue +300 -300
  153. package/src/base-client/components/common/XCheckList/XCheckList.vue +106 -106
  154. package/src/base-client/components/common/XCheckList/XCheckListDemo.vue +41 -41
  155. package/src/base-client/components/common/XCollapse/XCollapse.vue +354 -354
  156. package/src/base-client/components/common/XConversation/XConversation.vue +576 -576
  157. package/src/base-client/components/common/XConversation/XConversationDemo.vue +28 -28
  158. package/src/base-client/components/common/XDataCard/XDataCard.vue +629 -629
  159. package/src/base-client/components/common/XDataCard/index.js +3 -3
  160. package/src/base-client/components/common/XDataCard/index.md +1 -1
  161. package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
  162. package/src/base-client/components/common/XDataDrawer/index.js +3 -3
  163. package/src/base-client/components/common/XDataDrawer/index.md +41 -41
  164. package/src/base-client/components/common/XDatePicker/demo.vue +153 -153
  165. package/src/base-client/components/common/XDatePicker/index.vue +276 -276
  166. package/src/base-client/components/common/XDescriptions/XDescriptions.vue +174 -174
  167. package/src/base-client/components/common/XDescriptions/XDescriptionsGroup.vue +314 -314
  168. package/src/base-client/components/common/XDescriptions/demo.vue +51 -51
  169. package/src/base-client/components/common/XDescriptions/index.js +3 -3
  170. package/src/base-client/components/common/XDescriptions/index.md +83 -83
  171. package/src/base-client/components/common/XDetailsView/XDetailsView.vue +238 -238
  172. package/src/base-client/components/common/XDetailsView/index.js +3 -3
  173. package/src/base-client/components/common/XForm/XForm.vue +420 -420
  174. package/src/base-client/components/common/XForm/XFormItem.vue +1474 -1390
  175. package/src/base-client/components/common/XForm/XStatusButton.vue +54 -54
  176. package/src/base-client/components/common/XForm/XTreeSelect.vue +276 -276
  177. package/src/base-client/components/common/XForm/demo.vue +105 -105
  178. package/src/base-client/components/common/XForm/index.js +3 -3
  179. package/src/base-client/components/common/XForm/index.md +178 -178
  180. package/src/base-client/components/common/XForm/itemComponent/XClickChangeBtn/index.vue +49 -49
  181. package/src/base-client/components/common/XFormCol/XFormCol.vue +157 -157
  182. package/src/base-client/components/common/XFormCol/index.js +3 -3
  183. package/src/base-client/components/common/XFormCol/index.md +35 -35
  184. package/src/base-client/components/common/XFormGroup/XFormGroup.vue +301 -301
  185. package/src/base-client/components/common/XFormGroup/demo.vue +41 -41
  186. package/src/base-client/components/common/XFormGroup/index.js +3 -3
  187. package/src/base-client/components/common/XFormGroup/index.md +38 -38
  188. package/src/base-client/components/common/XFormGroupDetails/XFormGroupDetails.vue +72 -72
  189. package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
  190. package/src/base-client/components/common/XFormTable/XFormTable.vue +938 -938
  191. package/src/base-client/components/common/XFormTable/demo.vue +87 -87
  192. package/src/base-client/components/common/XFormTable/index.js +3 -3
  193. package/src/base-client/components/common/XFormTable/index.md +92 -92
  194. package/src/base-client/components/common/XImportExcel/XImportExcel.vue +174 -174
  195. package/src/base-client/components/common/XImportExcel/index.js +3 -3
  196. package/src/base-client/components/common/XImportExcel/index.md +38 -38
  197. package/src/base-client/components/common/XInput/XInput.vue +128 -128
  198. package/src/base-client/components/common/XInput/index.js +3 -3
  199. package/src/base-client/components/common/XInput/index.md +97 -97
  200. package/src/base-client/components/common/XIntervalPicker/XIntervalPicker.vue +121 -121
  201. package/src/base-client/components/common/XLabelSelect/XLabelSelect.vue +110 -110
  202. package/src/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue +35 -35
  203. package/src/base-client/components/common/XLicensePlate/XLicensePlate.vue +193 -193
  204. package/src/base-client/components/common/XLicensePlate/XLicensePlateDemo.vue +48 -48
  205. package/src/base-client/components/common/XLicensePlate/index.js +3 -3
  206. package/src/base-client/components/common/XLicensePlate/index.md +38 -38
  207. package/src/base-client/components/common/XPrint/Demo.vue +41 -41
  208. package/src/base-client/components/common/XPrint/OpenInvoice.vue +21 -21
  209. package/src/base-client/components/common/XPrint/PrintBill.vue +308 -308
  210. package/src/base-client/components/common/XPrint/PrintHtml.js +98 -98
  211. package/src/base-client/components/common/XPrint/css/hiPrintCss.js +359 -359
  212. package/src/base-client/components/common/XPrint/css/lodopCss.js +26 -26
  213. package/src/base-client/components/common/XPrint/css/print-lock.css +351 -351
  214. package/src/base-client/components/common/XPrint/index.vue +97 -97
  215. package/src/base-client/components/common/XRate/demo.vue +102 -102
  216. package/src/base-client/components/common/XRate/index.vue +149 -149
  217. package/src/base-client/components/common/XReport/XReport.vue +963 -963
  218. package/src/base-client/components/common/XReport/XReportDemo.vue +70 -70
  219. package/src/base-client/components/common/XReport/XReportDesign.vue +463 -463
  220. package/src/base-client/components/common/XReport/XReportJsonRender.vue +381 -381
  221. package/src/base-client/components/common/XReport/XReportTrGroup.vue +1005 -1005
  222. package/src/base-client/components/common/XReport/index.js +3 -3
  223. package/src/base-client/components/common/XReport/index.md +103 -103
  224. package/src/base-client/components/common/XReport/print.js +186 -186
  225. package/src/base-client/components/common/XReportDrawer/XReportDrawer.vue +201 -201
  226. package/src/base-client/components/common/XReportDrawer/index.js +3 -3
  227. package/src/base-client/components/common/XReportGrid/XReport.vue +1075 -1075
  228. package/src/base-client/components/common/XReportGrid/XReportDemo.vue +44 -44
  229. package/src/base-client/components/common/XReportGrid/XReportDesign.vue +620 -620
  230. package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +723 -723
  231. package/src/base-client/components/common/XReportGrid/index.js +3 -3
  232. package/src/base-client/components/common/XReportGrid/index.md +44 -44
  233. package/src/base-client/components/common/XReportGrid/print.js +184 -184
  234. package/src/base-client/components/common/XReportSlot/XReportSlot.vue +110 -110
  235. package/src/base-client/components/common/XReportSlot/index.js +3 -3
  236. package/src/base-client/components/common/XReportSlot/index.md +48 -48
  237. package/src/base-client/components/common/XSimpleDescriptions/XSimpleDescriptions.vue +166 -166
  238. package/src/base-client/components/common/XSimpleDescriptions/index.js +3 -3
  239. package/src/base-client/components/common/XSimpleDescriptions/index.md +7 -7
  240. package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
  241. package/src/base-client/components/common/XStepView/index.js +3 -3
  242. package/src/base-client/components/common/XStepView/index.md +31 -31
  243. package/src/base-client/components/common/XTab/XTab.vue +299 -299
  244. package/src/base-client/components/common/XTab/XTabDemo.vue +22 -22
  245. package/src/base-client/components/common/XTab/index.js +3 -3
  246. package/src/base-client/components/common/XTable/CustomFuncCel.vue +51 -51
  247. package/src/base-client/components/common/XTable/ExportExcel.vue +283 -283
  248. package/src/base-client/components/common/XTable/TableCellRenderer.vue +161 -161
  249. package/src/base-client/components/common/XTable/XTable.vue +1599 -1599
  250. package/src/base-client/components/common/XTable/XTableWrapper.vue +597 -597
  251. package/src/base-client/components/common/XTable/index.js +3 -3
  252. package/src/base-client/components/common/XTable/index.md +255 -255
  253. package/src/base-client/components/common/XTagGroup/index.vue +52 -52
  254. package/src/base-client/components/common/XTimeline/XTimeline.vue +358 -358
  255. package/src/base-client/components/common/XTimeline/index.md +191 -191
  256. package/src/base-client/components/common/XTree/XTree.vue +424 -424
  257. package/src/base-client/components/common/XTree/XTreePro.vue +450 -452
  258. package/src/base-client/components/common/XTree/index.js +3 -3
  259. package/src/base-client/components/common/XTree/index.md +36 -36
  260. package/src/base-client/components/common/XTreeOne/XTreeOne.vue +113 -113
  261. package/src/base-client/components/common/XTreeOne/XTreeOnePro.vue +128 -128
  262. package/src/base-client/components/common/XTreeOne/index.js +3 -3
  263. package/src/base-client/components/common/XUploadFilesView/index.vue +485 -485
  264. package/src/base-client/components/common/richTextModal/index.vue +56 -56
  265. package/src/base-client/components/common/richTextModal/richDemo.vue +48 -48
  266. package/src/base-client/components/his/XCharge/XCharge.vue +238 -238
  267. package/src/base-client/components/his/XCheckbox/XCheckbox.vue +105 -105
  268. package/src/base-client/components/his/XCheckbox/index.md +253 -253
  269. package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +430 -430
  270. package/src/base-client/components/his/XHDescriptions/index.md +217 -217
  271. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +629 -629
  272. package/src/base-client/components/his/XHisEditor/diagnosisAutocomplete.js +263 -263
  273. package/src/base-client/components/his/XHisEditor/index.js +3 -3
  274. package/src/base-client/components/his/XList/XList.vue +495 -495
  275. package/src/base-client/components/his/XQuestionnaire/XQuestionnaire.json +3 -3
  276. package/src/base-client/components/his/XQuestionnaire/XQuestionnaire.vue +106 -106
  277. package/src/base-client/components/his/XQuestionnaire/XQuestionnaireDemo.vue +51 -51
  278. package/src/base-client/components/his/XQuestionnaire/XQuestionnaireItem.vue +269 -269
  279. package/src/base-client/components/his/XRadio/XRadio.vue +125 -125
  280. package/src/base-client/components/his/XRadio/index.md +234 -234
  281. package/src/base-client/components/his/XSelect/XSelect.vue +72 -72
  282. package/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +234 -234
  283. package/src/base-client/components/his/XShiftSchedule/dome.vue +29 -29
  284. package/src/base-client/components/his/XSidebar/XSidebar.vue +240 -240
  285. package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
  286. package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +162 -162
  287. package/src/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue +23 -23
  288. package/src/base-client/components/his/XTitle/README.md +113 -113
  289. package/src/base-client/components/his/XTitle/XTitle.vue +123 -123
  290. package/src/base-client/components/his/XTreeRows/TreeNode.vue +107 -107
  291. package/src/base-client/components/his/XTreeRows/XTreeRows.vue +307 -307
  292. package/src/base-client/components/his/threeTestOrders/dome.vue +68 -68
  293. package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
  294. package/src/base-client/components/his/threeTestOrders/textBox.vue +457 -457
  295. package/src/base-client/components/his/threeTestOrders/threeTestOrders.vue +475 -475
  296. package/src/base-client/components/index.js +51 -51
  297. package/src/base-client/components/layout/XPageView/RenderRow.vue +88 -88
  298. package/src/base-client/components/layout/XPageView/XErrorView.vue +22 -22
  299. package/src/base-client/components/layout/XPageView/XPageRowTemplate.vue +37 -37
  300. package/src/base-client/components/layout/XPageView/XPageView.vue +223 -223
  301. package/src/base-client/components/layout/XPageView/XTab/XTab.vue +96 -96
  302. package/src/base-client/components/layout/XPageView/XTab/index.js +3 -3
  303. package/src/base-client/components/layout/XPageView/componentTypes.js +22 -22
  304. package/src/base-client/components/layout/XPageView/index.js +2 -2
  305. package/src/base-client/components/layout/XPageView/index.md +96 -96
  306. package/src/base-client/components/layout/XTreeView/XTreeView.vue +130 -130
  307. package/src/base-client/components/layout/XTreeView/index.js +3 -3
  308. package/src/base-client/components/layout/XTreeView/index.md +46 -46
  309. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
  310. package/src/base-client/components/system/DictionaryDetailsView/index.js +3 -3
  311. package/src/base-client/components/system/DictionaryDetailsView/index.md +41 -41
  312. package/src/base-client/components/system/LogDetailsView/LogDetailsView.vue +376 -376
  313. package/src/base-client/components/system/LogDetailsView/index.js +3 -3
  314. package/src/base-client/components/system/LogDetailsView/index.md +41 -41
  315. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  316. package/src/base-client/components/system/QueryParamsDetailsView/index.js +3 -3
  317. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  318. package/src/base-client/components/ticket/TicketDetailsView/index.js +3 -3
  319. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  320. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  321. package/src/base-client/components/ticket/TicketDetailsView/part/index.js +3 -3
  322. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  323. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.js +3 -3
  324. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  325. package/src/base-client/plugins/AppData.js +126 -126
  326. package/src/base-client/plugins/Config.js +19 -19
  327. package/src/base-client/plugins/GetLoginInfoService.js +183 -183
  328. package/src/base-client/plugins/PagedList.js +177 -177
  329. package/src/base-client/plugins/Recording.js +258 -258
  330. package/src/base-client/plugins/__tests__/selectValueTypeHelper.test.js +154 -0
  331. package/src/base-client/plugins/authority-plugin.js +167 -167
  332. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  333. package/src/base-client/plugins/i18n-extend.js +32 -32
  334. package/src/base-client/plugins/index.js +23 -23
  335. package/src/base-client/plugins/moment.js +8 -8
  336. package/src/base-client/plugins/selectValueTypeHelper.js +281 -0
  337. package/src/base-client/plugins/tabs-page-plugin.js +39 -39
  338. package/src/bootstrap.js +51 -51
  339. package/src/components/Charts/Bar.vue +62 -62
  340. package/src/components/Charts/ChartCard.vue +134 -134
  341. package/src/components/Charts/Liquid.vue +67 -67
  342. package/src/components/Charts/MiniArea.vue +39 -39
  343. package/src/components/Charts/MiniBar.vue +39 -39
  344. package/src/components/Charts/MiniProgress.vue +75 -75
  345. package/src/components/Charts/MiniSmoothArea.vue +40 -40
  346. package/src/components/Charts/Radar.vue +68 -68
  347. package/src/components/Charts/RankList.vue +77 -77
  348. package/src/components/Charts/TagCloud.vue +113 -113
  349. package/src/components/Charts/TransferBar.vue +64 -64
  350. package/src/components/Charts/Trend.vue +82 -82
  351. package/src/components/Charts/chart.less +12 -12
  352. package/src/components/Charts/smooth.area.less +13 -13
  353. package/src/components/CodeMirror/inedx.vue +118 -118
  354. package/src/components/CodeMirror/setting.js +40 -40
  355. package/src/components/Ellipsis/Ellipsis.vue +65 -65
  356. package/src/components/Ellipsis/index.js +3 -3
  357. package/src/components/Ellipsis/index.md +38 -38
  358. package/src/components/FileImageItem/FileItem.vue +320 -320
  359. package/src/components/FileImageItem/FileItemGroup.vue +197 -197
  360. package/src/components/FileImageItem/ImageItem.vue +107 -107
  361. package/src/components/FileImageItem/index.js +4 -4
  362. package/src/components/FilePreview/FilePreview.vue +181 -181
  363. package/src/components/FilePreview/FilePreviewDemo.vue +30 -30
  364. package/src/components/FilePreview/index.js +3 -3
  365. package/src/components/HeightScanner/index.vue +615 -615
  366. package/src/components/NumberInfo/NumberInfo.vue +54 -54
  367. package/src/components/NumberInfo/index.js +3 -3
  368. package/src/components/NumberInfo/index.less +54 -54
  369. package/src/components/NumberInfo/index.md +43 -43
  370. package/src/components/STable/README.md +341 -341
  371. package/src/components/STable/index.js +558 -558
  372. package/src/components/TableSetting/TableSetting.vue +143 -143
  373. package/src/components/TableSetting/index.js +3 -3
  374. package/src/components/Trend/Trend.vue +41 -41
  375. package/src/components/Trend/index.js +3 -3
  376. package/src/components/Trend/index.less +41 -41
  377. package/src/components/Trend/index.md +45 -45
  378. package/src/components/_util/util.js +46 -46
  379. package/src/components/cache/AKeepAlive.js +179 -179
  380. package/src/components/card/ChartCard.vue +79 -79
  381. package/src/components/chart/Bar.vue +60 -60
  382. package/src/components/chart/MiniArea.vue +67 -67
  383. package/src/components/chart/MiniBar.vue +59 -59
  384. package/src/components/chart/MiniProgress.vue +57 -57
  385. package/src/components/chart/Radar.vue +80 -80
  386. package/src/components/chart/RankingList.vue +60 -60
  387. package/src/components/chart/Trend.vue +79 -79
  388. package/src/components/chart/index.less +9 -9
  389. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  390. package/src/components/checkbox/ImgCheckbox.vue +117 -117
  391. package/src/components/checkbox/ImgCheckboxGroup.vue +76 -76
  392. package/src/components/checkbox/index.js +9 -9
  393. package/src/components/exception/ExceptionPage.vue +70 -70
  394. package/src/components/exception/typeConfig.js +19 -19
  395. package/src/components/form/FormRow.vue +52 -52
  396. package/src/components/g2Charts/constants.js +202 -202
  397. package/src/components/g2Charts/demo.vue +808 -808
  398. package/src/components/g2Charts/designer.vue +228 -228
  399. package/src/components/g2Charts/designerBaseConfig.vue +61 -61
  400. package/src/components/g2Charts/designerDataConfig.vue +259 -259
  401. package/src/components/g2Charts/designerStyleConfig.vue +16 -16
  402. package/src/components/g2Charts/index.vue +397 -397
  403. package/src/components/index.js +36 -36
  404. package/src/components/index.less +5 -5
  405. package/src/components/input/IInput.vue +66 -66
  406. package/src/components/menu/Contextmenu.vue +84 -84
  407. package/src/components/menu/SideMenu.vue +75 -75
  408. package/src/components/menu/index.less +38 -38
  409. package/src/components/menu/menu.js +273 -273
  410. package/src/components/page/header/PageHeader.vue +64 -64
  411. package/src/components/page/header/index.less +40 -40
  412. package/src/components/result/Result.vue +77 -77
  413. package/src/components/setting/Setting.vue +234 -234
  414. package/src/components/setting/SettingItem.vue +26 -26
  415. package/src/components/setting/i18n.js +117 -117
  416. package/src/components/table/StandardTable.vue +141 -141
  417. package/src/components/table/advance/ActionColumns.vue +158 -158
  418. package/src/components/table/advance/ActionSize.vue +45 -45
  419. package/src/components/table/advance/AdvanceTable.vue +275 -275
  420. package/src/components/table/advance/SearchArea.vue +355 -355
  421. package/src/components/table/advance/index.js +2 -2
  422. package/src/components/table/api/ApiTable.vue +50 -50
  423. package/src/components/task/TaskGroup.vue +80 -80
  424. package/src/components/task/TaskItem.vue +26 -26
  425. package/src/components/tool/AStepItem.vue +60 -60
  426. package/src/components/tool/AvatarList.vue +68 -68
  427. package/src/components/tool/DetailList.vue +157 -157
  428. package/src/components/tool/Drawer.vue +142 -142
  429. package/src/components/tool/FooterToolBar.vue +30 -30
  430. package/src/components/tool/HeadInfo.vue +35 -35
  431. package/src/components/tool/TagSelect.vue +83 -83
  432. package/src/components/tool/TagSelectOption.vue +33 -33
  433. package/src/components/transition/PageToggleTransition.vue +97 -97
  434. package/src/config/CreateQueryConfig.js +325 -325
  435. package/src/config/default/admin.config.js +18 -18
  436. package/src/config/default/animate.config.js +21 -21
  437. package/src/config/default/antd.config.js +89 -89
  438. package/src/config/default/index.js +6 -6
  439. package/src/config/default/setting.config.js +55 -55
  440. package/src/config/index.js +3 -3
  441. package/src/config/replacer/index.js +10 -10
  442. package/src/config/replacer/resolve.config.js +67 -67
  443. package/src/expression/ExpressionRunner.js +26 -26
  444. package/src/expression/TestExpression.js +509 -509
  445. package/src/expression/core/Delegate.js +115 -115
  446. package/src/expression/core/Expression.js +1358 -1358
  447. package/src/expression/core/Program.js +932 -932
  448. package/src/expression/core/Token.js +27 -27
  449. package/src/expression/enums/ExpressionType.js +81 -81
  450. package/src/expression/enums/TokenType.js +11 -11
  451. package/src/expression/exception/BreakWayException.js +2 -2
  452. package/src/expression/exception/ContinueWayException.js +2 -2
  453. package/src/expression/exception/ExpressionException.js +28 -28
  454. package/src/expression/exception/ReturnWayException.js +14 -14
  455. package/src/expression/exception/ServiceException.js +22 -22
  456. package/src/expression/instances/LogicConsole.js +44 -44
  457. package/src/expression/ts/ExpressionRunner.ts +28 -28
  458. package/src/expression/ts/TestExpression.ts +509 -509
  459. package/src/expression/ts/core/Delegate.ts +114 -114
  460. package/src/expression/ts/core/Expression.ts +1309 -1309
  461. package/src/expression/ts/core/Program.ts +950 -950
  462. package/src/expression/ts/core/Token.ts +29 -29
  463. package/src/expression/ts/enums/ExpressionType.ts +81 -81
  464. package/src/expression/ts/enums/TokenType.ts +13 -13
  465. package/src/expression/ts/exception/BreakWayException.ts +2 -2
  466. package/src/expression/ts/exception/ContinueWayException.ts +2 -2
  467. package/src/expression/ts/exception/ExpressionException.ts +28 -28
  468. package/src/expression/ts/exception/ReturnWayException.ts +14 -14
  469. package/src/expression/ts/exception/ServiceException.ts +22 -22
  470. package/src/expression/ts/instances/JSONArray.ts +48 -48
  471. package/src/expression/ts/instances/JSONObject.ts +109 -109
  472. package/src/expression/ts/instances/LogicConsole.ts +32 -32
  473. package/src/font-style/font.css +4 -4
  474. package/src/layouts/AdminLayout.vue +176 -176
  475. package/src/layouts/BlankView.vue +79 -79
  476. package/src/layouts/CommonLayout.vue +56 -56
  477. package/src/layouts/ComponentLayoutOne.vue +47 -47
  478. package/src/layouts/GridView.vue +43 -43
  479. package/src/layouts/PageLayout.vue +151 -151
  480. package/src/layouts/PageView.vue +55 -55
  481. package/src/layouts/SinglePageView.vue +136 -136
  482. package/src/layouts/footer/PageFooter.vue +49 -49
  483. package/src/layouts/header/AdminHeader.vue +132 -132
  484. package/src/layouts/header/HeaderAvatar.vue +64 -64
  485. package/src/layouts/header/HeaderNotice.vue +177 -177
  486. package/src/layouts/header/HeaderSearch.vue +67 -67
  487. package/src/layouts/header/InstitutionDetail.vue +181 -181
  488. package/src/layouts/header/index.less +92 -92
  489. package/src/layouts/tabs/TabsHead.vue +189 -189
  490. package/src/layouts/tabs/TabsView.vue +383 -383
  491. package/src/layouts/tabs/i18n.js +25 -25
  492. package/src/layouts/tabs/index.js +2 -2
  493. package/src/lib.js +1 -1
  494. package/src/logic/LogicRunner.js +62 -62
  495. package/src/logic/TestLogic.js +13 -13
  496. package/src/logic/plugins/common/DateTools.js +35 -35
  497. package/src/logic/plugins/common/VueTools.js +30 -30
  498. package/src/logic/plugins/index.js +7 -7
  499. package/src/logic/ts/LogicRunner.ts +67 -67
  500. package/src/logic/ts/TestLogic.ts +13 -13
  501. package/src/main.js +33 -33
  502. package/src/mixins/formValidationMixin.js +46 -46
  503. package/src/mock/common/activityData.js +32 -32
  504. package/src/mock/common/index.js +89 -89
  505. package/src/mock/common/reportData.js +20 -20
  506. package/src/mock/common/tableData.js +118 -118
  507. package/src/mock/extend/index.js +84 -84
  508. package/src/mock/goods/index.js +108 -108
  509. package/src/mock/index.js +12 -12
  510. package/src/mock/project/index.js +17 -17
  511. package/src/mock/user/current.js +13 -13
  512. package/src/mock/user/login.js +39 -39
  513. package/src/mock/user/routes.js +61 -61
  514. package/src/mock/workplace/index.js +15 -15
  515. package/src/pages/DefaultExample/index.vue +77 -77
  516. package/src/pages/DynamicStatistics/ChartSelector.vue +331 -331
  517. package/src/pages/DynamicStatistics/DataTabs.vue +83 -83
  518. package/src/pages/DynamicStatistics/DynamicTable.vue +128 -128
  519. package/src/pages/DynamicStatistics/EvaluationArea.vue +69 -69
  520. package/src/pages/DynamicStatistics/FavoriteList.vue +50 -50
  521. package/src/pages/DynamicStatistics/QuestionHistoryAndFavorites.vue +591 -591
  522. package/src/pages/DynamicStatistics/SearchBar.vue +192 -192
  523. package/src/pages/DynamicStatistics/index.vue +282 -282
  524. package/src/pages/Example/childIndex.vue +15 -15
  525. package/src/pages/Example/index.vue +30 -30
  526. package/src/pages/LogicCallExample/index.vue +46 -46
  527. package/src/pages/NewDynamicStatistics/ChartSelector.vue +331 -331
  528. package/src/pages/NewDynamicStatistics/DataTabs.vue +122 -122
  529. package/src/pages/NewDynamicStatistics/DynamicTable.vue +128 -128
  530. package/src/pages/NewDynamicStatistics/EvaluationArea.vue +69 -69
  531. package/src/pages/NewDynamicStatistics/FavoriteList.vue +50 -50
  532. package/src/pages/NewDynamicStatistics/QuestionHistoryAndFavorites.vue +289 -289
  533. package/src/pages/NewDynamicStatistics/SearchBar.vue +193 -193
  534. package/src/pages/NewDynamicStatistics/index.vue +258 -258
  535. package/src/pages/Recording/index.vue +77 -77
  536. package/src/pages/ReportGrid/index.vue +76 -76
  537. package/src/pages/ReportView.vue +50 -50
  538. package/src/pages/ServiceReview/index.vue +284 -284
  539. package/src/pages/SubExample/index.vue +26 -26
  540. package/src/pages/WorkflowDetail/WorkFlowDemo.vue +47 -47
  541. package/src/pages/WorkflowDetail/WorkFlowDemo2.vue +204 -204
  542. package/src/pages/WorkflowDetail/WorkFlowDemo3.vue +203 -225
  543. package/src/pages/WorkflowDetail/WorkflowDetail.vue +391 -391
  544. package/src/pages/WorkflowDetail/WorkflowPageDetail/LeaveMessage.vue +388 -388
  545. package/src/pages/WorkflowDetail/WorkflowPageDetail/TrimTextTail.vue +23 -23
  546. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +415 -415
  547. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformationDetails.vue +276 -276
  548. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +1766 -1766
  549. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandleReso.vue +975 -975
  550. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowPreview.vue +109 -109
  551. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowTimeline.vue +929 -929
  552. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkOrderParentDetails.vue +222 -222
  553. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowDetailResso.vue +243 -243
  554. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowListResolution.vue +248 -248
  555. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowLog.vue +188 -188
  556. package/src/pages/WorkflowDetail/WorkflowPageDetail/components/WorkflowPersonSelector.vue +109 -109
  557. package/src/pages/WorkflowDetail/WorkflowPageDetail/worklog.vue +97 -97
  558. package/src/pages/XPageViewExample/index.vue +149 -149
  559. package/src/pages/XReportView/index.vue +64 -64
  560. package/src/pages/XTreeOneProExample/index.vue +67 -67
  561. package/src/pages/addressSelect/addressDemo.vue +24 -24
  562. package/src/pages/addressSelect/index.vue +270 -270
  563. package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
  564. package/src/pages/dashboard/workplace/i18n.js +40 -40
  565. package/src/pages/dashboard/workplace/index.js +2 -2
  566. package/src/pages/dashboard/workplace/index.less +59 -59
  567. package/src/pages/exception/403.vue +21 -21
  568. package/src/pages/exception/404.vue +24 -24
  569. package/src/pages/exception/500.vue +21 -21
  570. package/src/pages/login/Login.vue +380 -380
  571. package/src/pages/login/LoginV3.vue +389 -389
  572. package/src/pages/login/index.js +2 -2
  573. package/src/pages/lowCode/lowCodeEditor.vue +1219 -1219
  574. package/src/pages/lowCode/lowCodeRenderPage.vue +43 -43
  575. package/src/pages/report/ReportTable.js +124 -124
  576. package/src/pages/report/ReportTableHome.vue +28 -28
  577. package/src/pages/resourceManage/depListManage.vue +23 -23
  578. package/src/pages/resourceManage/funListManage.vue +23 -23
  579. package/src/pages/resourceManage/index.js +15 -15
  580. package/src/pages/resourceManage/orgListManage.vue +98 -98
  581. package/src/pages/resourceManage/resourceManageMain.vue +57 -57
  582. package/src/pages/resourceManage/roleListManage.vue +23 -23
  583. package/src/pages/resourceManage/staffListManage.vue +23 -23
  584. package/src/pages/system/dictionary/index.vue +44 -44
  585. package/src/pages/system/file/Info.vue +56 -56
  586. package/src/pages/system/file/index.vue +317 -317
  587. package/src/pages/system/monitor/loginInfor/index.vue +37 -37
  588. package/src/pages/system/monitor/operLog/index.vue +37 -37
  589. package/src/pages/system/settings/index.vue +126 -126
  590. package/src/pages/system/settings/modifyPassword.vue +117 -117
  591. package/src/pages/system/ticket/index.vue +480 -480
  592. package/src/pages/system/ticket/submitTicketSuccess.vue +484 -484
  593. package/src/pages/userInfoDetailManage/ChangeMeterRecordQuery/index.vue +64 -64
  594. package/src/pages/userInfoDetailManage/FillCardRecordQuery/index.vue +77 -77
  595. package/src/pages/userInfoDetailManage/FillGasRecordQuery/index.vue +75 -75
  596. package/src/pages/userInfoDetailManage/InfoChangeRecordQuery/index.vue +64 -64
  597. package/src/pages/userInfoDetailManage/InstructRecordQuery/index.vue +64 -64
  598. package/src/pages/userInfoDetailManage/InsuranceDetailQuery/index.vue +64 -64
  599. package/src/pages/userInfoDetailManage/MachineRecordQuery/index.vue +75 -75
  600. package/src/pages/userInfoDetailManage/MeterParamRecordQuery/index.vue +64 -64
  601. package/src/pages/userInfoDetailManage/OtherChargeRecordQuery/index.vue +75 -75
  602. package/src/pages/userInfoDetailManage/PriceAdjustments/index.vue +64 -64
  603. package/src/pages/userInfoDetailManage/TransferRecordQuery/index.vue +66 -66
  604. package/src/pages/userInfoDetailManage/UserChargeRecordQuery/index.vue +94 -94
  605. package/src/pages/userInfoDetailManage/UserException/index.vue +64 -64
  606. package/src/pages/userInfoDetailManage/UserHandRecordQuery/index.vue +87 -87
  607. package/src/pages/userInfoDetailManage/UserRecordQuery/index.vue +74 -74
  608. package/src/pages/userInfoDetailManage/WatchCollectionRecordQuery/index.vue +64 -64
  609. package/src/pages/userInfoDetailManage/index.vue +290 -290
  610. package/src/pages/userInfoDetailManage/uploadFilesHistory/ImagePreview.vue +101 -101
  611. package/src/pages/userInfoDetailManage/uploadFilesHistory/index.vue +129 -129
  612. package/src/pages/userInfoDetailManage/userInfoDetailQueryTabs.vue +144 -144
  613. package/src/plugins/EventLogPlugin.js +33 -33
  614. package/src/plugins/FindParentsData.js +17 -17
  615. package/src/plugins/HiPrintPlugin.js +164 -164
  616. package/src/router/async/config.async.js +35 -35
  617. package/src/router/async/router.map.js +126 -130
  618. package/src/router/guards.js +262 -262
  619. package/src/router/i18n.js +57 -57
  620. package/src/router/index.js +27 -27
  621. package/src/router.js +17 -17
  622. package/src/services/DataModel.js +30 -30
  623. package/src/services/LodopFuncs.js +137 -137
  624. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  625. package/src/services/api/LogDetailsViewApi.js +10 -10
  626. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  627. package/src/services/api/TicketDetailsViewApi.js +46 -46
  628. package/src/services/api/cas.js +79 -79
  629. package/src/services/api/common.js +346 -346
  630. package/src/services/api/entity.js +18 -18
  631. package/src/services/api/index.js +17 -17
  632. package/src/services/api/logininfor/index.js +6 -6
  633. package/src/services/api/manage.js +8 -8
  634. package/src/services/api/restTools.js +215 -215
  635. package/src/services/api/workFlow.js +57 -57
  636. package/src/services/apiService.js +16 -16
  637. package/src/services/dataSource.js +12 -12
  638. package/src/services/index.js +7 -7
  639. package/src/services/user.js +92 -92
  640. package/src/services/v3Api.js +116 -116
  641. package/src/store/index.js +5 -5
  642. package/src/store/modules/account.js +115 -115
  643. package/src/store/modules/index.js +5 -5
  644. package/src/store/modules/lowCode.js +33 -33
  645. package/src/store/modules/setting.js +119 -119
  646. package/src/store/mutation-types.js +4 -4
  647. package/src/theme/antd/ant-menu.less +2 -2
  648. package/src/theme/antd/ant-message.less +3 -3
  649. package/src/theme/antd/ant-table.less +22 -22
  650. package/src/theme/antd/ant-time-picker.less +3 -3
  651. package/src/theme/antd/index.less +3 -3
  652. package/src/theme/default/color.less +43 -43
  653. package/src/theme/default/index.less +3 -3
  654. package/src/theme/default/nprogress.less +76 -76
  655. package/src/theme/default/style.less +58 -58
  656. package/src/theme/global.less +279 -279
  657. package/src/theme/index.less +5 -5
  658. package/src/theme/reportTable.less +58 -58
  659. package/src/theme/theme.less +1 -1
  660. package/src/utils/EncryptUtil.js +162 -162
  661. package/src/utils/Objects.js +25 -25
  662. package/src/utils/authority-utils.js +85 -85
  663. package/src/utils/axios-interceptors.js +100 -100
  664. package/src/utils/colors.js +107 -107
  665. package/src/utils/common.js +10 -10
  666. package/src/utils/errorCode.js +6 -6
  667. package/src/utils/excel/Blob.js +180 -180
  668. package/src/utils/excel/Export2Excel.js +141 -141
  669. package/src/utils/filter.js +21 -21
  670. package/src/utils/formatter.js +74 -74
  671. package/src/utils/htmlToPDF.js +108 -108
  672. package/src/utils/htmlToPDFApi.js +5 -5
  673. package/src/utils/i18n.js +80 -80
  674. package/src/utils/indexedDB.js +549 -549
  675. package/src/utils/login.js +188 -188
  676. package/src/utils/lowcode/lowcodeComponentMixin.js +120 -120
  677. package/src/utils/lowcode/lowcodeLog.js +29 -29
  678. package/src/utils/lowcode/lowcodeUtils.js +373 -373
  679. package/src/utils/lowcode/registerComponentForEditor.js +1 -1
  680. package/src/utils/lowcode/registerComponentForRender.js +11 -11
  681. package/src/utils/map-utils.js +47 -47
  682. package/src/utils/microAppUtils.js +49 -49
  683. package/src/utils/reg.js +95 -95
  684. package/src/utils/request.js +395 -395
  685. package/src/utils/routerUtil.js +553 -553
  686. package/src/utils/runEvalFunction.js +14 -14
  687. package/src/utils/theme-color-replacer-extend.js +92 -92
  688. package/src/utils/themeUtil.js +100 -100
  689. package/src/utils/util.js +329 -329
  690. package/src/utils/waterMark.js +31 -31
  691. package/test/Tree.spec.js +168 -168
  692. package/test/myDialog.spec.js +47 -47
  693. package/test/request.test.js +17 -17
  694. package/test/util.test.js +53 -53
  695. package/test/v3Api.test.js +1984 -1984
  696. package/tests/unit/ReportTable.spec.js +16 -16
  697. package/vue.config.js +222 -222
  698. package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
@@ -1,1984 +1,1984 @@
1
- /* eslint-env jest */
2
- import { searchToListOption } from '@vue2-client/services/v3Api'
3
- import mockjs from 'mockjs'
4
- import { describe, it, jest } from '@jest/globals' // Correct way to import mockjs
5
-
6
- jest.mock('@vue2-client/utils/request', () => ({
7
- request: jest.fn(),
8
- }))
9
-
10
- jest.mock('@vue2-client/services/api/common', () => ({
11
- runLogic: jest.fn(),
12
- }))
13
-
14
- describe('searchToOption', () => {
15
- it('should transform data correctly when response has nested children', async () => {
16
- const params = { source: '获取部门', userid: '123', roleName: 'admin' }
17
- const mockResponse = mockjs.mock([
18
- {
19
- hasright: false,
20
- resourcetype: 'root',
21
- entitytype: 't_root',
22
- children: [
23
- {
24
- parentname: '资源管理',
25
- f_icon: 'tree_org',
26
- hasright: false,
27
- f_companylevel: '',
28
- resourcetype: 'organization',
29
- parentid: '3',
30
- number: '1',
31
- entitytype: 't_organization',
32
- f_description: '根组织',
33
- children: [
34
- {
35
- f_update_date: '2024-10-16 17:04:20',
36
- loginid: '15',
37
- parentname: '组织机构',
38
- f_icon: 'tree_org',
39
- hasright: false,
40
- f_companylevel: '',
41
- resourcetype: 'organization',
42
- parentid: '9',
43
- number: '',
44
- entitytype: 't_organization',
45
- f_description: 'standard_windows QBJYangChun',
46
- children: [
47
- {
48
- f_dep_type: '营业厅',
49
- f_update_date: '2023-09-08 18:54:17',
50
- loginid: '124748',
51
- parentname: '铜川天然气有限公司',
52
- hasright: true,
53
- f_remark: '',
54
- resourcetype: 'department',
55
- parentid: '37710',
56
- entitytype: 't_department',
57
- f_dep_id: '1111',
58
- f_description: '',
59
- oname: '中海石油气电集团有限责任公司测试',
60
- children: [
61
- {
62
- f_dep_type: '部门',
63
- f_update_date: '2023-08-30 22:59:51',
64
- loginid: '122138',
65
- parentname: '蜜雪冰城',
66
- hasright: true,
67
- f_remark: '',
68
- resourcetype: 'department',
69
- parentid: '218072726122921986',
70
- entitytype: 't_department',
71
- f_dep_id: '1111111',
72
- f_description: '',
73
- oname: '蜜雪冰城',
74
- children: [],
75
- f_create_date: '2023-08-29 11:10:14',
76
- f_ldap_version: 25,
77
- name: '测试',
78
- selfid: '219413330547310593',
79
- id: '219413330547310594',
80
- position: 2,
81
- fullname: '资源管理.组织机构.铜川天然气有限公司.蜜雪冰城.测试',
82
- fullid: '3.9.37710.218072726122921986.219413330547310594',
83
- tablename: 't_department',
84
- haslicense: 'false'
85
- }
86
- ],
87
- f_create_date: '2023-08-25 18:23:09',
88
- f_ldap_version: 20,
89
- name: '蜜雪冰城',
90
- selfid: '218072726122921985',
91
- id: '218072726122921986',
92
- position: 2,
93
- fullname: '资源管理.组织机构.铜川天然气有限公司.蜜雪冰城',
94
- fullid: '3.9.37710.218072726122921986',
95
- tablename: 't_department',
96
- haslicense: 'false'
97
- },
98
- {
99
- parentname: '铜川天然气有限公司',
100
- f_icon: 'null',
101
- f_remark: '',
102
- parentid: '37710',
103
- f_dep_id: '001',
104
- onumber: '',
105
- children: [],
106
- selfid: '45501',
107
- templatename: 'null',
108
- id: '45500',
109
- fullid: '3.9.37710.45500',
110
- tablename: 't_department',
111
- f_dep_type: '营业厅',
112
- f_update_date: '2024-01-02 09:56:17',
113
- loginid: '15',
114
- hasright: true,
115
- resourcetype: 'department',
116
- entitytype: 't_department',
117
- f_description: '',
118
- oname: '乌海凯洁燃气有限责任公司',
119
- f_ldap_version: 70,
120
- name: '滨河营业厅',
121
- position: 4,
122
- fullname: '资源管理.组织机构.铜川天然气有限公司.滨河营业厅',
123
- haslicense: 'false'
124
- },
125
- {
126
- f_dep_type: '营业厅',
127
- loginid: '15',
128
- parentname: '铜川天然气有限公司',
129
- f_icon: 'null',
130
- hasright: true,
131
- f_remark: '',
132
- resourcetype: 'department',
133
- parentid: '37710',
134
- entitytype: 't_department',
135
- f_dep_id: '003',
136
- onumber: '',
137
- f_description: '',
138
- oname: '乌海凯洁燃气有限责任公司',
139
- children: [],
140
- f_ldap_version: 12,
141
- name: '海南营业厅',
142
- selfid: '45529',
143
- templatename: 'null',
144
- id: '45528',
145
- position: 6,
146
- fullname: '资源管理.组织机构.铜川天然气有限公司.海南营业厅',
147
- fullid: '3.9.37710.45528',
148
- tablename: 't_department',
149
- haslicense: 'true'
150
- },
151
- {
152
- f_dep_type: '部门',
153
- loginid: '15',
154
- parentname: '铜川天然气有限公司',
155
- f_icon: 'null',
156
- hasright: true,
157
- f_remark: '',
158
- resourcetype: 'department',
159
- parentid: '37710',
160
- entitytype: 't_department',
161
- f_dep_id: '004',
162
- onumber: '',
163
- f_description: '',
164
- oname: '乌海凯洁燃气有限责任公司',
165
- children: [],
166
- f_ldap_version: 4,
167
- name: '海南政务大厅',
168
- selfid: '45535',
169
- templatename: 'null',
170
- id: '45534',
171
- position: 7,
172
- fullname: '资源管理.组织机构.铜川天然气有限公司.海南政务大厅',
173
- fullid: '3.9.37710.45534',
174
- tablename: 't_department',
175
- haslicense: 'true'
176
- },
177
- {
178
- f_dep_type: '营业厅',
179
- loginid: '15',
180
- parentname: '铜川天然气有限公司',
181
- f_icon: 'null',
182
- hasright: true,
183
- f_remark: '',
184
- resourcetype: 'department',
185
- parentid: '37710',
186
- entitytype: 't_department',
187
- f_dep_id: '005',
188
- onumber: '',
189
- f_description: '',
190
- oname: '乌海凯洁燃气有限责任公司',
191
- children: [],
192
- f_ldap_version: 2,
193
- name: '乌达营业厅',
194
- selfid: '45541',
195
- templatename: 'null',
196
- id: '45540',
197
- position: 8,
198
- fullname: '资源管理.组织机构.铜川天然气有限公司.乌达营业厅',
199
- fullid: '3.9.37710.45540',
200
- tablename: 't_department',
201
- haslicense: 'true'
202
- },
203
- {
204
- f_dep_type: '营业厅',
205
- loginid: '15',
206
- parentname: '铜川天然气有限公司',
207
- f_icon: 'null',
208
- hasright: true,
209
- f_remark: '',
210
- resourcetype: 'department',
211
- parentid: '37710',
212
- entitytype: 't_department',
213
- f_dep_id: '006',
214
- onumber: '',
215
- f_description: '',
216
- oname: '乌海凯洁燃气有限责任公司',
217
- children: [],
218
- name: '乌达政务大厅',
219
- selfid: '45547',
220
- templatename: 'null',
221
- id: '45546',
222
- position: 9,
223
- fullname: '资源管理.组织机构.铜川天然气有限公司.乌达政务大厅',
224
- fullid: '3.9.37710.45546',
225
- tablename: 't_department',
226
- haslicense: 'true'
227
- },
228
- {
229
- parentname: '铜川天然气有限公司',
230
- f_icon: 'null',
231
- f_remark: '',
232
- parentid: '37710',
233
- f_dep_id: '007',
234
- onumber: '',
235
- children: [],
236
- selfid: '59877',
237
- templatename: 'null',
238
- id: '59876',
239
- fullid: '3.9.37710.59876',
240
- tablename: 't_department',
241
- f_dep_type: '部门',
242
- f_update_date: '2023-07-24 09:38:59',
243
- loginid: '15',
244
- hasright: true,
245
- resourcetype: 'department',
246
- entitytype: 't_department',
247
- f_description: '',
248
- oname: '巩义市燃气有限公司',
249
- f_ldap_version: 25,
250
- name: '客服中心1',
251
- position: 13,
252
- fullname: '资源管理.组织机构.铜川天然气有限公司.客服中心1',
253
- haslicense: 'false'
254
- },
255
- {
256
- f_dep_type: '部门',
257
- loginid: '60530',
258
- parentname: '铜川天然气有限公司',
259
- hasright: true,
260
- f_remark: '',
261
- resourcetype: 'department',
262
- parentid: '37710',
263
- entitytype: 't_department',
264
- f_dep_id: '008',
265
- f_description: '',
266
- oname: '乌海凯洁燃气有限责任公司',
267
- children: [],
268
- f_ldap_version: 2,
269
- name: '城网中心',
270
- selfid: '65856',
271
- id: '65855',
272
- position: 14,
273
- fullname: '资源管理.组织机构.铜川天然气有限公司.城网中心',
274
- fullid: '3.9.37710.65855',
275
- tablename: 't_department',
276
- haslicense: 'true'
277
- },
278
- {
279
- f_dep_type: '部门',
280
- f_update_date: '2023-07-24 09:48:50',
281
- loginid: '124748',
282
- parentname: '铜川天然气有限公司',
283
- hasright: true,
284
- f_remark: '',
285
- resourcetype: 'department',
286
- parentid: '37710',
287
- entitytype: 't_department',
288
- f_dep_id: '1025',
289
- f_description: '',
290
- oname: '巩义市燃气有限公司',
291
- children: [],
292
- f_create_date: '2023-07-24 09:39:21',
293
- f_ldap_version: 25,
294
- name: '客服中心',
295
- selfid: '206344495946661889',
296
- id: '206344495946661890',
297
- position: 46,
298
- fullname: '资源管理.组织机构.铜川天然气有限公司.客服中心',
299
- fullid: '3.9.37710.206344495946661890',
300
- tablename: 't_department',
301
- haslicense: 'true'
302
- },
303
- {
304
- f_dep_type: '部门',
305
- f_update_date: '2023-12-15 10:00:03',
306
- loginid: '122138',
307
- parentname: '铜川天然气有限公司',
308
- hasright: true,
309
- f_remark: '',
310
- resourcetype: 'department',
311
- parentid: '37710',
312
- entitytype: 't_department',
313
- f_dep_id: '1314523',
314
- f_description: '',
315
- oname: ' 安康逸华天然气有限公司',
316
- children: [],
317
- f_create_date: '2023-12-15 09:51:36',
318
- f_ldap_version: 7,
319
- name: '安检部',
320
- selfid: '258531431813349377',
321
- id: '258531431813349378',
322
- position: 51,
323
- fullname: '资源管理.组织机构.铜川天然气有限公司.安检部',
324
- fullid: '3.9.37710.258531431813349378',
325
- tablename: 't_department',
326
- haslicense: 'false'
327
- },
328
- {
329
- f_dep_type: '部门',
330
- f_update_date: '2024-07-19 11:43:14',
331
- loginid: '15',
332
- parentname: '铜川天然气有限公司',
333
- hasright: true,
334
- f_remark: '',
335
- resourcetype: 'department',
336
- parentid: '37710',
337
- entitytype: 't_department',
338
- f_dep_id: 'jypx',
339
- f_description: '',
340
- oname: '铜川天然气有限公司',
341
- children: [
342
- {
343
- f_dep_type: '部门',
344
- f_update_date: '2024-07-19 11:42:33',
345
- loginid: '15',
346
- parentname: '教育培训中心',
347
- hasright: true,
348
- f_remark: '',
349
- resourcetype: 'department',
350
- parentid: '337197440237174786',
351
- entitytype: 't_department',
352
- f_dep_id: 'kf',
353
- f_description: '',
354
- oname: '教育培训部',
355
- children: [],
356
- f_create_date: '2024-07-19 11:42:33',
357
- f_ldap_version: 4,
358
- name: '开发部',
359
- selfid: '337197520834920449',
360
- id: '337197520834920450',
361
- position: 1,
362
- fullname: '资源管理.组织机构.铜川天然气有限公司.教育培训中心.开发部',
363
- fullid: '3.9.37710.337197440237174786.337197520834920450',
364
- tablename: 't_department',
365
- haslicense: 'false'
366
- },
367
- {
368
- f_dep_type: '部门',
369
- f_update_date: '2024-07-19 11:42:56',
370
- loginid: '15',
371
- parentname: '教育培训中心',
372
- hasright: true,
373
- f_remark: '',
374
- resourcetype: 'department',
375
- parentid: '337197440237174786',
376
- entitytype: 't_department',
377
- f_dep_id: 'xm',
378
- f_description: '',
379
- oname: '教育培训部',
380
- children: [],
381
- f_create_date: '2024-07-19 11:42:56',
382
- f_ldap_version: 4,
383
- name: '项目部',
384
- selfid: '337197616142090241',
385
- id: '337197616142090242',
386
- position: 2,
387
- fullname: '资源管理.组织机构.铜川天然气有限公司.教育培训中心.项目部',
388
- fullid: '3.9.37710.337197440237174786.337197616142090242',
389
- tablename: 't_department',
390
- haslicense: 'false'
391
- },
392
- {
393
- f_dep_type: '部门',
394
- f_update_date: '2024-07-19 11:44:22',
395
- loginid: '15',
396
- parentname: '教育培训中心',
397
- hasright: true,
398
- f_remark: '',
399
- resourcetype: 'department',
400
- parentid: '337197440237174786',
401
- entitytype: 't_department',
402
- f_dep_id: 'xueyuan',
403
- f_description: '',
404
- oname: '教育培训中心',
405
- children: [],
406
- f_create_date: '2024-07-19 11:44:22',
407
- f_ldap_version: 6,
408
- name: '学员',
409
- selfid: '337197976491524097',
410
- id: '337197976491524098',
411
- position: 4,
412
- fullname: '资源管理.组织机构.铜川天然气有限公司.教育培训中心.学员',
413
- fullid: '3.9.37710.337197440237174786.337197976491524098',
414
- tablename: 't_department',
415
- haslicense: 'false'
416
- }
417
- ],
418
- f_create_date: '2024-07-19 11:42:14',
419
- f_ldap_version: 13,
420
- name: '教育培训中心',
421
- selfid: '337197440237174785',
422
- id: '337197440237174786',
423
- position: 63,
424
- fullname: '资源管理.组织机构.铜川天然气有限公司.教育培训中心',
425
- fullid: '3.9.37710.337197440237174786',
426
- tablename: 't_department',
427
- haslicense: 'false'
428
- }
429
- ],
430
- f_ldap_version: 181,
431
- name: '铜川天然气有限公司',
432
- selfid: '37711',
433
- templatename: 'organizationedit',
434
- id: '37710',
435
- position: 2,
436
- fullname: '资源管理.组织机构.铜川天然气有限公司',
437
- fullid: '3.9.37710',
438
- tablename: 't_organization',
439
- f_dir: 'standard'
440
- },
441
- {
442
- f_update_date: '2024-11-01 09:42:50',
443
- loginid: '15',
444
- parentname: '组织机构',
445
- f_serailport: '',
446
- f_icon: 'tree_org',
447
- hasright: false,
448
- f_companylevel: '',
449
- resourcetype: 'organization',
450
- parentid: '9',
451
- number: '123',
452
- entitytype: 't_organization',
453
- f_description: '',
454
- children: [
455
- {
456
- f_update_date: '2024-11-07 11:27:36',
457
- loginid: '15',
458
- parentname: 'LNG商贸公司',
459
- f_serailport: '',
460
- f_icon: 'tree_org',
461
- hasright: false,
462
- f_companylevel: '',
463
- resourcetype: 'organization',
464
- parentid: '130566',
465
- number: '12',
466
- entitytype: 't_organization',
467
- f_description: '',
468
- children: [
469
- {
470
- f_dep_type: '部门',
471
- f_update_date: '2024-11-08 17:09:50',
472
- loginid: '15',
473
- parentname: '商贸公司',
474
- hasright: true,
475
- f_remark: '',
476
- resourcetype: 'department',
477
- parentid: '130568',
478
- f_organization_id: '130566',
479
- entitytype: 't_department',
480
- f_dep_id: '测试',
481
- f_description: '',
482
- oname: '测试1',
483
- children: [],
484
- f_create_date: '2023-04-06 15:38:45',
485
- f_ldap_version: 8,
486
- name: '测试部门',
487
- selfid: '130571',
488
- id: '130570',
489
- position: 1,
490
- fullname: '资源管理.组织机构.LNG商贸公司.商贸公司.测试部门',
491
- fullid: '3.9.130566.130568.130570',
492
- tablename: 't_department',
493
- haslicense: 'false'
494
- },
495
- {
496
- f_dep_type: '部门',
497
- f_update_date: '2024-11-07 11:28:06',
498
- loginid: '15',
499
- parentname: '商贸公司',
500
- hasright: true,
501
- f_remark: '',
502
- resourcetype: 'department',
503
- parentid: '130568',
504
- f_organization_id: '130566',
505
- entitytype: 't_department',
506
- f_dep_id: '123',
507
- f_description: '',
508
- oname: '商贸公司',
509
- children: [],
510
- f_create_date: '2024-11-07 11:28:06',
511
- f_ldap_version: 4,
512
- name: '财务',
513
- selfid: '377418936238604289',
514
- id: '377418936238604290',
515
- position: 4,
516
- fullname: '资源管理.组织机构.LNG商贸公司.商贸公司.财务',
517
- fullid: '3.9.130566.130568.377418936238604290',
518
- tablename: 't_department',
519
- haslicense: 'false'
520
- }
521
- ],
522
- f_create_date: '2023-04-06 15:34:59',
523
- f_ldap_version: 5,
524
- name: '商贸公司',
525
- selfid: '130569',
526
- templatename: 'organizationedit',
527
- id: '130568',
528
- position: 1,
529
- fullname: '资源管理.组织机构.LNG商贸公司.商贸公司',
530
- fullid: '3.9.130566.130568',
531
- tablename: 't_organization',
532
- f_dir: 'standard'
533
- }
534
- ],
535
- f_create_date: '2023-04-06 15:34:33',
536
- f_ldap_version: 8,
537
- name: 'LNG商贸公司',
538
- selfid: '130567',
539
- templatename: 'organizationedit',
540
- id: '130566',
541
- position: 5,
542
- fullname: '资源管理.组织机构.LNG商贸公司',
543
- fullid: '3.9.130566',
544
- tablename: 't_organization',
545
- f_dir: 'standard'
546
- },
547
- {
548
- f_update_date: '2023-06-28 15:23:19',
549
- loginid: '15',
550
- parentname: '组织机构',
551
- f_serailport: '',
552
- f_icon: 'tree_org',
553
- hasright: false,
554
- f_companylevel: '',
555
- resourcetype: 'organization',
556
- parentid: '9',
557
- entitytype: 't_organization',
558
- f_description: '',
559
- children: [
560
- {
561
- f_dep_type: '部门',
562
- f_update_date: '2023-06-28 15:23:37',
563
- loginid: '15',
564
- parentname: '测试',
565
- hasright: true,
566
- f_remark: '',
567
- resourcetype: 'department',
568
- parentid: '197008974028079106',
569
- entitytype: 't_department',
570
- f_dep_id: '1211',
571
- f_description: '',
572
- oname: '测试',
573
- children: [],
574
- f_create_date: '2023-06-28 15:23:37',
575
- f_ldap_version: 8,
576
- name: '测试',
577
- selfid: '197009050406354945',
578
- id: '197009050406354946',
579
- position: 1,
580
- fullname: '资源管理.组织机构.测试.测试',
581
- fullid: '3.9.197008974028079106.197009050406354946',
582
- tablename: 't_department',
583
- haslicense: 'false'
584
- }
585
- ],
586
- f_create_date: '2023-06-28 15:23:19',
587
- f_ldap_version: 6,
588
- name: '测试',
589
- selfid: '197008974028079105',
590
- templatename: 'organizationedit',
591
- id: '197008974028079106',
592
- position: 6,
593
- fullname: '资源管理.组织机构.测试',
594
- fullid: '3.9.197008974028079106',
595
- tablename: 't_organization',
596
- f_dir: 'standard'
597
- },
598
- {
599
- f_update_date: '2023-08-18 10:01:37',
600
- loginid: '15',
601
- parentname: '组织机构',
602
- f_serailport: '',
603
- f_icon: 'tree_org',
604
- hasright: false,
605
- f_companylevel: '',
606
- resourcetype: 'organization',
607
- parentid: '9',
608
- entitytype: 't_organization',
609
- f_description: '',
610
- children: [
611
- {
612
- f_update_date: '2023-08-18 10:01:51',
613
- loginid: '15',
614
- parentname: '山西民生然气有限公司',
615
- f_serailport: '',
616
- f_icon: 'tree_org',
617
- hasright: false,
618
- f_companylevel: '',
619
- resourcetype: 'organization',
620
- parentid: '215409797858721794',
621
- entitytype: 't_organization',
622
- f_description: '',
623
- children: [
624
- {
625
- f_dep_type: '部门',
626
- f_update_date: '2023-08-18 10:02:28',
627
- loginid: '15',
628
- parentname: '运城民生然气有限公司',
629
- hasright: true,
630
- f_remark: '',
631
- resourcetype: 'department',
632
- parentid: '215409854339219458',
633
- entitytype: 't_department',
634
- f_dep_id: '1000111',
635
- f_description: '',
636
- oname: '运城民生然气有限公司',
637
- children: [],
638
- f_create_date: '2023-08-18 10:02:28',
639
- f_ldap_version: 4,
640
- name: '运城民生信息部',
641
- selfid: '215410011734671361',
642
- id: '215410011734671362',
643
- position: 2,
644
- fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.运城民生信息部',
645
- fullid: '3.9.215409797858721794.215409854339219458.215410011734671362',
646
- tablename: 't_department',
647
- haslicense: 'true'
648
- },
649
- {
650
- f_dep_type: '部门',
651
- f_update_date: '2023-08-18 12:24:34',
652
- loginid: '15',
653
- parentname: '运城民生然气有限公司',
654
- hasright: true,
655
- f_remark: '',
656
- resourcetype: 'department',
657
- parentid: '215409854339219458',
658
- entitytype: 't_department',
659
- f_dep_id: '10001111',
660
- f_description: '',
661
- oname: '运城民生然气有限公司',
662
- children: [],
663
- f_create_date: '2023-08-18 12:24:34',
664
- f_ldap_version: 4,
665
- name: '营业厅',
666
- selfid: '215445771426856961',
667
- id: '215445771426856962',
668
- position: 4,
669
- fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.营业厅',
670
- fullid: '3.9.215409797858721794.215409854339219458.215445771426856962',
671
- tablename: 't_department',
672
- haslicense: 'true'
673
- },
674
- {
675
- f_dep_type: '部门',
676
- f_update_date: '2023-08-18 12:25:41',
677
- loginid: '15',
678
- parentname: '运城民生然气有限公司',
679
- hasright: true,
680
- f_remark: '',
681
- resourcetype: 'department',
682
- parentid: '215409854339219458',
683
- entitytype: 't_department',
684
- f_dep_id: '123123',
685
- f_description: '',
686
- oname: '运城民生然气有限公司',
687
- children: [],
688
- f_create_date: '2023-08-18 12:25:41',
689
- f_ldap_version: 4,
690
- name: '安检部',
691
- selfid: '215446052344561665',
692
- id: '215446052344561666',
693
- position: 5,
694
- fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.安检部',
695
- fullid: '3.9.215409797858721794.215409854339219458.215446052344561666',
696
- tablename: 't_department',
697
- haslicense: 'true'
698
- },
699
- {
700
- f_dep_type: '部门',
701
- f_update_date: '2023-08-18 12:26:00',
702
- loginid: '15',
703
- parentname: '运城民生然气有限公司',
704
- hasright: true,
705
- f_remark: '',
706
- resourcetype: 'department',
707
- parentid: '215409854339219458',
708
- entitytype: 't_department',
709
- f_dep_id: '12312313',
710
- f_description: '',
711
- oname: '运城民生然气有限公司',
712
- children: [],
713
- f_create_date: '2023-08-18 12:26:00',
714
- f_ldap_version: 4,
715
- name: '抄表部',
716
- selfid: '215446129381343233',
717
- id: '215446129381343234',
718
- position: 6,
719
- fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.抄表部',
720
- fullid: '3.9.215409797858721794.215409854339219458.215446129381343234',
721
- tablename: 't_department',
722
- haslicense: 'true'
723
- },
724
- {
725
- f_dep_type: '部门',
726
- f_update_date: '2023-08-18 12:26:20',
727
- loginid: '15',
728
- parentname: '运城民生然气有限公司',
729
- hasright: true,
730
- f_remark: '',
731
- resourcetype: 'department',
732
- parentid: '215409854339219458',
733
- entitytype: 't_department',
734
- f_dep_id: '12313',
735
- f_description: '',
736
- oname: '运城民生然气有限公司',
737
- children: [],
738
- f_create_date: '2023-08-18 12:26:20',
739
- f_ldap_version: 4,
740
- name: '呼叫部',
741
- selfid: '215446216610283521',
742
- id: '215446216610283522',
743
- position: 7,
744
- fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.呼叫部',
745
- fullid: '3.9.215409797858721794.215409854339219458.215446216610283522',
746
- tablename: 't_department',
747
- haslicense: 'true'
748
- }
749
- ],
750
- f_create_date: '2023-08-18 10:01:51',
751
- f_ldap_version: 18,
752
- name: '运城民生然气有限公司',
753
- selfid: '215409854339219457',
754
- templatename: 'organizationedit',
755
- id: '215409854339219458',
756
- position: 1,
757
- fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司',
758
- fullid: '3.9.215409797858721794.215409854339219458',
759
- tablename: 't_organization',
760
- f_dir: 'standard'
761
- }
762
- ],
763
- f_create_date: '2023-08-18 10:01:37',
764
- f_ldap_version: 5,
765
- name: '山西民生然气有限公司',
766
- selfid: '215409797858721793',
767
- templatename: 'organizationedit',
768
- id: '215409797858721794',
769
- position: 8,
770
- fullname: '资源管理.组织机构.山西民生然气有限公司',
771
- fullid: '3.9.215409797858721794',
772
- tablename: 't_organization',
773
- f_dir: 'standard'
774
- },
775
- {
776
- f_update_date: '2023-09-13 10:29:31',
777
- loginid: '15',
778
- parentname: '组织机构',
779
- f_serailport: '',
780
- f_icon: 'tree_org',
781
- hasright: false,
782
- f_companylevel: '',
783
- resourcetype: 'organization',
784
- parentid: '9',
785
- entitytype: 't_organization',
786
- f_description: '',
787
- children: [
788
- {
789
- f_dep_type: '部门',
790
- f_update_date: '2023-09-13 10:32:52',
791
- loginid: '15',
792
- parentname: '湖北利川靓力能源',
793
- hasright: true,
794
- f_remark: '',
795
- resourcetype: 'department',
796
- parentid: '224838903595663362',
797
- entitytype: 't_department',
798
- f_dep_id: '0913',
799
- f_description: '',
800
- oname: '湖北利川靓力能源',
801
- children: [],
802
- f_create_date: '2023-09-13 10:32:52',
803
- f_ldap_version: 4,
804
- name: '利川管理部',
805
- selfid: '224839744440369153',
806
- id: '224839744440369154',
807
- position: 2,
808
- fullname: '资源管理.组织机构.湖北利川靓力能源.利川管理部',
809
- fullid: '3.9.224838903595663362.224839744440369154',
810
- tablename: 't_department',
811
- haslicense: 'false'
812
- }
813
- ],
814
- f_create_date: '2023-09-13 10:29:31',
815
- f_ldap_version: 5,
816
- name: '湖北利川靓力能源',
817
- selfid: '224838903595663361',
818
- templatename: 'organizationedit',
819
- id: '224838903595663362',
820
- position: 9,
821
- fullname: '资源管理.组织机构.湖北利川靓力能源',
822
- fullid: '3.9.224838903595663362',
823
- tablename: 't_organization',
824
- f_dir: 'standard'
825
- },
826
- {
827
- f_update_date: '2024-04-18 16:38:43',
828
- loginid: '15',
829
- parentname: '组织机构',
830
- f_serailport: '',
831
- f_icon: 'tree_org',
832
- hasright: false,
833
- f_companylevel: '',
834
- resourcetype: 'organization',
835
- parentid: '9',
836
- entitytype: 't_organization',
837
- f_description: '',
838
- children: [
839
- {
840
- f_dep_type: '部门',
841
- f_update_date: '2023-09-14 13:54:14',
842
- loginid: '15',
843
- parentname: '安康逸华天然气有限公司',
844
- hasright: true,
845
- f_remark: '',
846
- resourcetype: 'department',
847
- parentid: '225251125815803906',
848
- entitytype: 't_department',
849
- f_dep_id: '312',
850
- f_description: '',
851
- oname: '安康逸华天然气有限公司',
852
- children: [],
853
- f_create_date: '2023-09-14 13:48:26',
854
- f_ldap_version: 11,
855
- name: '客服中心',
856
- selfid: '225251348680146945',
857
- id: '225251348680146946',
858
- position: 1,
859
- fullname: '资源管理.组织机构.安康逸华天然气有限公司.客服中心',
860
- fullid: '3.9.225251125815803906.225251348680146946',
861
- tablename: 't_department',
862
- haslicense: 'true'
863
- }
864
- ],
865
- f_create_date: '2023-09-14 13:47:33',
866
- f_ldap_version: 8,
867
- name: '安康逸华天然气有限公司',
868
- selfid: '225251125815803905',
869
- templatename: 'organizationedit',
870
- id: '225251125815803906',
871
- position: 10,
872
- fullname: '资源管理.组织机构.安康逸华天然气有限公司',
873
- fullid: '3.9.225251125815803906',
874
- tablename: 't_organization',
875
- f_dir: 'QBJYangChun'
876
- }
877
- ],
878
- f_ldap_version: 15,
879
- name: '组织机构',
880
- selfid: '10',
881
- templatename: 'organizationedit',
882
- id: '9',
883
- position: 1,
884
- fullname: '资源管理.组织机构',
885
- fullid: '3.9',
886
- tablename: 't_organization',
887
- f_dir: 'standard'
888
- }
889
- ],
890
- f_ldap_version: 6,
891
- selfid: '4',
892
- name: '资源管理',
893
- templatename: '根节点编辑模板',
894
- position: 1,
895
- id: '3',
896
- fullname: '资源管理',
897
- fullid: '3',
898
- tablename: 't_root'
899
- }
900
- ])
901
-
902
- const { runLogic } = require('@vue2-client/services/api/common')
903
- runLogic.mockResolvedValue(mockResponse)
904
-
905
- await searchToListOption(params, (res) => console.log(res))
906
- })
907
- })
908
- describe('searchToOptionByRoleName', () => {
909
- it('should transform data correctly when response has nested children', async () => {
910
- const params = { source: '根据角色获取人员', userid: '123', roleName: '维修员' }
911
- const mockResponse = mockjs.mock([
912
- {
913
- qrcode: '/rs/user/getQRcode?QRCODE=5fd0-1725434115230-66711',
914
- roles: '67189,45552,70046,105861,59894,70154,56731,87803,282828514477080578,91090,206342877528326146,338699095533289474,86256,88883,89751',
915
- f_sex: '男',
916
- f_department_id: '45500',
917
- f_icon: 'tree_user',
918
- userid: '5fd0-1725434115230-66711',
919
- accesstime: '1731304553151',
920
- parentid: '45500',
921
- password: '**********',
922
- f_idnumber: '',
923
- f_create_date: '2024-09-04 15:16:36',
924
- selfid: '354283617821786113',
925
- logindate: '2024-11-11 13:55:53',
926
- templatename: 'useredit',
927
- id: '354283617821786114',
928
- state: '在职',
929
- tablename: 't_user',
930
- f_update_date: '2024-09-04 15:16:36',
931
- login_address: '内网IP',
932
- loginid: '15',
933
- openid: 'oAVyg6hqc3735FUzBvggjlttYDBY',
934
- f_user_telephone: '',
935
- rolestr: '教培分管员,维修员,乌达区派单员,巡线员,营业员,呼叫员,管理员,安检员,客服中心管理员,审核员3,客服中心管理员(气价设置),安检管理员,系统管理,测试营业员,收费员',
936
- loginnum: 0,
937
- f_age: '',
938
- resourcetype: 'user',
939
- f_organization_id: '37710',
940
- f_department_name: '滨河营业厅',
941
- ename: 'tangzenghui',
942
- entitytype: 't_user',
943
- f_description: '',
944
- loginip: '10.233.70.0',
945
- f_ldap_version: 39,
946
- name: '唐增辉',
947
- position: 41,
948
- haslicense: 'false',
949
- f_last_modification_time: '2024-09-04 15:16:36',
950
- forceoutstate: '1',
951
- f_role_name: '教培分管员 维修员 乌达区派单员 巡线员 营业员 呼叫员 管理员 安检员 客服中心管理员 审核员3 客服中心管理员(气价设置) 安检管理员 系统管理 测试营业员 收费员'
952
- },
953
- {
954
- qrcode: '/rs/user/getQRcode?QRCODE=123454343',
955
- roles: '56731,45552,129446,307848344640815106,338699095533289474,59894,88883,318800133091360770,217701711119253506',
956
- f_sex: '男',
957
- f_department_id: '45500',
958
- f_icon: 'tree_user',
959
- userid: '123454343',
960
- accesstime: '1730259861361',
961
- parentid: '45500',
962
- password: '**********',
963
- f_idnumber: '',
964
- f_create_date: '2024-07-30 18:14:41',
965
- selfid: '341282471708590081',
966
- logindate: '2024-10-30',
967
- templatename: 'useredit',
968
- id: '341282471708590082',
969
- state: '在职',
970
- tablename: 't_user',
971
- f_update_date: '2024-07-30 18:14:41',
972
- login_address: '内网IP',
973
- loginid: '124748',
974
- f_user_telephone: '',
975
- rolestr: '管理员,营业员,呼叫员,维修员,教培分管员,巡线员,呼叫演示,安检管理,财务人员',
976
- loginnum: 0,
977
- f_age: '',
978
- resourcetype: 'user',
979
- f_organization_id: '37710',
980
- f_department_name: '滨河营业厅',
981
- ename: 'hwq',
982
- entitytype: 't_user',
983
- f_description: '',
984
- loginip: '10.233.70.0',
985
- f_ldap_version: 181,
986
- name: '何文强',
987
- position: 39,
988
- haslicense: 'false',
989
- f_last_modification_time: '2024-07-30 18:15:25',
990
- forceoutstate: '1',
991
- f_role_name: '管理员 营业员 呼叫员 维修员 教培分管员 巡线员 呼叫演示 安检管理 财务人员'
992
- },
993
- {
994
- qrcode: '/rs/user/getQRcode?QRCODE=1111000',
995
- roles: '67189,207801119064326146,215446483351240706,45552,70046,105861,59894,70154,215411057475321858,56731,126536,91090,126534,206342877528326146,88721,86256,88883,89751',
996
- f_sex: '男',
997
- f_department_id: '45500',
998
- f_icon: 'tree_user',
999
- userid: '1111000',
1000
- accesstime: '1712654582914',
1001
- parentid: '45500',
1002
- password: '**********',
1003
- f_idnumber: '',
1004
- f_create_date: '2024-04-09 17:21:40',
1005
- selfid: '300681687845699585',
1006
- logindate: '2024-04-09',
1007
- templatename: 'useredit',
1008
- id: '300681687845699586',
1009
- state: '在职',
1010
- tablename: 't_user',
1011
- f_update_date: '2024-04-09 17:21:40',
1012
- login_address: '内网IP',
1013
- loginid: '15',
1014
- f_user_telephone: '',
1015
- rolestr: '维修员,海勃湾区派单员,营业员,呼叫员,安检员,管理员,客服中心管理员,审核员3,客服中心管理员(气价设置),安检管理员,系统管理,测试营业员,收费员,市场部报装,市场部派工,管理员,信息部管理员,营业员',
1016
- loginnum: 0,
1017
- f_age: '',
1018
- resourcetype: 'user',
1019
- f_organization_id: '37710',
1020
- f_department_name: '滨河营业厅',
1021
- ename: 'msj',
1022
- entitytype: 't_user',
1023
- f_description: '',
1024
- loginip: '192.168.150.170',
1025
- f_ldap_version: 24,
1026
- name: '马三金',
1027
- position: 31,
1028
- haslicense: 'false',
1029
- f_last_modification_time: '2024-04-09 17:22:48',
1030
- forceoutstate: '1',
1031
- f_role_name: '维修员 海勃湾区派单员 营业员 呼叫员 安检员 管理员 客服中心管理员 审核员3 客服中心管理员(气价设置) 安检管理员 系统管理 测试营业员 收费员 市场部报装 市场部派工 管理员 信息部管理员 营业员'
1032
- },
1033
- {
1034
- qrcode: '/rs/user/getQRcode?QRCODE=123456',
1035
- roles: '128078,67189,127566,126542,59894,127564,192684790586146817,126540,127562,127560,126538,126536,126534,128944,88883,128946,89751',
1036
- f_sex: '男',
1037
- f_department_id: '45500',
1038
- f_icon: 'tree_user',
1039
- userid: '123456',
1040
- accesstime: '1705396824637',
1041
- parentid: '45500',
1042
- password: '**********',
1043
- f_idnumber: '',
1044
- f_create_date: '2023-12-25 13:57:39',
1045
- selfid: '262217231268708353',
1046
- logindate: '2024-01-16',
1047
- templatename: 'useredit',
1048
- id: '262217231268708354',
1049
- state: '在职',
1050
- tablename: 't_user',
1051
- f_update_date: '2023-12-25 13:57:39',
1052
- login_address: 'XX XX',
1053
- loginid: '122138',
1054
- f_user_telephone: '',
1055
- rolestr: '安检员,管理员,维修员,系统管理,市场部报装,市场部派工,运营部派工,工程部派工,抄表员,工程部报装,运营部报装,设计部报装,图纸审核,派单员,子公司市场部报装,营业厅报装,规划部报装',
1056
- loginnum: 0,
1057
- f_age: '',
1058
- resourcetype: 'user',
1059
- f_organization_id: '37710',
1060
- f_department_name: '滨河营业厅',
1061
- ename: 'sycs',
1062
- entitytype: 't_user',
1063
- f_description: '',
1064
- loginip: '61.150.11.26',
1065
- f_ldap_version: 29,
1066
- name: '泗阳试用',
1067
- position: 24,
1068
- haslicense: '',
1069
- f_last_modification_time: '2023-12-25 13:57:39',
1070
- forceoutstate: '1',
1071
- f_role_name: '安检员 管理员 维修员 系统管理 市场部报装 市场部派工 运营部派工 工程部派工 抄表员 工程部报装 运营部报装 设计部报装 图纸审核 派单员 子公司市场部报装 营业厅报装 规划部报装'
1072
- },
1073
- {
1074
- f_department_id: '45534',
1075
- userid: '125306',
1076
- f_show_rolestr: 'null',
1077
- loginnumber: 'null',
1078
- number: '125306',
1079
- password: '**********',
1080
- f_idnumber: '',
1081
- f_create_date: '2022-12-14 16:06:31',
1082
- selfid: '128029',
1083
- logindate: '2024-11-13 12:46:45',
1084
- id: '128028',
1085
- state: '在职',
1086
- f_user_macip: 'null',
1087
- loginid: 'null',
1088
- openid: 'oAVyg6gB_qw34GIp2vRukDYk4eYM',
1089
- f_user_telephone: '1111111111',
1090
- f_organization_id: '37710',
1091
- ename: 'nice',
1092
- entitytype: 't_user',
1093
- loginip: '10.233.70.0',
1094
- name: '张振宇',
1095
- position: 23,
1096
- haslicense: 'true',
1097
- forceoutstate: '1',
1098
- f_show_department_name: 'null',
1099
- f_mac_adress: 'null',
1100
- qrcode: '/rs/user/getQRcode?QRCODE=125306',
1101
- roles: '128078,45552,129446,105861,267297154459107330,126542,59894,122468,126536,91090,126534,88883,89751',
1102
- f_sex: '男',
1103
- f_icon: 'tree_user',
1104
- accesstime: '1731473205094',
1105
- parentid: '45534',
1106
- templatename: 'useredit',
1107
- f_old_userid: 'null',
1108
- tablename: 't_user',
1109
- f_update_date: '2024-07-26 17:04:32',
1110
- login_address: '内网IP',
1111
- ticket: 'null',
1112
- imgid: 'null',
1113
- rolestr: '巡线管理员,派单员,测试营业员,巡线员,收费员,王三石,抄表员,管理员,维修员,系统管理,营业员,市场部报装,市场部派工',
1114
- loginnum: 0,
1115
- f_age: '',
1116
- resourcetype: 'user',
1117
- url: 'null',
1118
- f_department_name: '海南政务大厅',
1119
- deleted: 'false',
1120
- f_description: '',
1121
- f_ldap_version: 1211,
1122
- f_extend2: 'null',
1123
- f_last_modification_time: '2024-07-28 21:00:30',
1124
- f_role_name: '巡线管理员 派单员 测试营业员 巡线员 收费员 王三石 抄表员 管理员 维修员 系统管理 营业员 市场部报装 市场部派工',
1125
- f_extend1: 'null'
1126
- },
1127
- {
1128
- qrcode: '/rs/user/getQRcode?QRCODE=4a8e-1707299074649-86255',
1129
- roles: '56731,87803,67189,45552,88721,59894,88883',
1130
- f_sex: '男',
1131
- f_department_id: '45500',
1132
- f_icon: 'tree_user',
1133
- userid: '4a8e-1707299074649-86255',
1134
- accesstime: '1707299662006',
1135
- parentid: '45500',
1136
- password: '**********',
1137
- f_idnumber: '',
1138
- f_create_date: '2024-02-07 17:45:01',
1139
- selfid: '278219514364166145',
1140
- logindate: '2024-08-22',
1141
- templatename: 'useredit',
1142
- id: '278219514364166146',
1143
- state: '在职',
1144
- tablename: 't_user',
1145
- f_update_date: '2024-02-07 17:45:01',
1146
- login_address: 'XX XX',
1147
- loginid: '15',
1148
- f_user_telephone: '',
1149
- rolestr: '乌达区派单员,营业员,呼叫员,维修员,海勃湾区派单员,管理员,安检员',
1150
- loginnum: 1,
1151
- f_age: '',
1152
- resourcetype: 'user',
1153
- f_organization_id: '37710',
1154
- f_department_name: '滨河营业厅',
1155
- ename: 'd',
1156
- entitytype: 't_user',
1157
- f_description: '',
1158
- loginip: '61.150.11.113',
1159
- f_ldap_version: 12,
1160
- name: '111',
1161
- position: 21,
1162
- haslicense: 'false',
1163
- f_last_modification_time: '2024-02-07 17:45:01',
1164
- forceoutstate: '1',
1165
- f_role_name: '乌达区派单员 营业员 呼叫员 维修员 海勃湾区派单员 管理员 安检员'
1166
- },
1167
- {
1168
- f_show_department_name: '',
1169
- f_mac_adress: 'null',
1170
- qrcode: '/rs/user/getQRcode?QRCODE=9702-1681349451451-67948',
1171
- roles: '105861,56731,88883,126542,128960,70046,89751,70154',
1172
- f_sex: '男',
1173
- f_icon: 'tree_user',
1174
- userid: '9702-1681349451451-67948',
1175
- accesstime: '1716780093913',
1176
- f_show_rolestr: 'null',
1177
- parentid: '59876',
1178
- loginnumber: 'null',
1179
- number: '9702-1681349451451-67948',
1180
- password: '**********',
1181
- f_idnumber: '',
1182
- f_create_date: '2023-04-13 09:32:21',
1183
- selfid: '130971',
1184
- logindate: '2024-05-27',
1185
- templatename: 'useredit',
1186
- f_old_userid: 'null',
1187
- id: '130970',
1188
- state: '在职',
1189
- tablename: 't_user',
1190
- f_user_macip: 'null',
1191
- f_update_date: '2023-04-13 11:18:28',
1192
- login_address: '内网IP',
1193
- loginid: '130304',
1194
- ticket: 'null',
1195
- imgid: 'null',
1196
- f_user_telephone: '',
1197
- rolestr: '收费员,呼叫员,维修员,抄表员,派单员,客服中心管理员,系统管理,客服中心管理员(气价设置)',
1198
- loginnum: 0,
1199
- f_age: '',
1200
- resourcetype: 'user',
1201
- url: 'null',
1202
- f_department_name: '客服中心',
1203
- ename: 'sh',
1204
- deleted: 'false',
1205
- entitytype: 't_user',
1206
- f_description: '',
1207
- loginip: '192.168.50.69',
1208
- f_ldap_version: 2,
1209
- name: '收费员/话务员',
1210
- position: 20,
1211
- haslicense: '',
1212
- f_extend2: 'null',
1213
- forceoutstate: '1',
1214
- f_role_name: '收费员 呼叫员 维修员 抄表员 派单员 客服中心管理员 系统管理 客服中心管理员(气价设置) ',
1215
- f_extend1: 'null'
1216
- },
1217
- {
1218
- f_department_id: '45528',
1219
- userid: 'f272-1669095547564-67004',
1220
- f_show_rolestr: 'null',
1221
- loginnumber: 'null',
1222
- number: 'f272-1669095547564-67004',
1223
- password: '**********',
1224
- f_idnumber: '',
1225
- f_create_date: '2022-11-22 13:40:05',
1226
- selfid: '122441',
1227
- logindate: '2024-06-27',
1228
- id: '122440',
1229
- state: '在职',
1230
- f_user_macip: 'null',
1231
- loginid: '15',
1232
- f_user_telephone: '',
1233
- f_organization_id: '37710',
1234
- ename: 'csgy',
1235
- entitytype: 't_user',
1236
- loginip: '192.168.50.67',
1237
- name: '测试公用',
1238
- position: 20,
1239
- haslicense: 'false',
1240
- forceoutstate: '1',
1241
- f_show_department_name: 'null',
1242
- f_mac_adress: 'null',
1243
- qrcode: '/rs/user/getQRcode?QRCODE=f272-1669095547564-67004',
1244
- roles: '59894,88883,56731,67189',
1245
- f_sex: '男',
1246
- f_icon: 'tree_user',
1247
- accesstime: '1719468188254',
1248
- parentid: '45528',
1249
- templatename: 'useredit',
1250
- f_old_userid: 'null',
1251
- tablename: 't_user',
1252
- f_update_date: '2024-01-19 08:36:45',
1253
- login_address: '内网IP',
1254
- ticket: 'null',
1255
- imgid: 'null',
1256
- rolestr: '管理员,维修员,呼叫员,安检员',
1257
- loginnum: 0,
1258
- f_age: '',
1259
- resourcetype: 'user',
1260
- url: 'null',
1261
- f_department_name: '海南营业厅',
1262
- deleted: 'false',
1263
- f_description: '',
1264
- f_ldap_version: 486,
1265
- f_extend2: 'null',
1266
- f_role_name: '管理员 维修员 呼叫员 安检员',
1267
- f_extend1: 'null'
1268
- },
1269
- {
1270
- userid: '1d91-1669088967031-19905',
1271
- f_show_rolestr: 'null',
1272
- loginnumber: 'null',
1273
- number: '1d91-1669088967031-19905',
1274
- password: '**********',
1275
- f_idnumber: '',
1276
- f_create_date: '2022-11-22 11:50:52',
1277
- selfid: '122139',
1278
- logindate: '2024-11-13 11:36:39',
1279
- id: '122138',
1280
- state: '在职',
1281
- f_user_macip: 'null',
1282
- loginid: '15',
1283
- f_user_telephone: '',
1284
- ename: 'admin2',
1285
- entitytype: 't_user',
1286
- loginip: '10.233.70.0',
1287
- name: '管理员',
1288
- position: 18,
1289
- haslicense: 'false',
1290
- forceoutstate: '1',
1291
- f_show_department_name: 'null',
1292
- f_mac_adress: 'null',
1293
- qrcode: '/api/af-system/ldapUser/getQRcode?QRCODE=1d91-1669088967031-19905',
1294
- roles: '67189,70046,45552,128960,105861,126542,59894,70154,56731,282830844236791810,87803,282828514477080578,91090,289084445410066434,88721,282829989592825858,86256,88883,89751',
1295
- f_sex: '男',
1296
- f_icon: 'tree_user',
1297
- accesstime: '1731468999430',
1298
- parentid: '45500',
1299
- templatename: 'useredit',
1300
- f_old_userid: 'null',
1301
- tablename: 't_user',
1302
- f_update_date: '2024-11-04 16:57:22',
1303
- login_address: '内网IP',
1304
- ticket: 'null',
1305
- imgid: 'null',
1306
- rolestr: '安检员,客服中心管理员,营业员,收费员,抄表员,管理员,客服中心管理员(气价设置),呼叫员,需要定位人员,乌达区派单员,巡线员,测试营业员,抄表员,海勃湾区派单员,巡线管理员,安检管理员,维修员,系统管理,派单员',
1307
- loginnum: 0,
1308
- f_age: '',
1309
- resourcetype: 'user',
1310
- url: 'null',
1311
- f_department_name: '滨河营业厅',
1312
- deleted: 'false',
1313
- f_description: '',
1314
- f_ldap_version: 11091,
1315
- f_extend2: 'null',
1316
- f_last_modification_time: '2024-07-29 09:25:03',
1317
- f_role_name: '安检员 客服中心管理员 营业员 收费员 抄表员 管理员 客服中心管理员(气价设置) 呼叫员 需要定位人员 乌达区派单员 巡线员 测试营业员 抄表员 海勃湾区派单员 巡线管理员 安检管理员 维修员 系统管理 派单员',
1318
- f_extend1: 'null'
1319
- },
1320
- {
1321
- qrcode: '/rs/user/getQRcode?QRCODE=7b73-1693795543334-75047',
1322
- roles: '128078,67189,45552,128960,127566,126542,59894,126540,127562,318800133091360770,127560,56731,122468,126538,126536,126534,128944,88883,128946',
1323
- f_sex: '男',
1324
- f_department_id: '45500',
1325
- f_icon: 'tree_user',
1326
- userid: '7b73-1693795543334-75047',
1327
- accesstime: '1724485084261',
1328
- parentid: '45500',
1329
- password: '**********',
1330
- f_idnumber: '',
1331
- f_create_date: '2023-09-04 10:46:52',
1332
- selfid: '221581777473503233',
1333
- logindate: '2024-08-24',
1334
- templatename: 'useredit',
1335
- id: '221581777473503234',
1336
- state: '在职',
1337
- tablename: 't_user',
1338
- f_update_date: '2024-05-29 17:18:31',
1339
- login_address: '内网IP',
1340
- loginid: '122440',
1341
- imgid: 'null',
1342
- f_user_telephone: '',
1343
- rolestr: '派单员,安检员,营业员,派单员,图纸审核,抄表员,管理员,工程部派工,运营部报装,工程部报装,呼叫员,巡线管理员,运营部派工,市场部派工,市场部报装,子公司市场部报装,维修员,营业厅报装,财务人员',
1344
- loginnum: 0,
1345
- f_age: '',
1346
- resourcetype: 'user',
1347
- f_organization_id: '37710',
1348
- f_department_name: '滨河营业厅',
1349
- ename: 'csgy222',
1350
- entitytype: 't_user',
1351
- f_description: '',
1352
- loginip: '192.168.50.4',
1353
- f_ldap_version: 259,
1354
- name: '测试公用222',
1355
- position: 17,
1356
- haslicense: 'true',
1357
- f_last_modification_time: '2024-04-01 13:52:09',
1358
- forceoutstate: '1',
1359
- f_role_name: '派单员 安检员 营业员 派单员 图纸审核 抄表员 管理员 工程部派工 运营部报装 工程部报装 呼叫员 巡线管理员 运营部派工 市场部派工 市场部报装 子公司市场部报装 维修员 营业厅报装 财务人员'
1360
- },
1361
- {
1362
- f_show_department_name: 'null',
1363
- f_mac_adress: 'null',
1364
- qrcode: '/rs/user/getQRcode?QRCODE=0817',
1365
- roles: '126542,105861,91090,70154,70046,59894,88883,67189,56731,86256,45552',
1366
- f_sex: '男',
1367
- f_icon: 'tree_user',
1368
- userid: '0817',
1369
- accesstime: '1713862375320',
1370
- f_show_rolestr: 'null',
1371
- parentid: '45540',
1372
- loginnumber: 'null',
1373
- number: '0817',
1374
- password: '**********',
1375
- f_idnumber: '',
1376
- f_create_date: '2023-03-31 15:24:15',
1377
- selfid: '130317',
1378
- logindate: '2024-04-23',
1379
- templatename: 'useredit',
1380
- f_old_userid: 'null',
1381
- id: '130316',
1382
- state: '在职',
1383
- tablename: 't_user',
1384
- f_user_macip: 'null',
1385
- f_update_date: '2023-04-23 11:09:51',
1386
- login_address: '内网IP',
1387
- loginid: '124748',
1388
- ticket: 'null',
1389
- imgid: 'null',
1390
- f_user_telephone: '',
1391
- rolestr: '抄表员,收费员,测试营业员,客服中心管理员(气价设置),客服中心管理员,管理员,维修员,安检员,呼叫员,安检管理员,营业员',
1392
- loginnum: 1,
1393
- f_age: '',
1394
- resourcetype: 'user',
1395
- url: 'null',
1396
- f_department_name: '乌达营业厅',
1397
- ename: 'ljc',
1398
- deleted: 'false',
1399
- entitytype: 't_user',
1400
- f_description: '',
1401
- loginip: '10.233.70.0',
1402
- f_ldap_version: 37,
1403
- name: 'lichen',
1404
- position: 17,
1405
- haslicense: 'true',
1406
- f_extend2: 'null',
1407
- forceoutstate: '1',
1408
- f_role_name: '抄表员 收费员 测试营业员 客服中心管理员(气价设置) 客服中心管理员 管理员 维修员 安检员 呼叫员 安检管理员 营业员 ',
1409
- f_extend1: 'null'
1410
- },
1411
- {
1412
- qrcode: '/rs/user/getQRcode?QRCODE=2c95-1692498432984-95557',
1413
- roles: '67189,128960,219889170502516738,86256,88883',
1414
- f_sex: '男',
1415
- f_department_id: '45500',
1416
- f_icon: 'tree_user',
1417
- userid: '2c95-1692498432984-95557',
1418
- accesstime: '1726911937832',
1419
- parentid: '45500',
1420
- password: '**********',
1421
- f_idnumber: '',
1422
- f_create_date: '2023-08-20 10:28:10',
1423
- selfid: '216141253706907649',
1424
- logindate: '2024-09-21',
1425
- templatename: 'useredit',
1426
- id: '216141253706907650',
1427
- state: '在职',
1428
- tablename: 't_user',
1429
- f_update_date: '2023-09-07 09:35:42',
1430
- login_address: '内网IP',
1431
- loginid: '122138',
1432
- imgid: 'null',
1433
- f_user_telephone: '',
1434
- rolestr: '派单员,演示,维修员,安检管理员,安检员',
1435
- loginnum: 0,
1436
- f_age: '',
1437
- resourcetype: 'user',
1438
- f_organization_id: '37710',
1439
- f_department_name: '滨河营业厅',
1440
- ename: 'ysh',
1441
- entitytype: 't_user',
1442
- f_description: '',
1443
- loginip: '10.233.70.0',
1444
- f_ldap_version: 100,
1445
- name: '测试演示号',
1446
- position: 16,
1447
- haslicense: 'false',
1448
- f_last_modification_time: '2023-09-06 19:46:58',
1449
- forceoutstate: '1',
1450
- f_role_name: '派单员 演示 维修员 安检管理员 安检员'
1451
- },
1452
- {
1453
- qrcode: '/rs/user/getQRcode?QRCODE=1835-1725334332969-36311',
1454
- roles: '88883',
1455
- f_sex: '男',
1456
- f_department_id: '45528',
1457
- f_icon: 'tree_user',
1458
- userid: '1835-1725334332969-36311',
1459
- accesstime: '1731465819654',
1460
- parentid: '45528',
1461
- password: '**********',
1462
- f_idnumber: '',
1463
- f_create_date: '2024-09-03 11:32:56',
1464
- selfid: '353864941641531393',
1465
- logindate: '2024-11-13 10:43:39',
1466
- templatename: 'useredit',
1467
- id: '353864941641531394',
1468
- state: '在职',
1469
- tablename: 't_user',
1470
- f_update_date: '2024-09-03 11:32:56',
1471
- login_address: '内网IP',
1472
- loginid: '122138',
1473
- f_user_telephone: '',
1474
- rolestr: '维修员',
1475
- loginnum: 0,
1476
- f_age: '',
1477
- resourcetype: 'user',
1478
- f_organization_id: '37710',
1479
- f_department_name: '海南营业厅',
1480
- ename: 'mm',
1481
- entitytype: 't_user',
1482
- f_description: '',
1483
- loginip: '10.233.70.0',
1484
- f_ldap_version: 21,
1485
- name: '测试密码',
1486
- position: 16,
1487
- haslicense: 'false',
1488
- f_last_modification_time: '2024-09-03 11:34:05',
1489
- forceoutstate: '1',
1490
- f_role_name: '维修员'
1491
- },
1492
- {
1493
- qrcode: '/rs/user/getQRcode?QRCODE=dssasd',
1494
- roles: '88883,87803,88721,45552,59894,67189,70046,70154,86256,89751,91090,105861',
1495
- f_sex: '男',
1496
- f_department_id: '123140',
1497
- f_icon: 'tree_user',
1498
- userid: 'dssasd',
1499
- accesstime: '1725465136539',
1500
- parentid: '45500',
1501
- password: '**********',
1502
- f_idnumber: '',
1503
- f_create_date: '2023-05-17 16:00:15',
1504
- selfid: '135809',
1505
- logindate: '2024-09-04',
1506
- templatename: 'useredit',
1507
- id: '135808',
1508
- state: '在职',
1509
- tablename: 't_user',
1510
- f_update_date: '2023-05-17 16:00:15',
1511
- login_address: '内网IP',
1512
- loginid: '123140',
1513
- f_user_telephone: '',
1514
- rolestr: '维修员,乌达区派单员,海勃湾区派单员,营业员,管理员,安检员,客服中心管理员,客服中心管理员(气价设置),安检管理员,系统管理,测试营业员,收费员',
1515
- loginnum: 0,
1516
- f_age: '',
1517
- resourcetype: 'user',
1518
- f_organization_id: '123138',
1519
- f_department_name: '滨河营业厅',
1520
- ename: 'rs',
1521
- deleted: 'false',
1522
- entitytype: 't_user',
1523
- f_description: '',
1524
- loginip: '10.233.70.0',
1525
- f_ldap_version: 3,
1526
- name: 'ss',
1527
- position: 15,
1528
- haslicense: 'true',
1529
- forceoutstate: '1',
1530
- f_role_name: '维修员 乌达区派单员 海勃湾区派单员 营业员 管理员 安检员 客服中心管理员 客服中心管理员(气价设置) 安检管理员 系统管理 测试营业员 收费员 '
1531
- },
1532
- {
1533
- qrcode: '/rs/user/getQRcode?QRCODE=xiaozhang',
1534
- roles: '45552,59894,88883',
1535
- f_sex: '男',
1536
- f_department_id: '59876',
1537
- f_icon: 'tree_user',
1538
- userid: 'xiaozhang',
1539
- accesstime: '1687936733696',
1540
- parentid: '59876',
1541
- password: '**********',
1542
- f_idnumber: '',
1543
- f_create_date: '2023-06-28 15:18:46',
1544
- selfid: '197007828257472513',
1545
- templatename: 'useredit',
1546
- id: '197007828257472514',
1547
- state: '在职',
1548
- tablename: 't_user',
1549
- f_update_date: '2023-06-28 15:18:46',
1550
- login_address: 'XX XX',
1551
- loginid: '124748',
1552
- f_user_telephone: '',
1553
- rolestr: '维修员,营业员,管理员',
1554
- loginnum: 0,
1555
- f_age: '',
1556
- resourcetype: 'user',
1557
- f_organization_id: '37710',
1558
- f_department_name: '客服中心',
1559
- ename: 'qwer',
1560
- entitytype: 't_user',
1561
- f_description: '',
1562
- loginip: '61.150.11.245',
1563
- f_ldap_version: 6,
1564
- name: 'zhang',
1565
- position: 14,
1566
- haslicense: '',
1567
- f_last_modification_time: '2023-06-28 15:18:46',
1568
- forceoutstate: '1',
1569
- f_role_name: '维修员 营业员 管理员'
1570
- },
1571
- {
1572
- qrcode: '/rs/user/getQRcode?QRCODE=23123',
1573
- roles: '67189,225247545964756994,225330026290216962,88883',
1574
- f_sex: '男',
1575
- f_department_id: '206344495946661890',
1576
- f_icon: 'tree_user',
1577
- userid: '23123',
1578
- accesstime: '1721714807310',
1579
- parentid: '206344495946661890',
1580
- password: '**********',
1581
- f_idnumber: '',
1582
- f_create_date: '2023-09-14 15:29:48',
1583
- selfid: '225276856495112193',
1584
- logindate: '2024-07-23',
1585
- templatename: 'useredit',
1586
- id: '225276856495112194',
1587
- state: '在职',
1588
- tablename: 't_user',
1589
- f_update_date: '2023-12-15 10:47:39',
1590
- login_address: '内网IP',
1591
- loginid: '15',
1592
- imgid: 'null',
1593
- f_user_telephone: '',
1594
- rolestr: '安检员,安检呼叫演示,维修员,安检员',
1595
- loginnum: 0,
1596
- f_age: '',
1597
- resourcetype: 'user',
1598
- f_organization_id: '37710',
1599
- f_department_name: '客服中心',
1600
- ename: 'xtys',
1601
- entitytype: 't_user',
1602
- f_description: '',
1603
- loginip: '192.168.50.69',
1604
- f_ldap_version: 47,
1605
- name: '系统演示',
1606
- position: 5,
1607
- haslicense: '',
1608
- f_last_modification_time: '2023-09-14 15:29:48',
1609
- forceoutstate: '1',
1610
- f_role_name: '安检员 安检呼叫演示 维修员 安检员'
1611
- },
1612
- {
1613
- f_department_id: '218072726122921986',
1614
- userid: 'lzq11',
1615
- number: 'lzq11',
1616
- password: '**********',
1617
- f_idnumber: '',
1618
- f_create_date: '2024-04-26 10:11:48',
1619
- selfid: '306734101812084737',
1620
- logindate: '2024-11-11 17:52:37',
1621
- id: '306734101812084738',
1622
- state: '在职',
1623
- loginid: '15',
1624
- f_user_telephone: '',
1625
- count: '1',
1626
- f_organization_id: '37710',
1627
- ename: 'lzq11',
1628
- loginonline: '1',
1629
- entitytype: 't_user',
1630
- tusid: '306734101812084738',
1631
- organizationname: '铜川天然气有限公司',
1632
- loginip: '10.233.70.0',
1633
- name: 'lzq11',
1634
- position: '4',
1635
- haslicense: 'true',
1636
- tdid: '218072726122921986',
1637
- forceoutstate: '1',
1638
- qrcode: '/api/af-system/ldapUser/getQRcode?QRCODE=lzq11',
1639
- roles: '378952574012882946,67189,70046,45552,105861,126542,70154,59894,318800133091360770,56731,87803,91090,344842995125846018,86256,88883,89751,378964491590828032',
1640
- f_sex: '男',
1641
- f_icon: 'tree_user',
1642
- accesstime: '1731318757940',
1643
- parentid: '218072726122921986',
1644
- f_dep_id: '1111',
1645
- templatename: 'useredit',
1646
- tablename: 't_user',
1647
- f_update_date: '2024-11-11 17:50:13',
1648
- login_address: '内网IP',
1649
- imgid: 'null',
1650
- tosid: '37710',
1651
- rolestr: '置换员,安检员,客服中心管理员,营业员,收费员,抄表员,客服中心管理员(气价设置),管理员,财务人员,呼叫员,乌达区派单员,测试营业员,拉黑员,安检管理员,维修员,系统管理,施工员',
1652
- tuid: '306734101812084738',
1653
- loginnum: '1',
1654
- f_age: '',
1655
- resourcetype: 'user',
1656
- f_department_name: '蜜雪冰城',
1657
- f_description: '',
1658
- f_ldap_version: 634,
1659
- online: '1',
1660
- f_last_modification_time: '2024-09-02 10:55:51',
1661
- f_role_name: '置换员 安检员 客服中心管理员 营业员 收费员 抄表员 客服中心管理员(气价设置) 管理员 财务人员 呼叫员 乌达区派单员 测试营业员 拉黑员 安检管理员 维修员 系统管理 施工员'
1662
- },
1663
- {
1664
- qrcode: '/rs/user/getQRcode?QRCODE=12127',
1665
- roles: '88883',
1666
- f_sex: '男',
1667
- f_department_id: '45500',
1668
- f_icon: 'tree_user',
1669
- userid: '12127',
1670
- accesstime: '0',
1671
- parentid: '45500',
1672
- password: '**********',
1673
- f_idnumber: '',
1674
- f_create_date: '2023-06-26 16:02:23',
1675
- selfid: '196294028432637953',
1676
- templatename: 'useredit',
1677
- id: '196294028432637954',
1678
- state: '在职',
1679
- tablename: 't_user',
1680
- f_update_date: '2023-09-08 18:51:44',
1681
- login_address: 'XX XX',
1682
- loginid: '122138',
1683
- imgid: 'null',
1684
- f_user_telephone: '',
1685
- rolestr: '维修员',
1686
- loginnum: 0,
1687
- f_age: '',
1688
- resourcetype: 'user',
1689
- f_organization_id: '37710',
1690
- f_department_name: '滨河营业厅',
1691
- ename: 'weixiu',
1692
- entitytype: 't_user',
1693
- f_description: '',
1694
- loginip: '61.150.11.245',
1695
- f_ldap_version: 6,
1696
- name: '维修员',
1697
- position: 4,
1698
- haslicense: '',
1699
- f_last_modification_time: '2023-06-26 16:02:23',
1700
- forceoutstate: '1',
1701
- f_role_name: '维修员'
1702
- },
1703
- {
1704
- qrcode: '/rs/user/getQRcode?QRCODE=73c5-1714362546229-39826',
1705
- roles: '67189,282828514477080578,129446,307848344640815106,225330026290216962,282829989592825858,86256,88883',
1706
- f_sex: '男',
1707
- f_department_id: '258531431813349378',
1708
- f_icon: 'tree_user',
1709
- userid: '73c5-1714362546229-39826',
1710
- accesstime: '1714373274680',
1711
- parentid: '258531431813349378',
1712
- password: '**********',
1713
- f_idnumber: '',
1714
- f_create_date: '2024-04-29 11:51:09',
1715
- selfid: '307846266581286913',
1716
- logindate: '2024-04-29',
1717
- templatename: 'useredit',
1718
- id: '307846266581286914',
1719
- state: '在职',
1720
- tablename: 't_user',
1721
- f_update_date: '2024-04-29 12:03:17',
1722
- login_address: '内网IP',
1723
- loginid: '15',
1724
- imgid: 'null',
1725
- f_user_telephone: '',
1726
- rolestr: '维修员,巡线员,巡线管理员,安检员,安检管理员,巡线员,安检员,安检管理',
1727
- loginnum: 0,
1728
- f_age: '',
1729
- resourcetype: 'user',
1730
- f_organization_id: '37710',
1731
- f_department_name: '安检部',
1732
- ename: 'xscs',
1733
- entitytype: 't_user',
1734
- f_description: '',
1735
- loginip: '192.168.50.69',
1736
- f_ldap_version: 34,
1737
- name: 'xscs',
1738
- position: 2,
1739
- haslicense: 'true',
1740
- f_last_modification_time: '2024-04-29 11:51:09',
1741
- forceoutstate: '1',
1742
- f_role_name: '安检员 巡线员 巡线员 安检管理 安检员 巡线管理员 安检管理员 维修员 管理员 '
1743
- },
1744
- {
1745
- f_show_department_name: '',
1746
- qrcode: '/rs/user/getQRcode?QRCODE=3c1f-1646967713676-00707',
1747
- roles: '88883',
1748
- f_sex: '男',
1749
- f_icon: 'tree_user',
1750
- userid: '3c1f-1646967713676-00707',
1751
- accesstime: '1697079377785',
1752
- f_show_rolestr: '',
1753
- parentid: '87791',
1754
- password: '**********',
1755
- f_idnumber: '',
1756
- selfid: '89584',
1757
- logindate: '2023-10-12',
1758
- templatename: 'useredit',
1759
- id: '89583',
1760
- state: '在职',
1761
- tablename: 't_user',
1762
- login_address: 'XX XX',
1763
- loginid: '15',
1764
- imgid: 'null',
1765
- f_user_telephone: '',
1766
- rolestr: '维修员',
1767
- loginnum: 0,
1768
- f_age: '',
1769
- resourcetype: 'user',
1770
- f_department_name: '海勃湾区维修',
1771
- ename: 'bhwx',
1772
- deleted: 'false',
1773
- entitytype: 't_user',
1774
- f_description: '',
1775
- loginip: '61.150.11.245',
1776
- f_ldap_version: 3,
1777
- name: '滨河维修',
1778
- position: 2,
1779
- haslicense: 'true',
1780
- forceoutstate: '1',
1781
- f_role_name: '维修员 '
1782
- },
1783
- {
1784
- userid: '2609-1641179761502-53217',
1785
- f_show_rolestr: '',
1786
- loginnumber: 'null',
1787
- number: '2609-1641179761502-53217',
1788
- password: '**********',
1789
- f_idnumber: '',
1790
- f_create_date: 'null',
1791
- selfid: '60531',
1792
- logindate: '2024-11-05',
1793
- id: '60530',
1794
- state: '在职',
1795
- f_user_macip: 'null',
1796
- loginid: '15',
1797
- f_user_telephone: '',
1798
- ename: 'xtgly',
1799
- entitytype: 't_user',
1800
- loginip: '10.233.70.0',
1801
- name: '系统管理员',
1802
- position: 1,
1803
- haslicense: 'true',
1804
- forceoutstate: '1',
1805
- f_show_department_name: '',
1806
- f_mac_adress: 'null',
1807
- qrcode: '/api/af-system/ldapUser/getQRcode?QRCODE=2609-1641179761502-53217',
1808
- roles: '307477876545028098,67189,45552,70046,105861,126542,59894,70154,56731,87803,329663362722037762,91090,289084445410066434,88721,86256,88883,89751',
1809
- f_sex: '男',
1810
- f_icon: 'tree_user',
1811
- accesstime: '0',
1812
- parentid: '59876',
1813
- templatename: 'useredit',
1814
- f_old_userid: 'null',
1815
- tablename: 't_user',
1816
- f_update_date: '2024-11-07 10:11:19',
1817
- login_address: '内网IP',
1818
- ticket: 'null',
1819
- imgid: 'null',
1820
- rolestr: '报建收费,安检员,营业员,客服中心管理员,收费员,管理员,客服中心管理员(气价设置),呼叫员,乌达区派单员,限时登录,测试营业员,海勃湾区派单员,安检管理员,维修员,系统管理,抄表员,抄表员',
1821
- loginnum: 1,
1822
- f_age: '',
1823
- resourcetype: 'user',
1824
- url: 'null',
1825
- f_department_name: '客服中心',
1826
- deleted: 'false',
1827
- f_description: '1',
1828
- f_ldap_version: 799,
1829
- f_extend2: 'null',
1830
- f_last_modification_time: '2024-08-02 10:35:03',
1831
- f_role_name: '报建收费 安检员 营业员 客服中心管理员 收费员 管理员 客服中心管理员(气价设置) 呼叫员 乌达区派单员 限时登录 测试营业员 海勃湾区派单员 安检管理员 维修员 系统管理 抄表员 抄表员',
1832
- f_extend1: 'null'
1833
- },
1834
- {
1835
- qrcode: '/rs/user/getQRcode?QRCODE=1009231',
1836
- roles: '224839384405508098,303935828395163650,59894,88883,89751',
1837
- f_sex: '男',
1838
- f_department_id: '303935382460956674',
1839
- f_icon: 'tree_user',
1840
- userid: '1009231',
1841
- accesstime: '1724221301650',
1842
- parentid: '303935382460956674',
1843
- password: '**********',
1844
- f_idnumber: '',
1845
- f_create_date: '2024-04-18 16:54:12',
1846
- selfid: '303936264133017601',
1847
- logindate: '2024-09-29',
1848
- templatename: 'useredit',
1849
- id: '303936264133017602',
1850
- state: '在职',
1851
- tablename: 't_user',
1852
- f_update_date: '2024-06-24 14:23:29',
1853
- login_address: '内网IP',
1854
- loginid: '15',
1855
- imgid: 'null',
1856
- f_user_telephone: '',
1857
- rolestr: '阳春管理员,利川管理员,维修员,管理员,系统管理',
1858
- loginnum: 1,
1859
- f_age: '',
1860
- resourcetype: 'user',
1861
- f_organization_id: '303935212625199106',
1862
- f_department_name: '客服中心',
1863
- ename: 'ycgly',
1864
- entitytype: 't_user',
1865
- f_description: '',
1866
- loginip: '10.233.70.0',
1867
- f_ldap_version: 22,
1868
- name: '阳春管理员',
1869
- position: 1,
1870
- haslicense: 'true',
1871
- f_last_modification_time: '2024-06-24 14:22:54',
1872
- forceoutstate: '1',
1873
- f_role_name: '阳春管理员 利川管理员 维修员 管理员 系统管理'
1874
- }
1875
- ])
1876
-
1877
- const { runLogic } = require('@vue2-client/services/api/common')
1878
- runLogic.mockResolvedValue(mockResponse)
1879
-
1880
- await searchToListOption(params, (res) => console.log(res))
1881
- })
1882
- })
1883
-
1884
- describe('获取分公司-列表', () => {
1885
- it('should transform data correctly when response has nested children', async () => {
1886
- const params = { source: '获取分公司', userid: '123' }
1887
- const mockResponse = mockjs.mock([
1888
- {
1889
- hasright: false,
1890
- resourcetype: 'root',
1891
- entitytype: 't_root',
1892
- children: [
1893
- {
1894
- parentname: '资源管理',
1895
- f_icon: 'tree_org',
1896
- hasright: false,
1897
- f_companylevel: '',
1898
- resourcetype: 'organization',
1899
- parentid: '3',
1900
- number: '1',
1901
- entitytype: 't_organization',
1902
- f_description: '根组织',
1903
- children: [
1904
- {
1905
- f_update_date: '2024-10-16 17:04:20',
1906
- loginid: '15',
1907
- parentname: '组织机构',
1908
- f_icon: 'tree_org',
1909
- hasright: true,
1910
- f_companylevel: '',
1911
- resourcetype: 'organization',
1912
- parentid: '9',
1913
- number: '',
1914
- entitytype: 't_organization',
1915
- f_description: 'standard_windows QBJYangChun',
1916
- children: [
1917
- {
1918
- f_update_date: '2024-10-16 18:23:45',
1919
- loginid: '128028',
1920
- parentname: '铜川天然气有限公司',
1921
- f_serailport: '',
1922
- f_icon: 'tree_org',
1923
- hasright: true,
1924
- f_companylevel: '',
1925
- resourcetype: 'organization',
1926
- parentid: '37710',
1927
- entitytype: 't_organization',
1928
- f_description: '',
1929
- children: [],
1930
- f_create_date: '2024-10-16 18:23:20',
1931
- f_ldap_version: 3,
1932
- name: '测试222',
1933
- selfid: '369550898785026049',
1934
- templatename: 'organizationedit',
1935
- id: '369550898785026050',
1936
- position: 79,
1937
- fullname: '资源管理.组织机构.铜川天然气有限公司.测试222',
1938
- fullid: '3.9.37710.369550898785026050',
1939
- tablename: 't_organization',
1940
- f_dir: ''
1941
- }
1942
- ],
1943
- f_ldap_version: 181,
1944
- name: '铜川天然气有限公司',
1945
- selfid: '37711',
1946
- templatename: 'organizationedit',
1947
- id: '37710',
1948
- position: 2,
1949
- fullname: '资源管理.组织机构.铜川天然气有限公司',
1950
- fullid: '3.9.37710',
1951
- tablename: 't_organization',
1952
- f_dir: 'standard'
1953
- }
1954
- ],
1955
- f_ldap_version: 15,
1956
- name: '组织机构',
1957
- selfid: '10',
1958
- templatename: 'organizationedit',
1959
- id: '9',
1960
- position: 1,
1961
- fullname: '资源管理.组织机构',
1962
- fullid: '3.9',
1963
- tablename: 't_organization',
1964
- f_dir: 'standard'
1965
- }
1966
- ],
1967
- f_ldap_version: 6,
1968
- selfid: '4',
1969
- name: '资源管理',
1970
- templatename: '根节点编辑模板',
1971
- position: 1,
1972
- id: '3',
1973
- fullname: '资源管理',
1974
- fullid: '3',
1975
- tablename: 't_root'
1976
- }
1977
- ])
1978
-
1979
- const { runLogic } = require('@vue2-client/services/api/common')
1980
- runLogic.mockResolvedValue(mockResponse)
1981
-
1982
- await searchToListOption(params, (res) => console.log(res))
1983
- })
1984
- })
1
+ /* eslint-env jest */
2
+ import { searchToListOption } from '@vue2-client/services/v3Api'
3
+ import mockjs from 'mockjs'
4
+ import { describe, it, jest } from '@jest/globals' // Correct way to import mockjs
5
+
6
+ jest.mock('@vue2-client/utils/request', () => ({
7
+ request: jest.fn(),
8
+ }))
9
+
10
+ jest.mock('@vue2-client/services/api/common', () => ({
11
+ runLogic: jest.fn(),
12
+ }))
13
+
14
+ describe('searchToOption', () => {
15
+ it('should transform data correctly when response has nested children', async () => {
16
+ const params = { source: '获取部门', userid: '123', roleName: 'admin' }
17
+ const mockResponse = mockjs.mock([
18
+ {
19
+ hasright: false,
20
+ resourcetype: 'root',
21
+ entitytype: 't_root',
22
+ children: [
23
+ {
24
+ parentname: '资源管理',
25
+ f_icon: 'tree_org',
26
+ hasright: false,
27
+ f_companylevel: '',
28
+ resourcetype: 'organization',
29
+ parentid: '3',
30
+ number: '1',
31
+ entitytype: 't_organization',
32
+ f_description: '根组织',
33
+ children: [
34
+ {
35
+ f_update_date: '2024-10-16 17:04:20',
36
+ loginid: '15',
37
+ parentname: '组织机构',
38
+ f_icon: 'tree_org',
39
+ hasright: false,
40
+ f_companylevel: '',
41
+ resourcetype: 'organization',
42
+ parentid: '9',
43
+ number: '',
44
+ entitytype: 't_organization',
45
+ f_description: 'standard_windows QBJYangChun',
46
+ children: [
47
+ {
48
+ f_dep_type: '营业厅',
49
+ f_update_date: '2023-09-08 18:54:17',
50
+ loginid: '124748',
51
+ parentname: '铜川天然气有限公司',
52
+ hasright: true,
53
+ f_remark: '',
54
+ resourcetype: 'department',
55
+ parentid: '37710',
56
+ entitytype: 't_department',
57
+ f_dep_id: '1111',
58
+ f_description: '',
59
+ oname: '中海石油气电集团有限责任公司测试',
60
+ children: [
61
+ {
62
+ f_dep_type: '部门',
63
+ f_update_date: '2023-08-30 22:59:51',
64
+ loginid: '122138',
65
+ parentname: '蜜雪冰城',
66
+ hasright: true,
67
+ f_remark: '',
68
+ resourcetype: 'department',
69
+ parentid: '218072726122921986',
70
+ entitytype: 't_department',
71
+ f_dep_id: '1111111',
72
+ f_description: '',
73
+ oname: '蜜雪冰城',
74
+ children: [],
75
+ f_create_date: '2023-08-29 11:10:14',
76
+ f_ldap_version: 25,
77
+ name: '测试',
78
+ selfid: '219413330547310593',
79
+ id: '219413330547310594',
80
+ position: 2,
81
+ fullname: '资源管理.组织机构.铜川天然气有限公司.蜜雪冰城.测试',
82
+ fullid: '3.9.37710.218072726122921986.219413330547310594',
83
+ tablename: 't_department',
84
+ haslicense: 'false'
85
+ }
86
+ ],
87
+ f_create_date: '2023-08-25 18:23:09',
88
+ f_ldap_version: 20,
89
+ name: '蜜雪冰城',
90
+ selfid: '218072726122921985',
91
+ id: '218072726122921986',
92
+ position: 2,
93
+ fullname: '资源管理.组织机构.铜川天然气有限公司.蜜雪冰城',
94
+ fullid: '3.9.37710.218072726122921986',
95
+ tablename: 't_department',
96
+ haslicense: 'false'
97
+ },
98
+ {
99
+ parentname: '铜川天然气有限公司',
100
+ f_icon: 'null',
101
+ f_remark: '',
102
+ parentid: '37710',
103
+ f_dep_id: '001',
104
+ onumber: '',
105
+ children: [],
106
+ selfid: '45501',
107
+ templatename: 'null',
108
+ id: '45500',
109
+ fullid: '3.9.37710.45500',
110
+ tablename: 't_department',
111
+ f_dep_type: '营业厅',
112
+ f_update_date: '2024-01-02 09:56:17',
113
+ loginid: '15',
114
+ hasright: true,
115
+ resourcetype: 'department',
116
+ entitytype: 't_department',
117
+ f_description: '',
118
+ oname: '乌海凯洁燃气有限责任公司',
119
+ f_ldap_version: 70,
120
+ name: '滨河营业厅',
121
+ position: 4,
122
+ fullname: '资源管理.组织机构.铜川天然气有限公司.滨河营业厅',
123
+ haslicense: 'false'
124
+ },
125
+ {
126
+ f_dep_type: '营业厅',
127
+ loginid: '15',
128
+ parentname: '铜川天然气有限公司',
129
+ f_icon: 'null',
130
+ hasright: true,
131
+ f_remark: '',
132
+ resourcetype: 'department',
133
+ parentid: '37710',
134
+ entitytype: 't_department',
135
+ f_dep_id: '003',
136
+ onumber: '',
137
+ f_description: '',
138
+ oname: '乌海凯洁燃气有限责任公司',
139
+ children: [],
140
+ f_ldap_version: 12,
141
+ name: '海南营业厅',
142
+ selfid: '45529',
143
+ templatename: 'null',
144
+ id: '45528',
145
+ position: 6,
146
+ fullname: '资源管理.组织机构.铜川天然气有限公司.海南营业厅',
147
+ fullid: '3.9.37710.45528',
148
+ tablename: 't_department',
149
+ haslicense: 'true'
150
+ },
151
+ {
152
+ f_dep_type: '部门',
153
+ loginid: '15',
154
+ parentname: '铜川天然气有限公司',
155
+ f_icon: 'null',
156
+ hasright: true,
157
+ f_remark: '',
158
+ resourcetype: 'department',
159
+ parentid: '37710',
160
+ entitytype: 't_department',
161
+ f_dep_id: '004',
162
+ onumber: '',
163
+ f_description: '',
164
+ oname: '乌海凯洁燃气有限责任公司',
165
+ children: [],
166
+ f_ldap_version: 4,
167
+ name: '海南政务大厅',
168
+ selfid: '45535',
169
+ templatename: 'null',
170
+ id: '45534',
171
+ position: 7,
172
+ fullname: '资源管理.组织机构.铜川天然气有限公司.海南政务大厅',
173
+ fullid: '3.9.37710.45534',
174
+ tablename: 't_department',
175
+ haslicense: 'true'
176
+ },
177
+ {
178
+ f_dep_type: '营业厅',
179
+ loginid: '15',
180
+ parentname: '铜川天然气有限公司',
181
+ f_icon: 'null',
182
+ hasright: true,
183
+ f_remark: '',
184
+ resourcetype: 'department',
185
+ parentid: '37710',
186
+ entitytype: 't_department',
187
+ f_dep_id: '005',
188
+ onumber: '',
189
+ f_description: '',
190
+ oname: '乌海凯洁燃气有限责任公司',
191
+ children: [],
192
+ f_ldap_version: 2,
193
+ name: '乌达营业厅',
194
+ selfid: '45541',
195
+ templatename: 'null',
196
+ id: '45540',
197
+ position: 8,
198
+ fullname: '资源管理.组织机构.铜川天然气有限公司.乌达营业厅',
199
+ fullid: '3.9.37710.45540',
200
+ tablename: 't_department',
201
+ haslicense: 'true'
202
+ },
203
+ {
204
+ f_dep_type: '营业厅',
205
+ loginid: '15',
206
+ parentname: '铜川天然气有限公司',
207
+ f_icon: 'null',
208
+ hasright: true,
209
+ f_remark: '',
210
+ resourcetype: 'department',
211
+ parentid: '37710',
212
+ entitytype: 't_department',
213
+ f_dep_id: '006',
214
+ onumber: '',
215
+ f_description: '',
216
+ oname: '乌海凯洁燃气有限责任公司',
217
+ children: [],
218
+ name: '乌达政务大厅',
219
+ selfid: '45547',
220
+ templatename: 'null',
221
+ id: '45546',
222
+ position: 9,
223
+ fullname: '资源管理.组织机构.铜川天然气有限公司.乌达政务大厅',
224
+ fullid: '3.9.37710.45546',
225
+ tablename: 't_department',
226
+ haslicense: 'true'
227
+ },
228
+ {
229
+ parentname: '铜川天然气有限公司',
230
+ f_icon: 'null',
231
+ f_remark: '',
232
+ parentid: '37710',
233
+ f_dep_id: '007',
234
+ onumber: '',
235
+ children: [],
236
+ selfid: '59877',
237
+ templatename: 'null',
238
+ id: '59876',
239
+ fullid: '3.9.37710.59876',
240
+ tablename: 't_department',
241
+ f_dep_type: '部门',
242
+ f_update_date: '2023-07-24 09:38:59',
243
+ loginid: '15',
244
+ hasright: true,
245
+ resourcetype: 'department',
246
+ entitytype: 't_department',
247
+ f_description: '',
248
+ oname: '巩义市燃气有限公司',
249
+ f_ldap_version: 25,
250
+ name: '客服中心1',
251
+ position: 13,
252
+ fullname: '资源管理.组织机构.铜川天然气有限公司.客服中心1',
253
+ haslicense: 'false'
254
+ },
255
+ {
256
+ f_dep_type: '部门',
257
+ loginid: '60530',
258
+ parentname: '铜川天然气有限公司',
259
+ hasright: true,
260
+ f_remark: '',
261
+ resourcetype: 'department',
262
+ parentid: '37710',
263
+ entitytype: 't_department',
264
+ f_dep_id: '008',
265
+ f_description: '',
266
+ oname: '乌海凯洁燃气有限责任公司',
267
+ children: [],
268
+ f_ldap_version: 2,
269
+ name: '城网中心',
270
+ selfid: '65856',
271
+ id: '65855',
272
+ position: 14,
273
+ fullname: '资源管理.组织机构.铜川天然气有限公司.城网中心',
274
+ fullid: '3.9.37710.65855',
275
+ tablename: 't_department',
276
+ haslicense: 'true'
277
+ },
278
+ {
279
+ f_dep_type: '部门',
280
+ f_update_date: '2023-07-24 09:48:50',
281
+ loginid: '124748',
282
+ parentname: '铜川天然气有限公司',
283
+ hasright: true,
284
+ f_remark: '',
285
+ resourcetype: 'department',
286
+ parentid: '37710',
287
+ entitytype: 't_department',
288
+ f_dep_id: '1025',
289
+ f_description: '',
290
+ oname: '巩义市燃气有限公司',
291
+ children: [],
292
+ f_create_date: '2023-07-24 09:39:21',
293
+ f_ldap_version: 25,
294
+ name: '客服中心',
295
+ selfid: '206344495946661889',
296
+ id: '206344495946661890',
297
+ position: 46,
298
+ fullname: '资源管理.组织机构.铜川天然气有限公司.客服中心',
299
+ fullid: '3.9.37710.206344495946661890',
300
+ tablename: 't_department',
301
+ haslicense: 'true'
302
+ },
303
+ {
304
+ f_dep_type: '部门',
305
+ f_update_date: '2023-12-15 10:00:03',
306
+ loginid: '122138',
307
+ parentname: '铜川天然气有限公司',
308
+ hasright: true,
309
+ f_remark: '',
310
+ resourcetype: 'department',
311
+ parentid: '37710',
312
+ entitytype: 't_department',
313
+ f_dep_id: '1314523',
314
+ f_description: '',
315
+ oname: ' 安康逸华天然气有限公司',
316
+ children: [],
317
+ f_create_date: '2023-12-15 09:51:36',
318
+ f_ldap_version: 7,
319
+ name: '安检部',
320
+ selfid: '258531431813349377',
321
+ id: '258531431813349378',
322
+ position: 51,
323
+ fullname: '资源管理.组织机构.铜川天然气有限公司.安检部',
324
+ fullid: '3.9.37710.258531431813349378',
325
+ tablename: 't_department',
326
+ haslicense: 'false'
327
+ },
328
+ {
329
+ f_dep_type: '部门',
330
+ f_update_date: '2024-07-19 11:43:14',
331
+ loginid: '15',
332
+ parentname: '铜川天然气有限公司',
333
+ hasright: true,
334
+ f_remark: '',
335
+ resourcetype: 'department',
336
+ parentid: '37710',
337
+ entitytype: 't_department',
338
+ f_dep_id: 'jypx',
339
+ f_description: '',
340
+ oname: '铜川天然气有限公司',
341
+ children: [
342
+ {
343
+ f_dep_type: '部门',
344
+ f_update_date: '2024-07-19 11:42:33',
345
+ loginid: '15',
346
+ parentname: '教育培训中心',
347
+ hasright: true,
348
+ f_remark: '',
349
+ resourcetype: 'department',
350
+ parentid: '337197440237174786',
351
+ entitytype: 't_department',
352
+ f_dep_id: 'kf',
353
+ f_description: '',
354
+ oname: '教育培训部',
355
+ children: [],
356
+ f_create_date: '2024-07-19 11:42:33',
357
+ f_ldap_version: 4,
358
+ name: '开发部',
359
+ selfid: '337197520834920449',
360
+ id: '337197520834920450',
361
+ position: 1,
362
+ fullname: '资源管理.组织机构.铜川天然气有限公司.教育培训中心.开发部',
363
+ fullid: '3.9.37710.337197440237174786.337197520834920450',
364
+ tablename: 't_department',
365
+ haslicense: 'false'
366
+ },
367
+ {
368
+ f_dep_type: '部门',
369
+ f_update_date: '2024-07-19 11:42:56',
370
+ loginid: '15',
371
+ parentname: '教育培训中心',
372
+ hasright: true,
373
+ f_remark: '',
374
+ resourcetype: 'department',
375
+ parentid: '337197440237174786',
376
+ entitytype: 't_department',
377
+ f_dep_id: 'xm',
378
+ f_description: '',
379
+ oname: '教育培训部',
380
+ children: [],
381
+ f_create_date: '2024-07-19 11:42:56',
382
+ f_ldap_version: 4,
383
+ name: '项目部',
384
+ selfid: '337197616142090241',
385
+ id: '337197616142090242',
386
+ position: 2,
387
+ fullname: '资源管理.组织机构.铜川天然气有限公司.教育培训中心.项目部',
388
+ fullid: '3.9.37710.337197440237174786.337197616142090242',
389
+ tablename: 't_department',
390
+ haslicense: 'false'
391
+ },
392
+ {
393
+ f_dep_type: '部门',
394
+ f_update_date: '2024-07-19 11:44:22',
395
+ loginid: '15',
396
+ parentname: '教育培训中心',
397
+ hasright: true,
398
+ f_remark: '',
399
+ resourcetype: 'department',
400
+ parentid: '337197440237174786',
401
+ entitytype: 't_department',
402
+ f_dep_id: 'xueyuan',
403
+ f_description: '',
404
+ oname: '教育培训中心',
405
+ children: [],
406
+ f_create_date: '2024-07-19 11:44:22',
407
+ f_ldap_version: 6,
408
+ name: '学员',
409
+ selfid: '337197976491524097',
410
+ id: '337197976491524098',
411
+ position: 4,
412
+ fullname: '资源管理.组织机构.铜川天然气有限公司.教育培训中心.学员',
413
+ fullid: '3.9.37710.337197440237174786.337197976491524098',
414
+ tablename: 't_department',
415
+ haslicense: 'false'
416
+ }
417
+ ],
418
+ f_create_date: '2024-07-19 11:42:14',
419
+ f_ldap_version: 13,
420
+ name: '教育培训中心',
421
+ selfid: '337197440237174785',
422
+ id: '337197440237174786',
423
+ position: 63,
424
+ fullname: '资源管理.组织机构.铜川天然气有限公司.教育培训中心',
425
+ fullid: '3.9.37710.337197440237174786',
426
+ tablename: 't_department',
427
+ haslicense: 'false'
428
+ }
429
+ ],
430
+ f_ldap_version: 181,
431
+ name: '铜川天然气有限公司',
432
+ selfid: '37711',
433
+ templatename: 'organizationedit',
434
+ id: '37710',
435
+ position: 2,
436
+ fullname: '资源管理.组织机构.铜川天然气有限公司',
437
+ fullid: '3.9.37710',
438
+ tablename: 't_organization',
439
+ f_dir: 'standard'
440
+ },
441
+ {
442
+ f_update_date: '2024-11-01 09:42:50',
443
+ loginid: '15',
444
+ parentname: '组织机构',
445
+ f_serailport: '',
446
+ f_icon: 'tree_org',
447
+ hasright: false,
448
+ f_companylevel: '',
449
+ resourcetype: 'organization',
450
+ parentid: '9',
451
+ number: '123',
452
+ entitytype: 't_organization',
453
+ f_description: '',
454
+ children: [
455
+ {
456
+ f_update_date: '2024-11-07 11:27:36',
457
+ loginid: '15',
458
+ parentname: 'LNG商贸公司',
459
+ f_serailport: '',
460
+ f_icon: 'tree_org',
461
+ hasright: false,
462
+ f_companylevel: '',
463
+ resourcetype: 'organization',
464
+ parentid: '130566',
465
+ number: '12',
466
+ entitytype: 't_organization',
467
+ f_description: '',
468
+ children: [
469
+ {
470
+ f_dep_type: '部门',
471
+ f_update_date: '2024-11-08 17:09:50',
472
+ loginid: '15',
473
+ parentname: '商贸公司',
474
+ hasright: true,
475
+ f_remark: '',
476
+ resourcetype: 'department',
477
+ parentid: '130568',
478
+ f_organization_id: '130566',
479
+ entitytype: 't_department',
480
+ f_dep_id: '测试',
481
+ f_description: '',
482
+ oname: '测试1',
483
+ children: [],
484
+ f_create_date: '2023-04-06 15:38:45',
485
+ f_ldap_version: 8,
486
+ name: '测试部门',
487
+ selfid: '130571',
488
+ id: '130570',
489
+ position: 1,
490
+ fullname: '资源管理.组织机构.LNG商贸公司.商贸公司.测试部门',
491
+ fullid: '3.9.130566.130568.130570',
492
+ tablename: 't_department',
493
+ haslicense: 'false'
494
+ },
495
+ {
496
+ f_dep_type: '部门',
497
+ f_update_date: '2024-11-07 11:28:06',
498
+ loginid: '15',
499
+ parentname: '商贸公司',
500
+ hasright: true,
501
+ f_remark: '',
502
+ resourcetype: 'department',
503
+ parentid: '130568',
504
+ f_organization_id: '130566',
505
+ entitytype: 't_department',
506
+ f_dep_id: '123',
507
+ f_description: '',
508
+ oname: '商贸公司',
509
+ children: [],
510
+ f_create_date: '2024-11-07 11:28:06',
511
+ f_ldap_version: 4,
512
+ name: '财务',
513
+ selfid: '377418936238604289',
514
+ id: '377418936238604290',
515
+ position: 4,
516
+ fullname: '资源管理.组织机构.LNG商贸公司.商贸公司.财务',
517
+ fullid: '3.9.130566.130568.377418936238604290',
518
+ tablename: 't_department',
519
+ haslicense: 'false'
520
+ }
521
+ ],
522
+ f_create_date: '2023-04-06 15:34:59',
523
+ f_ldap_version: 5,
524
+ name: '商贸公司',
525
+ selfid: '130569',
526
+ templatename: 'organizationedit',
527
+ id: '130568',
528
+ position: 1,
529
+ fullname: '资源管理.组织机构.LNG商贸公司.商贸公司',
530
+ fullid: '3.9.130566.130568',
531
+ tablename: 't_organization',
532
+ f_dir: 'standard'
533
+ }
534
+ ],
535
+ f_create_date: '2023-04-06 15:34:33',
536
+ f_ldap_version: 8,
537
+ name: 'LNG商贸公司',
538
+ selfid: '130567',
539
+ templatename: 'organizationedit',
540
+ id: '130566',
541
+ position: 5,
542
+ fullname: '资源管理.组织机构.LNG商贸公司',
543
+ fullid: '3.9.130566',
544
+ tablename: 't_organization',
545
+ f_dir: 'standard'
546
+ },
547
+ {
548
+ f_update_date: '2023-06-28 15:23:19',
549
+ loginid: '15',
550
+ parentname: '组织机构',
551
+ f_serailport: '',
552
+ f_icon: 'tree_org',
553
+ hasright: false,
554
+ f_companylevel: '',
555
+ resourcetype: 'organization',
556
+ parentid: '9',
557
+ entitytype: 't_organization',
558
+ f_description: '',
559
+ children: [
560
+ {
561
+ f_dep_type: '部门',
562
+ f_update_date: '2023-06-28 15:23:37',
563
+ loginid: '15',
564
+ parentname: '测试',
565
+ hasright: true,
566
+ f_remark: '',
567
+ resourcetype: 'department',
568
+ parentid: '197008974028079106',
569
+ entitytype: 't_department',
570
+ f_dep_id: '1211',
571
+ f_description: '',
572
+ oname: '测试',
573
+ children: [],
574
+ f_create_date: '2023-06-28 15:23:37',
575
+ f_ldap_version: 8,
576
+ name: '测试',
577
+ selfid: '197009050406354945',
578
+ id: '197009050406354946',
579
+ position: 1,
580
+ fullname: '资源管理.组织机构.测试.测试',
581
+ fullid: '3.9.197008974028079106.197009050406354946',
582
+ tablename: 't_department',
583
+ haslicense: 'false'
584
+ }
585
+ ],
586
+ f_create_date: '2023-06-28 15:23:19',
587
+ f_ldap_version: 6,
588
+ name: '测试',
589
+ selfid: '197008974028079105',
590
+ templatename: 'organizationedit',
591
+ id: '197008974028079106',
592
+ position: 6,
593
+ fullname: '资源管理.组织机构.测试',
594
+ fullid: '3.9.197008974028079106',
595
+ tablename: 't_organization',
596
+ f_dir: 'standard'
597
+ },
598
+ {
599
+ f_update_date: '2023-08-18 10:01:37',
600
+ loginid: '15',
601
+ parentname: '组织机构',
602
+ f_serailport: '',
603
+ f_icon: 'tree_org',
604
+ hasright: false,
605
+ f_companylevel: '',
606
+ resourcetype: 'organization',
607
+ parentid: '9',
608
+ entitytype: 't_organization',
609
+ f_description: '',
610
+ children: [
611
+ {
612
+ f_update_date: '2023-08-18 10:01:51',
613
+ loginid: '15',
614
+ parentname: '山西民生然气有限公司',
615
+ f_serailport: '',
616
+ f_icon: 'tree_org',
617
+ hasright: false,
618
+ f_companylevel: '',
619
+ resourcetype: 'organization',
620
+ parentid: '215409797858721794',
621
+ entitytype: 't_organization',
622
+ f_description: '',
623
+ children: [
624
+ {
625
+ f_dep_type: '部门',
626
+ f_update_date: '2023-08-18 10:02:28',
627
+ loginid: '15',
628
+ parentname: '运城民生然气有限公司',
629
+ hasright: true,
630
+ f_remark: '',
631
+ resourcetype: 'department',
632
+ parentid: '215409854339219458',
633
+ entitytype: 't_department',
634
+ f_dep_id: '1000111',
635
+ f_description: '',
636
+ oname: '运城民生然气有限公司',
637
+ children: [],
638
+ f_create_date: '2023-08-18 10:02:28',
639
+ f_ldap_version: 4,
640
+ name: '运城民生信息部',
641
+ selfid: '215410011734671361',
642
+ id: '215410011734671362',
643
+ position: 2,
644
+ fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.运城民生信息部',
645
+ fullid: '3.9.215409797858721794.215409854339219458.215410011734671362',
646
+ tablename: 't_department',
647
+ haslicense: 'true'
648
+ },
649
+ {
650
+ f_dep_type: '部门',
651
+ f_update_date: '2023-08-18 12:24:34',
652
+ loginid: '15',
653
+ parentname: '运城民生然气有限公司',
654
+ hasright: true,
655
+ f_remark: '',
656
+ resourcetype: 'department',
657
+ parentid: '215409854339219458',
658
+ entitytype: 't_department',
659
+ f_dep_id: '10001111',
660
+ f_description: '',
661
+ oname: '运城民生然气有限公司',
662
+ children: [],
663
+ f_create_date: '2023-08-18 12:24:34',
664
+ f_ldap_version: 4,
665
+ name: '营业厅',
666
+ selfid: '215445771426856961',
667
+ id: '215445771426856962',
668
+ position: 4,
669
+ fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.营业厅',
670
+ fullid: '3.9.215409797858721794.215409854339219458.215445771426856962',
671
+ tablename: 't_department',
672
+ haslicense: 'true'
673
+ },
674
+ {
675
+ f_dep_type: '部门',
676
+ f_update_date: '2023-08-18 12:25:41',
677
+ loginid: '15',
678
+ parentname: '运城民生然气有限公司',
679
+ hasright: true,
680
+ f_remark: '',
681
+ resourcetype: 'department',
682
+ parentid: '215409854339219458',
683
+ entitytype: 't_department',
684
+ f_dep_id: '123123',
685
+ f_description: '',
686
+ oname: '运城民生然气有限公司',
687
+ children: [],
688
+ f_create_date: '2023-08-18 12:25:41',
689
+ f_ldap_version: 4,
690
+ name: '安检部',
691
+ selfid: '215446052344561665',
692
+ id: '215446052344561666',
693
+ position: 5,
694
+ fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.安检部',
695
+ fullid: '3.9.215409797858721794.215409854339219458.215446052344561666',
696
+ tablename: 't_department',
697
+ haslicense: 'true'
698
+ },
699
+ {
700
+ f_dep_type: '部门',
701
+ f_update_date: '2023-08-18 12:26:00',
702
+ loginid: '15',
703
+ parentname: '运城民生然气有限公司',
704
+ hasright: true,
705
+ f_remark: '',
706
+ resourcetype: 'department',
707
+ parentid: '215409854339219458',
708
+ entitytype: 't_department',
709
+ f_dep_id: '12312313',
710
+ f_description: '',
711
+ oname: '运城民生然气有限公司',
712
+ children: [],
713
+ f_create_date: '2023-08-18 12:26:00',
714
+ f_ldap_version: 4,
715
+ name: '抄表部',
716
+ selfid: '215446129381343233',
717
+ id: '215446129381343234',
718
+ position: 6,
719
+ fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.抄表部',
720
+ fullid: '3.9.215409797858721794.215409854339219458.215446129381343234',
721
+ tablename: 't_department',
722
+ haslicense: 'true'
723
+ },
724
+ {
725
+ f_dep_type: '部门',
726
+ f_update_date: '2023-08-18 12:26:20',
727
+ loginid: '15',
728
+ parentname: '运城民生然气有限公司',
729
+ hasright: true,
730
+ f_remark: '',
731
+ resourcetype: 'department',
732
+ parentid: '215409854339219458',
733
+ entitytype: 't_department',
734
+ f_dep_id: '12313',
735
+ f_description: '',
736
+ oname: '运城民生然气有限公司',
737
+ children: [],
738
+ f_create_date: '2023-08-18 12:26:20',
739
+ f_ldap_version: 4,
740
+ name: '呼叫部',
741
+ selfid: '215446216610283521',
742
+ id: '215446216610283522',
743
+ position: 7,
744
+ fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司.呼叫部',
745
+ fullid: '3.9.215409797858721794.215409854339219458.215446216610283522',
746
+ tablename: 't_department',
747
+ haslicense: 'true'
748
+ }
749
+ ],
750
+ f_create_date: '2023-08-18 10:01:51',
751
+ f_ldap_version: 18,
752
+ name: '运城民生然气有限公司',
753
+ selfid: '215409854339219457',
754
+ templatename: 'organizationedit',
755
+ id: '215409854339219458',
756
+ position: 1,
757
+ fullname: '资源管理.组织机构.山西民生然气有限公司.运城民生然气有限公司',
758
+ fullid: '3.9.215409797858721794.215409854339219458',
759
+ tablename: 't_organization',
760
+ f_dir: 'standard'
761
+ }
762
+ ],
763
+ f_create_date: '2023-08-18 10:01:37',
764
+ f_ldap_version: 5,
765
+ name: '山西民生然气有限公司',
766
+ selfid: '215409797858721793',
767
+ templatename: 'organizationedit',
768
+ id: '215409797858721794',
769
+ position: 8,
770
+ fullname: '资源管理.组织机构.山西民生然气有限公司',
771
+ fullid: '3.9.215409797858721794',
772
+ tablename: 't_organization',
773
+ f_dir: 'standard'
774
+ },
775
+ {
776
+ f_update_date: '2023-09-13 10:29:31',
777
+ loginid: '15',
778
+ parentname: '组织机构',
779
+ f_serailport: '',
780
+ f_icon: 'tree_org',
781
+ hasright: false,
782
+ f_companylevel: '',
783
+ resourcetype: 'organization',
784
+ parentid: '9',
785
+ entitytype: 't_organization',
786
+ f_description: '',
787
+ children: [
788
+ {
789
+ f_dep_type: '部门',
790
+ f_update_date: '2023-09-13 10:32:52',
791
+ loginid: '15',
792
+ parentname: '湖北利川靓力能源',
793
+ hasright: true,
794
+ f_remark: '',
795
+ resourcetype: 'department',
796
+ parentid: '224838903595663362',
797
+ entitytype: 't_department',
798
+ f_dep_id: '0913',
799
+ f_description: '',
800
+ oname: '湖北利川靓力能源',
801
+ children: [],
802
+ f_create_date: '2023-09-13 10:32:52',
803
+ f_ldap_version: 4,
804
+ name: '利川管理部',
805
+ selfid: '224839744440369153',
806
+ id: '224839744440369154',
807
+ position: 2,
808
+ fullname: '资源管理.组织机构.湖北利川靓力能源.利川管理部',
809
+ fullid: '3.9.224838903595663362.224839744440369154',
810
+ tablename: 't_department',
811
+ haslicense: 'false'
812
+ }
813
+ ],
814
+ f_create_date: '2023-09-13 10:29:31',
815
+ f_ldap_version: 5,
816
+ name: '湖北利川靓力能源',
817
+ selfid: '224838903595663361',
818
+ templatename: 'organizationedit',
819
+ id: '224838903595663362',
820
+ position: 9,
821
+ fullname: '资源管理.组织机构.湖北利川靓力能源',
822
+ fullid: '3.9.224838903595663362',
823
+ tablename: 't_organization',
824
+ f_dir: 'standard'
825
+ },
826
+ {
827
+ f_update_date: '2024-04-18 16:38:43',
828
+ loginid: '15',
829
+ parentname: '组织机构',
830
+ f_serailport: '',
831
+ f_icon: 'tree_org',
832
+ hasright: false,
833
+ f_companylevel: '',
834
+ resourcetype: 'organization',
835
+ parentid: '9',
836
+ entitytype: 't_organization',
837
+ f_description: '',
838
+ children: [
839
+ {
840
+ f_dep_type: '部门',
841
+ f_update_date: '2023-09-14 13:54:14',
842
+ loginid: '15',
843
+ parentname: '安康逸华天然气有限公司',
844
+ hasright: true,
845
+ f_remark: '',
846
+ resourcetype: 'department',
847
+ parentid: '225251125815803906',
848
+ entitytype: 't_department',
849
+ f_dep_id: '312',
850
+ f_description: '',
851
+ oname: '安康逸华天然气有限公司',
852
+ children: [],
853
+ f_create_date: '2023-09-14 13:48:26',
854
+ f_ldap_version: 11,
855
+ name: '客服中心',
856
+ selfid: '225251348680146945',
857
+ id: '225251348680146946',
858
+ position: 1,
859
+ fullname: '资源管理.组织机构.安康逸华天然气有限公司.客服中心',
860
+ fullid: '3.9.225251125815803906.225251348680146946',
861
+ tablename: 't_department',
862
+ haslicense: 'true'
863
+ }
864
+ ],
865
+ f_create_date: '2023-09-14 13:47:33',
866
+ f_ldap_version: 8,
867
+ name: '安康逸华天然气有限公司',
868
+ selfid: '225251125815803905',
869
+ templatename: 'organizationedit',
870
+ id: '225251125815803906',
871
+ position: 10,
872
+ fullname: '资源管理.组织机构.安康逸华天然气有限公司',
873
+ fullid: '3.9.225251125815803906',
874
+ tablename: 't_organization',
875
+ f_dir: 'QBJYangChun'
876
+ }
877
+ ],
878
+ f_ldap_version: 15,
879
+ name: '组织机构',
880
+ selfid: '10',
881
+ templatename: 'organizationedit',
882
+ id: '9',
883
+ position: 1,
884
+ fullname: '资源管理.组织机构',
885
+ fullid: '3.9',
886
+ tablename: 't_organization',
887
+ f_dir: 'standard'
888
+ }
889
+ ],
890
+ f_ldap_version: 6,
891
+ selfid: '4',
892
+ name: '资源管理',
893
+ templatename: '根节点编辑模板',
894
+ position: 1,
895
+ id: '3',
896
+ fullname: '资源管理',
897
+ fullid: '3',
898
+ tablename: 't_root'
899
+ }
900
+ ])
901
+
902
+ const { runLogic } = require('@vue2-client/services/api/common')
903
+ runLogic.mockResolvedValue(mockResponse)
904
+
905
+ await searchToListOption(params, (res) => console.log(res))
906
+ })
907
+ })
908
+ describe('searchToOptionByRoleName', () => {
909
+ it('should transform data correctly when response has nested children', async () => {
910
+ const params = { source: '根据角色获取人员', userid: '123', roleName: '维修员' }
911
+ const mockResponse = mockjs.mock([
912
+ {
913
+ qrcode: '/rs/user/getQRcode?QRCODE=5fd0-1725434115230-66711',
914
+ roles: '67189,45552,70046,105861,59894,70154,56731,87803,282828514477080578,91090,206342877528326146,338699095533289474,86256,88883,89751',
915
+ f_sex: '男',
916
+ f_department_id: '45500',
917
+ f_icon: 'tree_user',
918
+ userid: '5fd0-1725434115230-66711',
919
+ accesstime: '1731304553151',
920
+ parentid: '45500',
921
+ password: '**********',
922
+ f_idnumber: '',
923
+ f_create_date: '2024-09-04 15:16:36',
924
+ selfid: '354283617821786113',
925
+ logindate: '2024-11-11 13:55:53',
926
+ templatename: 'useredit',
927
+ id: '354283617821786114',
928
+ state: '在职',
929
+ tablename: 't_user',
930
+ f_update_date: '2024-09-04 15:16:36',
931
+ login_address: '内网IP',
932
+ loginid: '15',
933
+ openid: 'oAVyg6hqc3735FUzBvggjlttYDBY',
934
+ f_user_telephone: '',
935
+ rolestr: '教培分管员,维修员,乌达区派单员,巡线员,营业员,呼叫员,管理员,安检员,客服中心管理员,审核员3,客服中心管理员(气价设置),安检管理员,系统管理,测试营业员,收费员',
936
+ loginnum: 0,
937
+ f_age: '',
938
+ resourcetype: 'user',
939
+ f_organization_id: '37710',
940
+ f_department_name: '滨河营业厅',
941
+ ename: 'tangzenghui',
942
+ entitytype: 't_user',
943
+ f_description: '',
944
+ loginip: '10.233.70.0',
945
+ f_ldap_version: 39,
946
+ name: '唐增辉',
947
+ position: 41,
948
+ haslicense: 'false',
949
+ f_last_modification_time: '2024-09-04 15:16:36',
950
+ forceoutstate: '1',
951
+ f_role_name: '教培分管员 维修员 乌达区派单员 巡线员 营业员 呼叫员 管理员 安检员 客服中心管理员 审核员3 客服中心管理员(气价设置) 安检管理员 系统管理 测试营业员 收费员'
952
+ },
953
+ {
954
+ qrcode: '/rs/user/getQRcode?QRCODE=123454343',
955
+ roles: '56731,45552,129446,307848344640815106,338699095533289474,59894,88883,318800133091360770,217701711119253506',
956
+ f_sex: '男',
957
+ f_department_id: '45500',
958
+ f_icon: 'tree_user',
959
+ userid: '123454343',
960
+ accesstime: '1730259861361',
961
+ parentid: '45500',
962
+ password: '**********',
963
+ f_idnumber: '',
964
+ f_create_date: '2024-07-30 18:14:41',
965
+ selfid: '341282471708590081',
966
+ logindate: '2024-10-30',
967
+ templatename: 'useredit',
968
+ id: '341282471708590082',
969
+ state: '在职',
970
+ tablename: 't_user',
971
+ f_update_date: '2024-07-30 18:14:41',
972
+ login_address: '内网IP',
973
+ loginid: '124748',
974
+ f_user_telephone: '',
975
+ rolestr: '管理员,营业员,呼叫员,维修员,教培分管员,巡线员,呼叫演示,安检管理,财务人员',
976
+ loginnum: 0,
977
+ f_age: '',
978
+ resourcetype: 'user',
979
+ f_organization_id: '37710',
980
+ f_department_name: '滨河营业厅',
981
+ ename: 'hwq',
982
+ entitytype: 't_user',
983
+ f_description: '',
984
+ loginip: '10.233.70.0',
985
+ f_ldap_version: 181,
986
+ name: '何文强',
987
+ position: 39,
988
+ haslicense: 'false',
989
+ f_last_modification_time: '2024-07-30 18:15:25',
990
+ forceoutstate: '1',
991
+ f_role_name: '管理员 营业员 呼叫员 维修员 教培分管员 巡线员 呼叫演示 安检管理 财务人员'
992
+ },
993
+ {
994
+ qrcode: '/rs/user/getQRcode?QRCODE=1111000',
995
+ roles: '67189,207801119064326146,215446483351240706,45552,70046,105861,59894,70154,215411057475321858,56731,126536,91090,126534,206342877528326146,88721,86256,88883,89751',
996
+ f_sex: '男',
997
+ f_department_id: '45500',
998
+ f_icon: 'tree_user',
999
+ userid: '1111000',
1000
+ accesstime: '1712654582914',
1001
+ parentid: '45500',
1002
+ password: '**********',
1003
+ f_idnumber: '',
1004
+ f_create_date: '2024-04-09 17:21:40',
1005
+ selfid: '300681687845699585',
1006
+ logindate: '2024-04-09',
1007
+ templatename: 'useredit',
1008
+ id: '300681687845699586',
1009
+ state: '在职',
1010
+ tablename: 't_user',
1011
+ f_update_date: '2024-04-09 17:21:40',
1012
+ login_address: '内网IP',
1013
+ loginid: '15',
1014
+ f_user_telephone: '',
1015
+ rolestr: '维修员,海勃湾区派单员,营业员,呼叫员,安检员,管理员,客服中心管理员,审核员3,客服中心管理员(气价设置),安检管理员,系统管理,测试营业员,收费员,市场部报装,市场部派工,管理员,信息部管理员,营业员',
1016
+ loginnum: 0,
1017
+ f_age: '',
1018
+ resourcetype: 'user',
1019
+ f_organization_id: '37710',
1020
+ f_department_name: '滨河营业厅',
1021
+ ename: 'msj',
1022
+ entitytype: 't_user',
1023
+ f_description: '',
1024
+ loginip: '192.168.150.170',
1025
+ f_ldap_version: 24,
1026
+ name: '马三金',
1027
+ position: 31,
1028
+ haslicense: 'false',
1029
+ f_last_modification_time: '2024-04-09 17:22:48',
1030
+ forceoutstate: '1',
1031
+ f_role_name: '维修员 海勃湾区派单员 营业员 呼叫员 安检员 管理员 客服中心管理员 审核员3 客服中心管理员(气价设置) 安检管理员 系统管理 测试营业员 收费员 市场部报装 市场部派工 管理员 信息部管理员 营业员'
1032
+ },
1033
+ {
1034
+ qrcode: '/rs/user/getQRcode?QRCODE=123456',
1035
+ roles: '128078,67189,127566,126542,59894,127564,192684790586146817,126540,127562,127560,126538,126536,126534,128944,88883,128946,89751',
1036
+ f_sex: '男',
1037
+ f_department_id: '45500',
1038
+ f_icon: 'tree_user',
1039
+ userid: '123456',
1040
+ accesstime: '1705396824637',
1041
+ parentid: '45500',
1042
+ password: '**********',
1043
+ f_idnumber: '',
1044
+ f_create_date: '2023-12-25 13:57:39',
1045
+ selfid: '262217231268708353',
1046
+ logindate: '2024-01-16',
1047
+ templatename: 'useredit',
1048
+ id: '262217231268708354',
1049
+ state: '在职',
1050
+ tablename: 't_user',
1051
+ f_update_date: '2023-12-25 13:57:39',
1052
+ login_address: 'XX XX',
1053
+ loginid: '122138',
1054
+ f_user_telephone: '',
1055
+ rolestr: '安检员,管理员,维修员,系统管理,市场部报装,市场部派工,运营部派工,工程部派工,抄表员,工程部报装,运营部报装,设计部报装,图纸审核,派单员,子公司市场部报装,营业厅报装,规划部报装',
1056
+ loginnum: 0,
1057
+ f_age: '',
1058
+ resourcetype: 'user',
1059
+ f_organization_id: '37710',
1060
+ f_department_name: '滨河营业厅',
1061
+ ename: 'sycs',
1062
+ entitytype: 't_user',
1063
+ f_description: '',
1064
+ loginip: '61.150.11.26',
1065
+ f_ldap_version: 29,
1066
+ name: '泗阳试用',
1067
+ position: 24,
1068
+ haslicense: '',
1069
+ f_last_modification_time: '2023-12-25 13:57:39',
1070
+ forceoutstate: '1',
1071
+ f_role_name: '安检员 管理员 维修员 系统管理 市场部报装 市场部派工 运营部派工 工程部派工 抄表员 工程部报装 运营部报装 设计部报装 图纸审核 派单员 子公司市场部报装 营业厅报装 规划部报装'
1072
+ },
1073
+ {
1074
+ f_department_id: '45534',
1075
+ userid: '125306',
1076
+ f_show_rolestr: 'null',
1077
+ loginnumber: 'null',
1078
+ number: '125306',
1079
+ password: '**********',
1080
+ f_idnumber: '',
1081
+ f_create_date: '2022-12-14 16:06:31',
1082
+ selfid: '128029',
1083
+ logindate: '2024-11-13 12:46:45',
1084
+ id: '128028',
1085
+ state: '在职',
1086
+ f_user_macip: 'null',
1087
+ loginid: 'null',
1088
+ openid: 'oAVyg6gB_qw34GIp2vRukDYk4eYM',
1089
+ f_user_telephone: '1111111111',
1090
+ f_organization_id: '37710',
1091
+ ename: 'nice',
1092
+ entitytype: 't_user',
1093
+ loginip: '10.233.70.0',
1094
+ name: '张振宇',
1095
+ position: 23,
1096
+ haslicense: 'true',
1097
+ forceoutstate: '1',
1098
+ f_show_department_name: 'null',
1099
+ f_mac_adress: 'null',
1100
+ qrcode: '/rs/user/getQRcode?QRCODE=125306',
1101
+ roles: '128078,45552,129446,105861,267297154459107330,126542,59894,122468,126536,91090,126534,88883,89751',
1102
+ f_sex: '男',
1103
+ f_icon: 'tree_user',
1104
+ accesstime: '1731473205094',
1105
+ parentid: '45534',
1106
+ templatename: 'useredit',
1107
+ f_old_userid: 'null',
1108
+ tablename: 't_user',
1109
+ f_update_date: '2024-07-26 17:04:32',
1110
+ login_address: '内网IP',
1111
+ ticket: 'null',
1112
+ imgid: 'null',
1113
+ rolestr: '巡线管理员,派单员,测试营业员,巡线员,收费员,王三石,抄表员,管理员,维修员,系统管理,营业员,市场部报装,市场部派工',
1114
+ loginnum: 0,
1115
+ f_age: '',
1116
+ resourcetype: 'user',
1117
+ url: 'null',
1118
+ f_department_name: '海南政务大厅',
1119
+ deleted: 'false',
1120
+ f_description: '',
1121
+ f_ldap_version: 1211,
1122
+ f_extend2: 'null',
1123
+ f_last_modification_time: '2024-07-28 21:00:30',
1124
+ f_role_name: '巡线管理员 派单员 测试营业员 巡线员 收费员 王三石 抄表员 管理员 维修员 系统管理 营业员 市场部报装 市场部派工',
1125
+ f_extend1: 'null'
1126
+ },
1127
+ {
1128
+ qrcode: '/rs/user/getQRcode?QRCODE=4a8e-1707299074649-86255',
1129
+ roles: '56731,87803,67189,45552,88721,59894,88883',
1130
+ f_sex: '男',
1131
+ f_department_id: '45500',
1132
+ f_icon: 'tree_user',
1133
+ userid: '4a8e-1707299074649-86255',
1134
+ accesstime: '1707299662006',
1135
+ parentid: '45500',
1136
+ password: '**********',
1137
+ f_idnumber: '',
1138
+ f_create_date: '2024-02-07 17:45:01',
1139
+ selfid: '278219514364166145',
1140
+ logindate: '2024-08-22',
1141
+ templatename: 'useredit',
1142
+ id: '278219514364166146',
1143
+ state: '在职',
1144
+ tablename: 't_user',
1145
+ f_update_date: '2024-02-07 17:45:01',
1146
+ login_address: 'XX XX',
1147
+ loginid: '15',
1148
+ f_user_telephone: '',
1149
+ rolestr: '乌达区派单员,营业员,呼叫员,维修员,海勃湾区派单员,管理员,安检员',
1150
+ loginnum: 1,
1151
+ f_age: '',
1152
+ resourcetype: 'user',
1153
+ f_organization_id: '37710',
1154
+ f_department_name: '滨河营业厅',
1155
+ ename: 'd',
1156
+ entitytype: 't_user',
1157
+ f_description: '',
1158
+ loginip: '61.150.11.113',
1159
+ f_ldap_version: 12,
1160
+ name: '111',
1161
+ position: 21,
1162
+ haslicense: 'false',
1163
+ f_last_modification_time: '2024-02-07 17:45:01',
1164
+ forceoutstate: '1',
1165
+ f_role_name: '乌达区派单员 营业员 呼叫员 维修员 海勃湾区派单员 管理员 安检员'
1166
+ },
1167
+ {
1168
+ f_show_department_name: '',
1169
+ f_mac_adress: 'null',
1170
+ qrcode: '/rs/user/getQRcode?QRCODE=9702-1681349451451-67948',
1171
+ roles: '105861,56731,88883,126542,128960,70046,89751,70154',
1172
+ f_sex: '男',
1173
+ f_icon: 'tree_user',
1174
+ userid: '9702-1681349451451-67948',
1175
+ accesstime: '1716780093913',
1176
+ f_show_rolestr: 'null',
1177
+ parentid: '59876',
1178
+ loginnumber: 'null',
1179
+ number: '9702-1681349451451-67948',
1180
+ password: '**********',
1181
+ f_idnumber: '',
1182
+ f_create_date: '2023-04-13 09:32:21',
1183
+ selfid: '130971',
1184
+ logindate: '2024-05-27',
1185
+ templatename: 'useredit',
1186
+ f_old_userid: 'null',
1187
+ id: '130970',
1188
+ state: '在职',
1189
+ tablename: 't_user',
1190
+ f_user_macip: 'null',
1191
+ f_update_date: '2023-04-13 11:18:28',
1192
+ login_address: '内网IP',
1193
+ loginid: '130304',
1194
+ ticket: 'null',
1195
+ imgid: 'null',
1196
+ f_user_telephone: '',
1197
+ rolestr: '收费员,呼叫员,维修员,抄表员,派单员,客服中心管理员,系统管理,客服中心管理员(气价设置)',
1198
+ loginnum: 0,
1199
+ f_age: '',
1200
+ resourcetype: 'user',
1201
+ url: 'null',
1202
+ f_department_name: '客服中心',
1203
+ ename: 'sh',
1204
+ deleted: 'false',
1205
+ entitytype: 't_user',
1206
+ f_description: '',
1207
+ loginip: '192.168.50.69',
1208
+ f_ldap_version: 2,
1209
+ name: '收费员/话务员',
1210
+ position: 20,
1211
+ haslicense: '',
1212
+ f_extend2: 'null',
1213
+ forceoutstate: '1',
1214
+ f_role_name: '收费员 呼叫员 维修员 抄表员 派单员 客服中心管理员 系统管理 客服中心管理员(气价设置) ',
1215
+ f_extend1: 'null'
1216
+ },
1217
+ {
1218
+ f_department_id: '45528',
1219
+ userid: 'f272-1669095547564-67004',
1220
+ f_show_rolestr: 'null',
1221
+ loginnumber: 'null',
1222
+ number: 'f272-1669095547564-67004',
1223
+ password: '**********',
1224
+ f_idnumber: '',
1225
+ f_create_date: '2022-11-22 13:40:05',
1226
+ selfid: '122441',
1227
+ logindate: '2024-06-27',
1228
+ id: '122440',
1229
+ state: '在职',
1230
+ f_user_macip: 'null',
1231
+ loginid: '15',
1232
+ f_user_telephone: '',
1233
+ f_organization_id: '37710',
1234
+ ename: 'csgy',
1235
+ entitytype: 't_user',
1236
+ loginip: '192.168.50.67',
1237
+ name: '测试公用',
1238
+ position: 20,
1239
+ haslicense: 'false',
1240
+ forceoutstate: '1',
1241
+ f_show_department_name: 'null',
1242
+ f_mac_adress: 'null',
1243
+ qrcode: '/rs/user/getQRcode?QRCODE=f272-1669095547564-67004',
1244
+ roles: '59894,88883,56731,67189',
1245
+ f_sex: '男',
1246
+ f_icon: 'tree_user',
1247
+ accesstime: '1719468188254',
1248
+ parentid: '45528',
1249
+ templatename: 'useredit',
1250
+ f_old_userid: 'null',
1251
+ tablename: 't_user',
1252
+ f_update_date: '2024-01-19 08:36:45',
1253
+ login_address: '内网IP',
1254
+ ticket: 'null',
1255
+ imgid: 'null',
1256
+ rolestr: '管理员,维修员,呼叫员,安检员',
1257
+ loginnum: 0,
1258
+ f_age: '',
1259
+ resourcetype: 'user',
1260
+ url: 'null',
1261
+ f_department_name: '海南营业厅',
1262
+ deleted: 'false',
1263
+ f_description: '',
1264
+ f_ldap_version: 486,
1265
+ f_extend2: 'null',
1266
+ f_role_name: '管理员 维修员 呼叫员 安检员',
1267
+ f_extend1: 'null'
1268
+ },
1269
+ {
1270
+ userid: '1d91-1669088967031-19905',
1271
+ f_show_rolestr: 'null',
1272
+ loginnumber: 'null',
1273
+ number: '1d91-1669088967031-19905',
1274
+ password: '**********',
1275
+ f_idnumber: '',
1276
+ f_create_date: '2022-11-22 11:50:52',
1277
+ selfid: '122139',
1278
+ logindate: '2024-11-13 11:36:39',
1279
+ id: '122138',
1280
+ state: '在职',
1281
+ f_user_macip: 'null',
1282
+ loginid: '15',
1283
+ f_user_telephone: '',
1284
+ ename: 'admin2',
1285
+ entitytype: 't_user',
1286
+ loginip: '10.233.70.0',
1287
+ name: '管理员',
1288
+ position: 18,
1289
+ haslicense: 'false',
1290
+ forceoutstate: '1',
1291
+ f_show_department_name: 'null',
1292
+ f_mac_adress: 'null',
1293
+ qrcode: '/api/af-system/ldapUser/getQRcode?QRCODE=1d91-1669088967031-19905',
1294
+ roles: '67189,70046,45552,128960,105861,126542,59894,70154,56731,282830844236791810,87803,282828514477080578,91090,289084445410066434,88721,282829989592825858,86256,88883,89751',
1295
+ f_sex: '男',
1296
+ f_icon: 'tree_user',
1297
+ accesstime: '1731468999430',
1298
+ parentid: '45500',
1299
+ templatename: 'useredit',
1300
+ f_old_userid: 'null',
1301
+ tablename: 't_user',
1302
+ f_update_date: '2024-11-04 16:57:22',
1303
+ login_address: '内网IP',
1304
+ ticket: 'null',
1305
+ imgid: 'null',
1306
+ rolestr: '安检员,客服中心管理员,营业员,收费员,抄表员,管理员,客服中心管理员(气价设置),呼叫员,需要定位人员,乌达区派单员,巡线员,测试营业员,抄表员,海勃湾区派单员,巡线管理员,安检管理员,维修员,系统管理,派单员',
1307
+ loginnum: 0,
1308
+ f_age: '',
1309
+ resourcetype: 'user',
1310
+ url: 'null',
1311
+ f_department_name: '滨河营业厅',
1312
+ deleted: 'false',
1313
+ f_description: '',
1314
+ f_ldap_version: 11091,
1315
+ f_extend2: 'null',
1316
+ f_last_modification_time: '2024-07-29 09:25:03',
1317
+ f_role_name: '安检员 客服中心管理员 营业员 收费员 抄表员 管理员 客服中心管理员(气价设置) 呼叫员 需要定位人员 乌达区派单员 巡线员 测试营业员 抄表员 海勃湾区派单员 巡线管理员 安检管理员 维修员 系统管理 派单员',
1318
+ f_extend1: 'null'
1319
+ },
1320
+ {
1321
+ qrcode: '/rs/user/getQRcode?QRCODE=7b73-1693795543334-75047',
1322
+ roles: '128078,67189,45552,128960,127566,126542,59894,126540,127562,318800133091360770,127560,56731,122468,126538,126536,126534,128944,88883,128946',
1323
+ f_sex: '男',
1324
+ f_department_id: '45500',
1325
+ f_icon: 'tree_user',
1326
+ userid: '7b73-1693795543334-75047',
1327
+ accesstime: '1724485084261',
1328
+ parentid: '45500',
1329
+ password: '**********',
1330
+ f_idnumber: '',
1331
+ f_create_date: '2023-09-04 10:46:52',
1332
+ selfid: '221581777473503233',
1333
+ logindate: '2024-08-24',
1334
+ templatename: 'useredit',
1335
+ id: '221581777473503234',
1336
+ state: '在职',
1337
+ tablename: 't_user',
1338
+ f_update_date: '2024-05-29 17:18:31',
1339
+ login_address: '内网IP',
1340
+ loginid: '122440',
1341
+ imgid: 'null',
1342
+ f_user_telephone: '',
1343
+ rolestr: '派单员,安检员,营业员,派单员,图纸审核,抄表员,管理员,工程部派工,运营部报装,工程部报装,呼叫员,巡线管理员,运营部派工,市场部派工,市场部报装,子公司市场部报装,维修员,营业厅报装,财务人员',
1344
+ loginnum: 0,
1345
+ f_age: '',
1346
+ resourcetype: 'user',
1347
+ f_organization_id: '37710',
1348
+ f_department_name: '滨河营业厅',
1349
+ ename: 'csgy222',
1350
+ entitytype: 't_user',
1351
+ f_description: '',
1352
+ loginip: '192.168.50.4',
1353
+ f_ldap_version: 259,
1354
+ name: '测试公用222',
1355
+ position: 17,
1356
+ haslicense: 'true',
1357
+ f_last_modification_time: '2024-04-01 13:52:09',
1358
+ forceoutstate: '1',
1359
+ f_role_name: '派单员 安检员 营业员 派单员 图纸审核 抄表员 管理员 工程部派工 运营部报装 工程部报装 呼叫员 巡线管理员 运营部派工 市场部派工 市场部报装 子公司市场部报装 维修员 营业厅报装 财务人员'
1360
+ },
1361
+ {
1362
+ f_show_department_name: 'null',
1363
+ f_mac_adress: 'null',
1364
+ qrcode: '/rs/user/getQRcode?QRCODE=0817',
1365
+ roles: '126542,105861,91090,70154,70046,59894,88883,67189,56731,86256,45552',
1366
+ f_sex: '男',
1367
+ f_icon: 'tree_user',
1368
+ userid: '0817',
1369
+ accesstime: '1713862375320',
1370
+ f_show_rolestr: 'null',
1371
+ parentid: '45540',
1372
+ loginnumber: 'null',
1373
+ number: '0817',
1374
+ password: '**********',
1375
+ f_idnumber: '',
1376
+ f_create_date: '2023-03-31 15:24:15',
1377
+ selfid: '130317',
1378
+ logindate: '2024-04-23',
1379
+ templatename: 'useredit',
1380
+ f_old_userid: 'null',
1381
+ id: '130316',
1382
+ state: '在职',
1383
+ tablename: 't_user',
1384
+ f_user_macip: 'null',
1385
+ f_update_date: '2023-04-23 11:09:51',
1386
+ login_address: '内网IP',
1387
+ loginid: '124748',
1388
+ ticket: 'null',
1389
+ imgid: 'null',
1390
+ f_user_telephone: '',
1391
+ rolestr: '抄表员,收费员,测试营业员,客服中心管理员(气价设置),客服中心管理员,管理员,维修员,安检员,呼叫员,安检管理员,营业员',
1392
+ loginnum: 1,
1393
+ f_age: '',
1394
+ resourcetype: 'user',
1395
+ url: 'null',
1396
+ f_department_name: '乌达营业厅',
1397
+ ename: 'ljc',
1398
+ deleted: 'false',
1399
+ entitytype: 't_user',
1400
+ f_description: '',
1401
+ loginip: '10.233.70.0',
1402
+ f_ldap_version: 37,
1403
+ name: 'lichen',
1404
+ position: 17,
1405
+ haslicense: 'true',
1406
+ f_extend2: 'null',
1407
+ forceoutstate: '1',
1408
+ f_role_name: '抄表员 收费员 测试营业员 客服中心管理员(气价设置) 客服中心管理员 管理员 维修员 安检员 呼叫员 安检管理员 营业员 ',
1409
+ f_extend1: 'null'
1410
+ },
1411
+ {
1412
+ qrcode: '/rs/user/getQRcode?QRCODE=2c95-1692498432984-95557',
1413
+ roles: '67189,128960,219889170502516738,86256,88883',
1414
+ f_sex: '男',
1415
+ f_department_id: '45500',
1416
+ f_icon: 'tree_user',
1417
+ userid: '2c95-1692498432984-95557',
1418
+ accesstime: '1726911937832',
1419
+ parentid: '45500',
1420
+ password: '**********',
1421
+ f_idnumber: '',
1422
+ f_create_date: '2023-08-20 10:28:10',
1423
+ selfid: '216141253706907649',
1424
+ logindate: '2024-09-21',
1425
+ templatename: 'useredit',
1426
+ id: '216141253706907650',
1427
+ state: '在职',
1428
+ tablename: 't_user',
1429
+ f_update_date: '2023-09-07 09:35:42',
1430
+ login_address: '内网IP',
1431
+ loginid: '122138',
1432
+ imgid: 'null',
1433
+ f_user_telephone: '',
1434
+ rolestr: '派单员,演示,维修员,安检管理员,安检员',
1435
+ loginnum: 0,
1436
+ f_age: '',
1437
+ resourcetype: 'user',
1438
+ f_organization_id: '37710',
1439
+ f_department_name: '滨河营业厅',
1440
+ ename: 'ysh',
1441
+ entitytype: 't_user',
1442
+ f_description: '',
1443
+ loginip: '10.233.70.0',
1444
+ f_ldap_version: 100,
1445
+ name: '测试演示号',
1446
+ position: 16,
1447
+ haslicense: 'false',
1448
+ f_last_modification_time: '2023-09-06 19:46:58',
1449
+ forceoutstate: '1',
1450
+ f_role_name: '派单员 演示 维修员 安检管理员 安检员'
1451
+ },
1452
+ {
1453
+ qrcode: '/rs/user/getQRcode?QRCODE=1835-1725334332969-36311',
1454
+ roles: '88883',
1455
+ f_sex: '男',
1456
+ f_department_id: '45528',
1457
+ f_icon: 'tree_user',
1458
+ userid: '1835-1725334332969-36311',
1459
+ accesstime: '1731465819654',
1460
+ parentid: '45528',
1461
+ password: '**********',
1462
+ f_idnumber: '',
1463
+ f_create_date: '2024-09-03 11:32:56',
1464
+ selfid: '353864941641531393',
1465
+ logindate: '2024-11-13 10:43:39',
1466
+ templatename: 'useredit',
1467
+ id: '353864941641531394',
1468
+ state: '在职',
1469
+ tablename: 't_user',
1470
+ f_update_date: '2024-09-03 11:32:56',
1471
+ login_address: '内网IP',
1472
+ loginid: '122138',
1473
+ f_user_telephone: '',
1474
+ rolestr: '维修员',
1475
+ loginnum: 0,
1476
+ f_age: '',
1477
+ resourcetype: 'user',
1478
+ f_organization_id: '37710',
1479
+ f_department_name: '海南营业厅',
1480
+ ename: 'mm',
1481
+ entitytype: 't_user',
1482
+ f_description: '',
1483
+ loginip: '10.233.70.0',
1484
+ f_ldap_version: 21,
1485
+ name: '测试密码',
1486
+ position: 16,
1487
+ haslicense: 'false',
1488
+ f_last_modification_time: '2024-09-03 11:34:05',
1489
+ forceoutstate: '1',
1490
+ f_role_name: '维修员'
1491
+ },
1492
+ {
1493
+ qrcode: '/rs/user/getQRcode?QRCODE=dssasd',
1494
+ roles: '88883,87803,88721,45552,59894,67189,70046,70154,86256,89751,91090,105861',
1495
+ f_sex: '男',
1496
+ f_department_id: '123140',
1497
+ f_icon: 'tree_user',
1498
+ userid: 'dssasd',
1499
+ accesstime: '1725465136539',
1500
+ parentid: '45500',
1501
+ password: '**********',
1502
+ f_idnumber: '',
1503
+ f_create_date: '2023-05-17 16:00:15',
1504
+ selfid: '135809',
1505
+ logindate: '2024-09-04',
1506
+ templatename: 'useredit',
1507
+ id: '135808',
1508
+ state: '在职',
1509
+ tablename: 't_user',
1510
+ f_update_date: '2023-05-17 16:00:15',
1511
+ login_address: '内网IP',
1512
+ loginid: '123140',
1513
+ f_user_telephone: '',
1514
+ rolestr: '维修员,乌达区派单员,海勃湾区派单员,营业员,管理员,安检员,客服中心管理员,客服中心管理员(气价设置),安检管理员,系统管理,测试营业员,收费员',
1515
+ loginnum: 0,
1516
+ f_age: '',
1517
+ resourcetype: 'user',
1518
+ f_organization_id: '123138',
1519
+ f_department_name: '滨河营业厅',
1520
+ ename: 'rs',
1521
+ deleted: 'false',
1522
+ entitytype: 't_user',
1523
+ f_description: '',
1524
+ loginip: '10.233.70.0',
1525
+ f_ldap_version: 3,
1526
+ name: 'ss',
1527
+ position: 15,
1528
+ haslicense: 'true',
1529
+ forceoutstate: '1',
1530
+ f_role_name: '维修员 乌达区派单员 海勃湾区派单员 营业员 管理员 安检员 客服中心管理员 客服中心管理员(气价设置) 安检管理员 系统管理 测试营业员 收费员 '
1531
+ },
1532
+ {
1533
+ qrcode: '/rs/user/getQRcode?QRCODE=xiaozhang',
1534
+ roles: '45552,59894,88883',
1535
+ f_sex: '男',
1536
+ f_department_id: '59876',
1537
+ f_icon: 'tree_user',
1538
+ userid: 'xiaozhang',
1539
+ accesstime: '1687936733696',
1540
+ parentid: '59876',
1541
+ password: '**********',
1542
+ f_idnumber: '',
1543
+ f_create_date: '2023-06-28 15:18:46',
1544
+ selfid: '197007828257472513',
1545
+ templatename: 'useredit',
1546
+ id: '197007828257472514',
1547
+ state: '在职',
1548
+ tablename: 't_user',
1549
+ f_update_date: '2023-06-28 15:18:46',
1550
+ login_address: 'XX XX',
1551
+ loginid: '124748',
1552
+ f_user_telephone: '',
1553
+ rolestr: '维修员,营业员,管理员',
1554
+ loginnum: 0,
1555
+ f_age: '',
1556
+ resourcetype: 'user',
1557
+ f_organization_id: '37710',
1558
+ f_department_name: '客服中心',
1559
+ ename: 'qwer',
1560
+ entitytype: 't_user',
1561
+ f_description: '',
1562
+ loginip: '61.150.11.245',
1563
+ f_ldap_version: 6,
1564
+ name: 'zhang',
1565
+ position: 14,
1566
+ haslicense: '',
1567
+ f_last_modification_time: '2023-06-28 15:18:46',
1568
+ forceoutstate: '1',
1569
+ f_role_name: '维修员 营业员 管理员'
1570
+ },
1571
+ {
1572
+ qrcode: '/rs/user/getQRcode?QRCODE=23123',
1573
+ roles: '67189,225247545964756994,225330026290216962,88883',
1574
+ f_sex: '男',
1575
+ f_department_id: '206344495946661890',
1576
+ f_icon: 'tree_user',
1577
+ userid: '23123',
1578
+ accesstime: '1721714807310',
1579
+ parentid: '206344495946661890',
1580
+ password: '**********',
1581
+ f_idnumber: '',
1582
+ f_create_date: '2023-09-14 15:29:48',
1583
+ selfid: '225276856495112193',
1584
+ logindate: '2024-07-23',
1585
+ templatename: 'useredit',
1586
+ id: '225276856495112194',
1587
+ state: '在职',
1588
+ tablename: 't_user',
1589
+ f_update_date: '2023-12-15 10:47:39',
1590
+ login_address: '内网IP',
1591
+ loginid: '15',
1592
+ imgid: 'null',
1593
+ f_user_telephone: '',
1594
+ rolestr: '安检员,安检呼叫演示,维修员,安检员',
1595
+ loginnum: 0,
1596
+ f_age: '',
1597
+ resourcetype: 'user',
1598
+ f_organization_id: '37710',
1599
+ f_department_name: '客服中心',
1600
+ ename: 'xtys',
1601
+ entitytype: 't_user',
1602
+ f_description: '',
1603
+ loginip: '192.168.50.69',
1604
+ f_ldap_version: 47,
1605
+ name: '系统演示',
1606
+ position: 5,
1607
+ haslicense: '',
1608
+ f_last_modification_time: '2023-09-14 15:29:48',
1609
+ forceoutstate: '1',
1610
+ f_role_name: '安检员 安检呼叫演示 维修员 安检员'
1611
+ },
1612
+ {
1613
+ f_department_id: '218072726122921986',
1614
+ userid: 'lzq11',
1615
+ number: 'lzq11',
1616
+ password: '**********',
1617
+ f_idnumber: '',
1618
+ f_create_date: '2024-04-26 10:11:48',
1619
+ selfid: '306734101812084737',
1620
+ logindate: '2024-11-11 17:52:37',
1621
+ id: '306734101812084738',
1622
+ state: '在职',
1623
+ loginid: '15',
1624
+ f_user_telephone: '',
1625
+ count: '1',
1626
+ f_organization_id: '37710',
1627
+ ename: 'lzq11',
1628
+ loginonline: '1',
1629
+ entitytype: 't_user',
1630
+ tusid: '306734101812084738',
1631
+ organizationname: '铜川天然气有限公司',
1632
+ loginip: '10.233.70.0',
1633
+ name: 'lzq11',
1634
+ position: '4',
1635
+ haslicense: 'true',
1636
+ tdid: '218072726122921986',
1637
+ forceoutstate: '1',
1638
+ qrcode: '/api/af-system/ldapUser/getQRcode?QRCODE=lzq11',
1639
+ roles: '378952574012882946,67189,70046,45552,105861,126542,70154,59894,318800133091360770,56731,87803,91090,344842995125846018,86256,88883,89751,378964491590828032',
1640
+ f_sex: '男',
1641
+ f_icon: 'tree_user',
1642
+ accesstime: '1731318757940',
1643
+ parentid: '218072726122921986',
1644
+ f_dep_id: '1111',
1645
+ templatename: 'useredit',
1646
+ tablename: 't_user',
1647
+ f_update_date: '2024-11-11 17:50:13',
1648
+ login_address: '内网IP',
1649
+ imgid: 'null',
1650
+ tosid: '37710',
1651
+ rolestr: '置换员,安检员,客服中心管理员,营业员,收费员,抄表员,客服中心管理员(气价设置),管理员,财务人员,呼叫员,乌达区派单员,测试营业员,拉黑员,安检管理员,维修员,系统管理,施工员',
1652
+ tuid: '306734101812084738',
1653
+ loginnum: '1',
1654
+ f_age: '',
1655
+ resourcetype: 'user',
1656
+ f_department_name: '蜜雪冰城',
1657
+ f_description: '',
1658
+ f_ldap_version: 634,
1659
+ online: '1',
1660
+ f_last_modification_time: '2024-09-02 10:55:51',
1661
+ f_role_name: '置换员 安检员 客服中心管理员 营业员 收费员 抄表员 客服中心管理员(气价设置) 管理员 财务人员 呼叫员 乌达区派单员 测试营业员 拉黑员 安检管理员 维修员 系统管理 施工员'
1662
+ },
1663
+ {
1664
+ qrcode: '/rs/user/getQRcode?QRCODE=12127',
1665
+ roles: '88883',
1666
+ f_sex: '男',
1667
+ f_department_id: '45500',
1668
+ f_icon: 'tree_user',
1669
+ userid: '12127',
1670
+ accesstime: '0',
1671
+ parentid: '45500',
1672
+ password: '**********',
1673
+ f_idnumber: '',
1674
+ f_create_date: '2023-06-26 16:02:23',
1675
+ selfid: '196294028432637953',
1676
+ templatename: 'useredit',
1677
+ id: '196294028432637954',
1678
+ state: '在职',
1679
+ tablename: 't_user',
1680
+ f_update_date: '2023-09-08 18:51:44',
1681
+ login_address: 'XX XX',
1682
+ loginid: '122138',
1683
+ imgid: 'null',
1684
+ f_user_telephone: '',
1685
+ rolestr: '维修员',
1686
+ loginnum: 0,
1687
+ f_age: '',
1688
+ resourcetype: 'user',
1689
+ f_organization_id: '37710',
1690
+ f_department_name: '滨河营业厅',
1691
+ ename: 'weixiu',
1692
+ entitytype: 't_user',
1693
+ f_description: '',
1694
+ loginip: '61.150.11.245',
1695
+ f_ldap_version: 6,
1696
+ name: '维修员',
1697
+ position: 4,
1698
+ haslicense: '',
1699
+ f_last_modification_time: '2023-06-26 16:02:23',
1700
+ forceoutstate: '1',
1701
+ f_role_name: '维修员'
1702
+ },
1703
+ {
1704
+ qrcode: '/rs/user/getQRcode?QRCODE=73c5-1714362546229-39826',
1705
+ roles: '67189,282828514477080578,129446,307848344640815106,225330026290216962,282829989592825858,86256,88883',
1706
+ f_sex: '男',
1707
+ f_department_id: '258531431813349378',
1708
+ f_icon: 'tree_user',
1709
+ userid: '73c5-1714362546229-39826',
1710
+ accesstime: '1714373274680',
1711
+ parentid: '258531431813349378',
1712
+ password: '**********',
1713
+ f_idnumber: '',
1714
+ f_create_date: '2024-04-29 11:51:09',
1715
+ selfid: '307846266581286913',
1716
+ logindate: '2024-04-29',
1717
+ templatename: 'useredit',
1718
+ id: '307846266581286914',
1719
+ state: '在职',
1720
+ tablename: 't_user',
1721
+ f_update_date: '2024-04-29 12:03:17',
1722
+ login_address: '内网IP',
1723
+ loginid: '15',
1724
+ imgid: 'null',
1725
+ f_user_telephone: '',
1726
+ rolestr: '维修员,巡线员,巡线管理员,安检员,安检管理员,巡线员,安检员,安检管理',
1727
+ loginnum: 0,
1728
+ f_age: '',
1729
+ resourcetype: 'user',
1730
+ f_organization_id: '37710',
1731
+ f_department_name: '安检部',
1732
+ ename: 'xscs',
1733
+ entitytype: 't_user',
1734
+ f_description: '',
1735
+ loginip: '192.168.50.69',
1736
+ f_ldap_version: 34,
1737
+ name: 'xscs',
1738
+ position: 2,
1739
+ haslicense: 'true',
1740
+ f_last_modification_time: '2024-04-29 11:51:09',
1741
+ forceoutstate: '1',
1742
+ f_role_name: '安检员 巡线员 巡线员 安检管理 安检员 巡线管理员 安检管理员 维修员 管理员 '
1743
+ },
1744
+ {
1745
+ f_show_department_name: '',
1746
+ qrcode: '/rs/user/getQRcode?QRCODE=3c1f-1646967713676-00707',
1747
+ roles: '88883',
1748
+ f_sex: '男',
1749
+ f_icon: 'tree_user',
1750
+ userid: '3c1f-1646967713676-00707',
1751
+ accesstime: '1697079377785',
1752
+ f_show_rolestr: '',
1753
+ parentid: '87791',
1754
+ password: '**********',
1755
+ f_idnumber: '',
1756
+ selfid: '89584',
1757
+ logindate: '2023-10-12',
1758
+ templatename: 'useredit',
1759
+ id: '89583',
1760
+ state: '在职',
1761
+ tablename: 't_user',
1762
+ login_address: 'XX XX',
1763
+ loginid: '15',
1764
+ imgid: 'null',
1765
+ f_user_telephone: '',
1766
+ rolestr: '维修员',
1767
+ loginnum: 0,
1768
+ f_age: '',
1769
+ resourcetype: 'user',
1770
+ f_department_name: '海勃湾区维修',
1771
+ ename: 'bhwx',
1772
+ deleted: 'false',
1773
+ entitytype: 't_user',
1774
+ f_description: '',
1775
+ loginip: '61.150.11.245',
1776
+ f_ldap_version: 3,
1777
+ name: '滨河维修',
1778
+ position: 2,
1779
+ haslicense: 'true',
1780
+ forceoutstate: '1',
1781
+ f_role_name: '维修员 '
1782
+ },
1783
+ {
1784
+ userid: '2609-1641179761502-53217',
1785
+ f_show_rolestr: '',
1786
+ loginnumber: 'null',
1787
+ number: '2609-1641179761502-53217',
1788
+ password: '**********',
1789
+ f_idnumber: '',
1790
+ f_create_date: 'null',
1791
+ selfid: '60531',
1792
+ logindate: '2024-11-05',
1793
+ id: '60530',
1794
+ state: '在职',
1795
+ f_user_macip: 'null',
1796
+ loginid: '15',
1797
+ f_user_telephone: '',
1798
+ ename: 'xtgly',
1799
+ entitytype: 't_user',
1800
+ loginip: '10.233.70.0',
1801
+ name: '系统管理员',
1802
+ position: 1,
1803
+ haslicense: 'true',
1804
+ forceoutstate: '1',
1805
+ f_show_department_name: '',
1806
+ f_mac_adress: 'null',
1807
+ qrcode: '/api/af-system/ldapUser/getQRcode?QRCODE=2609-1641179761502-53217',
1808
+ roles: '307477876545028098,67189,45552,70046,105861,126542,59894,70154,56731,87803,329663362722037762,91090,289084445410066434,88721,86256,88883,89751',
1809
+ f_sex: '男',
1810
+ f_icon: 'tree_user',
1811
+ accesstime: '0',
1812
+ parentid: '59876',
1813
+ templatename: 'useredit',
1814
+ f_old_userid: 'null',
1815
+ tablename: 't_user',
1816
+ f_update_date: '2024-11-07 10:11:19',
1817
+ login_address: '内网IP',
1818
+ ticket: 'null',
1819
+ imgid: 'null',
1820
+ rolestr: '报建收费,安检员,营业员,客服中心管理员,收费员,管理员,客服中心管理员(气价设置),呼叫员,乌达区派单员,限时登录,测试营业员,海勃湾区派单员,安检管理员,维修员,系统管理,抄表员,抄表员',
1821
+ loginnum: 1,
1822
+ f_age: '',
1823
+ resourcetype: 'user',
1824
+ url: 'null',
1825
+ f_department_name: '客服中心',
1826
+ deleted: 'false',
1827
+ f_description: '1',
1828
+ f_ldap_version: 799,
1829
+ f_extend2: 'null',
1830
+ f_last_modification_time: '2024-08-02 10:35:03',
1831
+ f_role_name: '报建收费 安检员 营业员 客服中心管理员 收费员 管理员 客服中心管理员(气价设置) 呼叫员 乌达区派单员 限时登录 测试营业员 海勃湾区派单员 安检管理员 维修员 系统管理 抄表员 抄表员',
1832
+ f_extend1: 'null'
1833
+ },
1834
+ {
1835
+ qrcode: '/rs/user/getQRcode?QRCODE=1009231',
1836
+ roles: '224839384405508098,303935828395163650,59894,88883,89751',
1837
+ f_sex: '男',
1838
+ f_department_id: '303935382460956674',
1839
+ f_icon: 'tree_user',
1840
+ userid: '1009231',
1841
+ accesstime: '1724221301650',
1842
+ parentid: '303935382460956674',
1843
+ password: '**********',
1844
+ f_idnumber: '',
1845
+ f_create_date: '2024-04-18 16:54:12',
1846
+ selfid: '303936264133017601',
1847
+ logindate: '2024-09-29',
1848
+ templatename: 'useredit',
1849
+ id: '303936264133017602',
1850
+ state: '在职',
1851
+ tablename: 't_user',
1852
+ f_update_date: '2024-06-24 14:23:29',
1853
+ login_address: '内网IP',
1854
+ loginid: '15',
1855
+ imgid: 'null',
1856
+ f_user_telephone: '',
1857
+ rolestr: '阳春管理员,利川管理员,维修员,管理员,系统管理',
1858
+ loginnum: 1,
1859
+ f_age: '',
1860
+ resourcetype: 'user',
1861
+ f_organization_id: '303935212625199106',
1862
+ f_department_name: '客服中心',
1863
+ ename: 'ycgly',
1864
+ entitytype: 't_user',
1865
+ f_description: '',
1866
+ loginip: '10.233.70.0',
1867
+ f_ldap_version: 22,
1868
+ name: '阳春管理员',
1869
+ position: 1,
1870
+ haslicense: 'true',
1871
+ f_last_modification_time: '2024-06-24 14:22:54',
1872
+ forceoutstate: '1',
1873
+ f_role_name: '阳春管理员 利川管理员 维修员 管理员 系统管理'
1874
+ }
1875
+ ])
1876
+
1877
+ const { runLogic } = require('@vue2-client/services/api/common')
1878
+ runLogic.mockResolvedValue(mockResponse)
1879
+
1880
+ await searchToListOption(params, (res) => console.log(res))
1881
+ })
1882
+ })
1883
+
1884
+ describe('获取分公司-列表', () => {
1885
+ it('should transform data correctly when response has nested children', async () => {
1886
+ const params = { source: '获取分公司', userid: '123' }
1887
+ const mockResponse = mockjs.mock([
1888
+ {
1889
+ hasright: false,
1890
+ resourcetype: 'root',
1891
+ entitytype: 't_root',
1892
+ children: [
1893
+ {
1894
+ parentname: '资源管理',
1895
+ f_icon: 'tree_org',
1896
+ hasright: false,
1897
+ f_companylevel: '',
1898
+ resourcetype: 'organization',
1899
+ parentid: '3',
1900
+ number: '1',
1901
+ entitytype: 't_organization',
1902
+ f_description: '根组织',
1903
+ children: [
1904
+ {
1905
+ f_update_date: '2024-10-16 17:04:20',
1906
+ loginid: '15',
1907
+ parentname: '组织机构',
1908
+ f_icon: 'tree_org',
1909
+ hasright: true,
1910
+ f_companylevel: '',
1911
+ resourcetype: 'organization',
1912
+ parentid: '9',
1913
+ number: '',
1914
+ entitytype: 't_organization',
1915
+ f_description: 'standard_windows QBJYangChun',
1916
+ children: [
1917
+ {
1918
+ f_update_date: '2024-10-16 18:23:45',
1919
+ loginid: '128028',
1920
+ parentname: '铜川天然气有限公司',
1921
+ f_serailport: '',
1922
+ f_icon: 'tree_org',
1923
+ hasright: true,
1924
+ f_companylevel: '',
1925
+ resourcetype: 'organization',
1926
+ parentid: '37710',
1927
+ entitytype: 't_organization',
1928
+ f_description: '',
1929
+ children: [],
1930
+ f_create_date: '2024-10-16 18:23:20',
1931
+ f_ldap_version: 3,
1932
+ name: '测试222',
1933
+ selfid: '369550898785026049',
1934
+ templatename: 'organizationedit',
1935
+ id: '369550898785026050',
1936
+ position: 79,
1937
+ fullname: '资源管理.组织机构.铜川天然气有限公司.测试222',
1938
+ fullid: '3.9.37710.369550898785026050',
1939
+ tablename: 't_organization',
1940
+ f_dir: ''
1941
+ }
1942
+ ],
1943
+ f_ldap_version: 181,
1944
+ name: '铜川天然气有限公司',
1945
+ selfid: '37711',
1946
+ templatename: 'organizationedit',
1947
+ id: '37710',
1948
+ position: 2,
1949
+ fullname: '资源管理.组织机构.铜川天然气有限公司',
1950
+ fullid: '3.9.37710',
1951
+ tablename: 't_organization',
1952
+ f_dir: 'standard'
1953
+ }
1954
+ ],
1955
+ f_ldap_version: 15,
1956
+ name: '组织机构',
1957
+ selfid: '10',
1958
+ templatename: 'organizationedit',
1959
+ id: '9',
1960
+ position: 1,
1961
+ fullname: '资源管理.组织机构',
1962
+ fullid: '3.9',
1963
+ tablename: 't_organization',
1964
+ f_dir: 'standard'
1965
+ }
1966
+ ],
1967
+ f_ldap_version: 6,
1968
+ selfid: '4',
1969
+ name: '资源管理',
1970
+ templatename: '根节点编辑模板',
1971
+ position: 1,
1972
+ id: '3',
1973
+ fullname: '资源管理',
1974
+ fullid: '3',
1975
+ tablename: 't_root'
1976
+ }
1977
+ ])
1978
+
1979
+ const { runLogic } = require('@vue2-client/services/api/common')
1980
+ runLogic.mockResolvedValue(mockResponse)
1981
+
1982
+ await searchToListOption(params, (res) => console.log(res))
1983
+ })
1984
+ })