cloud-web-corejs 1.0.54-dev.3 → 1.0.54-dev.300

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/package.json +8 -3
  2. package/src/components/Qrcode/fileParse.vue +0 -1
  3. package/src/components/VabUpload/index.vue +2 -1
  4. package/src/components/VabUpload/mixins.js +1 -1
  5. package/src/components/VabUpload/propertiesDialog.vue +1 -1
  6. package/src/components/VabUpload/view.vue +135 -119
  7. package/src/components/advancedSearchDialog/mixins.js +1 -1
  8. package/src/components/baseAttachment/index.vue +49 -40
  9. package/src/components/baseAttachment/mixins.js +1 -1
  10. package/src/components/errorMsg/mixins.js +89 -5
  11. package/src/components/excelExport/button.vue +57 -4
  12. package/src/components/excelExport/exportFieldDialog.vue +211 -0
  13. package/src/components/excelExport/index.js +44 -1
  14. package/src/components/excelExport/index.vue +64 -7
  15. package/src/components/excelExport/mixins.js +939 -1
  16. package/src/components/excelImport/index.js +13 -13
  17. package/src/components/excelImport/index.vue +9 -6
  18. package/src/components/excelImport/mixins.js +1 -1
  19. package/src/components/fileLibrary/fileObjAuthDialog.vue +125 -103
  20. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +12 -1
  21. package/src/components/fileLibrary/fileObjNotifyEdit.vue +192 -0
  22. package/src/components/fileLibrary/filterDialog.vue +383 -0
  23. package/src/components/fileLibrary/index.vue +25 -26
  24. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  25. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  26. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  27. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +346 -201
  28. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
  29. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  30. package/src/components/fileLibrary/mixins/indexMixins.js +85 -24
  31. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  32. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  33. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  34. package/src/components/fileLibrary/shareDialog.vue +1 -1
  35. package/src/components/formOplog/mixins.js +77 -1
  36. package/src/components/jsonImport/index.js +1 -1
  37. package/src/components/jsonImport/mixins.js +1 -1
  38. package/src/components/onlineTalk/index.vue +327 -5
  39. package/src/components/onlineTalk/mixins.js +1 -1
  40. package/src/components/statusTag/mixins.js +66 -1
  41. package/src/components/table/CellSlot.vue +1 -0
  42. package/src/components/table/index.js +12 -10
  43. package/src/components/table/tableForm.vue +99 -63
  44. package/src/components/table/tableFormMixin.js +1 -1
  45. package/src/components/table/util/index.js +331 -0
  46. package/src/components/table/vxeFilter/mixin.js +6 -6
  47. package/src/components/tempStorage/index.vue +9 -6
  48. package/src/components/tempStorage/tempStorageDialog.vue +3 -3
  49. package/src/components/vb-tabs/x-tabs.vue +3 -2
  50. package/src/components/wf/content.vue +125 -28
  51. package/src/components/wf/mixins/setCandidateDialog.js +218 -1
  52. package/src/components/wf/setCandidateDialog.vue +10 -0
  53. package/src/components/wf/setCandidateDialog2.vue +320 -0
  54. package/src/components/wf/wf.js +2062 -1
  55. package/src/components/wf/wfStartDialog.vue +70 -42
  56. package/src/components/wf/wfTaskUserRangeDialog.vue +136 -0
  57. package/src/components/wf/wfUtil.js +279 -1
  58. package/src/components/xform/form-designer/designer.js +1543 -2
  59. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
  60. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
  61. package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
  62. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
  63. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +17 -4
  64. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +6 -1
  65. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
  66. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  67. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  68. package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
  69. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +31 -11
  70. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
  71. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
  72. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
  73. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  74. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  75. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  76. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
  77. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  78. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
  79. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  80. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  81. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  82. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  83. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  84. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1520 -16
  85. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +632 -379
  86. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
  87. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
  88. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  89. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  90. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  91. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  92. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  93. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +2 -2
  94. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
  95. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
  96. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
  97. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
  98. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
  99. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  100. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
  101. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +22 -17
  102. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  103. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
  104. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
  105. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  106. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  107. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  108. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
  109. package/src/components/xform/form-designer/indexMixin.js +820 -1
  110. package/src/components/xform/form-designer/setting-panel/form-setting.vue +880 -158
  111. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  112. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  113. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +71 -7
  114. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
  115. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
  116. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  117. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  118. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
  119. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  120. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
  121. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1077 -1042
  122. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  123. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1183 -500
  124. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  125. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
  126. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  127. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  128. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  129. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  130. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
  131. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  132. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  133. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  134. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
  135. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
  136. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  137. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  138. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  139. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  140. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  141. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  142. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
  143. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
  144. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  145. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
  146. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
  147. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  148. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  149. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  150. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
  151. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
  152. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
  153. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
  154. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  155. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
  156. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  157. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
  158. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  159. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  160. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  161. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
  162. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
  163. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
  164. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  165. package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
  166. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
  167. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
  168. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
  169. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
  170. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
  171. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +25 -10
  172. package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
  173. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  174. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  175. package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
  176. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1428 -865
  177. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  178. package/src/components/xform/form-render/container-item/data-table-item.vue +86 -42
  179. package/src/components/xform/form-render/container-item/data-table-mixin.js +2433 -18
  180. package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
  181. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  182. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  183. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  184. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  185. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  186. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  187. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  188. package/src/components/xform/form-render/index.vue +4 -1
  189. package/src/components/xform/form-render/indexMixin.js +3018 -3
  190. package/src/components/xform/lang/zh-CN.js +17 -3
  191. package/src/components/xform/mixins/defaultHandle.js +330 -1
  192. package/src/components/xform/mixins/scriptHttp.js +174 -1
  193. package/src/components/xform/utils/emitter.js +4 -4
  194. package/src/components/xform/utils/format.js +21 -30
  195. package/src/components/xform/utils/formula-util.js +669 -0
  196. package/src/components/xform/utils/util.js +1450 -1
  197. package/src/components/xform/utils/validators.js +1 -5
  198. package/src/index.js +2 -2
  199. package/src/layout/components/AppMain.vue +5 -1
  200. package/src/layout/components/Sidebar/default.vue +1266 -1222
  201. package/src/layout/components/TagsView/index.vue +37 -12
  202. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  203. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  204. package/src/layout/components/extractedCode/viewDialog.vue +193 -0
  205. package/src/layout/components/notify_message/unreadDialog.vue +11 -5
  206. package/src/layout/components/watermark/index.vue +83 -0
  207. package/src/layout/defaultLayout.vue +1 -1
  208. package/src/mixins/selectDialog/index.js +1 -1
  209. package/src/mixins/tableTree/index.js +1 -1
  210. package/src/router/modules/customer.js +61 -8
  211. package/src/store/config/index.js +1 -1
  212. package/src/store/modules/permission.js +1 -1
  213. package/src/store/modules/settings.js +1 -1
  214. package/src/store/modules/tagsView.js +1 -14
  215. package/src/store/modules/user.js +1 -1
  216. package/src/utils/index.js +575 -3
  217. package/src/utils/pddLog.js +103 -0
  218. package/src/utils/pdfUtil.js +71 -0
  219. package/src/utils/request.js +351 -28
  220. package/src/utils/vab.js +19 -27
  221. package/src/views/bd/setting/bd_attach_setting/edit.vue +4 -4
  222. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  223. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  224. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
  225. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
  226. package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
  227. package/src/views/bd/setting/bd_company_env/list.vue +175 -0
  228. package/src/views/bd/setting/config_manage/list.vue +51 -0
  229. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  230. package/src/views/bd/setting/form_import_log/list.vue +206 -0
  231. package/src/views/bd/setting/form_script/edit.vue +9 -0
  232. package/src/views/bd/setting/form_script/edit1.vue +36 -3
  233. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  234. package/src/views/bd/setting/form_script/list1.vue +4 -4
  235. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  236. package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
  237. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  238. package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
  239. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  240. package/src/views/bd/setting/form_script/mixins/list1.js +422 -14
  241. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  242. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  243. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  244. package/src/views/bd/setting/form_template/edit.vue +22 -1
  245. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  246. package/src/views/bd/setting/form_template/list.vue +7 -5
  247. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  248. package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
  249. package/src/views/bd/setting/form_template/mixins/list.js +688 -22
  250. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  251. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  252. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  253. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  254. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  255. package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
  256. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  257. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +2 -2
  258. package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
  259. package/src/views/bd/setting/push_data/edit.vue +139 -0
  260. package/src/views/bd/setting/push_data/list.vue +283 -0
  261. package/src/views/bd/setting/push_data_h/edit.vue +153 -0
  262. package/src/views/bd/setting/push_data_h/list.vue +293 -0
  263. package/src/views/bd/setting/request_async_setting/edit.vue +279 -0
  264. package/src/views/bd/setting/request_async_setting/list.vue +297 -0
  265. package/src/views/bd/setting/request_setting/edit.vue +258 -0
  266. package/src/views/bd/setting/request_setting/list.vue +248 -0
  267. package/src/views/bd/setting/table_model/edit.vue +875 -426
  268. package/src/views/bd/setting/table_model/list.vue +6 -4
  269. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  270. package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
  271. package/src/views/bd/setting/table_model/mixins/list.js +439 -14
  272. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  273. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  274. package/src/views/user/area/dialog.vue +21 -9
  275. package/src/views/user/bill_setting/edit.vue +1 -1
  276. package/src/views/user/bill_setting/list.vue +1 -1
  277. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  278. package/src/views/user/common_attribute/list.vue +1 -1
  279. package/src/views/user/common_script/edit.vue +1 -1
  280. package/src/views/user/common_script/list.vue +1 -1
  281. package/src/views/user/company_info/dialog.vue +164 -154
  282. package/src/views/user/company_info/edit.vue +9 -1
  283. package/src/views/user/extend_datasource/dialog.vue +1 -0
  284. package/src/views/user/extend_datasource/edit.vue +3 -0
  285. package/src/views/user/extend_datasource/list.vue +2 -1
  286. package/src/views/user/fieldTranslation/editDialog.vue +7 -7
  287. package/src/views/user/fieldTranslation/list.vue +32 -32
  288. package/src/views/user/file_type/edit.vue +30 -1
  289. package/src/views/user/file_type/list.vue +28 -0
  290. package/src/views/user/form/vform/designer.vue +775 -749
  291. package/src/views/user/form/vform/out_render.vue +1 -1
  292. package/src/views/user/form/vform/render.vue +8 -4
  293. package/src/views/user/form/view/edit.vue +38 -37
  294. package/src/views/user/form/view/list.vue +68 -15
  295. package/src/views/user/groups/edit.vue +2 -0
  296. package/src/views/user/groups/list.vue +1 -0
  297. package/src/views/user/home/default.vue +1024 -979
  298. package/src/views/user/home/dev.vue +29 -0
  299. package/src/views/user/home/index.vue +20 -8
  300. package/src/views/user/login/default.vue +36 -5
  301. package/src/views/user/login/indexMixin.js +117 -3
  302. package/src/views/user/notify_message/dialog.vue +1 -1
  303. package/src/views/user/notify_template/edit.vue +188 -187
  304. package/src/views/user/notify_template/edit2.vue +176 -0
  305. package/src/views/user/notify_template/list.vue +4 -1
  306. package/src/views/user/notify_template/list2.vue +190 -0
  307. package/src/views/user/outLink/form_view.vue +39 -12
  308. package/src/views/user/outLink/index.vue +17 -0
  309. package/src/views/user/outLink/view.vue +39 -13
  310. package/src/views/user/position/edit.vue +55 -54
  311. package/src/views/user/position/list.vue +4 -4
  312. package/src/views/user/project_tag/dialog.vue +9 -4
  313. package/src/views/user/project_tag/edit.vue +2 -2
  314. package/src/views/user/project_tag/list.vue +9 -4
  315. package/src/views/user/push_setting/list.vue +2 -2
  316. package/src/views/user/request_setting/edit.vue +258 -0
  317. package/src/views/user/request_setting/list.vue +248 -0
  318. package/src/views/user/role/dialog.vue +1 -1
  319. package/src/views/user/role/list.vue +4 -4
  320. package/src/views/user/sale_org/dialog.vue +1 -1
  321. package/src/views/user/sale_org/list.vue +4 -1
  322. package/src/views/user/system_notice/infoDialog.vue +25 -1
  323. package/src/views/user/user/dialog.vue +46 -23
  324. package/src/views/user/user/edit.vue +1059 -1021
  325. package/src/views/user/user/form_dialog.vue +158 -0
  326. package/src/views/user/user/form_edit.vue +117 -49
  327. package/src/views/user/user/form_info.vue +210 -0
  328. package/src/views/user/user/form_list.vue +1 -0
  329. package/src/views/user/user/list.vue +582 -563
  330. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
  331. package/src/views/user/wf/wf_manage/list.vue +30 -1
  332. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  333. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  334. package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
  335. package/src/views/user/wf/wf_obj_config/list.vue +138 -5
  336. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
@@ -1,1222 +1,1266 @@
1
- <template>
2
- <div :class="{ 'has-logo': showLogo }">
3
- <!-- <logo v-if="showLogo" :collapse="isCollapse" /> -->
4
-
5
- <div class="hamburger-box" ref="hamhurger" @click="openUserInfo">
6
- <!-- <hamburger :is-active="sidebar.opened" @toggleClick="toggleSideBar" /> -->
7
- <div>
8
- <p class="name"><i class="iconfont icon-ziyuan"></i><span>{{ userInfo.nickName }}</span></p>
9
- </div>
10
- </div>
11
- <div class="business-name" ref="business">
12
- <el-tooltip :enterable="false" effect="dark" :content="companyInfo.companyName" :placement="direction">
13
- <p v-show="getMenuFlag()">{{ companyInfo.companyName }}</p>
14
- </el-tooltip>
15
- </div>
16
- <div class="fase-box" ref="fase" @mouseleave="$emit('selfClose')" @mouseenter="$emit('selfEnter')">
17
- <langTool v-if="getMenuFlag()"></langTool>
18
- <div class="item" @click="openCompanyDialog" v-if="getMenuFlag()">
19
- <el-tooltip :enterable="false" effect="dark" :content="$t1('切换组织')" :placement="direction">
20
- <i class="el-icon-set-up"/>
21
- </el-tooltip>
22
- </div>
23
- <div class="item" v-if="getMenuFlag()">
24
- <el-tooltip :enterable="false" effect="dark" :content="$t1('流程待办')" :placement="direction">
25
- <i class="iconfont icon-liuchengdaiban" @click="$router.push('/basic/wf/wf_manage/list')"/>
26
- </el-tooltip>
27
- </div>
28
- <div class="item" @click="logout()">
29
- <el-tooltip :enterable="false" effect="dark" :content="$t1('退出')" :placement="direction">
30
- <i class="el-icon-switch-button"/>
31
- </el-tooltip>
32
- </div>
33
- </div>
34
- <template v-for="router1 in viewRouter">
35
- <template v-for="router2 in router1.children">
36
- <div
37
- class="second-list"
38
- :key="router1.id + 't'+router2.id"
39
- :class="{ on: router2.id == nowNavID }"
40
- @mouseenter="stopFlag = 1"
41
- @mouseleave="showNav()"
42
- v-show="router2.id == nowNavID"
43
- :ref="'seconMenus' + router2.id"
44
- >
45
- <i class="ico-arrow"></i>
46
- <div>
47
- <div class="tit"><i :class="getMenuClass(router2,2)"></i><span>{{ getMenuName(router2) }}</span></div>
48
- <dl v-for="(router3,index3) in router2.children" :key="'router3'+index3">
49
-
50
- <div class="item" v-if="!router3.hidden" @click="rourteTo(router3,router1)">
51
- <!--<i class="el-icon-caret-right"></i>-->
52
- <i :class="getMenuClass(router3,3)"></i>
53
- <a>{{ getMenuName(router3) }}</a>
54
- </div>
55
- </dl>
56
- </div>
57
- </div>
58
- </template>
59
- </template>
60
- <el-menu
61
- class="menu-box"
62
- :class="{'lang-zh':$i18n.locale=='zh'}"
63
- text-color="#fff"
64
- active-text-color="#fff"
65
- :unique-opened="true"
66
- @mouseleave="showNav()"
67
- ref="seconMenus"
68
- >
69
- <el-scrollbar wrap-class="scrollbar-wrapper" id="menuUl">
70
- <el-submenu v-for="menuModule in menuModules" :index="''+menuModule.id" :key="'menuModule'+menuModule.id"
71
- @click.native="rourteTo(menuModule)">
72
- <template slot="title">
73
- <i :class="getMenuClass(menuModule,1)"></i>
74
- <span>{{ getMenuName(menuModule) }}</span>
75
- </template>
76
- <el-menu-item v-for="(router1, index1) in menuModule.children" :key="index1" :index="''+router1.id"
77
- :class="getMenuClass(router1,2)"
78
- @mouseenter.native="showNav(router1, $event)" @mouseleave.native="showNav()"
79
- @click="rourteTo(router1)">
80
- {{ getMenuName(router1) }}
81
- <i class="el-icon-caret-right" v-if="router1.children.length > 0"/>
82
- </el-menu-item>
83
- </el-submenu>
84
- </el-scrollbar>
85
- </el-menu>
86
- <div class="menu-btn">
87
- <i class="el-icon-arrow-up" @click="toUpMove()"></i>
88
- <i class="el-icon-arrow-down" @click="toDownMove()"></i>
89
- </div>
90
- <div id="tta" style="position: absolute;height: 100%;top: 0;right: 0;z-index: 9999;width: 800px;left: 100%;"
91
- v-if="showMenuModal"></div>
92
- <el-dialog
93
- title="切换组织"
94
- width="355px"
95
- custom-class="dialog-style list-dialog"
96
- v-if="showCompanyDialog"
97
- :visible.sync="showCompanyDialog"
98
- :append-to-body="true"
99
- :modal-append-to-body="true"
100
- :close-on-click-modal="false"
101
- v-el-drag-dialog
102
- v-el-dialog-center
103
- @close="changeCompanyClose"
104
- >
105
- <div class="cont">
106
- <el-input placeholder="搜索" class="search-btn" v-model="filterText"></el-input>
107
- <el-tree
108
- :props="defaultProps"
109
- :load="loadNode"
110
- node-key="id"
111
- ref="tree"
112
- highlight-current
113
- lazy
114
- :expand-on-click-node="true"
115
- @node-click="handleNodeClick"
116
- class="organization-tree"
117
- icon-class="el-icon-arrow-right"
118
- :filter-node-method="filterNode"
119
- ></el-tree>
120
- </div>
121
- <!-- <span slot="footer" class="dialog-footer">
122
- <el-button type="primary" plain class="button-sty" @click="changeCompanyClose">
123
- <i class="el-icon-close el-icon"></i>
124
- 取 消
125
- </el-button>
126
- <el-button type="primary" @click="changeCompany" class="button-sty">
127
- <i class="el-icon-check el-icon"></i>
128
- 确 定
129
- </el-button>
130
- </span> -->
131
- </el-dialog>
132
-
133
- <infoIframeDialog v-if="showInfoIframeDialog" :visiable.sync="showInfoIframeDialog"
134
- :dataId="userInfo.id"></infoIframeDialog>
135
- <userInfo v-if="showUserInfoDialog" :visiable.sync="showUserInfoDialog" :_dataId="userInfo.id" topValue="128px"
136
- @reload="userInfoReload"></userInfo>
137
-
138
- <onlineTalk></onlineTalk>
139
- </div>
140
- </template>
141
-
142
- <script>
143
- import {mapGetters} from 'vuex';
144
- import variables from '@/styles/variables.scss';
145
- import userInfo from '@base/views/user/user/info.vue';
146
- import onlineTalk from "@base/components/onlineTalk";
147
- import {
148
- getToken
149
- } from '@base/utils/auth';
150
- import indexUtil from "@base/utils/index.js"
151
- import langTool from "../langTool.vue";
152
-
153
- export default {
154
- props: {
155
- option: Object
156
- },
157
- data() {
158
- return {
159
- direction: 'bottom',
160
- defaultOpenedsArray: [],
161
- viewRouter: [],
162
- showMenuModal: false,
163
- menuheight: {
164
- height: ''
165
- },
166
- defaultProps: {
167
- label: 'label', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
168
- children: [],
169
- isLeaf: 'leaf'
170
- },
171
- filterText: null,
172
- showCompanyDialog: false,
173
- choose_company_info: '',
174
- userInfo: {},
175
- companyInfo: {},
176
- showUserInfoDialog: false,
177
- hoverStatus: false,
178
- nowNavID: 'null',
179
- stopFlag: 0,
180
- showInfoIframeDialog: false,
181
- currentMenu: null,
182
- menuModules: [],
183
- firstMenuHeight: 0, // 第一个菜单的高度
184
- eveyMenuHeight: 48, // 每一个菜单的高度
185
- };
186
- },
187
- components: {userInfo, onlineTalk, langTool},
188
- computed: {
189
- ...mapGetters(['permission_routes', 'sidebar', 'sidebarRouters', 'isBdAdmin']),
190
- activeMenu() {
191
- const route = this.$route;
192
- const {meta, path} = route;
193
- // if set path, the sidebar will highlight the path you set
194
- if (meta.activeMenu) {
195
- return meta.activeMenu;
196
- }
197
- return path;
198
- },
199
- showLogo() {
200
- return this.$store.state.settings.sidebarLogo;
201
- },
202
- variables() {
203
- return variables;
204
- },
205
- /*isCollapse() {
206
- if (this.sidebar.opened) {
207
- this.direction = 'bottom';
208
- } else {
209
- this.direction = 'right-start';
210
- }
211
- return !this.sidebar.opened;
212
- }*/
213
- },
214
- watch: {
215
- filterText(val) {
216
- this.$refs.tree.filter(val);
217
- }
218
- },
219
- created() {
220
- indexUtil.initI18nMessage('menus')
221
- },
222
- mounted() {
223
- this.getUserInfo();
224
- setTimeout(() => {
225
- this.filterRoute();
226
- }, 100);
227
- this.countHeight();
228
- let query = this.$route.query;
229
- if (query && query.flag == 1) {
230
- this.showCompanyDialog = true;
231
- }
232
- },
233
- methods: {
234
- getMenuFlag() {
235
- return !this.isBdAdmin;
236
- },
237
- getMenuName(item) {
238
- let locale = this.$i18n?.locale;
239
- let zhTitle = (item.meta ? item.meta.title : '');
240
- let enTitle = (item.meta ? item.meta.enTitle : '');
241
- let title;
242
- if (locale == "en") {
243
- title = enTitle || zhTitle;
244
- } else {
245
- title = zhTitle
246
- }
247
- if (!enTitle || locale !== "en") {
248
- title = zhTitle
249
- }
250
- if (this.$t1) {
251
- title = this.$t1(title)
252
- }
253
-
254
- return title;
255
- },
256
- jumpOutLink(route) {
257
- let path = route.url || route.path;
258
- if (route.type == 4 && path) {
259
- if (path.indexOf('token={token}') >= 0) {
260
- path = path.replace('token={token}', 'token=' + getToken())
261
- }
262
- window.open(path);
263
- }
264
- },
265
- changeModules(row, cRow) {
266
- if (!row.route) return;
267
- localStorage.setItem('currentMenuId', row.id);
268
- let route = row.route ? '/' + row.route : '';
269
- sessionStorage.setItem('reUrl', cRow.path)
270
- sessionStorage.setItem('reCid', row.id)
271
- location.href = route + '/index.html/#/home';
272
-
273
- // location.reload();
274
- },
275
- filterRoute() {
276
- var oldRoutes = JSON.parse(JSON.stringify(this.sidebarRouters));
277
- var nRoute1s = [];
278
- oldRoutes.forEach((route1, index1) => {
279
- let nRoute2s = [];
280
- if (!route1.hidden) {
281
- route1.children.forEach((route2, index2) => {
282
- let nRoute3s = [];
283
- if (!route2.hidden) {
284
- route2.children.forEach((route3, index3) => {
285
- if (!route3.hidden) {
286
- nRoute3s.push(route3);
287
- }
288
- });
289
- }
290
- if (route2.type == 4 || route2.url || nRoute3s.length > 0) {
291
- route2.children = nRoute3s;
292
- nRoute2s.push(route2);
293
- }
294
- });
295
- }
296
- if (route1.type == 4 || route1.url || nRoute2s.length > 0) {
297
- route1.children = nRoute2s;
298
- nRoute1s.push(route1);
299
- }
300
- });
301
- this.viewRouter = nRoute1s || [];
302
- this.menuModules = nRoute1s || [];
303
-
304
- let reUrl = sessionStorage.getItem('reUrl');
305
- let reCid = sessionStorage.getItem('reCid');
306
- if (reUrl) {
307
- this.$nextTick(() => {
308
- this.$refs.seconMenus.open(reCid);
309
- })
310
- this.$router.push(reUrl);
311
- sessionStorage.removeItem('reUrl');
312
- sessionStorage.removeItem('reCid');
313
- }
314
- },
315
- filterRoute1() {
316
- var oldRoutes = JSON.parse(JSON.stringify(this.sidebarRouters));
317
- var nRoute1s = [];
318
- oldRoutes.forEach((route1, index1) => {
319
- let nRoute2s = [];
320
- if (!route1.hidden && route1.route) {
321
- route1.children.forEach((route2, index2) => {
322
- let nRoute3s = [];
323
- if (!route2.hidden) {
324
- route2.children.forEach((route3, index3) => {
325
- if (!route3.hidden) {
326
- nRoute3s.push(route3);
327
- }
328
- });
329
- }
330
- if (nRoute3s.length > 0) {
331
- route2.children = nRoute3s;
332
- nRoute2s.push(route2);
333
- }
334
- });
335
- }
336
- if (nRoute2s.length > 0) {
337
- route1.children = nRoute2s;
338
- nRoute1s.push(route1);
339
- }
340
- });
341
- let rows = nRoute1s;
342
- if (rows.length) {
343
- let currentMenu;
344
- if (nRoute1s.length) {
345
- var currentMenuId = localStorage.getItem('currentMenuId');
346
- if (currentMenuId) {
347
- currentMenu = nRoute1s.find(row => row.id == currentMenuId);
348
- }
349
- if (!currentMenu) {
350
- currentMenu = nRoute1s[0];
351
- }
352
- this.viewRouter = currentMenu.children;
353
- }
354
- this.currentMenu = currentMenu;
355
- this.menuModules = rows || [];
356
-
357
- /*if (currentMenu) {
358
- if (currentMenu.route != WEB_PREFIX.substring(1, WEB_PREFIX.length)) {
359
- this.changeModules(currentMenu, 1);
360
- } else {
361
- localStorage.setItem('currentMenuId', currentMenu.id);
362
- }
363
- } else {
364
- localStorage.removeItem('currentMenuId');
365
- }*/
366
- }
367
- },
368
- rourteTo(route) {
369
- let path = route.url || route.path;
370
- if (!path) {
371
- return
372
- }
373
- this.showMenuModal = true;
374
- setTimeout(() => {
375
- this.showMenuModal = false;
376
- }, 200);
377
- try {
378
- if (route.linkType == 4) {
379
- this.jumpOutLink(route)
380
- } else if (route.linkType == 3) {
381
- this.$router.push({path: path, query: {url: route.outLink, route: route.route}});
382
- } else {
383
- this.$router.push(path);
384
- }
385
- } catch (e) {
386
- console.error(e);
387
- }
388
- },
389
- logout() {
390
- this.$store.dispatch('user/logout2').then(res => {
391
- this.$router.push(`/login?redirect=${this.$route.fullPath}`);
392
- });
393
- },
394
- toggleSideBar() {
395
- this.$store.dispatch('app/toggleSideBar');
396
- },
397
- countHeight() {
398
- var h = this.$refs.hamhurger.offsetHeight + this.$refs.fase.offsetHeight + this.$refs.business.offsetHeight;
399
- this.menuheight.height = window.innerHeight - h + 'px';
400
- },
401
- handleNodeClick(data, node, v) {
402
- if (!data.hasChild) {
403
- this.choose_company_info = data;
404
- this.changeCompany();
405
- } else {
406
- this.choose_company_info = {};
407
- }
408
- },
409
- // 异步树叶子节点懒加载逻辑
410
- loadNode(node, resolve) {
411
- let companyCode = node && node.data && node.data.companyCode ? node.data.companyCode || '' : '';
412
- let url = !companyCode ? USER_PREFIX + '/user_company_info/getAllList' : USER_PREFIX + '/user_company_info/getChildren';
413
-
414
- this.$http({
415
- url: url,
416
- method: 'post',
417
- data: {
418
- parentCompanyCode: companyCode
419
- },
420
- success: res => {
421
- let datas = res.objx || [];
422
- let parentLabel = companyCode ? node.label : null;
423
- datas.forEach(item => {
424
- item.leaf = !item.hasChild;
425
- let label = item.companyName;
426
- /*if(companyCode){
427
- label = label + '('+companyTypeMap[item.companyType]+')'
428
- }*/
429
- item.label = label;
430
- item.parentLabel = parentLabel;
431
- });
432
-
433
- if (node.level === 0) {
434
- if (datas.length > 0 && datas[0].hasChild) {
435
- this.$nextTick(() => {
436
- let nodedata = node.childNodes[0];
437
- nodedata.expanded = true;
438
- nodedata.loadData();
439
- });
440
- }
441
- }
442
- resolve(datas);
443
- }
444
- });
445
- },
446
- filterNode(value, data) {
447
- if (!value) return true;
448
- let flag1 = data.label.indexOf(value) !== -1;
449
- let flag2 = data.parentLabel && data.parentLabel.indexOf(value) !== -1;
450
- return flag1 || flag2;
451
- },
452
- openCompanyDialog() {
453
- this.filterText = null;
454
- this.showCompanyDialog = true;
455
- },
456
- getWebPrefix(callback) {
457
- this.$http({
458
- url: USER_PREFIX + '/auth/getWebPrefix',
459
- method: `post`,
460
- data: {},
461
- isLoading: true,
462
- success: res => {
463
- let webPrefix = res.objx
464
- callback && callback(webPrefix)
465
- }
466
- });
467
- },
468
- changeCompany() {
469
- let row = this.choose_company_info;
470
- let query = this.$route.query;
471
- let flag = query && query.flag == 1 ? 1 : null;
472
- this.showCompanyDialog = false;
473
- if (row && row.companyCode) {
474
- this.$baseLoading({target: document.body, fullscreen: true});
475
- this.$http({
476
- url: USER_PREFIX + '/auth/switchCompany',
477
- method: 'post',
478
- data: {stringOne: row.companyCode},
479
- isLoading: true,
480
- success: res => {
481
- this.getWebPrefix((prefix) => {
482
- let webPrefix = prefix ? ("/" + prefix) : window.MAIN_WEB_PREFIX;
483
- sessionStorage.removeItem("out-token");
484
- this.$store.dispatch('user/changeCompanyInfo', row);
485
- this.$store.dispatch('tagsView/delAllViews');
486
- window.location.href = webPrefix + '/index.html';
487
- });
488
- }
489
- });
490
- } else {
491
- if (flag == 1) {
492
- this.$router.push({
493
- path: '/'
494
- });
495
- }
496
- }
497
- },
498
- changeCompanyClose() {
499
- let query = this.$route.query;
500
- let flag = query && query.flag == 1 ? 1 : null;
501
- if (flag == 1) {
502
- this.$router.push({
503
- path: '/'
504
- });
505
- }
506
- this.showCompanyDialog = false;
507
- },
508
- getUserInfo() {
509
- this.$http({
510
- url: USER_PREFIX + '/user/currentUser',
511
- method: 'post',
512
- success: res => {
513
- let userInfo = res.objx;
514
- this.headPhotoUrl = userInfo.headPhotoUrl ? userInfo.headPhotoUrl : require('@/resources/images' + '/default-header.png');
515
- this.userInfo = userInfo;
516
- }
517
- });
518
-
519
- this.$http({
520
- url: USER_PREFIX + '/company_info/getCurrent',
521
- method: `post`,
522
- success: res => {
523
- this.companyInfo = res.objx || {};
524
- }
525
- });
526
- },
527
- openUserInfo() {
528
- this.showUserInfoDialog = true;
529
- // this.showInfoIframeDialog = true;
530
- },
531
- userInfoReload() {
532
- this.showUserInfoDialog = true;
533
- },
534
- showNav(route, event) {
535
- let id = route && route.id ? route.id : null;
536
- if (id != null) {
537
- if (!route.children || !route.children.length) {
538
- return;
539
- }
540
- this.stopFlag = 1;
541
- this.nowNavID = id;
542
- this.$nextTick(() => {
543
- var wh = window.innerHeight;
544
- let dom = event.target;
545
- let domAttr = dom.getBoundingClientRect();
546
- // var sh1 = dom.offsetTop;
547
- var sh1 = domAttr.top;
548
- let $snav = this.$refs['seconMenus' + id][0];
549
- let snavAttr = $snav.getBoundingClientRect();
550
-
551
- // var sh2 = $snav.outerHeight;
552
- var sh2 = snavAttr.height;
553
- var sh = wh - (sh1 + sh2);
554
-
555
- var hd = 20;
556
- var xhd = sh - hd; //移动距离+固定值
557
- if (sh >= 0) {
558
-
559
- $snav.style['margin-top'] = sh1 + 'px';
560
- } else if (sh < 0) {
561
- let bd = sh1 + sh;
562
-
563
- $snav.style['margin-top'] = bd + 'px';
564
- $snav.querySelector(".ico-arrow").style['margin-top'] = (sh1 - bd) + 'px';
565
- }
566
- });
567
- } else {
568
- this.stopFlag = 0;
569
- setTimeout(() => {
570
- if (this.stopFlag == 0) {
571
- this.nowNavID = id;
572
- }
573
- }, 200);
574
- }
575
- },
576
- jumpTo(row, firstRow) {
577
- let route = firstRow.route ? '/' + firstRow.route : '';
578
- if (route == WEB_PREFIX) {
579
- this.$router.push({
580
- path: row.path
581
- });
582
- } else {
583
- this.changeModules(firstRow, row);
584
- }
585
- },
586
- toDownMove() {
587
- let containter = document.getElementById('menuUl').querySelector(".scrollbar-wrapper");
588
- let menuscrollTop = containter.scrollTop
589
- let scrollHeight = containter.scrollHeight
590
- let val = menuscrollTop + this.eveyMenuHeight;
591
- if (val < scrollHeight) {
592
- containter.scrollTop = val
593
- } else {
594
- containter.scrollTop = scrollHeight
595
- }
596
- },
597
- toUpMove() {
598
- let containter = document.getElementById('menuUl').querySelector(".scrollbar-wrapper");
599
- let menuscrollTop = containter.scrollTop
600
- let val = menuscrollTop - this.eveyMenuHeight;
601
- if (val > 0) {
602
- containter.scrollTop = val
603
- } else {
604
- containter.scrollTop = 0
605
- }
606
- },
607
- getMenuClass(menu, flag) {
608
- let res = "";
609
- if (menu.menuImg) {
610
- res = "iconfont " + menu.menuImg;
611
- } else if (flag == 1) {
612
- res = "iconfont icon-jinggao";//一级默认图标
613
- } else if (flag == 2) {
614
- res = "iconfont icon-circle";//二级默认图标
615
- } else if (flag == 3) {
616
- res = "iconfont icon-thirdMemu";//三级级默认图标
617
- }
618
-
619
- if (flag == 2) {
620
- if (menu.id == this.nowNavID) {
621
- res += " on";
622
- }
623
- }
624
- return res;
625
- }
626
- }
627
- };
628
- </script>
629
- <style lang="scss">
630
- @import '~@/styles/variables.scss';
631
-
632
- .hamburger-box {
633
- background-color: #0000004d;
634
- height: 42px;
635
- /* line-height: 30px; */
636
- text-align: center;
637
- /* box-shadow: 0 2px 6px rgb(0 0 0 / 10%); */
638
- position: relative;
639
- z-index: 2;
640
- overflow: hidden;
641
- font-size: 12px;
642
- color: rgba(255, 255, 255, 0.65);
643
-
644
- > div {
645
- color: #fff;
646
- font-size: 13px;
647
- margin-bottom: 4px;
648
- cursor: pointer;
649
- height: 36px;
650
- border-radius: 7px;
651
- margin: 6px 10px 6px 8px;
652
- overflow: hidden;
653
- background: #2a6494;
654
- }
655
-
656
- p {
657
- color: #fff;
658
- font-size: 13px;
659
- margin-bottom: 4px;
660
- cursor: pointer;
661
- /* border: solid 1px #ffffff61; */
662
- display: block;
663
- line-height: 27px;
664
- /* width: 88%; */
665
- margin-top: 6px;
666
- border-radius: 7px;
667
- margin: 6px 10px 6px 8px;
668
- background: #2a6494;
669
-
670
- i {
671
- font-size: 14px;
672
- vertical-align: middle;
673
- margin: 0 4px 0 6px;
674
- height: 36px;
675
- line-height: 36px;
676
- width: 21px;
677
- }
678
-
679
- span {
680
- width: 94px;
681
- display: table-cell;
682
- height: 32px;
683
- word-break: break-word;
684
- line-height: 16px;
685
- overflow: hidden;
686
- vertical-align: middle;
687
- }
688
-
689
- &.name {
690
- display: table-row;
691
- margin: 0;
692
- }
693
- }
694
- }
695
-
696
- .business-name {
697
- height: 47px;
698
- color: #ffffffb8;
699
- background: #0000004d;
700
- /* padding-top: 12px; */
701
- font-size: 12px;
702
- /* padding-left: 5px; */
703
- display: table-cell;
704
- vertical-align: middle;
705
- width: 140px;
706
- padding: 6px 10px;
707
- text-align: center;
708
-
709
- p {
710
- margin: 0;
711
- }
712
- }
713
-
714
- .fase-box {
715
- color: #fff;
716
- /* border-bottom: solid 1px rgba(255, 255, 255, 0.12); */
717
- border-top: solid 1px rgba(255, 255, 255, 0.12);
718
- background: #225076;
719
- padding: 4px 0 8px;
720
- width: 100%;
721
- z-index: 999;
722
- position: relative;
723
- /* display: flex;*/
724
- //text-align: left !important;
725
- // &:hover {
726
- // color: $baseColor;
727
- // background-color: #fbfdfe;
728
- // .fase-list {
729
- // display: block;
730
- // }
731
- // }
732
- .item {
733
- flex: 1;
734
- text-align: center;
735
- font-size: 16px;
736
- height: 40px;
737
- line-height: 40px;
738
- cursor: pointer;
739
- display: inline-block;
740
- min-width: 30px;
741
- }
742
-
743
- .fase-list {
744
- position: absolute;
745
- left: 100%;
746
- color: $baseColor;
747
- background-color: #fbfdfe;
748
- border: solid 1px $baseColor;
749
- border-left: none;
750
- top: -0.5px;
751
- padding: 10px 0 10px 24px;
752
- height: 43px;
753
- width: 413px;
754
- display: none;
755
-
756
- .l-item {
757
- display: inline-block;
758
- font-size: 12px;
759
- margin-right: 36px;
760
- line-height: 20px;
761
- cursor: pointer;
762
-
763
- i {
764
- vertical-align: middle;
765
- margin-right: 4px;
766
- font-size: 15px;
767
- margin-bottom: 2px;
768
- }
769
-
770
- &:hover {
771
- border-bottom: solid 1px $baseColor;
772
- }
773
- }
774
- }
775
- }
776
-
777
- .openSidebar .fase-box {
778
- text-align: center;
779
- //padding: 0;
780
- }
781
-
782
- #app .sidebar-container {
783
- overflow: visible;
784
- z-index: 1003;
785
-
786
- &.hover {
787
- z-index: 1003;
788
- }
789
-
790
- &.hover1 .fase-box {
791
- width: 138px;
792
- color: $baseColor;
793
- background-color: #fbfdfe;
794
- border-color: $baseColor;
795
- }
796
-
797
- .el-menu.menu-box {
798
- height: calc(100vh - 173px);
799
- font-size: 13px;
800
- z-index: -1;
801
- position: relative;
802
- background-color: rgba(0, 0, 0, .2);
803
- word-break: break-word;
804
-
805
- .el-submenu {
806
- overflow: hidden; //有点电脑分辨率问题
807
- .el-submenu__title {
808
- padding: 0 11px !important;
809
- height: 48px;
810
- line-height: 48px;
811
-
812
- i {
813
- color: #fff;
814
- font-size: 13px;
815
- margin-right: 0;
816
- width: 18px;
817
-
818
- &.iconfont {
819
- margin-right: 5px;
820
- font-size: 19px;
821
- float: left;
822
- }
823
-
824
- &.el-submenu__icon-arrow {
825
- right: 3px;
826
- text-align: center;
827
- font-size: 12px;
828
- margin-top: -5px;
829
- display: none;
830
- }
831
- }
832
-
833
- > span {
834
- height: 48px;
835
- display: table-cell;
836
- width: 114px;
837
- vertical-align: middle;
838
- font-size: 13px;
839
- white-space: normal;
840
- line-height: 16px;
841
- }
842
- }
843
-
844
- &.is-opened .el-submenu__title {
845
- //background-color: rgba(27, 66, 97) !important;
846
- }
847
- }
848
-
849
- .el-submenu {
850
- .el-menu {
851
- background: rgba(0, 0, 0, 0.35) !important;
852
- box-shadow: 0px -5px 8px #00000014 inset;
853
- //padding:4px 0;
854
- }
855
-
856
- .el-menu-item {
857
- height: auto;
858
- line-height: 1.4;
859
- padding-left: 33px !important;
860
- font-size: 12px;
861
- opacity: 0.8;
862
- margin: 10px 0 10px 14px;
863
- padding: 7px 2px 7px 0px;
864
- border-radius: 8px;
865
- text-align: left;
866
- min-width: 81px !important;
867
- white-space: normal;
868
- margin-right: 10px;
869
- word-break: break-word;
870
-
871
- &:before {
872
- position: absolute;
873
- top: 50%;
874
- height: 20px;
875
- margin-top: -10px;
876
- line-height: 20px;
877
- left: 7px;
878
- font-size: 18px;
879
- }
880
-
881
- [class^=el-icon-] {
882
- font-size: 12px;
883
- color: #FFF;
884
- position: absolute;
885
- right: 2px;
886
- top: 50%;
887
- margin-top: -5px;
888
- width: 14px;
889
- zoom: 0.8;
890
- display: none;
891
- }
892
-
893
- &:hover, &.on {
894
- opacity: 1;
895
- background-color: #FBFDFE !important;
896
- color: $baseColor !important;
897
-
898
- .el-icon-arrow-right {
899
- color: $baseColor
900
- }
901
- }
902
- }
903
- }
904
-
905
- &.lang-zh {
906
- font-size: 14px;
907
-
908
- .el-submenu {
909
- .el-submenu__title {
910
- > span {
911
- font-size: 14px;
912
- text-align: center
913
- }
914
-
915
- i.iconfont {
916
- margin-right: 2px;
917
- }
918
- }
919
-
920
- .el-menu-item {
921
- font-size: 13px
922
- }
923
- }
924
-
925
- }
926
- }
927
- }
928
-
929
- .main-container {
930
- z-index: 1002;
931
- }
932
-
933
- .menu-btn {
934
- background-color: #0000001c;
935
- height: 30px;
936
- line-height: 30px;
937
- text-align: center;
938
- box-shadow: 0 -10px 6px rgb(0 0 0 / 10%);
939
- display: flex;
940
- color: #FFF;
941
- font-size: 16px;
942
-
943
- i {
944
- display: inline-block;
945
- flex: 1;
946
- line-height: 30px;
947
- cursor: pointer;
948
- border-right: solid 1px rgba(0, 0, 0, 0.2);
949
-
950
- &:last-child {
951
- border-right: none;
952
- }
953
-
954
- &:hover {
955
- background-color: rgba(255, 255, 255, 0.12);
956
- }
957
- }
958
- }
959
-
960
- /*.menu-box {
961
- background-color: #0000002e !important;
962
- font-size: 14px;
963
- z-index: -1;
964
- position: relative;
965
- &.hover .el-scrollbar {
966
- width: 1000px;
967
- }
968
- .el-scrollbar {
969
- .el-scrollbar__view {
970
- padding-top: 1px;
971
- }
972
- .el-scrollbar__bar.is-vertical {
973
- left: 104px;
974
- }
975
- }
976
- .first-item {
977
- position: relative;
978
- width: 104px;
979
- &:nth-child(-n + 6) .second-list {
980
- bottom: inherit !important;
981
- top: -40.5px !important;
982
- }
983
- &:nth-child(1) .second-list {
984
- top: 0 !important;
985
- }
986
- &:nth-last-child(-n + 6) .second-list {
987
- bottom: -1%;
988
- top: inherit;
989
- }
990
- .f-name {
991
- height: 55px;
992
- line-height: 55px;
993
- padding-left: 9px;
994
- color: #fff;
995
- cursor: pointer;
996
- position: relative;
997
- padding-right: 6px;
998
- -webkit-transition: all 0.2s ease-in;
999
- -moz-transition: all 0.2s ease-in;
1000
- -o-transition: all 0.2s ease-in;
1001
- transition: all 0.2s ease-in;
1002
- width: 104px;
1003
- i.el-icon-arrow-right {
1004
- position: absolute;
1005
- right: 3px;
1006
- top: 21.5px;
1007
- width: 14px;
1008
- height: 14px;
1009
- }
1010
- .el-icon-s-opportunity {
1011
- opacity: 0.92;
1012
- font-size: 13px;
1013
- vertical-align: middle;
1014
- margin-right: 2px;
1015
- }
1016
- span{display: inline-block;width: calc(100% - 20px);vertical-align: middle;line-height: 1.2;}
1017
- }
1018
-
1019
- &:hover,
1020
- &.current {
1021
- .f-name {
1022
- background-color: #fbfdfe;
1023
- color: $baseColor;
1024
- }
1025
- .second-list {
1026
- display: block;
1027
- }
1028
- }
1029
- }
1030
- }
1031
-
1032
-
1033
- */
1034
- .second-list {
1035
- display: none;
1036
- position: absolute;
1037
- left: $sideBarWidth;
1038
- padding-left: 2px;
1039
- top: 0.5px;
1040
- // &:before {
1041
- // content: "";
1042
- // top: 22px;
1043
- // bottom: 22px;
1044
- // background-color: $baseColor;
1045
- // width: 2px;
1046
- // position: absolute;
1047
- // left: 24px;
1048
- // }
1049
- > div {
1050
- background: #fbfdfe;
1051
- border: solid 1px $baseColor;
1052
- top: -0.5px;
1053
- padding: 24px 0;
1054
- border-radius: 8px;
1055
- margin-left: 9px;
1056
- max-height: calc(84vh);
1057
- overflow-y: auto;
1058
- overflow-x: hidden;
1059
- width: 458px;
1060
- }
1061
-
1062
- .ico-arrow {
1063
- border-top: solid 7px transparent;
1064
- border-bottom: solid 7px transparent;
1065
- border-right: solid 7px $baseColor;
1066
- position: absolute;
1067
- left: 2px;
1068
- top: 8px;
1069
- }
1070
-
1071
- &.on {
1072
- display: block;
1073
- }
1074
-
1075
- .tit {
1076
- width: auto;
1077
- /* text-align: center; */
1078
- /* background: #22507614; */
1079
- color: $baseColor;
1080
- /* border: dashed 1px #1d4667; */
1081
- padding: 0 0 10px;
1082
- /* border-radius: 6px; */
1083
- /* margin: 5px auto; */
1084
- margin: 0 22px;
1085
- display: block;
1086
- border-bottom: solid 1px #eee;
1087
-
1088
- i, span {
1089
- opacity: 1;
1090
- vertical-align: middle;
1091
- margin-right: 7px;
1092
- font-size: 18px;
1093
- }
1094
-
1095
- span {
1096
- font-size: 14px
1097
- }
1098
- }
1099
-
1100
- dl {
1101
- padding: 8px 16px 3px 24px;
1102
- margin-top: 0;
1103
- margin-bottom: 0;
1104
- display: inline-block;
1105
- width: 50%;
1106
- position: relative;
1107
- word-break: break-all;
1108
-
1109
- &:after {
1110
- content: "";
1111
- width: 1px;
1112
- height: 14px;
1113
- background: #e4e4e4;
1114
- display: inline-block;
1115
- position: absolute;
1116
- right: -5px;
1117
- top: 50%;
1118
- margin-top: -3px;
1119
- }
1120
-
1121
- .s-name {
1122
- color: $baseColor;
1123
- display: inline-block;
1124
- width: 190px;
1125
- font-size: 14px;
1126
- vertical-align: top;
1127
- margin-top: 11px;
1128
- text-align: right;
1129
-
1130
- i {
1131
- margin-left: 5px;
1132
-
1133
- &.icon {
1134
- font-size: 13px;
1135
- opacity: 0.92;
1136
- margin-left: 2px;
1137
- margin-right: 4px;
1138
- }
1139
- }
1140
- }
1141
-
1142
- .item {
1143
- position: relative;
1144
- border: dashed 1px #FFF;
1145
- border-radius: 6px;
1146
- display: block;
1147
- padding: 6px 8px 6px 27px;
1148
- cursor: pointer;
1149
-
1150
- &:hover {
1151
- border-color: $baseColor;
1152
- color: $baseColor;
1153
-
1154
- i, a {
1155
- color: $baseColor;
1156
- }
1157
- }
1158
-
1159
- // &:after {
1160
- // content: "";
1161
- // width: 1px;
1162
- // height: 12px;
1163
- // background: #dcdcdc;
1164
- // position: absolute;
1165
- // right: -25px;
1166
- // top: 2px
1167
- // }
1168
-
1169
- i {
1170
- opacity: 0.8;
1171
- margin-right: 8px;
1172
- vertical-align: middle;
1173
- position: absolute;
1174
- left: 4px;
1175
- top: 50%;
1176
- margin-top: -11px;
1177
- height: 22px;
1178
- line-height: 22px;
1179
- font-size: 16px;
1180
- }
1181
-
1182
- a {
1183
- color: rgba(0, 0, 0, 0.82);
1184
- display: inline-block;
1185
- font-size: 13px;
1186
- position: relative;
1187
- overflow: initial !important;
1188
- -webkit-transition: all 0.2s ease-in;
1189
- -moz-transition: all 0.2s ease-in;
1190
- -o-transition: all 0.2s ease-in;
1191
- transition: all 0.2s ease-in;
1192
- width: auto !important;
1193
- vertical-align: middle;
1194
- word-break: break-word;
1195
-
1196
- &:hover {
1197
- color: $baseColor;
1198
-
1199
- // &:after {
1200
- // content: '';
1201
- // position: absolute;
1202
- // bottom: -4px;
1203
- // left: 0;
1204
- // right: 0;
1205
- // border-bottom: solid 1px $baseColor;
1206
- // }
1207
- }
1208
- }
1209
- }
1210
-
1211
- &:last-child {
1212
- .list-box {
1213
- border-bottom: none;
1214
- }
1215
- }
1216
- }
1217
- }
1218
-
1219
- // .el-submenu .el-menu {
1220
- // height: auto !important;
1221
- // }
1222
- </style>
1
+ <template>
2
+ <div :class="{ 'has-logo': showLogo }">
3
+ <!-- <logo v-if="showLogo" :collapse="isCollapse" /> -->
4
+
5
+ <div class="hamburger-box" ref="hamhurger" @click="openUserInfo">
6
+ <!-- <hamburger :is-active="sidebar.opened" @toggleClick="toggleSideBar" /> -->
7
+ <div>
8
+ <p class="name"><i class="iconfont icon-ziyuan"></i><span>{{ userInfo.nickName }}</span></p>
9
+ </div>
10
+ </div>
11
+ <div class="business-name" ref="business">
12
+ <el-tooltip :enterable="false" effect="dark" :content="companyInfo.companyName" :placement="direction">
13
+ <p v-show="getMenuFlag()">{{ companyInfo.companyName }}</p>
14
+ </el-tooltip>
15
+ </div>
16
+ <div class="fase-box" ref="fase" @mouseleave="$emit('selfClose')" @mouseenter="$emit('selfEnter')">
17
+ <langTool v-if="getMenuFlag()"></langTool>
18
+ <div class="item" @click="openCompanyDialog" v-if="getMenuFlag()">
19
+ <el-tooltip :enterable="false" effect="dark" :content="$t1('切换组织')" :placement="direction">
20
+ <i class="el-icon-set-up"/>
21
+ </el-tooltip>
22
+ </div>
23
+ <div class="item" v-if="getMenuFlag()">
24
+ <el-tooltip :enterable="false" effect="dark" :content="$t1('流程待办')" :placement="direction">
25
+ <i class="iconfont icon-liuchengdaiban" @click="$router.push('/basic/wf/wf_manage/list')"/>
26
+ </el-tooltip>
27
+ </div>
28
+ <div class="item" v-if="isDev && isBdAdmin">
29
+ <el-tooltip :enterable="false" effect="dark" :content="$t1('获取提取码')" :placement="direction">
30
+ <i class="el-icon-setting" @click="showExtractedCodeCreateDialog=true"/>
31
+ </el-tooltip>
32
+ </div>
33
+ <div class="item" v-if=" isBdAdmin">
34
+ <el-tooltip :enterable="false" effect="dark" :content="$t1('查看提取码')" :placement="direction">
35
+ <i class="el-icon-tickets" @click="showExtractedCodeQueryDialog=true"/>
36
+ </el-tooltip>
37
+ </div>
38
+
39
+ <div class="item" @click="logout()">
40
+ <el-tooltip :enterable="false" effect="dark" :content="$t1('退出')" :placement="direction">
41
+ <i class="el-icon-switch-button"/>
42
+ </el-tooltip>
43
+ </div>
44
+ </div>
45
+ <template v-for="router1 in viewRouter">
46
+ <template v-for="router2 in router1.children">
47
+ <div
48
+ class="second-list"
49
+ :key="router1.id + 't'+router2.id"
50
+ :class="{ on: router2.id == nowNavID }"
51
+ @mouseenter="stopFlag = 1"
52
+ @mouseleave="showNav()"
53
+ v-show="router2.id == nowNavID"
54
+ :ref="'seconMenus' + router2.id"
55
+ >
56
+ <i class="ico-arrow"></i>
57
+ <div>
58
+ <div class="tit"><i :class="getMenuClass(router2,2)"></i><span>{{ getMenuName(router2) }}</span></div>
59
+ <dl v-for="(router3,index3) in router2.children" :key="'router3'+index3">
60
+
61
+ <div class="item" v-if="!router3.hidden" @click="rourteTo(router3,router1)">
62
+ <!--<i class="el-icon-caret-right"></i>-->
63
+ <i :class="getMenuClass(router3,3)"></i>
64
+ <a>{{ getMenuName(router3) }}</a>
65
+ </div>
66
+ </dl>
67
+ </div>
68
+ </div>
69
+ </template>
70
+ </template>
71
+ <el-menu
72
+ class="menu-box"
73
+ :class="{'lang-zh':$i18n.locale=='zh'}"
74
+ text-color="#fff"
75
+ active-text-color="#fff"
76
+ :unique-opened="true"
77
+ @mouseleave="showNav()"
78
+ ref="seconMenus"
79
+ >
80
+ <el-scrollbar wrap-class="scrollbar-wrapper" id="menuUl">
81
+ <el-submenu v-for="menuModule in menuModules" :index="''+menuModule.id" :key="'menuModule'+menuModule.id"
82
+ @click.native="rourteTo(menuModule)">
83
+ <template slot="title">
84
+ <i :class="getMenuClass(menuModule,1)"></i>
85
+ <span>{{ getMenuName(menuModule) }}</span>
86
+ </template>
87
+ <el-menu-item v-for="(router1, index1) in menuModule.children" :key="index1" :index="''+router1.id"
88
+ :class="getMenuClass(router1,2)"
89
+ @mouseenter.native="showNav(router1, $event)" @mouseleave.native="showNav()"
90
+ @click="rourteTo(router1)">
91
+ {{ getMenuName(router1) }}
92
+ <i class="el-icon-caret-right" v-if="router1.children.length > 0"/>
93
+ </el-menu-item>
94
+ </el-submenu>
95
+ </el-scrollbar>
96
+ </el-menu>
97
+ <div class="menu-btn">
98
+ <i class="el-icon-arrow-up" @click="toUpMove()"></i>
99
+ <i class="el-icon-arrow-down" @click="toDownMove()"></i>
100
+ </div>
101
+ <div id="tta" style="position: absolute;height: 100%;top: 0;right: 0;z-index: 9999;width: 800px;left: 100%;"
102
+ v-if="showMenuModal"></div>
103
+ <el-dialog
104
+ title="切换组织"
105
+ width="355px"
106
+ custom-class="dialog-style list-dialog"
107
+ v-if="showCompanyDialog"
108
+ :visible.sync="showCompanyDialog"
109
+ :append-to-body="true"
110
+ :modal-append-to-body="true"
111
+ :close-on-click-modal="false"
112
+ v-el-drag-dialog
113
+ v-el-dialog-center
114
+ @close="changeCompanyClose"
115
+ >
116
+ <div class="cont">
117
+ <el-input placeholder="搜索" class="search-btn" v-model="filterText"></el-input>
118
+ <el-tree
119
+ :props="defaultProps"
120
+ :load="loadNode"
121
+ node-key="id"
122
+ ref="tree"
123
+ highlight-current
124
+ lazy
125
+ :expand-on-click-node="true"
126
+ @node-click="handleNodeClick"
127
+ class="organization-tree"
128
+ icon-class="el-icon-arrow-right"
129
+ :filter-node-method="filterNode"
130
+ ></el-tree>
131
+ </div>
132
+ <!-- <span slot="footer" class="dialog-footer">
133
+ <el-button type="primary" plain class="button-sty" @click="changeCompanyClose">
134
+ <i class="el-icon-close el-icon"></i>
135
+
136
+ </el-button>
137
+ <el-button type="primary" @click="changeCompany" class="button-sty">
138
+ <i class="el-icon-check el-icon"></i>
139
+ 确 定
140
+ </el-button>
141
+ </span> -->
142
+ </el-dialog>
143
+
144
+ <!-- <infoIframeDialog v-if="showInfoIframeDialog" :visiable.sync="showInfoIframeDialog"
145
+ :dataId="userInfo.id"></infoIframeDialog>-->
146
+ <userInfo v-if="!isFormDev && showUserInfoDialog" :visiable.sync="showUserInfoDialog" :_dataId="userInfo.id"
147
+ topValue="128px"
148
+ @reload="userInfoReload"></userInfo>
149
+ <userFormInfo v-if="isFormDev && showUserInfoDialog" :visiable.sync="showUserInfoDialog" :_dataId="userInfo.id"
150
+ topValue="128px"
151
+ @reload="userInfoReload"></userFormInfo>
152
+ <onlineTalk></onlineTalk>
153
+ <extractedCodeCreateDialog v-if="showExtractedCodeCreateDialog" :visiable.sync="showExtractedCodeCreateDialog"
154
+ ></extractedCodeCreateDialog>
155
+ <extractedCodeQueryDialog v-if="showExtractedCodeQueryDialog" :visiable.sync="showExtractedCodeQueryDialog"
156
+ ></extractedCodeQueryDialog>
157
+ </div>
158
+ </template>
159
+
160
+ <script>
161
+ import {mapGetters} from 'vuex';
162
+ import variables from '@/styles/variables.scss';
163
+ import userInfo from '@base/views/user/user/info.vue';
164
+ import userFormInfo from '@base/views/user/user/form_info.vue';
165
+ import onlineTalk from "@base/components/onlineTalk";
166
+ import {
167
+ getToken
168
+ } from '@base/utils/auth';
169
+ import indexUtil from "@base/utils/index.js"
170
+ import langTool from "../langTool.vue";
171
+ import {initPddLog} from "@base/utils/pddLog";
172
+
173
+ import extractedCodeCreateDialog from "../extractedCode/createDialog.vue";
174
+ import extractedCodeQueryDialog from "../extractedCode/queryDialog.vue";
175
+ import {getBdFlag} from "@base/api/user";
176
+
177
+
178
+ export default {
179
+ props: {
180
+ option: Object
181
+ },
182
+ data() {
183
+ return {
184
+ direction: 'bottom',
185
+ defaultOpenedsArray: [],
186
+ viewRouter: [],
187
+ showMenuModal: false,
188
+ menuheight: {
189
+ height: ''
190
+ },
191
+ defaultProps: {
192
+ label: 'label', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
193
+ children: [],
194
+ isLeaf: 'leaf'
195
+ },
196
+ filterText: null,
197
+ showCompanyDialog: false,
198
+ choose_company_info: '',
199
+ userInfo: {},
200
+ companyInfo: {},
201
+ showUserInfoDialog: false,
202
+ hoverStatus: false,
203
+ nowNavID: 'null',
204
+ stopFlag: 0,
205
+ showInfoIframeDialog: false,
206
+ currentMenu: null,
207
+ menuModules: [],
208
+ firstMenuHeight: 0, // 第一个菜单的高度
209
+ eveyMenuHeight: 48, // 每一个菜单的高度
210
+ isFormDev: false,
211
+
212
+ showExtractedCodeCreateDialog: false,
213
+ showExtractedCodeQueryDialog: false,
214
+ isDev: false
215
+ };
216
+ },
217
+ components: {userInfo, userFormInfo, onlineTalk, langTool, extractedCodeCreateDialog, extractedCodeQueryDialog},
218
+ computed: {
219
+ ...mapGetters(['permission_routes', 'sidebar', 'sidebarRouters', 'isBdAdmin', 'userFlag']),
220
+ activeMenu() {
221
+ const route = this.$route;
222
+ const {meta, path} = route;
223
+ // if set path, the sidebar will highlight the path you set
224
+ if (meta.activeMenu) {
225
+ return meta.activeMenu;
226
+ }
227
+ return path;
228
+ },
229
+ showLogo() {
230
+ return this.$store.state.settings.sidebarLogo;
231
+ },
232
+ variables() {
233
+ return variables;
234
+ },
235
+ /*isCollapse() {
236
+ if (this.sidebar.opened) {
237
+ this.direction = 'bottom';
238
+ } else {
239
+ this.direction = 'right-start';
240
+ }
241
+ return !this.sidebar.opened;
242
+ }*/
243
+ },
244
+ watch: {
245
+ filterText(val) {
246
+ this.$refs.tree.filter(val);
247
+ }
248
+ },
249
+ created() {
250
+ indexUtil.initI18nMessage('menus')
251
+ },
252
+ mounted() {
253
+ this.getUserInfo();
254
+ setTimeout(() => {
255
+ this.filterRoute();
256
+ }, 100);
257
+ this.countHeight();
258
+ let query = this.$route.query;
259
+ if (query && query.flag == 1) {
260
+ this.showCompanyDialog = true;
261
+ }
262
+ initPddLog();//初始化拼多多日志
263
+ this.initIsFormDev();
264
+ this.getBdEnv();
265
+ },
266
+ methods: {
267
+ getBdEnv() {
268
+ getBdFlag({
269
+ success: res => {
270
+ this.isDev = res.objx == 1
271
+ }
272
+ });
273
+ },
274
+ initIsFormDev() {
275
+ let userFlag = this.userFlag
276
+ this.isFormDev = userFlag == 6 || userFlag == 7 || userFlag == 8;
277
+ },
278
+ getMenuFlag() {
279
+ return !this.isBdAdmin;
280
+ },
281
+ getMenuName(item) {
282
+ let locale = this.$i18n?.locale;
283
+ let zhTitle = (item.meta ? item.meta.title : '');
284
+ let enTitle = (item.meta ? item.meta.enTitle : '');
285
+ let title;
286
+ if (locale == "en") {
287
+ title = enTitle || zhTitle;
288
+ } else {
289
+ title = zhTitle
290
+ }
291
+ if (!enTitle || locale !== "en") {
292
+ title = zhTitle
293
+ }
294
+ if (this.$t1) {
295
+ title = this.$t1(title)
296
+ }
297
+
298
+ return title;
299
+ },
300
+ jumpOutLink(route) {
301
+ let path = route.url || route.path;
302
+ if (route.type == 4 && path) {
303
+ if (path.indexOf('token={token}') >= 0) {
304
+ path = path.replace('token={token}', 'token=' + getToken())
305
+ }
306
+ window.open(path);
307
+ }
308
+ },
309
+ changeModules(row, cRow) {
310
+ if (!row.route) return;
311
+ localStorage.setItem('currentMenuId', row.id);
312
+ let route = row.route ? '/' + row.route : '';
313
+ sessionStorage.setItem('reUrl', cRow.path)
314
+ sessionStorage.setItem('reCid', row.id)
315
+ location.href = route + '/index.html/#/home';
316
+
317
+ // location.reload();
318
+ },
319
+ filterRoute() {
320
+ var oldRoutes = JSON.parse(JSON.stringify(this.sidebarRouters));
321
+ var nRoute1s = [];
322
+ oldRoutes.forEach((route1, index1) => {
323
+ let nRoute2s = [];
324
+ if (!route1.hidden) {
325
+ route1.children.forEach((route2, index2) => {
326
+ let nRoute3s = [];
327
+ if (!route2.hidden) {
328
+ route2.children.forEach((route3, index3) => {
329
+ if (!route3.hidden) {
330
+ nRoute3s.push(route3);
331
+ }
332
+ });
333
+ }
334
+ if (route2.type == 4 || route2.url || nRoute3s.length > 0) {
335
+ route2.children = nRoute3s;
336
+ nRoute2s.push(route2);
337
+ }
338
+ });
339
+ }
340
+ if (route1.type == 4 || route1.url || nRoute2s.length > 0) {
341
+ route1.children = nRoute2s;
342
+ nRoute1s.push(route1);
343
+ }
344
+ });
345
+ this.viewRouter = nRoute1s || [];
346
+ this.menuModules = nRoute1s || [];
347
+
348
+ let reUrl = sessionStorage.getItem('reUrl');
349
+ let reCid = sessionStorage.getItem('reCid');
350
+ if (reUrl) {
351
+ this.$nextTick(() => {
352
+ this.$refs.seconMenus.open(reCid);
353
+ })
354
+ this.$router.push(reUrl);
355
+ sessionStorage.removeItem('reUrl');
356
+ sessionStorage.removeItem('reCid');
357
+ }
358
+ },
359
+ filterRoute1() {
360
+ var oldRoutes = JSON.parse(JSON.stringify(this.sidebarRouters));
361
+ var nRoute1s = [];
362
+ oldRoutes.forEach((route1, index1) => {
363
+ let nRoute2s = [];
364
+ if (!route1.hidden && route1.route) {
365
+ route1.children.forEach((route2, index2) => {
366
+ let nRoute3s = [];
367
+ if (!route2.hidden) {
368
+ route2.children.forEach((route3, index3) => {
369
+ if (!route3.hidden) {
370
+ nRoute3s.push(route3);
371
+ }
372
+ });
373
+ }
374
+ if (nRoute3s.length > 0) {
375
+ route2.children = nRoute3s;
376
+ nRoute2s.push(route2);
377
+ }
378
+ });
379
+ }
380
+ if (nRoute2s.length > 0) {
381
+ route1.children = nRoute2s;
382
+ nRoute1s.push(route1);
383
+ }
384
+ });
385
+ let rows = nRoute1s;
386
+ if (rows.length) {
387
+ let currentMenu;
388
+ if (nRoute1s.length) {
389
+ var currentMenuId = localStorage.getItem('currentMenuId');
390
+ if (currentMenuId) {
391
+ currentMenu = nRoute1s.find(row => row.id == currentMenuId);
392
+ }
393
+ if (!currentMenu) {
394
+ currentMenu = nRoute1s[0];
395
+ }
396
+ this.viewRouter = currentMenu.children;
397
+ }
398
+ this.currentMenu = currentMenu;
399
+ this.menuModules = rows || [];
400
+
401
+ /*if (currentMenu) {
402
+ if (currentMenu.route != WEB_PREFIX.substring(1, WEB_PREFIX.length)) {
403
+ this.changeModules(currentMenu, 1);
404
+ } else {
405
+ localStorage.setItem('currentMenuId', currentMenu.id);
406
+ }
407
+ } else {
408
+ localStorage.removeItem('currentMenuId');
409
+ }*/
410
+ }
411
+ },
412
+ rourteTo(route) {
413
+ let path = route.url || route.path;
414
+ if (!path) {
415
+ return
416
+ }
417
+ this.showMenuModal = true;
418
+ setTimeout(() => {
419
+ this.showMenuModal = false;
420
+ }, 200);
421
+ try {
422
+ if (route.linkType == 4) {
423
+ this.jumpOutLink(route)
424
+ } else if (route.linkType == 3) {
425
+ this.$router.push({path: path, query: {url: route.outLink, route: route.route}});
426
+ } else {
427
+ this.$router.push(path);
428
+ }
429
+ } catch (e) {
430
+ console.error(e);
431
+ }
432
+ },
433
+ logout() {
434
+ this.$store.dispatch('user/logout2').then(res => {
435
+ this.$router.push(`/login?redirect=${this.$route.fullPath}`);
436
+ });
437
+ },
438
+ toggleSideBar() {
439
+ this.$store.dispatch('app/toggleSideBar');
440
+ },
441
+ countHeight() {
442
+ var h = this.$refs.hamhurger.offsetHeight + this.$refs.fase.offsetHeight + this.$refs.business.offsetHeight;
443
+ this.menuheight.height = window.innerHeight - h + 'px';
444
+ },
445
+ handleNodeClick(data, node, v) {
446
+ if (!data.hasChild) {
447
+ this.choose_company_info = data;
448
+ this.changeCompany();
449
+ } else {
450
+ this.choose_company_info = {};
451
+ }
452
+ },
453
+ // 异步树叶子节点懒加载逻辑
454
+ loadNode(node, resolve) {
455
+ let companyCode = node && node.data && node.data.companyCode ? node.data.companyCode || '' : '';
456
+ let url = !companyCode ? USER_PREFIX + '/user_company_info/getAllList' : USER_PREFIX + '/user_company_info/getChildren';
457
+
458
+ this.$http({
459
+ url: url,
460
+ method: 'post',
461
+ data: {
462
+ parentCompanyCode: companyCode
463
+ },
464
+ success: res => {
465
+ let datas = res.objx || [];
466
+ let parentLabel = companyCode ? node.label : null;
467
+ datas.forEach(item => {
468
+ item.leaf = !item.hasChild;
469
+ let label = item.companyName;
470
+ /*if(companyCode){
471
+ label = label + '('+companyTypeMap[item.companyType]+')'
472
+ }*/
473
+ item.label = label;
474
+ item.parentLabel = parentLabel;
475
+ });
476
+
477
+ if (node.level === 0) {
478
+ if (datas.length > 0 && datas[0].hasChild) {
479
+ this.$nextTick(() => {
480
+ let nodedata = node.childNodes[0];
481
+ nodedata.expanded = true;
482
+ nodedata.loadData();
483
+ });
484
+ }
485
+ }
486
+ resolve(datas);
487
+ }
488
+ });
489
+ },
490
+ filterNode(value, data) {
491
+ if (!value) return true;
492
+ let flag1 = data.label.indexOf(value) !== -1;
493
+ let flag2 = data.parentLabel && data.parentLabel.indexOf(value) !== -1;
494
+ return flag1 || flag2;
495
+ },
496
+ openCompanyDialog() {
497
+ this.filterText = null;
498
+ this.showCompanyDialog = true;
499
+ },
500
+ getWebPrefix(callback) {
501
+ this.$http({
502
+ url: USER_PREFIX + '/auth/getWebPrefix',
503
+ method: `post`,
504
+ data: {},
505
+ isLoading: true,
506
+ success: res => {
507
+ let webPrefix = res.objx
508
+ callback && callback(webPrefix)
509
+ }
510
+ });
511
+ },
512
+ changeCompany() {
513
+ let row = this.choose_company_info;
514
+ let query = this.$route.query;
515
+ let flag = query && query.flag == 1 ? 1 : null;
516
+ this.showCompanyDialog = false;
517
+ if (row && row.companyCode) {
518
+ this.$baseLoading({target: document.body, fullscreen: true});
519
+ this.$http({
520
+ url: USER_PREFIX + '/auth/switchCompany',
521
+ method: 'post',
522
+ data: {stringOne: row.companyCode},
523
+ isLoading: true,
524
+ success: res => {
525
+ this.getWebPrefix((prefix) => {
526
+ let webPrefix = prefix ? ("/" + prefix) : window.MAIN_WEB_PREFIX;
527
+ sessionStorage.removeItem("out-token");
528
+ this.$store.dispatch('user/changeCompanyInfo', row);
529
+ this.$store.dispatch('tagsView/delAllViews');
530
+ window.location.href = webPrefix + '/index.html';
531
+ });
532
+ }
533
+ });
534
+ } else {
535
+ if (flag == 1) {
536
+ this.$router.push({
537
+ path: '/'
538
+ });
539
+ }
540
+ }
541
+ },
542
+ changeCompanyClose() {
543
+ let query = this.$route.query;
544
+ let flag = query && query.flag == 1 ? 1 : null;
545
+ if (flag == 1) {
546
+ this.$router.push({
547
+ path: '/'
548
+ });
549
+ }
550
+ this.showCompanyDialog = false;
551
+ },
552
+ getUserInfo() {
553
+ this.$http({
554
+ url: USER_PREFIX + '/user/currentUser',
555
+ method: 'post',
556
+ success: res => {
557
+ let userInfo = res.objx;
558
+ this.headPhotoUrl = userInfo.headPhotoUrl ? userInfo.headPhotoUrl : require('@/resources/images' + '/default-header.png');
559
+ this.userInfo = userInfo;
560
+ }
561
+ });
562
+
563
+ this.$http({
564
+ url: USER_PREFIX + '/company_info/getCurrent',
565
+ method: `post`,
566
+ success: res => {
567
+ this.companyInfo = res.objx || {};
568
+ }
569
+ });
570
+ },
571
+ openUserInfo() {
572
+ this.showUserInfoDialog = true;
573
+ // this.showInfoIframeDialog = true;
574
+ },
575
+ userInfoReload() {
576
+ this.showUserInfoDialog = true;
577
+ },
578
+ showNav(route, event) {
579
+ let id = route && route.id ? route.id : null;
580
+ if (id != null) {
581
+ if (!route.children || !route.children.length) {
582
+ return;
583
+ }
584
+ this.stopFlag = 1;
585
+ this.nowNavID = id;
586
+ this.$nextTick(() => {
587
+ var wh = window.innerHeight;
588
+ let dom = event.target;
589
+ let domAttr = dom.getBoundingClientRect();
590
+ // var sh1 = dom.offsetTop;
591
+ var sh1 = domAttr.top;
592
+ let $snav = this.$refs['seconMenus' + id][0];
593
+ let snavAttr = $snav.getBoundingClientRect();
594
+
595
+ // var sh2 = $snav.outerHeight;
596
+ var sh2 = snavAttr.height;
597
+ var sh = wh - (sh1 + sh2);
598
+
599
+ var hd = 20;
600
+ var xhd = sh - hd; //移动距离+固定值
601
+ if (sh >= 0) {
602
+
603
+ $snav.style['margin-top'] = sh1 + 'px';
604
+ } else if (sh < 0) {
605
+ let bd = sh1 + sh;
606
+
607
+ $snav.style['margin-top'] = bd + 'px';
608
+ $snav.querySelector(".ico-arrow").style['margin-top'] = (sh1 - bd) + 'px';
609
+ }
610
+ });
611
+ } else {
612
+ this.stopFlag = 0;
613
+ setTimeout(() => {
614
+ if (this.stopFlag == 0) {
615
+ this.nowNavID = id;
616
+ }
617
+ }, 200);
618
+ }
619
+ },
620
+ jumpTo(row, firstRow) {
621
+ let route = firstRow.route ? '/' + firstRow.route : '';
622
+ if (route == WEB_PREFIX) {
623
+ this.$router.push({
624
+ path: row.path
625
+ });
626
+ } else {
627
+ this.changeModules(firstRow, row);
628
+ }
629
+ },
630
+ toDownMove() {
631
+ let containter = document.getElementById('menuUl').querySelector(".scrollbar-wrapper");
632
+ let menuscrollTop = containter.scrollTop
633
+ let scrollHeight = containter.scrollHeight
634
+ let val = menuscrollTop + this.eveyMenuHeight;
635
+ if (val < scrollHeight) {
636
+ containter.scrollTop = val
637
+ } else {
638
+ containter.scrollTop = scrollHeight
639
+ }
640
+ },
641
+ toUpMove() {
642
+ let containter = document.getElementById('menuUl').querySelector(".scrollbar-wrapper");
643
+ let menuscrollTop = containter.scrollTop
644
+ let val = menuscrollTop - this.eveyMenuHeight;
645
+ if (val > 0) {
646
+ containter.scrollTop = val
647
+ } else {
648
+ containter.scrollTop = 0
649
+ }
650
+ },
651
+ getMenuClass(menu, flag) {
652
+ let res = "";
653
+ if (menu.menuImg) {
654
+ res = "iconfont " + menu.menuImg;
655
+ } else if (flag == 1) {
656
+ res = "iconfont icon-jinggao";//一级默认图标
657
+ } else if (flag == 2) {
658
+ res = "iconfont icon-circle";//二级默认图标
659
+ } else if (flag == 3) {
660
+ res = "iconfont icon-thirdMemu";//三级级默认图标
661
+ }
662
+
663
+ if (flag == 2) {
664
+ if (menu.id == this.nowNavID) {
665
+ res += " on";
666
+ }
667
+ }
668
+ return res;
669
+ }
670
+ }
671
+ };
672
+ </script>
673
+ <style lang="scss">
674
+ @import '~@/styles/variables.scss';
675
+
676
+ .hamburger-box {
677
+ background-color: #0000004d;
678
+ height: 42px;
679
+ /* line-height: 30px; */
680
+ text-align: center;
681
+ /* box-shadow: 0 2px 6px rgb(0 0 0 / 10%); */
682
+ position: relative;
683
+ z-index: 2;
684
+ overflow: hidden;
685
+ font-size: 12px;
686
+ color: rgba(255, 255, 255, 0.65);
687
+
688
+ > div {
689
+ color: #fff;
690
+ font-size: 13px;
691
+ margin-bottom: 4px;
692
+ cursor: pointer;
693
+ height: 36px;
694
+ border-radius: 7px;
695
+ margin: 6px 10px 6px 8px;
696
+ overflow: hidden;
697
+ background: #2a6494;
698
+ }
699
+
700
+ p {
701
+ color: #fff;
702
+ font-size: 13px;
703
+ margin-bottom: 4px;
704
+ cursor: pointer;
705
+ /* border: solid 1px #ffffff61; */
706
+ display: block;
707
+ line-height: 27px;
708
+ /* width: 88%; */
709
+ margin-top: 6px;
710
+ border-radius: 7px;
711
+ margin: 6px 10px 6px 8px;
712
+ background: #2a6494;
713
+
714
+ i {
715
+ font-size: 14px;
716
+ vertical-align: middle;
717
+ margin: 0 4px 0 6px;
718
+ height: 36px;
719
+ line-height: 36px;
720
+ width: 21px;
721
+ }
722
+
723
+ span {
724
+ width: 94px;
725
+ display: table-cell;
726
+ height: 32px;
727
+ word-break: break-word;
728
+ line-height: 16px;
729
+ overflow: hidden;
730
+ vertical-align: middle;
731
+ }
732
+
733
+ &.name {
734
+ display: table-row;
735
+ margin: 0;
736
+ }
737
+ }
738
+ }
739
+
740
+ .business-name {
741
+ height: 47px;
742
+ color: #ffffffb8;
743
+ background: #0000004d;
744
+ /* padding-top: 12px; */
745
+ font-size: 12px;
746
+ /* padding-left: 5px; */
747
+ display: table-cell;
748
+ vertical-align: middle;
749
+ width: 140px;
750
+ padding: 6px 10px;
751
+ text-align: center;
752
+
753
+ p {
754
+ margin: 0;
755
+ }
756
+ }
757
+
758
+ .fase-box {
759
+ color: #fff;
760
+ /* border-bottom: solid 1px rgba(255, 255, 255, 0.12); */
761
+ border-top: solid 1px rgba(255, 255, 255, 0.12);
762
+ background: #225076;
763
+ padding: 4px 0 8px;
764
+ width: 100%;
765
+ z-index: 999;
766
+ position: relative;
767
+ /* display: flex;*/
768
+ //text-align: left !important;
769
+ // &:hover {
770
+ // color: $baseColor;
771
+ // background-color: #fbfdfe;
772
+ // .fase-list {
773
+ // display: block;
774
+ // }
775
+ // }
776
+ .item {
777
+ flex: 1;
778
+ text-align: center;
779
+ font-size: 16px;
780
+ height: 40px;
781
+ line-height: 40px;
782
+ cursor: pointer;
783
+ display: inline-block;
784
+ min-width: 30px;
785
+ }
786
+
787
+ .fase-list {
788
+ position: absolute;
789
+ left: 100%;
790
+ color: $baseColor;
791
+ background-color: #fbfdfe;
792
+ border: solid 1px $baseColor;
793
+ border-left: none;
794
+ top: -0.5px;
795
+ padding: 10px 0 10px 24px;
796
+ height: 43px;
797
+ width: 413px;
798
+ display: none;
799
+
800
+ .l-item {
801
+ display: inline-block;
802
+ font-size: 12px;
803
+ margin-right: 36px;
804
+ line-height: 20px;
805
+ cursor: pointer;
806
+
807
+ i {
808
+ vertical-align: middle;
809
+ margin-right: 4px;
810
+ font-size: 15px;
811
+ margin-bottom: 2px;
812
+ }
813
+
814
+ &:hover {
815
+ border-bottom: solid 1px $baseColor;
816
+ }
817
+ }
818
+ }
819
+ }
820
+
821
+ .openSidebar .fase-box {
822
+ text-align: center;
823
+ //padding: 0;
824
+ }
825
+
826
+ #app .sidebar-container {
827
+ overflow: visible;
828
+ z-index: 1003;
829
+
830
+ &.hover {
831
+ z-index: 1003;
832
+ }
833
+
834
+ &.hover1 .fase-box {
835
+ width: 138px;
836
+ color: $baseColor;
837
+ background-color: #fbfdfe;
838
+ border-color: $baseColor;
839
+ }
840
+
841
+ .el-menu.menu-box {
842
+ height: calc(100vh - 173px);
843
+ font-size: 13px;
844
+ z-index: -1;
845
+ position: relative;
846
+ background-color: rgba(0, 0, 0, .2);
847
+ word-break: break-word;
848
+
849
+ .el-submenu {
850
+ overflow: hidden; //有点电脑分辨率问题
851
+ .el-submenu__title {
852
+ padding: 0 11px !important;
853
+ height: 48px;
854
+ line-height: 48px;
855
+
856
+ i {
857
+ color: #fff;
858
+ font-size: 13px;
859
+ margin-right: 0;
860
+ width: 18px;
861
+
862
+ &.iconfont {
863
+ margin-right: 5px;
864
+ font-size: 19px;
865
+ float: left;
866
+ }
867
+
868
+ &.el-submenu__icon-arrow {
869
+ right: 3px;
870
+ text-align: center;
871
+ font-size: 12px;
872
+ margin-top: -5px;
873
+ display: none;
874
+ }
875
+ }
876
+
877
+ > span {
878
+ height: 48px;
879
+ display: table-cell;
880
+ width: 114px;
881
+ vertical-align: middle;
882
+ font-size: 13px;
883
+ white-space: normal;
884
+ line-height: 16px;
885
+ }
886
+ }
887
+
888
+ &.is-opened .el-submenu__title {
889
+ //background-color: rgba(27, 66, 97) !important;
890
+ }
891
+ }
892
+
893
+ .el-submenu {
894
+ .el-menu {
895
+ background: rgba(0, 0, 0, 0.35) !important;
896
+ box-shadow: 0px -5px 8px #00000014 inset;
897
+ //padding:4px 0;
898
+ }
899
+
900
+ .el-menu-item {
901
+ height: auto;
902
+ line-height: 1.4;
903
+ padding-left: 33px !important;
904
+ font-size: 12px;
905
+ opacity: 0.8;
906
+ margin: 10px 0 10px 14px;
907
+ padding: 7px 2px 7px 0px;
908
+ border-radius: 8px;
909
+ text-align: left;
910
+ min-width: 81px !important;
911
+ white-space: normal;
912
+ margin-right: 10px;
913
+ word-break: break-word;
914
+
915
+ &:before {
916
+ position: absolute;
917
+ top: 50%;
918
+ height: 20px;
919
+ margin-top: -10px;
920
+ line-height: 20px;
921
+ left: 7px;
922
+ font-size: 18px;
923
+ }
924
+
925
+ [class^=el-icon-] {
926
+ font-size: 12px;
927
+ color: #FFF;
928
+ position: absolute;
929
+ right: 2px;
930
+ top: 50%;
931
+ margin-top: -5px;
932
+ width: 14px;
933
+ zoom: 0.8;
934
+ display: none;
935
+ }
936
+
937
+ &:hover, &.on {
938
+ opacity: 1;
939
+ background-color: #FBFDFE !important;
940
+ color: $baseColor !important;
941
+
942
+ .el-icon-arrow-right {
943
+ color: $baseColor
944
+ }
945
+ }
946
+ }
947
+ }
948
+
949
+ &.lang-zh {
950
+ font-size: 14px;
951
+
952
+ .el-submenu {
953
+ .el-submenu__title {
954
+ > span {
955
+ font-size: 14px;
956
+ text-align: center
957
+ }
958
+
959
+ i.iconfont {
960
+ margin-right: 2px;
961
+ }
962
+ }
963
+
964
+ .el-menu-item {
965
+ font-size: 13px
966
+ }
967
+ }
968
+
969
+ }
970
+ }
971
+ }
972
+
973
+ .main-container {
974
+ z-index: 1002;
975
+ }
976
+
977
+ .menu-btn {
978
+ background-color: #0000001c;
979
+ height: 30px;
980
+ line-height: 30px;
981
+ text-align: center;
982
+ box-shadow: 0 -10px 6px rgb(0 0 0 / 10%);
983
+ display: flex;
984
+ color: #FFF;
985
+ font-size: 16px;
986
+
987
+ i {
988
+ display: inline-block;
989
+ flex: 1;
990
+ line-height: 30px;
991
+ cursor: pointer;
992
+ border-right: solid 1px rgba(0, 0, 0, 0.2);
993
+
994
+ &:last-child {
995
+ border-right: none;
996
+ }
997
+
998
+ &:hover {
999
+ background-color: rgba(255, 255, 255, 0.12);
1000
+ }
1001
+ }
1002
+ }
1003
+
1004
+ /*.menu-box {
1005
+ background-color: #0000002e !important;
1006
+ font-size: 14px;
1007
+ z-index: -1;
1008
+ position: relative;
1009
+ &.hover .el-scrollbar {
1010
+ width: 1000px;
1011
+ }
1012
+ .el-scrollbar {
1013
+ .el-scrollbar__view {
1014
+ padding-top: 1px;
1015
+ }
1016
+ .el-scrollbar__bar.is-vertical {
1017
+ left: 104px;
1018
+ }
1019
+ }
1020
+ .first-item {
1021
+ position: relative;
1022
+ width: 104px;
1023
+ &:nth-child(-n + 6) .second-list {
1024
+ bottom: inherit !important;
1025
+ top: -40.5px !important;
1026
+ }
1027
+ &:nth-child(1) .second-list {
1028
+ top: 0 !important;
1029
+ }
1030
+ &:nth-last-child(-n + 6) .second-list {
1031
+ bottom: -1%;
1032
+ top: inherit;
1033
+ }
1034
+ .f-name {
1035
+ height: 55px;
1036
+ line-height: 55px;
1037
+ padding-left: 9px;
1038
+ color: #fff;
1039
+ cursor: pointer;
1040
+ position: relative;
1041
+ padding-right: 6px;
1042
+ -webkit-transition: all 0.2s ease-in;
1043
+ -moz-transition: all 0.2s ease-in;
1044
+ -o-transition: all 0.2s ease-in;
1045
+ transition: all 0.2s ease-in;
1046
+ width: 104px;
1047
+ i.el-icon-arrow-right {
1048
+ position: absolute;
1049
+ right: 3px;
1050
+ top: 21.5px;
1051
+ width: 14px;
1052
+ height: 14px;
1053
+ }
1054
+ .el-icon-s-opportunity {
1055
+ opacity: 0.92;
1056
+ font-size: 13px;
1057
+ vertical-align: middle;
1058
+ margin-right: 2px;
1059
+ }
1060
+ span{display: inline-block;width: calc(100% - 20px);vertical-align: middle;line-height: 1.2;}
1061
+ }
1062
+
1063
+ &:hover,
1064
+ &.current {
1065
+ .f-name {
1066
+ background-color: #fbfdfe;
1067
+ color: $baseColor;
1068
+ }
1069
+ .second-list {
1070
+ display: block;
1071
+ }
1072
+ }
1073
+ }
1074
+ }
1075
+
1076
+
1077
+ */
1078
+ .second-list {
1079
+ display: none;
1080
+ position: absolute;
1081
+ left: $sideBarWidth;
1082
+ padding-left: 2px;
1083
+ top: 0.5px;
1084
+ // &:before {
1085
+ // content: "";
1086
+ // top: 22px;
1087
+ // bottom: 22px;
1088
+ // background-color: $baseColor;
1089
+ // width: 2px;
1090
+ // position: absolute;
1091
+ // left: 24px;
1092
+ // }
1093
+ > div {
1094
+ background: #fbfdfe;
1095
+ border: solid 1px $baseColor;
1096
+ top: -0.5px;
1097
+ padding: 24px 0;
1098
+ border-radius: 8px;
1099
+ margin-left: 9px;
1100
+ max-height: calc(84vh);
1101
+ overflow-y: auto;
1102
+ overflow-x: hidden;
1103
+ width: 458px;
1104
+ }
1105
+
1106
+ .ico-arrow {
1107
+ border-top: solid 7px transparent;
1108
+ border-bottom: solid 7px transparent;
1109
+ border-right: solid 7px $baseColor;
1110
+ position: absolute;
1111
+ left: 2px;
1112
+ top: 8px;
1113
+ }
1114
+
1115
+ &.on {
1116
+ display: block;
1117
+ }
1118
+
1119
+ .tit {
1120
+ width: auto;
1121
+ /* text-align: center; */
1122
+ /* background: #22507614; */
1123
+ color: $baseColor;
1124
+ /* border: dashed 1px #1d4667; */
1125
+ padding: 0 0 10px;
1126
+ /* border-radius: 6px; */
1127
+ /* margin: 5px auto; */
1128
+ margin: 0 22px;
1129
+ display: block;
1130
+ border-bottom: solid 1px #eee;
1131
+
1132
+ i, span {
1133
+ opacity: 1;
1134
+ vertical-align: middle;
1135
+ margin-right: 7px;
1136
+ font-size: 18px;
1137
+ }
1138
+
1139
+ span {
1140
+ font-size: 14px
1141
+ }
1142
+ }
1143
+
1144
+ dl {
1145
+ padding: 8px 16px 3px 24px;
1146
+ margin-top: 0;
1147
+ margin-bottom: 0;
1148
+ display: inline-block;
1149
+ width: 50%;
1150
+ position: relative;
1151
+ word-break: break-all;
1152
+
1153
+ &:after {
1154
+ content: "";
1155
+ width: 1px;
1156
+ height: 14px;
1157
+ background: #e4e4e4;
1158
+ display: inline-block;
1159
+ position: absolute;
1160
+ right: -5px;
1161
+ top: 50%;
1162
+ margin-top: -3px;
1163
+ }
1164
+
1165
+ .s-name {
1166
+ color: $baseColor;
1167
+ display: inline-block;
1168
+ width: 190px;
1169
+ font-size: 14px;
1170
+ vertical-align: top;
1171
+ margin-top: 11px;
1172
+ text-align: right;
1173
+
1174
+ i {
1175
+ margin-left: 5px;
1176
+
1177
+ &.icon {
1178
+ font-size: 13px;
1179
+ opacity: 0.92;
1180
+ margin-left: 2px;
1181
+ margin-right: 4px;
1182
+ }
1183
+ }
1184
+ }
1185
+
1186
+ .item {
1187
+ position: relative;
1188
+ border: dashed 1px #FFF;
1189
+ border-radius: 6px;
1190
+ display: block;
1191
+ padding: 6px 8px 6px 27px;
1192
+ cursor: pointer;
1193
+
1194
+ &:hover {
1195
+ border-color: $baseColor;
1196
+ color: $baseColor;
1197
+
1198
+ i, a {
1199
+ color: $baseColor;
1200
+ }
1201
+ }
1202
+
1203
+ // &:after {
1204
+ // content: "";
1205
+ // width: 1px;
1206
+ // height: 12px;
1207
+ // background: #dcdcdc;
1208
+ // position: absolute;
1209
+ // right: -25px;
1210
+ // top: 2px
1211
+ // }
1212
+
1213
+ i {
1214
+ opacity: 0.8;
1215
+ margin-right: 8px;
1216
+ vertical-align: middle;
1217
+ position: absolute;
1218
+ left: 4px;
1219
+ top: 50%;
1220
+ margin-top: -11px;
1221
+ height: 22px;
1222
+ line-height: 22px;
1223
+ font-size: 16px;
1224
+ }
1225
+
1226
+ a {
1227
+ color: rgba(0, 0, 0, 0.82);
1228
+ display: inline-block;
1229
+ font-size: 13px;
1230
+ position: relative;
1231
+ overflow: initial !important;
1232
+ -webkit-transition: all 0.2s ease-in;
1233
+ -moz-transition: all 0.2s ease-in;
1234
+ -o-transition: all 0.2s ease-in;
1235
+ transition: all 0.2s ease-in;
1236
+ width: auto !important;
1237
+ vertical-align: middle;
1238
+ word-break: break-word;
1239
+
1240
+ &:hover {
1241
+ color: $baseColor;
1242
+
1243
+ // &:after {
1244
+ // content: '';
1245
+ // position: absolute;
1246
+ // bottom: -4px;
1247
+ // left: 0;
1248
+ // right: 0;
1249
+ // border-bottom: solid 1px $baseColor;
1250
+ // }
1251
+ }
1252
+ }
1253
+ }
1254
+
1255
+ &:last-child {
1256
+ .list-box {
1257
+ border-bottom: none;
1258
+ }
1259
+ }
1260
+ }
1261
+ }
1262
+
1263
+ // .el-submenu .el-menu {
1264
+ // height: auto !important;
1265
+ // }
1266
+ </style>