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

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