imatrix-ui 2.8.2-dw → 2.8.2-tmp2

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 (53) hide show
  1. package/lib/super-ui.css +1 -1
  2. package/lib/super-ui.umd.min.js +5 -35
  3. package/package.json +4 -2
  4. package/src/i18n/i18n.js +1 -1
  5. package/src/i18n/langs/cn.js +10 -5
  6. package/src/i18n/langs/en.js +10 -5
  7. package/src/permission.js +7 -3
  8. package/src/plugins.js +3 -3
  9. package/src/router/index.js +24 -0
  10. package/src/store/getters.js +2 -1
  11. package/src/store/modules/app.js +10 -1
  12. package/src/store/modules/permission.js +5 -0
  13. package/src/store/modules/user.js +50 -19
  14. package/src/styles/display-layout.scss +34 -0
  15. package/src/styles/index.scss +53 -0
  16. package/src/styles/theme/dark-blue/button.scss +9 -0
  17. package/src/styles/theme/dark-blue/card.scss +64 -0
  18. package/src/styles/theme/dark-blue/checkbox.scss +10 -0
  19. package/src/styles/theme/dark-blue/dark-blue-var.scss +8 -0
  20. package/src/styles/theme/dark-blue/dialog.scss +21 -0
  21. package/src/styles/theme/dark-blue/element-variables.scss +7 -0
  22. package/src/styles/theme/dark-blue/font.scss +71 -0
  23. package/src/styles/theme/dark-blue/form.scss +51 -0
  24. package/src/styles/theme/dark-blue/index.scss +247 -0
  25. package/src/styles/theme/dark-blue/input.scss +15 -0
  26. package/src/styles/theme/dark-blue/pagination.scss +14 -0
  27. package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
  28. package/src/styles/theme/dark-blue/sidebar.scss +296 -0
  29. package/src/styles/theme/dark-blue/tab.scss +83 -0
  30. package/src/styles/theme/dark-blue/table.scss +60 -0
  31. package/src/styles/theme/dark-blue/tree.scss +31 -0
  32. package/src/styles/theme/dark-blue/var.scss +1028 -0
  33. package/src/styles/theme/gray/form-style.scss +2 -2
  34. package/src/styles/theme/gray/input-style.scss +8 -0
  35. package/src/utils/auth-api.js +115 -0
  36. package/src/utils/auth.js +43 -30
  37. package/src/utils/calculator/calculator-factory.js +2 -2
  38. package/src/utils/common-util.js +34 -0
  39. package/src/utils/jump-page-utils.js +29 -5
  40. package/src/utils/menu.js +19 -0
  41. package/src/utils/permission.js +4 -0
  42. package/src/utils/permissionAuth.js +48 -1
  43. package/src/utils/request.js +18 -2
  44. package/src/utils/util.js +23 -6
  45. package/src/views/404.vue +14 -10
  46. package/src/views/dsc-component/Sidebar/Item.vue +3 -3
  47. package/src/views/dsc-component/Sidebar/Link.vue +11 -2
  48. package/src/views/dsc-component/Sidebar/SidebarItem.vue +36 -21
  49. package/src/views/dsc-component/Sidebar/index.vue +12 -7
  50. package/src/views/dsc-component/tabs/tab-content.vue +11 -0
  51. package/src/views/error-page/404.vue +6 -6
  52. package/src/views/layout/components/Menubar/index.vue +5 -3
  53. package/src/views/login/index.vue +1 -1
@@ -0,0 +1,71 @@
1
+ .dark-blue {
2
+ $titleColor: rgba(0, 0, 0, 0.85);
3
+
4
+ .list-file {
5
+ color: rgba(0, 13, 31, 0.45);
6
+ font-size: 14px;
7
+ cursor: pointer;
8
+ }
9
+
10
+ .form-list-file {
11
+ color: rgba(0, 0, 0, 0.65);
12
+ background: #F2F6FA;
13
+ border-radius: 6px;
14
+ font-size: 14px;
15
+ cursor: pointer;
16
+ height: 28px;
17
+ line-height: 28px;
18
+ padding: 0 8px 0 8px;
19
+ margin-right: 32px
20
+ }
21
+
22
+ .tip-font {
23
+ color: rgba(0, 0, 0, 0.65);
24
+ font-size: 14px;
25
+ }
26
+
27
+ .superForm {
28
+ .el-form-item__label {
29
+ color: rgba(0, 13, 31, 0.85);
30
+ }
31
+ }
32
+
33
+
34
+ .page-layout__title {
35
+ width: 46px;
36
+ height: 16px;
37
+ font-size: 11px;
38
+ font-weight: 500;
39
+ color: #333333;
40
+ line-height: 13px;
41
+ }
42
+
43
+ .component-type-name__title {
44
+ width: 40px;
45
+ height: 14px;
46
+ font-size: 10px;
47
+ font-weight: 500;
48
+ color: #333333;
49
+ line-height: 12px;
50
+ // -webkit-background-clip: text;
51
+ // -webkit-text-fill-color: transparent;
52
+ }
53
+
54
+ .page-layout__title::before {
55
+ content: "";
56
+ text-align: center;
57
+ background: #1A6BF3;
58
+ float: left;
59
+ position: relative;
60
+ border-radius: 3px;
61
+ /** 定义成 block 元素 **/
62
+ display: block;
63
+ // height: 21px;
64
+ // width: 4px;
65
+ margin-right: 12px;
66
+
67
+ width: 2px;
68
+ height: 16px;
69
+
70
+ }
71
+ }
@@ -0,0 +1,51 @@
1
+ .dark-blue {
2
+
3
+ .button-at-top {
4
+ width: 100%;
5
+ background: rgb(255, 255, 255);
6
+ line-height: 72px;
7
+ height: 72px;
8
+ position: absolute;
9
+ z-index: 100;
10
+ top: 0px;
11
+ left: 0px;
12
+ right: 0px;
13
+ }
14
+
15
+ .button-at-bottom {
16
+ width: 100%;
17
+ background: rgb(255, 255, 255);
18
+ line-height: 72px;
19
+ height: 72px;
20
+ position: absolute;
21
+ bottom: 0px;
22
+ z-index: 100;
23
+ left: 0px;
24
+ right: 0px;
25
+ }
26
+
27
+ .form-top-button {
28
+ height: 72px;
29
+ float: left;
30
+ padding-left: 24px;
31
+ line-height: 72px;
32
+ }
33
+
34
+ .form-bottom-button {
35
+ height: 72px;
36
+ float: right;
37
+ padding-right: 24px;
38
+ line-height: 72px;
39
+ }
40
+
41
+ .form-center-position{
42
+ position: relative;
43
+
44
+ .form-center-son{
45
+ position: absolute;
46
+ top: 50%;
47
+ left: 50%;
48
+ transform: translate(-50%,-50%);
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,247 @@
1
+ @import './element-variables.scss';
2
+ @import './table.scss';
3
+ @import './sidebar.scss';
4
+ @import './font.scss';
5
+ @import './card.scss';
6
+ @import './tab.scss';
7
+ @import './input.scss';
8
+ @import './form.scss';
9
+ @import './pagination.scss';
10
+ @import './button.scss';
11
+ @import './checkbox.scss';
12
+ @import './dialog.scss';
13
+ @import './tree.scss';
14
+ @import './scrollbar-style.scss';
15
+
16
+
17
+ .dark-blue {
18
+ font-family: cursive;
19
+ font-size: 14px;
20
+ color: rgba(0, 0, 0, 0.85);
21
+ -moz-osx-font-smoothing: grayscale;
22
+ -webkit-font-smoothing: antialiased;
23
+ text-rendering: optimizeLegibility;
24
+ height: 100%;
25
+
26
+ .el-button {
27
+ font-family: cursive;
28
+ }
29
+
30
+ .fl {
31
+ float: left;
32
+ }
33
+
34
+ .fr {
35
+ float: right;
36
+ }
37
+
38
+
39
+ html {
40
+ height: 100%;
41
+ box-sizing: border-box;
42
+ }
43
+
44
+ #app {
45
+ height: 100%;
46
+ }
47
+
48
+ a,
49
+ a:focus,
50
+ a:hover {
51
+ cursor: pointer;
52
+ color: inherit;
53
+ outline: none;
54
+ text-decoration: none;
55
+ }
56
+
57
+ div:focus {
58
+ outline: none;
59
+ }
60
+
61
+ a:focus,
62
+ a:active {
63
+ outline: none;
64
+ }
65
+
66
+ a,
67
+ a:focus,
68
+ a:hover {
69
+ cursor: pointer;
70
+ color: inherit;
71
+ text-decoration: none;
72
+ }
73
+
74
+ .clearfix {
75
+ &:after {
76
+ visibility: hidden;
77
+ display: block;
78
+ font-size: 0;
79
+ content: " ";
80
+ clear: both;
81
+ height: 0;
82
+ }
83
+ }
84
+
85
+ //main-container全局样式
86
+ .app-main {
87
+ min-height: 100%;
88
+ background: #f7f7f8;
89
+ padding: 11px 24px 11px 24px;
90
+ // padding-top: 12px;
91
+ }
92
+
93
+ .app-container {
94
+ // padding: 20px;
95
+ // padding: 0px;
96
+ padding: 20px 24px;
97
+ background: #FFFFFF;
98
+ border-radius: 6px;
99
+ box-shadow: 0px 1px 8px 0px #00000019;
100
+
101
+ .box-card {
102
+ margin: 0px 0px 0px 0px;
103
+ }
104
+ }
105
+
106
+ .no-margin {
107
+ padding: 0px 0px;
108
+ }
109
+
110
+ .add_form_height {
111
+ height: calc(100vh - 60px);
112
+ position: relative;
113
+
114
+ .add_form_center {
115
+ position: absolute;
116
+ top: 50%;
117
+ left: 50%;
118
+ transform: translate(-50%, -50%);
119
+
120
+ .add_form_buttomButton {
121
+ text-align: right;
122
+ }
123
+ }
124
+ }
125
+
126
+ .operation-area {
127
+ margin-bottom: 20px;
128
+
129
+ }
130
+
131
+ .operation-area-chart {
132
+ padding-right: 24px;
133
+ padding-top: 24px;
134
+ text-align: right;
135
+ }
136
+
137
+ // 解决tab页签中内容多时没有滚动条问题
138
+ .el-tabs__content {
139
+ flex-grow: 1;
140
+ overflow-y: auto;
141
+ }
142
+
143
+ // 解决在edge浏览器中dialog有遮罩层 或 MessageBox的$confirm时,遮罩层偏移,导致弹框中组件元素无法操作问题。
144
+ // .el-dialog__wrapper、.el-message-box__wrapper、.v-modal默认position是relative,改为absolute就不会出现偏移了。
145
+ // dialog弹框的样式
146
+ .el-dialog__wrapper {
147
+ position: absolute;
148
+ }
149
+
150
+ // MessageBox的样式,必须这样修改,否则会导致点击确定、取消按钮不好用
151
+ .el-message-box__wrapper {
152
+ position: absolute;
153
+ }
154
+
155
+ // dialog遮罩层的样式
156
+ .v-modal {
157
+ position: absolute;
158
+ }
159
+
160
+ .menu-tab-container .el-tabs__item {
161
+ height: 48px;
162
+ line-height: 48px;
163
+ }
164
+
165
+ //顶部标签字体样式
166
+ .menu-tab-container .el-tabs__item.is-active {
167
+ color: #3D4cf2;
168
+ }
169
+
170
+ //顶部标签样式
171
+ .menu-tab-container .el-tabs__active-bar {
172
+ background-color: #3D4cf2;
173
+ }
174
+
175
+ .el-pagination {
176
+ text-align: right;
177
+ }
178
+
179
+ .el-table td {
180
+ padding: 14px 0;
181
+ }
182
+
183
+ .el-table td,
184
+ .el-table th {
185
+ height: 40px;
186
+ }
187
+
188
+ .el-table th {
189
+ padding: 0;
190
+ }
191
+
192
+ /**表格内容纵向分隔线去掉**/
193
+ .el-table--border td,
194
+ .el-table--border th,
195
+ .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
196
+ border-right: 0px
197
+ }
198
+
199
+ /**表格标题纵向分隔线颜色调浅点儿**/
200
+ .el-table--border td,
201
+ .el-table--border th,
202
+ .el-table--border th.is-leaf,
203
+ .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
204
+ border-right: 1px solid #fefefe;
205
+ }
206
+
207
+ .selectPeopleClass {
208
+ color: #313233;
209
+ font-family: Source Han Sans CN;
210
+ font-weight: regular;
211
+ font-size: 14px;
212
+ line-height: 22px;
213
+ letter-spacing: 0px;
214
+ text-align: left;
215
+ }
216
+
217
+ .el-button+.el-button {
218
+ margin-left: 10px;
219
+ }
220
+
221
+ // .el-main {
222
+ // padding: 0px;
223
+ // }
224
+
225
+ // .el-aside {
226
+ // margin-right: 20px;
227
+ // }
228
+
229
+ // .three-column-layout {
230
+ // height: calc(100vh - 20px);
231
+
232
+ // .el-aside {
233
+ // margin-right: 20px;
234
+ // padding-top: 20px;
235
+ // background-color: #FFFFFF;
236
+ // box-shadow: 0px 1px 8px 0px #00000019;
237
+
238
+ // }
239
+
240
+ // .el-main {
241
+ // padding: 20px 0 0 20px;
242
+ // border-radius: 6px;
243
+ // background: #FFFFFF;
244
+ // box-shadow: 0px 1px 8px 0px #00000019;
245
+ // }
246
+ // }
247
+ }
@@ -0,0 +1,15 @@
1
+ .dark-blue {
2
+
3
+ .superForm {
4
+
5
+ .el-input--medium .el-input__inner {
6
+ height: 32px;
7
+ line-height: 32px;
8
+ }
9
+
10
+ .el-input.is-disabled .el-input__inner {
11
+ color: #606266;
12
+ }
13
+ }
14
+
15
+ }
@@ -0,0 +1,14 @@
1
+ @import "./dark-blue-var.scss";
2
+
3
+ .dark-blue {
4
+ .el-pager li:not(.disabled) {
5
+ &:hover {
6
+ //color: $--pagination-hover-color;
7
+ }
8
+
9
+ &.active {
10
+ color: #FFFFFF;
11
+ background-color: $--button-default-font-color;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,32 @@
1
+ .dark-blue {
2
+
3
+ // 滚动条基础样式
4
+ ::-webkit-scrollbar {
5
+ width: 6px; // 纵向的宽度
6
+ height: 8px; // 横向的高度
7
+ }
8
+
9
+ // 默认下滚动条的样式
10
+ ::-webkit-scrollbar-thumb {
11
+ background: #eaeaea;
12
+ border: none;
13
+ border-radius: 4px;
14
+ }
15
+
16
+ // 鼠标悬停在滚动条时的样式
17
+ ::-webkit-scrollbar-thumb:hover {
18
+ background: rgba(157, 165, 183, 0.7)
19
+ }
20
+
21
+ // 滚动条区域 空白地方的样式
22
+ ::-webkit-scrollbar-track {
23
+ background-color: transparent;
24
+ border: none;
25
+ }
26
+
27
+ // 鼠标悬停在滚动条时 滚动条区域 空白地方的样式
28
+ ::-webkit-scrollbar-track:hover {
29
+ background-color: #eaeaea;
30
+ border: none;
31
+ }
32
+ }
@@ -0,0 +1,296 @@
1
+ .dark-blue {
2
+ #app {
3
+
4
+ // $topHeight: 50px;
5
+ // 主体区域
6
+ .main-container {
7
+ height: 100%;
8
+ transition: margin-left .28s;
9
+ margin-left: 210px;
10
+ // padding-left: 24px;
11
+ position: relative;
12
+ background: #F8F9FA;
13
+
14
+ .nav-tab {
15
+ padding-top: 0px;
16
+ padding-left: 0px;
17
+ .el-tabs__header{
18
+ padding-left: 24px;
19
+ }
20
+ }
21
+ }
22
+
23
+ // 侧边栏
24
+ .sidebar-container {
25
+ transition: width 0.28s;
26
+ width: 210px !important;
27
+ height: 100%;
28
+ position: fixed;
29
+ top: 0;
30
+ bottom: 0;
31
+ left: 0;
32
+ padding-top: 16px;
33
+ z-index: 1001;
34
+ overflow: hidden;
35
+ font-weight: medium;
36
+ font-size: 14px;
37
+ line-height: normal;
38
+ letter-spacing: 0px;
39
+ text-align: left;
40
+ color: rgba(0, 13, 31, 0.85);
41
+ background: #FFF;
42
+ box-shadow: 0px 2px 8px 0px rgba(164, 178, 201, 0.4);
43
+
44
+ //reset element-ui css
45
+ .horizontal-collapse-transition {
46
+ transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
47
+ }
48
+
49
+ .el-scrollbar__bar.is-vertical {
50
+ right: 0px;
51
+ }
52
+
53
+ .scrollbar-wrapper {
54
+ overflow-x: hidden !important;
55
+
56
+ .el-scrollbar__view {
57
+ height: calc(100vh - 70px);
58
+ }
59
+
60
+ .system-item {
61
+ padding-left: 10px;
62
+ font-size: medium;
63
+ font-weight: 600;
64
+ opacity: 0.8;
65
+ cursor: default;
66
+ }
67
+ }
68
+
69
+ .hamburger-container {
70
+ position: absolute;
71
+ bottom: 0px;
72
+ width: 100%;
73
+ line-height: 48px;
74
+ height: 48px;
75
+ background: #FFFFFF;
76
+ box-shadow: 0px 1px 8px 0px #00000019;
77
+ border: 1px solid #EAEAEA;
78
+ padding: 0 24px;
79
+ }
80
+
81
+ .is-horizontal {
82
+ display: none;
83
+ }
84
+
85
+ a {
86
+ display: inline-block;
87
+ width: 100%;
88
+ overflow: hidden;
89
+ }
90
+
91
+ .svg-icon {
92
+ margin-right: 16px;
93
+ }
94
+
95
+ .el-menu {
96
+ border: none;
97
+ height: 100%;
98
+ width: 100% !important;
99
+ background-color: #FFF;
100
+ color: #000D1F;
101
+ font-weight: medium;
102
+ }
103
+
104
+ .el-menu-item {
105
+ height: 46px;
106
+ color: #525A6C;
107
+ line-height: 46px;
108
+ font-weight: medium;
109
+
110
+ }
111
+
112
+ .el-menu-item.is-active {
113
+ color: #1A6BF3;
114
+ font-weight: medium;
115
+ font-size: 14px;
116
+ letter-spacing: 0px;
117
+ text-align: left;
118
+ box-sizing: border-box;
119
+ border-left: 4px solid #1A6BF3
120
+ }
121
+
122
+ .el-submenu__title {
123
+ height: 46px;
124
+ line-height: 46px;
125
+ }
126
+
127
+ }
128
+
129
+ .hideSidebar {
130
+ .sidebar-container {
131
+ width: 54px !important;
132
+ }
133
+
134
+ .main-container {
135
+ margin-left: 54px;
136
+ }
137
+
138
+ .submenu-title-noDropdown {
139
+ padding-left: 20px !important;
140
+ position: relative;
141
+
142
+ .el-tooltip {
143
+ padding: 0 20px !important;
144
+ }
145
+ }
146
+
147
+ .el-submenu {
148
+ overflow: hidden;
149
+
150
+ &>.el-submenu__title {
151
+ padding-left: 20px !important;
152
+
153
+ .el-submenu__icon-arrow {
154
+ display: none;
155
+ }
156
+ }
157
+ }
158
+
159
+ .el-menu--collapse {
160
+ .el-submenu {
161
+ &>.el-submenu__title {
162
+ &>span {
163
+ height: 0;
164
+ width: 0;
165
+ overflow: hidden;
166
+ visibility: hidden;
167
+ display: inline-block;
168
+ }
169
+ }
170
+ }
171
+ }
172
+ }
173
+
174
+ .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
175
+ .sidebar-container .el-submenu .el-menu-item {
176
+ min-width: 180px !important;
177
+ }
178
+
179
+ .sidebar-container .el-menu--collapse .el-menu .el-submenu {
180
+ min-width: 180px !important;
181
+ }
182
+
183
+ .sidebar-container .el-menu--collapse .el-submenu.is-active>.el-submenu__title,
184
+ .sidebar-container .el-menu--collapse .el-menu.is-active {
185
+ background-color: #FFFFFF !important;
186
+ color: #1A6BF3;
187
+ font-weight: medium;
188
+ border-left: 4px solid #1A6BF3
189
+ }
190
+
191
+ .sidebar-container .el-menu--collapse .el-submenu__title:not(.is-disabled):hover,
192
+ .sidebar-container .el-menu-item:not(.is-disabled):hover {
193
+ background: #F7F7F8;
194
+ color: rgba(0, 13, 31, 0.85);
195
+ font-weight: medium;
196
+ }
197
+
198
+ .sidebar-container .el-menu--collapse {
199
+ text-align: left;
200
+ }
201
+
202
+ //适配移动端
203
+ .mobile {
204
+ .main-container {
205
+ margin-left: 0px;
206
+ }
207
+
208
+ .sidebar-container {
209
+ transition: transform .28s;
210
+ width: 224px !important;
211
+ }
212
+
213
+ &.hideSidebar {
214
+ .sidebar-container {
215
+ transition-duration: 0.3s;
216
+ transform: translate3d(-224px, 0, 0);
217
+ }
218
+ }
219
+ }
220
+
221
+ .withoutAnimation {
222
+
223
+ .main-container,
224
+ .sidebar-container {
225
+ transition: none;
226
+ }
227
+ }
228
+ }
229
+
230
+ .sidebar-container-popper {
231
+ width: 180px;
232
+ }
233
+
234
+ .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
235
+ background: #F7F7F8;
236
+ color: rgba(0, 13, 31, 0.85);
237
+ font-weight: medium;
238
+ }
239
+
240
+ .sidebar-container-popper .el-menu .el-submenu.is-active>.el-submenu__title {
241
+ background-color: #FFFFFF !important;
242
+ color: #3D4CF2;
243
+ font-weight: regular;
244
+ }
245
+
246
+ .sidebar-container-popper .el-menu .el-menu-item:hover {
247
+ background: #F7F7F8;
248
+ color: rgba(0, 13, 31, 0.85);
249
+ font-weight: medium;
250
+ }
251
+
252
+ //菜单栏右侧展开时选中菜单的样式
253
+ .sidebar-container-popper .el-menu .el-menu-item.is-active {
254
+ color: #FFFFFF;
255
+ border-radius: 2px;
256
+ background: #0078EE;
257
+ font-weight: regular;
258
+ font-size: 14px;
259
+ text-align: left;
260
+ }
261
+
262
+ //侧边弹出菜单样式
263
+ .sidebar-container-popper .el-menu-item {
264
+ height: 46px;
265
+ line-height: 46px;
266
+ font-weight: medium;
267
+ color: #A4ABB8;
268
+ min-width: 164px;
269
+ }
270
+
271
+ .sidebar-container-popper .el-submenu__title {
272
+ height: 46px;
273
+ line-height: 46px;
274
+ color: #A4ABB8;
275
+ font-weight: medium;
276
+ }
277
+
278
+ .sidebar-container-popper .el-menu--collapse {
279
+ text-align: left;
280
+ }
281
+
282
+ .sidebar-container-popper .el-menu--popup {
283
+ min-width: 180px;
284
+ padding: 12px 8px 12px 8px;
285
+ }
286
+
287
+
288
+
289
+ .el-menu--vertical {
290
+ &>.el-menu {
291
+ .svg-icon {
292
+ margin-right: 16px;
293
+ }
294
+ }
295
+ }
296
+ }