imatrix-ui 2.9.15-dw-tmp2 → 2.9.16-boe10

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 (194) hide show
  1. package/lib/super-ui.css +1 -1
  2. package/lib/super-ui.umd.min.js +5 -35
  3. package/package.json +2 -2
  4. package/src/api/sso-service.js +19 -1
  5. package/src/assets/nonemessage.png +0 -0
  6. package/src/i18n/i18n.js +1 -1
  7. package/src/i18n/langs/cn.js +18 -6
  8. package/src/i18n/langs/en.js +20 -7
  9. package/src/permission.js +2 -2
  10. package/src/plugins.js +3 -3
  11. package/src/router/index.js +10 -0
  12. package/src/store/modules/tab-content.js +6 -0
  13. package/src/store/modules/user.js +32 -2
  14. package/src/styles/display-layout.scss +1 -1
  15. package/src/styles/index.scss +74 -4
  16. package/src/styles/theme/black/font-style.scss +70 -0
  17. package/src/styles/theme/black/index.scss +6 -30
  18. package/src/styles/theme/blue/font-style.scss +37 -0
  19. package/src/styles/theme/blue/index.scss +2 -18
  20. package/src/styles/theme/blue2/font-style.scss +70 -0
  21. package/src/styles/theme/blue2/index.scss +3 -13
  22. package/src/styles/theme/dark-blue/card.scss +4 -6
  23. package/src/styles/theme/dark-blue/form.scss +7 -4
  24. package/src/styles/theme/dark-blue/index.scss +30 -5
  25. package/src/styles/theme/dark-blue/message.scss +8 -0
  26. package/src/styles/theme/dark-blue/radio.scss +13 -0
  27. package/src/styles/theme/dark-blue/sidebar.scss +7 -37
  28. package/src/styles/theme/dark-blue/tab.scss +4 -1
  29. package/src/styles/theme/dark-blue/table.scss +1 -1
  30. package/src/styles/theme/dark-blue/tree.scss +35 -10
  31. package/src/styles/theme/gray/card-style.scss +13 -1
  32. package/src/styles/theme/gray/font-style.scss +38 -0
  33. package/src/styles/theme/gray/index.scss +13 -25
  34. package/src/styles/theme/gray/scrollbar-style.scss +32 -0
  35. package/src/styles/theme/gray/sidebar.scss +7 -14
  36. package/src/utils/auth-api.js +47 -1
  37. package/src/utils/common-util.js +22 -81
  38. package/src/utils/jump-page-utils.js +8 -10
  39. package/src/utils/range-selector.js +185 -0
  40. package/src/utils/request.js +6 -3
  41. package/src/utils/util.js +13 -11
  42. package/src/utils/workflow-util.js +3 -0
  43. package/src/views/dsc-component/Sidebar/Item.vue +7 -5
  44. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -3
  45. package/src/views/dsc-component/Sidebar/index.vue +12 -20
  46. package/src/views/dsc-component/tabs/tab-content.vue +8 -9
  47. package/src/views/layout/EmptyLayout.vue +4 -1
  48. package/src/views/layout/NewLayout.vue +6 -65
  49. package/src/views/layout/components/AppMain.vue +2 -1
  50. package/src/views/layout/components/Menubar/Item.vue +23 -7
  51. package/src/views/layout/components/Menubar/Link.vue +11 -2
  52. package/src/views/layout/components/Menubar/SidebarItem.vue +50 -7
  53. package/src/views/layout/components/Menubar/index.vue +51 -16
  54. package/src/views/layout/components/tabs/tab-content.vue +162 -0
  55. package/src/views/layout/tab-content-iframe-index.vue +31 -0
  56. package/src/views/layout/tab-content-index.vue +85 -0
  57. package/src/views/login/index.vue +1 -1
  58. package/packages/breadcrumb/index.js +0 -6
  59. package/packages/breadcrumb/src/breadcrumb.vue +0 -71
  60. package/packages/department-tree/index.js +0 -6
  61. package/packages/department-tree/src/department-tree.vue +0 -108
  62. package/packages/department-tree-inline/index.js +0 -6
  63. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +0 -408
  64. package/packages/department-tree-inline/src/department-single-tree-inline.vue +0 -290
  65. package/packages/department-tree-inline/src/department-tree-inline.vue +0 -86
  66. package/packages/department-tree-inline/src/department-tree-service.js +0 -273
  67. package/packages/department-tree-inline/src/search-result.vue +0 -176
  68. package/packages/department-user-tree/index.js +0 -6
  69. package/packages/department-user-tree/src/department-user-multiple-tree.vue +0 -116
  70. package/packages/department-user-tree/src/department-user-single-tree.vue +0 -76
  71. package/packages/department-user-tree/src/department-user-tree.vue +0 -101
  72. package/packages/department-user-tree-inline/index.js +0 -6
  73. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +0 -636
  74. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -271
  75. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +0 -79
  76. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -248
  77. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +0 -142
  78. package/packages/department-user-tree-inline/src/search-result.vue +0 -197
  79. package/packages/directives/prevent-reclick.js +0 -19
  80. package/packages/dynamic-source-select/index.js +0 -6
  81. package/packages/dynamic-source-select/src/dynamic-source-select-service.js +0 -70
  82. package/packages/dynamic-source-select/src/dynamic-source-select.vue +0 -440
  83. package/packages/dynamic-source-select/src/events.js +0 -55
  84. package/packages/fs-preview/index.js +0 -6
  85. package/packages/fs-preview/src/fs-preview.vue +0 -226
  86. package/packages/fs-upload/index.js +0 -6
  87. package/packages/fs-upload/src/fs-upload-multi.vue +0 -420
  88. package/packages/fs-upload/src/fs-upload-single.vue +0 -312
  89. package/packages/fs-upload/src/fs-upload.vue +0 -189
  90. package/packages/fs-upload/src/see-big-picture.vue +0 -55
  91. package/packages/fs-upload-list/index.js +0 -6
  92. package/packages/fs-upload-list/src/fs-upload-list.vue +0 -287
  93. package/packages/hamburger/index.js +0 -6
  94. package/packages/hamburger/src/hamburger.vue +0 -38
  95. package/packages/index.js +0 -121
  96. package/packages/multipart-upload/index.js +0 -6
  97. package/packages/multipart-upload/src/index.vue +0 -73
  98. package/packages/multipart-upload/src/multipart-upload-form.vue +0 -297
  99. package/packages/multipart-upload/src/multipart-upload-list.vue +0 -378
  100. package/packages/organization-input/index.js +0 -6
  101. package/packages/organization-input/src/organization-input.vue +0 -542
  102. package/packages/plugins/export-data-new.js +0 -466
  103. package/packages/plugins/export-data.js +0 -361
  104. package/packages/plugins/index.js +0 -15
  105. package/packages/plugins/public-method.js +0 -43
  106. package/packages/remove-department/index.js +0 -6
  107. package/packages/remove-department/src/remove-department.vue +0 -172
  108. package/packages/remove-department/src/remove-dept-service.js +0 -20
  109. package/packages/remove-user/index.js +0 -6
  110. package/packages/remove-user/src/remove-user-service.js +0 -20
  111. package/packages/remove-user/src/remove-user.vue +0 -195
  112. package/packages/remove-workgroup/index.js +0 -6
  113. package/packages/remove-workgroup/src/remove-workgroup-service.js +0 -20
  114. package/packages/remove-workgroup/src/remove-workgroup.vue +0 -159
  115. package/packages/rich-editor/index.js +0 -7
  116. package/packages/rich-editor/index.vue +0 -278
  117. package/packages/rich-editor/langs/zh-Hans.js +0 -1
  118. package/packages/rich-editor/viewer.vue +0 -103
  119. package/packages/scan-code-input/index.js +0 -6
  120. package/packages/scan-code-input/src/events.js +0 -33
  121. package/packages/scan-code-input/src/scan-code-input-colse.vue +0 -131
  122. package/packages/scan-code-input/src/scan-code-input.vue +0 -116
  123. package/packages/secret-info/index.js +0 -7
  124. package/packages/secret-info/index.vue +0 -90
  125. package/packages/super-grid/index.js +0 -7
  126. package/packages/super-grid/src/apis.js +0 -820
  127. package/packages/super-grid/src/columns-config.vue +0 -335
  128. package/packages/super-grid/src/custom-formatter.js +0 -278
  129. package/packages/super-grid/src/dynamic-input.vue +0 -1279
  130. package/packages/super-grid/src/eventBus.js +0 -2
  131. package/packages/super-grid/src/events.js +0 -55
  132. package/packages/super-grid/src/formValidatorUtil.js +0 -226
  133. package/packages/super-grid/src/formatter.js +0 -181
  134. package/packages/super-grid/src/group-column.vue +0 -100
  135. package/packages/super-grid/src/header-context-menu.vue +0 -87
  136. package/packages/super-grid/src/index-column.vue +0 -51
  137. package/packages/super-grid/src/normal-column.vue +0 -771
  138. package/packages/super-grid/src/public-methods.js +0 -31
  139. package/packages/super-grid/src/row-operation.vue +0 -161
  140. package/packages/super-grid/src/search-button.vue +0 -66
  141. package/packages/super-grid/src/search-condition-input.vue +0 -61
  142. package/packages/super-grid/src/search-condition-list.vue +0 -59
  143. package/packages/super-grid/src/search-form-advancedQuery.vue +0 -653
  144. package/packages/super-grid/src/search-form-dialog.vue +0 -79
  145. package/packages/super-grid/src/search-form-item.vue +0 -404
  146. package/packages/super-grid/src/search-form-number.vue +0 -38
  147. package/packages/super-grid/src/search-form-open.vue +0 -170
  148. package/packages/super-grid/src/search-form-ordinarySearch.vue +0 -196
  149. package/packages/super-grid/src/search-form.vue +0 -642
  150. package/packages/super-grid/src/search-methods.js +0 -448
  151. package/packages/super-grid/src/selection-column.vue +0 -43
  152. package/packages/super-grid/src/store.js +0 -3
  153. package/packages/super-grid/src/super-grid-service.js +0 -593
  154. package/packages/super-grid/src/super-grid.vue +0 -2882
  155. package/packages/super-grid/src/utils.js +0 -762
  156. package/packages/super-grid/src/view-image-dialog.vue +0 -130
  157. package/packages/super-nine-grid/index.js +0 -7
  158. package/packages/super-nine-grid/src/apis.js +0 -103
  159. package/packages/super-nine-grid/src/custom-formatter.js +0 -66
  160. package/packages/super-nine-grid/src/formatter.js +0 -132
  161. package/packages/super-nine-grid/src/search-form-number.vue +0 -38
  162. package/packages/super-nine-grid/src/search-form.vue +0 -430
  163. package/packages/super-nine-grid/src/search-methods.js +0 -134
  164. package/packages/super-nine-grid/src/store.js +0 -3
  165. package/packages/super-nine-grid/src/super-grid-service.js +0 -91
  166. package/packages/super-nine-grid/src/super-nine-grid.vue +0 -872
  167. package/packages/super-nine-grid/src/utils.js +0 -261
  168. package/packages/svg-icon/index.js +0 -6
  169. package/packages/svg-icon/src/svg-icon.vue +0 -43
  170. package/packages/utils/memory-cache-utils.js +0 -90
  171. package/packages/utils/utils.js +0 -152
  172. package/packages/utils/value-set.js +0 -86
  173. package/packages/valid-code/index.js +0 -7
  174. package/packages/valid-code/src/valid-code.vue +0 -95
  175. package/packages/workflow-button/index.js +0 -6
  176. package/packages/workflow-button/src/workflow-button.vue +0 -325
  177. package/packages/workflow-history-list/index.js +0 -6
  178. package/packages/workflow-history-list/src/api.js +0 -7
  179. package/packages/workflow-history-list/src/workflow-history-list.vue +0 -185
  180. package/packages/workgroup-tree/index.js +0 -6
  181. package/packages/workgroup-tree/src/workgroup-tree.vue +0 -76
  182. package/packages/workgroup-tree-inline/index.js +0 -6
  183. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +0 -317
  184. package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +0 -43
  185. package/packages/workgroup-user-tree/index.js +0 -6
  186. package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +0 -100
  187. package/packages/workgroup-user-tree-inline/index.js +0 -6
  188. package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +0 -163
  189. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +0 -436
  190. package/packages/year-range-picker/index.js +0 -6
  191. package/packages/year-range-picker/src/year-range-picker.vue +0 -51
  192. package/report.20190716.140129.216348.001.json +0 -354
  193. package/src/index.js +0 -93
  194. package/src/styles/theme/gray/form-style.scss +0 -41
@@ -0,0 +1,85 @@
1
+ <template>
2
+ <div :class="classObj" class="app-wrapper">
3
+ <div v-if="device==='mobile'&&sidebar.opened" class="drawer-bg" @click="handleClickOutside" />
4
+ <menubar :system-code="systemCode" :collapse="true" class="sidebar-container" />
5
+ <div class="main-container">
6
+ <breadcrumb v-if="showMenuRoute" />
7
+ <tab-content />
8
+ <!-- <app-main /> -->
9
+ </div>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ import { Menubar, Breadcrumb } from './components'
15
+ import ResizeMixin from './mixin/ResizeHandler'
16
+ import { isShowMenuRoute } from 'imatrix-ui/src/utils/common-util'
17
+ import TabContent from './components/tabs/tab-content'
18
+ import Vue from 'vue'
19
+
20
+ export default {
21
+ name: 'Layout',
22
+ components: {
23
+ Menubar,
24
+ Breadcrumb,
25
+ TabContent
26
+ },
27
+ mixins: [ResizeMixin],
28
+ data() {
29
+ // 是否显示菜单路径,默认是不显示
30
+ const showMenuRoute = isShowMenuRoute()
31
+ return {
32
+ showMenuRoute,
33
+ systemCode: null
34
+ }
35
+ },
36
+ computed: {
37
+ sidebar() {
38
+ return this.$store.state.app.sidebar
39
+ },
40
+ device() {
41
+ return this.$store.state.app.device
42
+ },
43
+ classObj() {
44
+ return {
45
+ hideSidebar: !this.sidebar.opened,
46
+ openSidebar: this.sidebar.opened,
47
+ withoutAnimation: this.sidebar.withoutAnimation,
48
+ mobile: this.device === 'mobile'
49
+ }
50
+ }
51
+ },
52
+ created() {
53
+ this.systemCode = Vue.prototype.customSystem
54
+ console.log('新菜单组件-----systemCode====', this.systemCode)
55
+ },
56
+ methods: {
57
+ handleClickOutside() {
58
+ this.$store.dispatch('closeSidebar', { withoutAnimation: false })
59
+ }
60
+ }
61
+ }
62
+ </script>
63
+
64
+ <style rel="stylesheet/scss" lang="scss" scoped>
65
+ @import "imatrix-ui/src/styles/mixin.scss";
66
+ .app-wrapper {
67
+ @include clearfix;
68
+ position: relative;
69
+ height: 100%;
70
+ width: 100%;
71
+ &.mobile.openSidebar{
72
+ position: fixed;
73
+ top: 0;
74
+ }
75
+ }
76
+ .drawer-bg {
77
+ background: #000;
78
+ opacity: 0.3;
79
+ width: 100%;
80
+ top: 0;
81
+ height: 100%;
82
+ position: absolute;
83
+ z-index: 999;
84
+ }
85
+ </style>
@@ -41,7 +41,7 @@
41
41
  </template>
42
42
 
43
43
  <script>
44
- import { Message } from '@gcommon/gcommon-ui'
44
+ import { Message } from 'element-ui'
45
45
  export default {
46
46
  name: 'Login',
47
47
  data() {
@@ -1,6 +0,0 @@
1
- import Breadcrumb from './src/breadcrumb.vue'
2
- Breadcrumb.install = function(Vue) {
3
- Vue.component(Breadcrumb.name, Breadcrumb)
4
- }
5
-
6
- export default Breadcrumb
@@ -1,71 +0,0 @@
1
- <template>
2
- <el-breadcrumb class="app-breadcrumb" separator="/">
3
- <transition-group name="breadcrumb">
4
- <el-breadcrumb-item v-for="(item,index) in levelListWithTitle" :key="item.path">
5
- <span v-if="item.redirect==='noredirect'||index==levelList.length-1" class="no-redirect">
6
- {{ item.meta.title }}
7
- </span>
8
- <router-link v-else :to="item.redirect||item.path">
9
- {{ item.meta.title }}
10
- </router-link>
11
- </el-breadcrumb-item>
12
- </transition-group>
13
- </el-breadcrumb>
14
- </template>
15
-
16
- <script>
17
- import pathToRegexp from 'path-to-regexp'
18
-
19
- export default {
20
- name: 'Breadcrumb',
21
- data() {
22
- return {
23
- levelList: null
24
- }
25
- },
26
- computed: {
27
- levelListWithTitle() {
28
- return this.levelList.filter(item => item.meta.title !== undefined && item.meta.title !== null)
29
- }
30
- },
31
- watch: {
32
- $route() {
33
- this.getBreadcrumb()
34
- }
35
- },
36
- created() {
37
- this.getBreadcrumb()
38
- },
39
- methods: {
40
- getBreadcrumb() {
41
- const { params } = this.$route
42
- let matched = this.$route.matched.filter(item => {
43
- if (item.name) {
44
- // To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
45
- var toPath = pathToRegexp.compile(item.path)
46
- item.path = toPath(params)
47
- return true
48
- }
49
- })
50
- const first = matched[0]
51
- if (first && first.name !== 'Dashboard') {
52
- matched = [{ path: '/dashboard', meta: { title: 'Dashboard' }}].concat(matched)
53
- }
54
- this.levelList = matched
55
- }
56
- }
57
- }
58
- </script>
59
-
60
- <style rel="stylesheet/scss" lang="scss" scoped>
61
- .app-breadcrumb.el-breadcrumb {
62
- display: inline-block;
63
- font-size: 14px;
64
- line-height: 50px;
65
- margin-left: 10px;
66
- .no-redirect {
67
- color: #97a8be;
68
- cursor: text;
69
- }
70
- }
71
- </style>
@@ -1,6 +0,0 @@
1
- import DepartmentTree from './src/department-tree.vue'
2
- DepartmentTree.install = function(Vue) {
3
- Vue.component(DepartmentTree.name, DepartmentTree)
4
- }
5
-
6
- export default DepartmentTree
@@ -1,108 +0,0 @@
1
- <template>
2
- <div>
3
- <el-dialog
4
- class="user-tree"
5
- visible
6
- :title="myTitle"
7
- :close-on-click-modal="false"
8
- append-to-body
9
- :width="multiple?'50%':'30%'"
10
- @open="$emit('open')"
11
- @opend="$emit('opend')"
12
- @close="$emit('close')"
13
- @closed="$emit('closed')"
14
- >
15
- <inline-department-tree
16
- ref="inlineDeparmentTree"
17
- :check-strictly="checkStrictly"
18
- :multiple="multiple"
19
- :height="height"
20
- :department-info="departmentInfo"
21
- :select-department-info="selectDepartmentInfo"
22
- :search-field="searchField"
23
- :separator="separator"
24
- @result="result"
25
- />
26
- <div slot="footer" class="dialog-footer">
27
- <el-button size="small" @click="$emit('close')">
28
- {{ $t('imatrixUIPublicModel.cancel') }}
29
- </el-button>
30
- <el-button size="small" type="primary" @click="selectDepartment">
31
- {{ $t('imatrixUIPublicModel.sure') }}
32
- </el-button>
33
- </div>
34
- </el-dialog>
35
- </div>
36
- </template>
37
- <script>
38
- import InlineDepartmentTree from '../../department-tree-inline/src/department-tree-inline.vue'
39
- export default {
40
- name: 'DepartmentTree',
41
- components: {
42
- InlineDepartmentTree
43
- },
44
- props: {
45
- // 是否是多选树,默认是true
46
- multiple: {
47
- type: Boolean,
48
- default: true
49
- },
50
- checkStrictly: {
51
- type: Boolean,
52
- default: false
53
- },
54
- // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
55
- departmentInfo: {
56
- type: Array,
57
- default: null
58
- },
59
- // 弹框的标题
60
- title: {
61
- type: String,
62
- default: null
63
- },
64
- // 弹框的宽度
65
- width: {
66
- type: String,
67
- default: '30%'
68
- },
69
- // 弹框的高度
70
- height: {
71
- type: String,
72
- default: '300px'
73
- },
74
- // 多选部门树时,已选择部门id或部门名称或编码集合,多个之间以逗号隔开
75
- selectDepartmentInfo: {
76
- type: [String, Number],
77
- default: null
78
- },
79
- // 移除部门时,部门属性名称:id、name、code,默认是id
80
- searchField: {
81
- type: String,
82
- default: 'id'
83
- },
84
- // 多选树时结果之间的分隔符,默认是逗号分隔
85
- separator: {
86
- type: String,
87
- default: ','
88
- }
89
- },
90
- data() {
91
- let myTitle = this.$t('imatrixUIMessage.pleaseSelectDepartment')
92
- if (this.title) {
93
- myTitle = this.title
94
- }
95
- return {
96
- myTitle
97
- }
98
- },
99
- methods: {
100
- result(selectNodeInfo) {
101
- this.$emit('close', selectNodeInfo)
102
- },
103
- selectDepartment() {
104
- this.$refs.inlineDeparmentTree.selectDepartment()
105
- }
106
- }
107
- }
108
- </script>
@@ -1,6 +0,0 @@
1
- import InlineDepartmentTree from './src/department-tree-inline.vue'
2
- InlineDepartmentTree.install = function(Vue) {
3
- Vue.component(InlineDepartmentTree.name, InlineDepartmentTree)
4
- }
5
-
6
- export default InlineDepartmentTree