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