imatrix-ui 2.8.21 → 2.8.22-boe1

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 (176) hide show
  1. package/lib/super-ui.css +1 -1
  2. package/lib/super-ui.umd.min.js +5 -5
  3. package/package.json +2 -2
  4. package/src/api/sso-service.js +19 -1
  5. package/src/i18n/langs/cn.js +13 -3
  6. package/src/i18n/langs/en.js +15 -4
  7. package/src/router/index.js +10 -0
  8. package/src/store/modules/tab-content.js +6 -0
  9. package/src/store/modules/user.js +19 -0
  10. package/src/styles/index.scss +72 -2
  11. package/src/styles/theme/black/font-style.scss +70 -0
  12. package/src/styles/theme/black/index.scss +6 -30
  13. package/src/styles/theme/blue/font-style.scss +37 -0
  14. package/src/styles/theme/blue/index.scss +2 -18
  15. package/src/styles/theme/blue2/font-style.scss +70 -0
  16. package/src/styles/theme/blue2/index.scss +3 -13
  17. package/src/styles/theme/dark-blue/index.scss +26 -5
  18. package/src/styles/theme/dark-blue/sidebar.scss +7 -37
  19. package/src/styles/theme/dark-blue/table.scss +1 -1
  20. package/src/styles/theme/gray/card-style.scss +13 -1
  21. package/src/styles/theme/gray/font-style.scss +38 -0
  22. package/src/styles/theme/gray/index.scss +13 -25
  23. package/src/styles/theme/gray/scrollbar-style.scss +32 -0
  24. package/src/styles/theme/gray/sidebar.scss +5 -0
  25. package/src/utils/auth-api.js +45 -1
  26. package/src/utils/common-util.js +11 -0
  27. package/src/utils/range-selector.js +185 -0
  28. package/src/utils/request.js +5 -2
  29. package/src/utils/util.js +7 -5
  30. package/src/views/dsc-component/Sidebar/Item.vue +4 -2
  31. package/src/views/dsc-component/Sidebar/SidebarItem.vue +1 -2
  32. package/src/views/dsc-component/Sidebar/index.vue +12 -20
  33. package/src/views/dsc-component/tabs/tab-content.vue +1 -5
  34. package/src/views/layout/NewLayout.vue +6 -65
  35. package/src/views/layout/components/Menubar/Item.vue +23 -7
  36. package/src/views/layout/components/Menubar/Link.vue +11 -2
  37. package/src/views/layout/components/Menubar/SidebarItem.vue +50 -7
  38. package/src/views/layout/components/Menubar/index.vue +51 -16
  39. package/src/views/layout/components/tabs/tab-content.vue +160 -0
  40. package/src/views/layout/tab-content-iframe-index.vue +31 -0
  41. package/src/views/layout/tab-content-index.vue +85 -0
  42. package/packages/breadcrumb/index.js +0 -6
  43. package/packages/breadcrumb/src/breadcrumb.vue +0 -71
  44. package/packages/department-tree/index.js +0 -6
  45. package/packages/department-tree/src/department-tree.vue +0 -108
  46. package/packages/department-tree-inline/index.js +0 -6
  47. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +0 -402
  48. package/packages/department-tree-inline/src/department-single-tree-inline.vue +0 -284
  49. package/packages/department-tree-inline/src/department-tree-inline.vue +0 -86
  50. package/packages/department-tree-inline/src/department-tree-service.js +0 -245
  51. package/packages/department-tree-inline/src/search-result.vue +0 -176
  52. package/packages/department-user-tree/index.js +0 -6
  53. package/packages/department-user-tree/src/department-user-multiple-tree.vue +0 -116
  54. package/packages/department-user-tree/src/department-user-single-tree.vue +0 -76
  55. package/packages/department-user-tree/src/department-user-tree.vue +0 -101
  56. package/packages/department-user-tree-inline/index.js +0 -6
  57. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +0 -626
  58. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -269
  59. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +0 -79
  60. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -230
  61. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +0 -122
  62. package/packages/department-user-tree-inline/src/search-result.vue +0 -197
  63. package/packages/directives/prevent-reclick.js +0 -19
  64. package/packages/dynamic-source-select/index.js +0 -6
  65. package/packages/dynamic-source-select/src/dynamic-source-select-service.js +0 -70
  66. package/packages/dynamic-source-select/src/dynamic-source-select.vue +0 -440
  67. package/packages/dynamic-source-select/src/events.js +0 -55
  68. package/packages/fs-preview/index.js +0 -6
  69. package/packages/fs-preview/src/fs-preview.vue +0 -226
  70. package/packages/fs-upload/index.js +0 -6
  71. package/packages/fs-upload/src/fs-upload-multi.vue +0 -420
  72. package/packages/fs-upload/src/fs-upload-single.vue +0 -312
  73. package/packages/fs-upload/src/fs-upload.vue +0 -189
  74. package/packages/fs-upload/src/see-big-picture.vue +0 -55
  75. package/packages/fs-upload-list/index.js +0 -6
  76. package/packages/fs-upload-list/src/fs-upload-list.vue +0 -287
  77. package/packages/hamburger/index.js +0 -6
  78. package/packages/hamburger/src/hamburger.vue +0 -38
  79. package/packages/index.js +0 -121
  80. package/packages/multipart-upload/index.js +0 -6
  81. package/packages/multipart-upload/src/index.vue +0 -73
  82. package/packages/multipart-upload/src/multipart-upload-form.vue +0 -297
  83. package/packages/multipart-upload/src/multipart-upload-list.vue +0 -378
  84. package/packages/organization-input/index.js +0 -6
  85. package/packages/organization-input/src/organization-input.vue +0 -542
  86. package/packages/plugins/export-data-new.js +0 -453
  87. package/packages/plugins/export-data.js +0 -361
  88. package/packages/plugins/index.js +0 -15
  89. package/packages/plugins/public-method.js +0 -43
  90. package/packages/remove-department/index.js +0 -6
  91. package/packages/remove-department/src/remove-department.vue +0 -172
  92. package/packages/remove-department/src/remove-dept-service.js +0 -20
  93. package/packages/remove-user/index.js +0 -6
  94. package/packages/remove-user/src/remove-user-service.js +0 -20
  95. package/packages/remove-user/src/remove-user.vue +0 -195
  96. package/packages/remove-workgroup/index.js +0 -6
  97. package/packages/remove-workgroup/src/remove-workgroup-service.js +0 -20
  98. package/packages/remove-workgroup/src/remove-workgroup.vue +0 -159
  99. package/packages/rich-editor/index.js +0 -7
  100. package/packages/rich-editor/index.vue +0 -278
  101. package/packages/rich-editor/langs/zh-Hans.js +0 -1
  102. package/packages/rich-editor/viewer.vue +0 -103
  103. package/packages/scan-code-input/index.js +0 -6
  104. package/packages/scan-code-input/src/events.js +0 -33
  105. package/packages/scan-code-input/src/scan-code-input-colse.vue +0 -131
  106. package/packages/scan-code-input/src/scan-code-input.vue +0 -116
  107. package/packages/secret-info/index.js +0 -7
  108. package/packages/secret-info/index.vue +0 -90
  109. package/packages/super-grid/index.js +0 -7
  110. package/packages/super-grid/src/apis.js +0 -763
  111. package/packages/super-grid/src/columns-config.vue +0 -335
  112. package/packages/super-grid/src/custom-formatter.js +0 -250
  113. package/packages/super-grid/src/dynamic-input.vue +0 -1279
  114. package/packages/super-grid/src/eventBus.js +0 -2
  115. package/packages/super-grid/src/events.js +0 -55
  116. package/packages/super-grid/src/formValidatorUtil.js +0 -226
  117. package/packages/super-grid/src/formatter.js +0 -181
  118. package/packages/super-grid/src/group-column.vue +0 -100
  119. package/packages/super-grid/src/header-context-menu.vue +0 -87
  120. package/packages/super-grid/src/index-column.vue +0 -51
  121. package/packages/super-grid/src/normal-column.vue +0 -769
  122. package/packages/super-grid/src/public-methods.js +0 -31
  123. package/packages/super-grid/src/row-operation.vue +0 -161
  124. package/packages/super-grid/src/search-button.vue +0 -66
  125. package/packages/super-grid/src/search-condition-input.vue +0 -61
  126. package/packages/super-grid/src/search-condition-list.vue +0 -59
  127. package/packages/super-grid/src/search-form-advancedQuery.vue +0 -653
  128. package/packages/super-grid/src/search-form-dialog.vue +0 -79
  129. package/packages/super-grid/src/search-form-item.vue +0 -386
  130. package/packages/super-grid/src/search-form-number.vue +0 -38
  131. package/packages/super-grid/src/search-form-open.vue +0 -162
  132. package/packages/super-grid/src/search-form-ordinarySearch.vue +0 -188
  133. package/packages/super-grid/src/search-form.vue +0 -634
  134. package/packages/super-grid/src/search-methods.js +0 -387
  135. package/packages/super-grid/src/selection-column.vue +0 -43
  136. package/packages/super-grid/src/store.js +0 -3
  137. package/packages/super-grid/src/super-grid-service.js +0 -561
  138. package/packages/super-grid/src/super-grid.vue +0 -2793
  139. package/packages/super-grid/src/utils.js +0 -763
  140. package/packages/super-grid/src/view-image-dialog.vue +0 -130
  141. package/packages/super-nine-grid/index.js +0 -7
  142. package/packages/super-nine-grid/src/apis.js +0 -103
  143. package/packages/super-nine-grid/src/custom-formatter.js +0 -66
  144. package/packages/super-nine-grid/src/formatter.js +0 -132
  145. package/packages/super-nine-grid/src/search-form-number.vue +0 -38
  146. package/packages/super-nine-grid/src/search-form.vue +0 -430
  147. package/packages/super-nine-grid/src/search-methods.js +0 -134
  148. package/packages/super-nine-grid/src/store.js +0 -3
  149. package/packages/super-nine-grid/src/super-grid-service.js +0 -91
  150. package/packages/super-nine-grid/src/super-nine-grid.vue +0 -872
  151. package/packages/super-nine-grid/src/utils.js +0 -261
  152. package/packages/svg-icon/index.js +0 -6
  153. package/packages/svg-icon/src/svg-icon.vue +0 -43
  154. package/packages/utils/utils.js +0 -152
  155. package/packages/utils/value-set.js +0 -86
  156. package/packages/valid-code/index.js +0 -7
  157. package/packages/valid-code/src/valid-code.vue +0 -95
  158. package/packages/workflow-button/index.js +0 -6
  159. package/packages/workflow-button/src/workflow-button.vue +0 -325
  160. package/packages/workflow-history-list/index.js +0 -6
  161. package/packages/workflow-history-list/src/api.js +0 -7
  162. package/packages/workflow-history-list/src/workflow-history-list.vue +0 -185
  163. package/packages/workgroup-tree/index.js +0 -6
  164. package/packages/workgroup-tree/src/workgroup-tree.vue +0 -76
  165. package/packages/workgroup-tree-inline/index.js +0 -6
  166. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +0 -317
  167. package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +0 -43
  168. package/packages/workgroup-user-tree/index.js +0 -6
  169. package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +0 -100
  170. package/packages/workgroup-user-tree-inline/index.js +0 -6
  171. package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +0 -163
  172. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +0 -436
  173. package/packages/year-range-picker/index.js +0 -6
  174. package/packages/year-range-picker/src/year-range-picker.vue +0 -51
  175. package/src/index.js +0 -93
  176. package/src/styles/theme/gray/form-style.scss +0 -41
@@ -1 +0,0 @@
1
- tinymce.addI18n('zh-Hans', { 'Redo': '\u91cd\u505a', 'Undo': '\u64a4\u9500', 'Cut': '\u526a\u5207', 'Copy': '\u590d\u5236', 'Paste': '\u7c98\u8d34', 'Select all': '\u5168\u9009', 'New document': '\u65b0\u5efa\u6587\u6863', 'Ok': '\u786e\u5b9a', 'Cancel': '\u53d6\u6d88', 'Visual aids': '\u7f51\u683c\u7ebf', 'Bold': '\u7c97\u4f53', 'Italic': '\u659c\u4f53', 'Underline': '\u4e0b\u5212\u7ebf', 'Strikethrough': '\u5220\u9664\u7ebf', 'Superscript': '\u4e0a\u6807', 'Subscript': '\u4e0b\u6807', 'Clear formatting': '\u6e05\u9664\u683c\u5f0f', 'Remove': '\u79fb\u9664', 'Align left': '\u5de6\u5bf9\u9f50', 'Align center': '\u5c45\u4e2d\u5bf9\u9f50', 'Align right': '\u53f3\u5bf9\u9f50', 'No alignment': '\u672a\u5bf9\u9f50', 'Justify': '\u4e24\u7aef\u5bf9\u9f50', 'Bullet list': '\u65e0\u5e8f\u5217\u8868', 'Numbered list': '\u6709\u5e8f\u5217\u8868', 'Decrease indent': '\u51cf\u5c11\u7f29\u8fdb', 'Increase indent': '\u589e\u52a0\u7f29\u8fdb', 'Close': '\u5173\u95ed', 'Formats': '\u683c\u5f0f', "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.": '\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u6253\u5f00\u526a\u8d34\u677f\uff0c\u8bf7\u4f7f\u7528Ctrl+X/C/V\u7b49\u5feb\u6377\u952e\u3002', 'Headings': '\u6807\u9898', 'Heading 1': '\u4e00\u7ea7\u6807\u9898', 'Heading 2': '\u4e8c\u7ea7\u6807\u9898', 'Heading 3': '\u4e09\u7ea7\u6807\u9898', 'Heading 4': '\u56db\u7ea7\u6807\u9898', 'Heading 5': '\u4e94\u7ea7\u6807\u9898', 'Heading 6': '\u516d\u7ea7\u6807\u9898', 'Preformatted': '\u9884\u5148\u683c\u5f0f\u5316\u7684', 'Div': 'Div', 'Pre': '\u524d\u8a00', 'Code': '\u4ee3\u7801', 'Paragraph': '\u6bb5\u843d', 'Blockquote': '\u5f15\u6587\u533a\u5757', 'Inline': '\u6587\u672c', 'Blocks': '\u6837\u5f0f', 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.': '\u5f53\u524d\u4e3a\u7eaf\u6587\u672c\u7c98\u8d34\u6a21\u5f0f\uff0c\u518d\u6b21\u70b9\u51fb\u53ef\u4ee5\u56de\u5230\u666e\u901a\u7c98\u8d34\u6a21\u5f0f\u3002', 'Fonts': '\u5b57\u4f53', 'Font sizes': '\u5b57\u4f53\u5927\u5c0f', 'Class': '\u7c7b\u578b', 'Browse for an image': '\u6d4f\u89c8\u56fe\u50cf', 'OR': '\u6216', 'Drop an image here': '\u62d6\u653e\u4e00\u5f20\u56fe\u50cf\u81f3\u6b64', 'Upload': '\u4e0a\u4f20', 'Uploading image': '\u4e0a\u4f20\u56fe\u7247', 'Block': '\u5757', 'Align': '\u5bf9\u9f50', 'Default': '\u9884\u8bbe', 'Circle': '\u7a7a\u5fc3\u5706', 'Disc': '\u5b9e\u5fc3\u5706', 'Square': '\u5b9e\u5fc3\u65b9\u5757', 'Lower Alpha': '\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd', 'Lower Greek': '\u5c0f\u5199\u5e0c\u814a\u5b57\u6bcd', 'Lower Roman': '\u5c0f\u5199\u7f57\u9a6c\u6570\u5b57', 'Upper Alpha': '\u5927\u5199\u82f1\u6587\u5b57\u6bcd', 'Upper Roman': '\u5927\u5199\u7f57\u9a6c\u6570\u5b57', 'Anchor...': '\u951a\u70b9...', 'Anchor': '\u951a\u70b9', 'Name': '\u540d\u79f0', 'ID': 'ID', 'ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.': 'ID\u5e94\u8be5\u4ee5\u82f1\u6587\u5b57\u6bcd\u5f00\u5934\uff0c\u540e\u9762\u53ea\u80fd\u6709\u82f1\u6587\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u7834\u6298\u53f7\u3001\u70b9\u3001\u5192\u53f7\u6216\u4e0b\u5212\u7ebf\u3002', 'You have unsaved changes are you sure you want to navigate away?': '\u4f60\u8fd8\u6709\u6587\u6863\u5c1a\u672a\u4fdd\u5b58\uff0c\u786e\u5b9a\u8981\u79bb\u5f00\uff1f', 'Restore last draft': '\u6062\u590d\u4e0a\u6b21\u7684\u8349\u7a3f', 'Special character...': '\u7279\u6b8a\u5b57\u7b26...', 'Special Character': '\u7279\u6b8a\u5b57\u7b26', 'Source code': '\u6e90\u4ee3\u7801', 'Insert/Edit code sample': '\u63d2\u5165/\u7f16\u8f91\u4ee3\u7801\u793a\u4f8b', 'Language': '\u8bed\u8a00', 'Code sample...': '\u793a\u4f8b\u4ee3\u7801...', 'Left to right': '\u7531\u5de6\u5230\u53f3', 'Right to left': '\u7531\u53f3\u5230\u5de6', 'Title': '\u6807\u9898', 'Fullscreen': '\u5168\u5c4f', 'Action': '\u52a8\u4f5c', 'Shortcut': '\u5feb\u6377\u65b9\u5f0f', 'Help': '\u5e2e\u52a9', 'Address': '\u5730\u5740', 'Focus to menubar': '\u79fb\u52a8\u7126\u70b9\u5230\u83dc\u5355\u680f', 'Focus to toolbar': '\u79fb\u52a8\u7126\u70b9\u5230\u5de5\u5177\u680f', 'Focus to element path': '\u79fb\u52a8\u7126\u70b9\u5230\u5143\u7d20\u8def\u5f84', 'Focus to contextual toolbar': '\u79fb\u52a8\u7126\u70b9\u5230\u4e0a\u4e0b\u6587\u83dc\u5355', 'Insert link (if link plugin activated)': '\u63d2\u5165\u94fe\u63a5 (\u5982\u679c\u94fe\u63a5\u63d2\u4ef6\u5df2\u6fc0\u6d3b)', 'Save (if save plugin activated)': '\u4fdd\u5b58(\u5982\u679c\u4fdd\u5b58\u63d2\u4ef6\u5df2\u6fc0\u6d3b)', 'Find (if searchreplace plugin activated)': '\u67e5\u627e(\u5982\u679c\u67e5\u627e\u66ff\u6362\u63d2\u4ef6\u5df2\u6fc0\u6d3b)', 'Plugins installed ({0}):': '\u5df2\u5b89\u88c5\u63d2\u4ef6 ({0}):', 'Premium plugins:': '\u4f18\u79c0\u63d2\u4ef6\uff1a', 'Learn more...': '\u4e86\u89e3\u66f4\u591a...', 'You are using {0}': '\u4f60\u6b63\u5728\u4f7f\u7528 {0}', 'Plugins': '\u63d2\u4ef6', 'Handy Shortcuts': '\u5feb\u6377\u952e', 'Horizontal line': '\u6c34\u5e73\u5206\u5272\u7ebf', 'Insert/edit image': '\u63d2\u5165/\u7f16\u8f91\u56fe\u7247', 'Alternative description': '\u66ff\u4ee3\u63cf\u8ff0', 'Accessibility': '\u8f85\u52a9\u529f\u80fd', 'Image is decorative': '\u56fe\u50cf\u662f\u88c5\u9970\u6027\u7684', 'Source': '\u6e90', 'Dimensions': '\u5c3a\u5bf8', 'Constrain proportions': '\u4fdd\u6301\u6bd4\u4f8b', 'General': '\u4e00\u822c', 'Advanced': '\u9ad8\u7ea7', 'Style': '\u6837\u5f0f', 'Vertical space': '\u5782\u76f4\u95f4\u8ddd', 'Horizontal space': '\u6c34\u5e73\u95f4\u8ddd', 'Border': '\u6846\u7ebf', 'Insert image': '\u63d2\u5165\u56fe\u7247', 'Image...': '\u56fe\u7247...', 'Image list': '\u56fe\u7247\u6e05\u5355', 'Resize': '\u8c03\u6574\u5927\u5c0f', 'Insert date/time': '\u63d2\u5165\u65e5\u671f/\u65f6\u95f4', 'Date/time': '\u65e5\u671f/\u65f6\u95f4', 'Insert/edit link': '\u63d2\u5165/\u7f16\u8f91\u94fe\u63a5', 'Text to display': '\u8981\u663e\u793a\u7684\u6587\u672c', 'Url': '\u5730\u5740', 'Open link in...': '\u94fe\u63a5\u6253\u5f00\u4f4d\u7f6e...', 'Current window': '\u5f53\u524d\u7a97\u53e3', 'None': '\u65e0', 'New window': '\u65b0\u7a97\u53e3', 'Open link': '\u6253\u5f00\u94fe\u63a5', 'Remove link': '\u79fb\u9664\u94fe\u63a5', 'Anchors': '\u951a\u70b9', 'Link...': '\u94fe\u63a5...', 'Paste or type a link': '\u7c98\u8d34\u6216\u8f93\u5165\u94fe\u63a5', 'The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?': '\u4f60\u6240\u586b\u5199\u7684URL\u5730\u5740\u4e3a\u90ae\u4ef6\u5730\u5740\uff0c\u9700\u8981\u52a0\u4e0amailto: \u524d\u7f00\u5417\uff1f', 'The URL you entered seems to be an external link. Do you want to add the required http:// prefix?': '\u4f60\u6240\u586b\u5199\u7684URL\u5730\u5740\u5c5e\u4e8e\u5916\u90e8\u94fe\u63a5\uff0c\u9700\u8981\u52a0\u4e0ahttp:// \u524d\u7f00\u5417\uff1f', 'The URL you entered seems to be an external link. Do you want to add the required https:// prefix?': '\u60a8\u8f93\u5165\u7684 URL \u4f3c\u4e4e\u662f\u4e00\u4e2a\u5916\u90e8\u94fe\u63a5\u3002\u60a8\u60f3\u6dfb\u52a0\u6240\u9700\u7684 https:// \u524d\u7f00\u5417\uff1f', 'Link list': '\u94fe\u63a5\u6e05\u5355', 'Insert video': '\u63d2\u5165\u89c6\u9891', 'Insert/edit video': '\u63d2\u5165/\u7f16\u8f91\u89c6\u9891', 'Insert/edit media': '\u63d2\u5165/\u7f16\u8f91\u5a92\u4f53', 'Alternative source': '\u955c\u50cf', 'Alternative source URL': '\u66ff\u4ee3\u6765\u6e90\u7f51\u5740', 'Media poster (Image URL)': '\u5c01\u9762(\u56fe\u7247\u5730\u5740)', 'Paste your embed code below:': '\u5c06\u5185\u5d4c\u4ee3\u7801\u7c98\u8d34\u5728\u4e0b\u9762:', 'Embed': '\u5185\u5d4c', 'Media...': '\u591a\u5a92\u4f53...', 'Nonbreaking space': '\u4e0d\u95f4\u65ad\u7a7a\u683c', 'Page break': '\u5206\u9875\u7b26', 'Paste as text': '\u7c98\u8d34\u4e3a\u6587\u672c', 'Preview': '\u9884\u89c8', 'Print': '\u6253\u5370', 'Print...': '\u6253\u5370...', 'Save': '\u4fdd\u5b58', 'Find': '\u5bfb\u627e', 'Replace with': '\u66ff\u6362\u4e3a', 'Replace': '\u66ff\u6362', 'Replace all': '\u66ff\u6362\u5168\u90e8', 'Previous': '\u4e0a\u4e00\u4e2a', 'Next': '\u4e0b\u4e00\u4e2a', 'Find and Replace': '\u67e5\u627e\u548c\u66ff\u6362', 'Find and replace...': '\u67e5\u627e\u5e76\u66ff\u6362...', 'Could not find the specified string.': '\u672a\u627e\u5230\u641c\u7d22\u5185\u5bb9\u3002', 'Match case': '\u5927\u5c0f\u5199\u5339\u914d', 'Find whole words only': '\u5168\u5b57\u5339\u914d', 'Find in selection': '\u5728\u9009\u533a\u4e2d\u67e5\u627e', 'Insert table': '\u63d2\u5165\u8868\u683c', 'Table properties': '\u8868\u683c\u5c5e\u6027', 'Delete table': '\u5220\u9664\u8868\u683c', 'Cell': '\u5355\u5143\u683c', 'Row': '\u884c', 'Column': '\u680f\u76ee', 'Cell properties': '\u5355\u5143\u683c\u5c5e\u6027', 'Merge cells': '\u5408\u5e76\u5355\u5143\u683c', 'Split cell': '\u62c6\u5206\u5355\u5143\u683c', 'Insert row before': '\u5728\u4e0a\u65b9\u63d2\u5165\u884c', 'Insert row after': '\u5728\u4e0b\u65b9\u63d2\u5165\u884c', 'Delete row': '\u5220\u9664\u884c', 'Row properties': '\u884c\u5c5e\u6027', 'Cut row': '\u526a\u5207\u884c', 'Cut column': '\u526a\u5207\u5217', 'Copy row': '\u590d\u5236\u884c', 'Copy column': '\u590d\u5236\u5217', 'Paste row before': '\u7c98\u8d34\u884c\u5230\u4e0a\u65b9', 'Paste column before': '\u7c98\u8d34\u6b64\u5217\u524d', 'Paste row after': '\u7c98\u8d34\u884c\u5230\u4e0b\u65b9', 'Paste column after': '\u7c98\u8d34\u540e\u9762\u7684\u5217', 'Insert column before': '\u5728\u5de6\u4fa7\u63d2\u5165\u5217', 'Insert column after': '\u5728\u53f3\u4fa7\u63d2\u5165\u5217', 'Delete column': '\u5220\u9664\u5217', 'Cols': '\u5217', 'Rows': '\u884c\u6570', 'Width': '\u5bbd\u5ea6', 'Height': '\u9ad8\u5ea6', 'Cell spacing': '\u5355\u5143\u683c\u5916\u95f4\u8ddd', 'Cell padding': '\u5355\u5143\u683c\u5185\u8fb9\u8ddd', 'Row clipboard actions': '\u884c\u526a\u8d34\u677f\u64cd\u4f5c', 'Column clipboard actions': '\u5217\u526a\u8d34\u677f\u64cd\u4f5c', 'Table styles': '\u8868\u683c\u6837\u5f0f', 'Cell styles': '\u5355\u5143\u683c\u6837\u5f0f', 'Column header': '\u5217\u6807\u9898', 'Row header': '\u884c\u5934', 'Table caption': '\u8868\u683c\u6807\u9898', 'Caption': '\u6807\u9898', 'Show caption': '\u663e\u793a\u6807\u9898', 'Left': '\u5de6', 'Center': '\u5c45\u4e2d', 'Right': '\u53f3', 'Cell type': '\u50a8\u5b58\u683c\u522b', 'Scope': '\u8303\u56f4', 'Alignment': '\u5bf9\u9f50', 'Horizontal align': '\u6c34\u5e73\u5bf9\u9f50', 'Vertical align': '\u5782\u76f4\u5bf9\u9f50', 'Top': '\u4e0a\u65b9\u5bf9\u9f50', 'Middle': '\u5c45\u4e2d\u5bf9\u9f50', 'Bottom': '\u4e0b\u65b9\u5bf9\u9f50', 'Header cell': '\u8868\u5934\u5355\u5143\u683c', 'Row group': '\u884c\u7ec4', 'Column group': '\u5217\u7ec4', 'Row type': '\u884c\u7c7b\u578b', 'Header': '\u8868\u5934', 'Body': '\u8868\u4f53', 'Footer': '\u8868\u5c3e', 'Border color': '\u6846\u7ebf\u989c\u8272', 'Solid': '\u5b9e\u7ebf', 'Dotted': '\u865a\u7ebf', 'Dashed': '\u865a\u7ebf', 'Double': '\u53cc\u7cbe\u5ea6', 'Groove': '\u51f9\u69fd', 'Ridge': '\u6d77\u810a\u5ea7', 'Inset': '\u5d4c\u5165', 'Outset': '\u5916\u7f6e', 'Hidden': '\u9690\u85cf', 'Insert template...': '\u63d2\u5165\u6a21\u677f...', 'Templates': '\u6a21\u677f', 'Template': '\u6a21\u677f', 'Insert Template': '\u63d2\u5165\u6a21\u677f', 'Text color': '\u6587\u672c\u989c\u8272', 'Background color': '\u80cc\u666f\u989c\u8272', 'Custom...': '\u81ea\u5b9a\u4e49......', 'Custom color': '\u81ea\u5b9a\u4e49\u989c\u8272', 'No color': '\u65e0', 'Remove color': '\u79fb\u9664\u989c\u8272', 'Show blocks': '\u663e\u793a\u533a\u5757\u8fb9\u6846', 'Show invisible characters': '\u663e\u793a\u4e0d\u53ef\u89c1\u5b57\u7b26', 'Word count': '\u5b57\u6570', 'Count': '\u8ba1\u6570', 'Document': '\u6587\u6863', 'Selection': '\u9009\u62e9', 'Words': '\u5355\u8bcd', 'Words: {0}': '\u5b57\u6570\uff1a{0}', '{0} words': '{0} \u5b57', 'File': '\u6587\u4ef6', 'Edit': '\u7f16\u8f91', 'Insert': '\u63d2\u5165', 'View': '\u67e5\u770b', 'Format': '\u683c\u5f0f', 'Table': '\u8868\u683c', 'Tools': '\u5de5\u5177', 'Powered by {0}': '\u7531{0}\u9a71\u52a8', 'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help': '\u7f16\u8f91\u533a\u3002\u6309ALT-F9\u6253\u5f00\u83dc\u5355\uff0c\u6309ALT-F10\u6253\u5f00\u5de5\u5177\u680f\uff0c\u6309ALT-0\u67e5\u770b\u5e2e\u52a9', 'Image title': '\u56fe\u7247\u6807\u9898', 'Border width': '\u8fb9\u6846\u5bbd\u5ea6', 'Border style': '\u8fb9\u6846\u6837\u5f0f', 'Error': '\u9519\u8bef', 'Warn': '\u8b66\u544a', 'Valid': '\u6709\u6548', 'To open the popup, press Shift+Enter': '\u6309Shitf+Enter\u952e\u6253\u5f00\u5bf9\u8bdd\u6846', 'Rich Text Area': '\u5bcc\u6587\u672c\u533a\u57df', 'Rich Text Area. Press ALT-0 for help.': '\u7f16\u8f91\u533a\u3002\u6309Alt+0\u952e\u6253\u5f00\u5e2e\u52a9\u3002', 'System Font': '\u7cfb\u7edf\u5b57\u4f53', 'Failed to upload image: {0}': '\u56fe\u7247\u4e0a\u4f20\u5931\u8d25: {0}', 'Failed to load plugin: {0} from url {1}': '\u63d2\u4ef6\u52a0\u8f7d\u5931\u8d25: {0} \u6765\u81ea\u94fe\u63a5 {1}', 'Failed to load plugin url: {0}': '\u63d2\u4ef6\u52a0\u8f7d\u5931\u8d25 \u94fe\u63a5: {0}', 'Failed to initialize plugin: {0}': '\u63d2\u4ef6\u521d\u59cb\u5316\u5931\u8d25: {0}', 'example': '\u793a\u4f8b', 'Search': '\u641c\u7d22', 'All': '\u5168\u90e8', 'Currency': '\u8d27\u5e01', 'Text': '\u6587\u5b57', 'Quotations': '\u5f15\u7528', 'Mathematical': '\u6570\u5b66', 'Extended Latin': '\u62c9\u4e01\u8bed\u6269\u5145', 'Symbols': '\u7b26\u53f7', 'Arrows': '\u7bad\u5934', 'User Defined': '\u81ea\u5b9a\u4e49', 'dollar sign': '\u7f8e\u5143\u7b26\u53f7', 'currency sign': '\u8d27\u5e01\u7b26\u53f7', 'euro-currency sign': '\u6b27\u5143\u7b26\u53f7', 'colon sign': '\u5192\u53f7', 'cruzeiro sign': '\u514b\u9c81\u8d5b\u7f57\u5e01\u7b26\u53f7', 'french franc sign': '\u6cd5\u90ce\u7b26\u53f7', 'lira sign': '\u91cc\u62c9\u7b26\u53f7', 'mill sign': '\u5bc6\u5c14\u7b26\u53f7', 'naira sign': '\u5948\u62c9\u7b26\u53f7', 'peseta sign': '\u6bd4\u585e\u5854\u7b26\u53f7', 'rupee sign': '\u5362\u6bd4\u7b26\u53f7', 'won sign': '\u97e9\u5143\u7b26\u53f7', 'new sheqel sign': '\u65b0\u8c22\u514b\u5c14\u7b26\u53f7', 'dong sign': '\u8d8a\u5357\u76fe\u7b26\u53f7', 'kip sign': '\u8001\u631d\u57fa\u666e\u7b26\u53f7', 'tugrik sign': '\u56fe\u683c\u91cc\u514b\u7b26\u53f7', 'drachma sign': '\u5fb7\u62c9\u514b\u9a6c\u7b26\u53f7', 'german penny symbol': '\u5fb7\u56fd\u4fbf\u58eb\u7b26\u53f7', 'peso sign': '\u6bd4\u7d22\u7b26\u53f7', 'guarani sign': '\u74dc\u62c9\u5c3c\u7b26\u53f7', 'austral sign': '\u6fb3\u5143\u7b26\u53f7', 'hryvnia sign': '\u683c\u91cc\u592b\u5c3c\u4e9a\u7b26\u53f7', 'cedi sign': '\u585e\u5730\u7b26\u53f7', 'livre tournois sign': '\u91cc\u5f17\u5f17\u5c14\u7b26\u53f7', 'spesmilo sign': 'spesmilo\u7b26\u53f7', 'tenge sign': '\u575a\u6208\u7b26\u53f7', 'indian rupee sign': '\u5370\u5ea6\u5362\u6bd4', 'turkish lira sign': '\u571f\u8033\u5176\u91cc\u62c9', 'nordic mark sign': '\u5317\u6b27\u9a6c\u514b', 'manat sign': '\u9a6c\u7eb3\u7279\u7b26\u53f7', 'ruble sign': '\u5362\u5e03\u7b26\u53f7', 'yen character': '\u65e5\u5143\u5b57\u6837', 'yuan character': '\u4eba\u6c11\u5e01\u5143\u5b57\u6837', 'yuan character, in hong kong and taiwan': '\u5143\u5b57\u6837\uff08\u6e2f\u53f0\u5730\u533a\uff09', 'yen/yuan character variant one': '\u5143\u5b57\u6837\uff08\u5927\u5199\uff09', 'Emojis': 'Emojis', 'Emojis...': 'Emojis...', 'Loading emojis...': '\u6b63\u5728\u52a0\u8f7dEmojis...', 'Could not load emojis': '\u65e0\u6cd5\u52a0\u8f7dEmojis', 'People': '\u4eba\u7c7b', 'Animals and Nature': '\u52a8\u7269\u548c\u81ea\u7136', 'Food and Drink': '\u98df\u7269\u548c\u996e\u54c1', 'Activity': '\u6d3b\u52a8', 'Travel and Places': '\u65c5\u6e38\u548c\u5730\u70b9', 'Objects': '\u7269\u4ef6', 'Flags': '\u65d7\u5e1c', 'Characters': '\u5b57\u7b26', 'Characters (no spaces)': '\u5b57\u7b26(\u65e0\u7a7a\u683c)', '{0} characters': '{0} \u4e2a\u5b57\u7b26', 'Error: Form submit field collision.': '\u9519\u8bef: \u8868\u5355\u63d0\u4ea4\u5b57\u6bb5\u51b2\u7a81\u3002', 'Error: No form element found.': '\u9519\u8bef: \u6ca1\u6709\u8868\u5355\u63a7\u4ef6\u3002', 'Color swatch': '\u989c\u8272\u6837\u672c', 'Color Picker': '\u9009\u8272\u5668', 'Invalid hex color code: {0}': '\u5341\u516d\u8fdb\u5236\u989c\u8272\u4ee3\u7801\u65e0\u6548\uff1a {0}', 'Invalid input': '\u65e0\u6548\u8f93\u5165', 'R': 'R', 'Red component': '\u7ea2\u8272\u90e8\u5206', 'G': 'G', 'Green component': '\u7eff\u8272\u90e8\u5206', 'B': 'B', 'Blue component': '\u767d\u8272\u90e8\u5206', '#': '#', 'Hex color code': '\u5341\u516d\u8fdb\u5236\u989c\u8272\u4ee3\u7801', 'Range 0 to 255': '\u8303\u56f40\u81f3255', 'Turquoise': '\u9752\u7eff\u8272', 'Green': '\u7eff\u8272', 'Blue': '\u84dd\u8272', 'Purple': '\u7d2b\u8272', 'Navy Blue': '\u6d77\u519b\u84dd', 'Dark Turquoise': '\u6df1\u84dd\u7eff\u8272', 'Dark Green': '\u6df1\u7eff\u8272', 'Medium Blue': '\u4e2d\u84dd\u8272', 'Medium Purple': '\u4e2d\u7d2b\u8272', 'Midnight Blue': '\u6df1\u84dd\u8272', 'Yellow': '\u9ec4\u8272', 'Orange': '\u6a59\u8272', 'Red': '\u7ea2\u8272', 'Light Gray': '\u6d45\u7070\u8272', 'Gray': '\u7070\u8272', 'Dark Yellow': '\u6697\u9ec4\u8272', 'Dark Orange': '\u6df1\u6a59\u8272', 'Dark Red': '\u6df1\u7ea2\u8272', 'Medium Gray': '\u4e2d\u7070\u8272', 'Dark Gray': '\u6df1\u7070\u8272', 'Light Green': '\u6d45\u7eff\u8272', 'Light Yellow': '\u6d45\u9ec4\u8272', 'Light Red': '\u6d45\u7ea2\u8272', 'Light Purple': '\u6d45\u7d2b\u8272', 'Light Blue': '\u6d45\u84dd\u8272', 'Dark Purple': '\u6df1\u7d2b\u8272', 'Dark Blue': '\u6df1\u84dd\u8272', 'Black': '\u9ed1\u8272', 'White': '\u767d\u8272', 'Switch to or from fullscreen mode': '\u5207\u6362\u5168\u5c4f\u6a21\u5f0f', 'Open help dialog': '\u6253\u5f00\u5e2e\u52a9\u5bf9\u8bdd\u6846', 'history': '\u5386\u53f2', 'styles': '\u6837\u5f0f', 'formatting': '\u683c\u5f0f\u5316', 'alignment': '\u5bf9\u9f50', 'indentation': '\u7f29\u8fdb', 'Font': '\u5b57\u4f53', 'Size': '\u5b57\u53f7', 'More...': '\u66f4\u591a...', 'Select...': '\u9009\u62e9...', 'Preferences': '\u9996\u9009\u9879', 'Yes': '\u662f', 'No': '\u5426', 'Keyboard Navigation': '\u952e\u76d8\u6307\u5f15', 'Version': '\u7248\u672c', 'Code view': '\u4ee3\u7801\u89c6\u56fe', 'Open popup menu for split buttons': '\u6253\u5f00\u5f39\u51fa\u5f0f\u83dc\u5355\uff0c\u7528\u4e8e\u62c6\u5206\u6309\u94ae', 'List Properties': '\u5217\u8868\u5c5e\u6027', 'List properties...': '\u6807\u9898\u5b57\u4f53\u5c5e\u6027', 'Start list at number': '\u4ee5\u6570\u5b57\u5f00\u59cb\u5217\u8868', 'Line height': '\u884c\u9ad8', 'Dropped file type is not supported': '\u6b64\u6587\u4ef6\u7c7b\u578b\u4e0d\u652f\u6301\u62d6\u653e', 'Loading...': '\u52a0\u8f7d\u4e2d...', 'ImageProxy HTTP error: Rejected request': '\u56fe\u7247\u4ee3\u7406\u8bf7\u6c42\u9519\u8bef\uff1a\u8bf7\u6c42\u88ab\u62d2\u7edd', 'ImageProxy HTTP error: Could not find Image Proxy': '\u56fe\u7247\u4ee3\u7406\u8bf7\u6c42\u9519\u8bef\uff1a\u65e0\u6cd5\u627e\u5230\u56fe\u7247\u4ee3\u7406', 'ImageProxy HTTP error: Incorrect Image Proxy URL': '\u56fe\u7247\u4ee3\u7406\u8bf7\u6c42\u9519\u8bef\uff1a\u56fe\u7247\u4ee3\u7406\u5730\u5740\u9519\u8bef', 'ImageProxy HTTP error: Unknown ImageProxy error': '\u56fe\u7247\u4ee3\u7406\u8bf7\u6c42\u9519\u8bef\uff1a\u672a\u77e5\u7684\u56fe\u7247\u4ee3\u7406\u9519\u8bef' })
@@ -1,103 +0,0 @@
1
- <template>
2
- <el-dialog
3
- visible
4
- :title="title"
5
- append-to-body
6
- fullscreen
7
- @close="$emit('closeRichEditorContent')"
8
- >
9
- <el-image
10
- ref="previewImg"
11
- :src="srcList[0]"
12
- :preview-src-list="srcList"
13
- style="display: none;width: 100px; height: 100px"
14
- />
15
- <div :id="fullscreenViewerId" />
16
- </el-dialog>
17
- </template>
18
-
19
- <script>
20
-
21
- import Vue from 'vue'
22
- export default {
23
- name: 'RichEditorViewer',
24
- props: {
25
- entity: {
26
- type: Object,
27
- default: null
28
- },
29
- prop: {
30
- type: String,
31
- default: null
32
- },
33
- value: {
34
- type: String,
35
- default: ''
36
- },
37
- disabled: {
38
- type: Boolean,
39
- default: false
40
- },
41
- options: {
42
- type: Object,
43
- default: null
44
- },
45
- plugins: {
46
- type: [String, Array],
47
- default: 'print preview searchreplace directionality fullscreen image link table hr advlist lists wordcount '
48
- },
49
- toolbar: {
50
- type: [String, Array],
51
- default: ' undo redo | formatselect fontsizeselect bold italic strikethrough underline hr forecolor backcolor | image | ' +
52
- ' lineheight bullist numlist table | print fullscreen preview '
53
- }
54
- },
55
- data() {
56
- return {
57
- srcList: [],
58
- psrcList: [],
59
- viewerId: 'aglie_rich_editor_' + (new Date()).getTime(),
60
- dialogVisible: false,
61
- fullscreenViewerId: 'editor_viewer_' + (new Date()).getTime(),
62
- ImageComponent: null,
63
- title: ''
64
- }
65
- },
66
- watch: {
67
- value(newValue) {
68
- this.contentValue = newValue
69
- this.entity[this.prop] = newValue
70
- }
71
- },
72
- created() {
73
- },
74
- mounted() {
75
- },
76
- methods: {
77
- showImage($event) {
78
- this.srcList = [$event.target.currentSrc]
79
- this.$refs.previewImg.showViewer = true
80
- },
81
- showContent(content, title) {
82
- this.title = title
83
- const that = this
84
- let m = content.replaceAll('<img', '<img @click="showImage" ')
85
- m = '<div> ' + m + ' </div> '
86
- this.ImageComponent = Vue.extend({
87
- methods: {
88
- showImage($event) {
89
- console.log($event)
90
- that.showImage($event)
91
- }
92
- },
93
- template: m
94
- })
95
- const viewContent = new this.ImageComponent().$mount()
96
- this.$nextTick(() => {
97
- document.getElementById(this.fullscreenViewerId).appendChild(viewContent.$el)
98
- })
99
- }
100
- }
101
- }
102
- </script>
103
-
@@ -1,6 +0,0 @@
1
- import ScanCodeInput from './src/scan-code-input.vue'
2
- ScanCodeInput.install = function(Vue) {
3
- Vue.component(ScanCodeInput.name, ScanCodeInput)
4
- }
5
-
6
- export default ScanCodeInput
@@ -1,33 +0,0 @@
1
- const events = {
2
- /**
3
- * 选中值发生变化时触发
4
- * @param {*} newValue
5
- */
6
- change: function(newValue) {
7
- this.$emit('change', newValue)
8
- },
9
- /**
10
- * 可清空的单选模式下用户点击清空按钮时触发
11
- */
12
- clear: function() {
13
- this.$emit('clear')
14
- },
15
- /**
16
- * 当 input 失去焦点时触发
17
- * @param {*} event
18
- */
19
- blur: function(event) {
20
- this.$emit('blur', event)
21
- },
22
- /**
23
- * 当 input 获得焦点时触发
24
- * @param {*} event
25
- */
26
- focus: function(event) {
27
- this.$emit('focus', event)
28
- },
29
- input(newValue) {
30
- this.$emit('input', newValue)
31
- }
32
- }
33
- export default events
@@ -1,131 +0,0 @@
1
- <template>
2
- <div class>
3
- <video id="video" ref="video" height="300" class="video vjs-fluid" autoplay @click="clickVideo" />
4
- <div v-show="tipShow" class="tip">
5
- {{ tipMsg }}
6
- </div>
7
- </div>
8
- </template>
9
- <script type="text/ecmascript-6">
10
- import { BrowserMultiFormatReader } from '@zxing/library'
11
-
12
- export default {
13
- name: 'ScanCodeInputColse',
14
- components: {},
15
- props: {
16
- colseVideo: {
17
- type: Boolean,
18
- default: false
19
- }
20
- },
21
- data() {
22
- return {
23
- loadingShow: false,
24
- codeReader: new BrowserMultiFormatReader(),
25
- textContent: null,
26
- vin: null,
27
- tipMsg: this.$t('messageVideo.attemptingToIdentify'),
28
- tipShow: false,
29
- isVideo: false
30
- }
31
- },
32
- created() {
33
- this.openScan()
34
- },
35
- beforeDestroy() {
36
- console.log('销毁定时器')
37
- this.codeReader.reset()
38
- },
39
- methods: {
40
- async openScan() {
41
- const that = this
42
- that.codeReader.listVideoInputDevices().then((videoInputDevices) => {
43
- that.tipShow = true
44
- that.tipMsg = this.$t('messageVideo.callingRearCamera')
45
- console.log('videoInputDevices', videoInputDevices)
46
- // 默认获取第一个摄像头设备id
47
- let firstDeviceId = videoInputDevices[0].deviceId
48
- // 获取第一个摄像头设备的名称
49
- const videoInputDeviceslablestr = JSON.stringify(videoInputDevices[0].label)
50
- if (videoInputDevices.length > 1) {
51
- // 判断是否后置摄像头
52
- if (videoInputDeviceslablestr.indexOf('back') > -1) {
53
- firstDeviceId = videoInputDevices[0].deviceId
54
- } else {
55
- firstDeviceId = videoInputDevices[1].deviceId
56
- }
57
- }
58
- that.decodeFromInputVideoFunc(firstDeviceId)
59
- }).catch((err) => {
60
- that.tipShow = false
61
- console.error(err)
62
- })
63
- },
64
- async openScanTwo() {
65
- const that = this
66
- // codeReader.reset() // 重置
67
- // that.textContent = null // 重置
68
- that.codeReader = await new BrowserMultiFormatReader()
69
- that.codeReader.listVideoInputDevices().then((videoInputDevices) => {
70
- that.tipShow = true
71
- that.tipMsg = this.$t('messageVideo.callingRearCamera')
72
- console.log('videoInputDevices', videoInputDevices)
73
- // 默认获取第一个摄像头设备id
74
- let firstDeviceId = videoInputDevices[0].deviceId
75
- // 获取第一个摄像头设备的名称
76
- const videoInputDeviceslablestr = JSON.stringify(videoInputDevices[0].label)
77
- if (videoInputDevices.length > 1) {
78
- // 判断是否后置摄像头
79
- if (videoInputDeviceslablestr.indexOf('back') > -1) {
80
- firstDeviceId = videoInputDevices[0].deviceId
81
- } else {
82
- firstDeviceId = videoInputDevices[1].deviceId
83
- }
84
- }
85
- that.decodeFromInputVideoFunc(firstDeviceId)
86
- }).catch((err) => {
87
- that.tipShow = false
88
- console.error(err)
89
- })
90
- },
91
- decodeFromInputVideoFunc(firstDeviceId) {
92
- const that = this
93
- that.codeReader.reset() // 重置
94
- that.textContent = null // 重置
95
- that.codeReader.decodeFromVideoDevice(firstDeviceId, 'video', (result, err) => {
96
- that.tipMsg = this.$t('messageVideo.attemptingToIdentify')
97
- // let nowContent = null
98
- that.textContent = null
99
- if (result) {
100
- console.log(result)
101
- that.textContent = result.text
102
- if (that.textContent) {
103
- that.tipShow = false
104
- that.msgBoxFunc(that.textContent)
105
- }
106
- }
107
- if (err && !(err)) {
108
- that.tipMsg = this.$t('messageVideo.identificationFailed')
109
- setTimeout(() => {
110
- that.tipShow = false
111
- }, 2000)
112
- console.error(err)
113
- }
114
- })
115
- },
116
- // that.$createDialog 是 cube-ui滴滴 messageBox ,到这一步 二维码值已出,这里是可有可无的代码块,看各自项目ui使用情况 自行替换 messageBox
117
- msgBoxFunc(textContent) {
118
- const that = this
119
- that.vin = textContent
120
- that.$emit('close', that.vin)
121
- that.codeReader.reset()
122
- },
123
- clickVideo() {
124
- if (this.colseVideo) {
125
- this.$emit('close', this.vin)
126
- this.codeReader.reset()
127
- }
128
- }
129
- }
130
- }
131
- </script>
@@ -1,116 +0,0 @@
1
- <template>
2
- <div>
3
- <el-input
4
- :value="value"
5
- :disable="disable"
6
- :placeholder="placeholder"
7
- :clearable="clearable"
8
- :readonly="readonly"
9
- :maxlength="maxlength"
10
- @change="change"
11
- @blur="blur"
12
- @focus="focus"
13
- @input="input"
14
- @clear="clear"
15
- >
16
- <el-button v-if="isMobile" slot="append" icon="el-icon-full-screen" @click="openVideo" />
17
- <!-- <el-button slot="append" icon="el-icon-full-screen" @click="openVideo" /> -->
18
- </el-input>
19
- <scan-code-input-colse v-if="isShow" :colse-video="colseVideo" @close="closeVideo" />
20
- </div>
21
- </template>
22
- <script type="text/ecmascript-6">
23
- import scanCodeInputColse from './scan-code-input-colse'
24
- import events from './events'
25
- export default {
26
- name: 'ScanCodeInput',
27
- components: {
28
- scanCodeInputColse
29
- },
30
- model: {
31
- prop: 'value',
32
- event: 'input'
33
- },
34
- props: {
35
- colseVideo: {
36
- type: Boolean,
37
- default: false
38
- },
39
- value: {
40
- type: String,
41
- default: null
42
- },
43
- disable: {
44
- type: Boolean,
45
- default: false
46
- },
47
- placeholder: {
48
- type: String,
49
- default: null
50
- },
51
- clearable: {
52
- type: Boolean,
53
- default: null
54
- },
55
- readonly: {
56
- type: Boolean,
57
- default: false
58
- },
59
- maxlength: {
60
- type: Number,
61
- default: null
62
- }
63
- },
64
- data() {
65
- return {
66
- isMobile: false,
67
- isShow: false,
68
- scanCode: ''
69
- }
70
- },
71
- watch: {
72
- value: {
73
- deep: true,
74
- handler(val) {
75
- this.scanCode = this.value
76
- }
77
- }
78
- },
79
- created() {
80
- // this.tipShow = true
81
- this.isMobile = this.equipment()
82
- this.scanCode = this.value
83
- },
84
- beforeDestroy() {
85
-
86
- },
87
- methods: {
88
- ...events,
89
- equipment() {
90
- const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
91
- if (flag) {
92
- return flag
93
- } else {
94
- try {
95
- document.createEvent('TouchEvent')
96
- return true
97
- } catch (e) {
98
- return false
99
- }
100
- }
101
- },
102
- openVideo() {
103
- if (this.isShow) {
104
- this.isShow = false
105
- } else {
106
- this.isShow = true
107
- }
108
- },
109
- closeVideo(value) {
110
- this.isShow = false
111
- this.value = value
112
- this.$emit('colse', value)
113
- }
114
- }
115
- }
116
- </script>
@@ -1,7 +0,0 @@
1
- import SecretInfo from './index.vue'
2
-
3
- SecretInfo.install = function(Vue) {
4
- Vue.component(SecretInfo.name, SecretInfo)
5
- }
6
-
7
- export default SecretInfo
@@ -1,90 +0,0 @@
1
- <template>
2
- <span v-if="value !== undefined && value !== null && value !== ''">
3
- <span v-if="isShow">
4
- {{ decryInfo }}<i class="fa fa-eye" style="margin-left: 5px" @click="showHideSecretInfo" />
5
- </span>
6
- <span v-else>
7
- ******<i class="fa fa-eye-slash" style="margin-left: 5px" @click="showHideSecretInfo" />
8
- </span>
9
- </span>
10
- </template>
11
-
12
- <script>
13
- export default {
14
- name: 'SecretInfo',
15
- props: {
16
- entity: {
17
- type: Object,
18
- default: null
19
- },
20
- prop: {
21
- type: String,
22
- default: null
23
- },
24
- value: {
25
- type: String,
26
- default: null
27
- },
28
- tableName: {
29
- type: String,
30
- default: null
31
- },
32
- listCode: {
33
- type: String,
34
- default: null
35
- },
36
- pageCode: {
37
- type: String,
38
- default: null
39
- },
40
- listName: {
41
- type: String,
42
- default: null
43
- },
44
- fieldLabel: {
45
- type: String,
46
- default: null
47
- }
48
- },
49
- data() {
50
- return {
51
- isShow: false,
52
- decryInfo: null
53
- }
54
- },
55
- methods: {
56
- showHideSecretInfo() {
57
- if (this.isShow) {
58
- // 需要隐藏信息
59
- this.isShow = false
60
- } else {
61
- // 需要显示信息
62
- this.decryAndSaveLog()
63
- }
64
- },
65
- decryAndSaveLog() {
66
- const params = {
67
- tableName: this.tableName,
68
- listCode: this.listCode,
69
- listName: this.listName,
70
- pageCode: this.pageCode,
71
- fieldName: this.prop,
72
- fieldCnName: this.fieldLabel,
73
- ciphertext: this.value
74
- }
75
- if (this.entity) {
76
- params.dataId = this.entity.ID ? this.entity.ID : this.entity.id
77
- }
78
- this.$http.post(this.baseAPI + '/component/super-pages/decodeAndMonitorSecretInfoLog', params).then(decryVal => {
79
- this.decryInfo = decryVal
80
- this.isShow = true
81
- })
82
- }
83
- }
84
-
85
- }
86
- </script>
87
-
88
- <style lang="scss" scoped>
89
-
90
- </style>
@@ -1,7 +0,0 @@
1
- import SuperGrid from './src/super-grid.vue'
2
-
3
- SuperGrid.install = function(Vue) {
4
- Vue.component(SuperGrid.name, SuperGrid)
5
- }
6
-
7
- export default SuperGrid