cloud-web-corejs 1.0.54-dev.63 → 1.0.54-dev.630

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