imatrix-ui 2.8.19 → 2.8.20-boe2

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 (36) 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/i18n/langs/cn.js +7 -0
  5. package/src/i18n/langs/en.js +9 -2
  6. package/src/router/index.js +10 -0
  7. package/src/store/modules/tab-content.js +6 -0
  8. package/src/styles/index.scss +72 -2
  9. package/src/styles/theme/black/font-style.scss +70 -0
  10. package/src/styles/theme/black/index.scss +6 -30
  11. package/src/styles/theme/blue/font-style.scss +37 -0
  12. package/src/styles/theme/blue/index.scss +2 -18
  13. package/src/styles/theme/blue2/font-style.scss +70 -0
  14. package/src/styles/theme/blue2/index.scss +3 -13
  15. package/src/styles/theme/dark-blue/index.scss +12 -4
  16. package/src/styles/theme/dark-blue/sidebar.scss +7 -37
  17. package/src/styles/theme/dark-blue/table.scss +1 -1
  18. package/src/styles/theme/gray/card-style.scss +13 -1
  19. package/src/styles/theme/gray/font-style.scss +38 -0
  20. package/src/styles/theme/gray/index.scss +13 -25
  21. package/src/styles/theme/gray/scrollbar-style.scss +32 -0
  22. package/src/styles/theme/gray/sidebar.scss +5 -0
  23. package/src/utils/auth-api.js +45 -1
  24. package/src/utils/common-util.js +11 -0
  25. package/src/utils/range-selector.js +185 -0
  26. package/src/utils/request.js +4 -1
  27. package/src/utils/util.js +2 -2
  28. package/src/views/layout/NewLayout.vue +6 -65
  29. package/src/views/layout/components/Menubar/Item.vue +23 -7
  30. package/src/views/layout/components/Menubar/Link.vue +11 -2
  31. package/src/views/layout/components/Menubar/SidebarItem.vue +50 -7
  32. package/src/views/layout/components/Menubar/index.vue +51 -16
  33. package/src/views/layout/components/tabs/tab-content.vue +160 -0
  34. package/src/views/layout/tab-content-iframe-index.vue +31 -0
  35. package/src/views/layout/tab-content-index.vue +85 -0
  36. package/src/styles/theme/gray/form-style.scss +0 -41
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imatrix-ui",
3
- "version": "2.8.19",
3
+ "version": "2.8.20-boe2",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -34,7 +34,7 @@
34
34
  "element-ui": "2.15.3",
35
35
  "eslint": "5.16.0",
36
36
  "eslint-plugin-vue": "5.2.2",
37
- "node-sass": "4.12.0",
37
+ "node-sass": "4.14.1",
38
38
  "nprogress": "^0.2.0",
39
39
  "sass-loader": "^7.1.0",
40
40
  "sessionstorage": "^0.1.0",
@@ -208,6 +208,7 @@ const cn = {
208
208
  commonButtonOperation: '{1}执行了[{2}]操作',
209
209
  history_draw_task: '{1}领取了任务,取消了候选人[{2}]的任务',
210
210
  history_abandon_draw: '{1}放弃领取该任务,还原了候选人[{2}]的任务',
211
+ create_copy_task: '{1}把任务抄送给了[{2}]',
211
212
  toDoText: '待处理',
212
213
  operator: '操作人',
213
214
  operatorDept: '操作人部门',
@@ -238,6 +239,12 @@ const cn = {
238
239
  callingRearCamera: '正在调用后置摄像头...',
239
240
  identificationFailed: '识别失败'
240
241
  },
242
+ IntervalSelection: {
243
+ year: '年',
244
+ quarter: '季度',
245
+ auxiliary: '第',
246
+ week: '周'
247
+ },
241
248
  ...zhLocale
242
249
  }
243
250
  export default cn
@@ -203,8 +203,9 @@ const en = {
203
203
  history_quit_transfer: '{1} Resignation, has transferred task [{2}] to [{3}',
204
204
  history_change_job_transfer: '{1} Change job,has transferred task [{2}] to [{3}',
205
205
  commonButtonOperation: '{1} execute [{2}] operation',
206
- history_draw_task: '{1}received the task and cancelled the task of the candidate [{2}]',
207
- history_abandon_draw: '{1}gives up the task and restores the task of candidate [{2}]',
206
+ history_draw_task: '{1} received the task and cancelled the task of the candidate [{2}]',
207
+ history_abandon_draw: '{1} gives up the task and restores the task of candidate [{2}]',
208
+ create_copy_task: '{1} The task was copied to [{2}',
208
209
  toDoText: 'Todo',
209
210
  operator: 'Operator',
210
211
  operatorDept: 'Operator Dept',
@@ -234,6 +235,12 @@ const en = {
234
235
  callingRearCamera: 'Calling rear camera',
235
236
  identificationFailed: 'Identification failed'
236
237
  },
238
+ IntervalSelection: {
239
+ year: 'year',
240
+ quarter: 'quarter',
241
+ auxiliary: 'auxiliary word for ordinal numbers',
242
+ week: 'week'
243
+ },
237
244
  ...enLocale
238
245
  }
239
246
  export default en
@@ -69,6 +69,16 @@ export const publicRouterMap = [
69
69
  path: '/show-sub-wf-history',
70
70
  component: () => import('../views/wf-history/tache-subprocess-history'),
71
71
  hidden: true
72
+ },
73
+ {
74
+ path: '/tab-content-index',
75
+ component: () => import('../views/layout/tab-content-index'),
76
+ hidden: true
77
+ },
78
+ {
79
+ path: '/tab-content-iframe-index',
80
+ component: () => import('../views/layout/tab-content-iframe-index'),
81
+ hidden: true
72
82
  }
73
83
 
74
84
  ]
@@ -22,6 +22,12 @@ const tabContent = {
22
22
  // 设置当前激活的tab
23
23
  set_active_index(state, index) {
24
24
  state.activeIndex = index
25
+ },
26
+ // 清空tabs
27
+ clear_tabs(state, route) {
28
+ if (state.openTab.length > 0) {
29
+ state.openTab.splice(0, state.openTab.length)
30
+ }
25
31
  }
26
32
  },
27
33
  actions: {
@@ -75,13 +75,83 @@ body .el-table colgroup.gutter {
75
75
  margin-bottom: 0;
76
76
  }
77
77
 
78
+ .operation-area,
79
+ .grid-search-form .search-button,
80
+ .grid-area .grid-operation-buttons {
81
+ .el-button:not(:first-child) {
82
+ margin-left: 10px;
83
+ }
84
+ }
85
+
86
+ .button-at-top {
87
+ width: 100%;
88
+ background: rgb(255, 255, 255);
89
+ line-height: 72px;
90
+ height: 72px;
91
+ position: absolute;
92
+ z-index: 100;
93
+ top: 0px;
94
+ left: 0px;
95
+ right: 0px;
96
+ }
97
+
98
+ .button-at-bottom {
99
+ width: 100%;
100
+ background: rgb(255, 255, 255);
101
+ line-height: 72px;
102
+ height: 72px;
103
+ position: absolute;
104
+ bottom: 0px;
105
+ z-index: 100;
106
+ left: 0px;
107
+ right: 0px;
108
+ }
109
+
110
+ .form-top-button {
111
+ height: 72px;
112
+ float: left;
113
+ padding-left: 24px;
114
+ line-height: 72px;
115
+ }
116
+
117
+ .form-bottom-button {
118
+ height: 72px;
119
+ float: right;
120
+ padding-right: 24px;
121
+ line-height: 72px;
122
+ }
123
+
124
+ // 带有tab页签的表单高度
125
+ .tab-form-container {
126
+ height: calc(100vh - 190px);
127
+ overflow: auto;
128
+ }
129
+
130
+ .form-container {
131
+ height: calc(100vh - 90px);
132
+ overflow: auto;
133
+ }
134
+
135
+ .form-container-bottom-button {
136
+ margin-bottom: 50px;
137
+ }
138
+
139
+ .form-container .el-form .el-card {
140
+ margin-bottom: 10px;
141
+ }
142
+
143
+ .form-container .el-form .el-card:last-child {
144
+ margin-bottom: 0;
145
+ }
146
+
78
147
  .operation-area-float {
79
148
  float: right;
80
149
  position: fixed;
81
- bottom: 5px;
150
+ bottom: 0;
82
151
  right: 4%;
83
152
  }
84
153
 
85
154
  .el-button+.el-button {
86
155
  margin-left: 10px;
87
- }
156
+ }
157
+
@@ -0,0 +1,70 @@
1
+ .gray {
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
+ .page-layout__title {
34
+ width: 46px;
35
+ height: 16px;
36
+ font-size: 11px;
37
+ font-weight: 500;
38
+ color: #333333;
39
+ line-height: 13px;
40
+ }
41
+
42
+ .component-type-name__title {
43
+ width: 40px;
44
+ height: 14px;
45
+ font-size: 10px;
46
+ font-weight: 500;
47
+ color: #333333;
48
+ line-height: 12px;
49
+ // -webkit-background-clip: text;
50
+ // -webkit-text-fill-color: transparent;
51
+ }
52
+
53
+ .page-layout__title::before {
54
+ content: "";
55
+ text-align: center;
56
+ background: #1A6BF3;
57
+ float: left;
58
+ position: relative;
59
+ border-radius: 3px;
60
+ /** 定义成 block 元素 **/
61
+ display: block;
62
+ // height: 21px;
63
+ // width: 4px;
64
+ margin-right: 12px;
65
+
66
+ width: 2px;
67
+ height: 16px;
68
+
69
+ }
70
+ }
@@ -1,4 +1,5 @@
1
1
  @import './sidebar.scss';
2
+ @import './font-style.scss';
2
3
 
3
4
  .black .el-dialog__header {
4
5
  padding: 10px 10px 10px;
@@ -79,34 +80,19 @@
79
80
 
80
81
  .app-container {
81
82
  padding: 20px;
83
+ border-radius: 6px;
84
+ box-shadow: 0px 1px 8px 0px #00000019;
82
85
  }
83
86
 
84
87
  .operation-area {
85
88
  margin-bottom: 10px;
86
89
  }
90
+
87
91
  .operation-area-chart {
88
92
  float: right;
89
93
  padding-right: 24px;
90
94
  padding-top: 10px;
91
95
  }
92
- .form-container {
93
- height: calc(100vh - 82px);
94
- overflow: auto;
95
- }
96
-
97
- .form-container .el-form .el-card {
98
- margin-bottom: 10px;
99
- }
100
-
101
- .form-container .el-form .el-card:last-child {
102
- margin-bottom: 0;
103
- }
104
-
105
- // 带有tab页签的表单高度
106
- .tab-form-container {
107
- height: calc(100vh - 190px);
108
- overflow: auto;
109
- }
110
96
 
111
97
  // 解决tab页签中内容多时没有滚动条问题
112
98
  .el-tabs__content {
@@ -217,6 +203,8 @@
217
203
 
218
204
  .app-container {
219
205
  padding: 20px;
206
+ border-radius: 6px;
207
+ box-shadow: 0px 1px 8px 0px #00000019;
220
208
  }
221
209
 
222
210
  .operation-area {
@@ -224,18 +212,6 @@
224
212
  height: 40px;
225
213
  }
226
214
 
227
- .form-container {
228
- height: calc(100vh - 82px);
229
- overflow: auto;
230
- }
231
-
232
- .form-container .el-form .el-card {
233
- margin-bottom: 10px;
234
- }
235
-
236
- .form-container .el-form .el-card:last-child {
237
- margin-bottom: 0;
238
- }
239
215
 
240
216
 
241
217
  // 解决tab页签中内容多时没有滚动条问题
@@ -6,4 +6,41 @@
6
6
  cursor: pointer;
7
7
  }
8
8
 
9
+ .page-layout__title {
10
+ width: 46px;
11
+ height: 16px;
12
+ font-size: 11px;
13
+ font-weight: 500;
14
+ color: #333333;
15
+ line-height: 13px;
16
+ }
17
+
18
+ .component-type-name__title {
19
+ width: 40px;
20
+ height: 14px;
21
+ font-size: 10px;
22
+ font-weight: 500;
23
+ color: #333333;
24
+ line-height: 12px;
25
+ // -webkit-background-clip: text;
26
+ // -webkit-text-fill-color: transparent;
27
+ }
28
+
29
+ .page-layout__title::before {
30
+ content: "";
31
+ text-align: center;
32
+ background: #1A6BF3;
33
+ float: left;
34
+ position: relative;
35
+ border-radius: 3px;
36
+ /** 定义成 block 元素 **/
37
+ display: block;
38
+ // height: 21px;
39
+ // width: 4px;
40
+ margin-right: 12px;
41
+
42
+ width: 2px;
43
+ height: 16px;
44
+
45
+ }
9
46
  }
@@ -80,6 +80,8 @@
80
80
 
81
81
  .app-container {
82
82
  padding: 20px;
83
+ border-radius: 6px;
84
+ box-shadow: 0px 1px 8px 0px #00000019;
83
85
  }
84
86
 
85
87
  .operation-area {
@@ -91,24 +93,6 @@
91
93
  padding-right: 24px;
92
94
  padding-top: 10px;
93
95
  }
94
- .form-container {
95
- height: calc(100vh - 82px);
96
- overflow: auto;
97
- }
98
-
99
- .form-container .el-form .el-card {
100
- margin-bottom: 10px;
101
- }
102
-
103
- .form-container .el-form .el-card:last-child {
104
- margin-bottom: 0;
105
- }
106
-
107
- // 带有tab页签的表单高度
108
- .tab-form-container {
109
- height: calc(100vh - 190px);
110
- overflow: auto;
111
- }
112
96
 
113
97
 
114
98
  // 解决tab页签中内容多时没有滚动条问题
@@ -0,0 +1,70 @@
1
+ .gray {
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
+ .page-layout__title {
34
+ width: 46px;
35
+ height: 16px;
36
+ font-size: 11px;
37
+ font-weight: 500;
38
+ color: #333333;
39
+ line-height: 13px;
40
+ }
41
+
42
+ .component-type-name__title {
43
+ width: 40px;
44
+ height: 14px;
45
+ font-size: 10px;
46
+ font-weight: 500;
47
+ color: #333333;
48
+ line-height: 12px;
49
+ // -webkit-background-clip: text;
50
+ // -webkit-text-fill-color: transparent;
51
+ }
52
+
53
+ .page-layout__title::before {
54
+ content: "";
55
+ text-align: center;
56
+ background: #1A6BF3;
57
+ float: left;
58
+ position: relative;
59
+ border-radius: 3px;
60
+ /** 定义成 block 元素 **/
61
+ display: block;
62
+ // height: 21px;
63
+ // width: 4px;
64
+ margin-right: 12px;
65
+
66
+ width: 2px;
67
+ height: 16px;
68
+
69
+ }
70
+ }
@@ -1,5 +1,5 @@
1
1
  @import './sidebar.scss';
2
-
2
+ @import './font-style.scss';
3
3
  .blue2 .el-dialog__header {
4
4
  padding: 10px 10px 10px;
5
5
  }
@@ -81,6 +81,8 @@
81
81
 
82
82
  .app-container {
83
83
  padding: 20px;
84
+ border-radius: 6px;
85
+ box-shadow: 0px 1px 8px 0px #00000019;
84
86
  }
85
87
 
86
88
  .operation-area {
@@ -92,18 +94,6 @@
92
94
  padding-right: 24px;
93
95
  padding-top: 10px;
94
96
  }
95
- .form-container {
96
- height: calc(100vh - 82px);
97
- overflow: auto;
98
- }
99
-
100
- .form-container .el-form .el-card {
101
- margin-bottom: 10px;
102
- }
103
-
104
- .form-container .el-form .el-card:last-child {
105
- margin-bottom: 0;
106
- }
107
97
 
108
98
 
109
99
  // 解决tab页签中内容多时没有滚动条问题
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
  .dark-blue {
18
- font-family: cursive;
18
+ font-family: Source Han Sans CN;
19
19
  font-size: 14px;
20
20
  color: rgba(0, 0, 0, 0.85);
21
21
  -moz-osx-font-smoothing: grayscale;
@@ -24,7 +24,7 @@
24
24
  height: 100%;
25
25
 
26
26
  .el-button {
27
- font-family: cursive;
27
+ font-family: Source Han Sans CN;
28
28
  }
29
29
 
30
30
  .fl {
@@ -84,7 +84,7 @@
84
84
 
85
85
  //main-container全局样式
86
86
  .app-main {
87
- min-height: 100%;
87
+ min-height: 100vh;
88
88
  background: #f7f7f8;
89
89
  padding: 11px 24px 11px 24px;
90
90
  // padding-top: 12px;
@@ -116,7 +116,7 @@
116
116
  top: 50%;
117
117
  left: 50%;
118
118
  transform: translate(-50%, -50%);
119
-
119
+ height: auto;
120
120
  .add_form_buttomButton {
121
121
  text-align: right;
122
122
  }
@@ -244,4 +244,12 @@
244
244
  // box-shadow: 0px 1px 8px 0px #00000019;
245
245
  // }
246
246
  // }
247
+
248
+ // 清除 app-container 类样式
249
+ .clear_app_container {
250
+ padding: 0;
251
+ background: transparent;
252
+ border-radius: 0;
253
+ box-shadow: 0 0px 0px #ccc;
254
+ }
247
255
  }
@@ -6,30 +6,26 @@
6
6
  .main-container {
7
7
  height: 100%;
8
8
  transition: margin-left .28s;
9
- margin-left: 210px;
9
+ margin-left: 224px;
10
10
  // padding-left: 24px;
11
11
  position: relative;
12
12
  background: #F8F9FA;
13
13
 
14
14
  .nav-tab {
15
- padding-top: 0px;
16
- padding-left: 0px;
17
- .el-tabs__header{
18
- padding-left: 24px;
19
- }
15
+ padding-top: 5px;
16
+ padding-left: 5px;
20
17
  }
21
18
  }
22
19
 
23
20
  // 侧边栏
24
21
  .sidebar-container {
25
22
  transition: width 0.28s;
26
- width: 210px !important;
23
+ width: 224px !important;
27
24
  height: 100%;
28
25
  position: fixed;
29
26
  top: 0;
30
27
  bottom: 0;
31
28
  left: 0;
32
- padding-top: 16px;
33
29
  z-index: 1001;
34
30
  overflow: hidden;
35
31
  font-weight: medium;
@@ -173,11 +169,11 @@
173
169
 
174
170
  .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
175
171
  .sidebar-container .el-submenu .el-menu-item {
176
- min-width: 180px !important;
172
+ min-width: 224px !important;
177
173
  }
178
174
 
179
175
  .sidebar-container .el-menu--collapse .el-menu .el-submenu {
180
- min-width: 180px !important;
176
+ min-width: 224px !important;
181
177
  }
182
178
 
183
179
  .sidebar-container .el-menu--collapse .el-submenu.is-active>.el-submenu__title,
@@ -185,7 +181,7 @@
185
181
  background-color: #FFFFFF !important;
186
182
  color: #1A6BF3;
187
183
  font-weight: medium;
188
- border-left: 4px solid #1A6BF3
184
+ border-right: 2px solid #3D4CF2
189
185
  }
190
186
 
191
187
  .sidebar-container .el-menu--collapse .el-submenu__title:not(.is-disabled):hover,
@@ -227,10 +223,6 @@
227
223
  }
228
224
  }
229
225
 
230
- .sidebar-container-popper {
231
- width: 180px;
232
- }
233
-
234
226
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
235
227
  background: #F7F7F8;
236
228
  color: rgba(0, 13, 31, 0.85);
@@ -259,33 +251,11 @@
259
251
  text-align: left;
260
252
  }
261
253
 
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
254
 
278
255
  .sidebar-container-popper .el-menu--collapse {
279
256
  text-align: left;
280
257
  }
281
258
 
282
- .sidebar-container-popper .el-menu--popup {
283
- min-width: 180px;
284
- padding: 12px 8px 12px 8px;
285
- }
286
-
287
-
288
-
289
259
  .el-menu--vertical {
290
260
  &>.el-menu {
291
261
  .svg-icon {
@@ -22,6 +22,7 @@
22
22
  // }
23
23
 
24
24
  .el-table .el-table__cell {
25
+ color: $table-cell-font-color;
25
26
  padding: 0;
26
27
  }
27
28
 
@@ -38,7 +39,6 @@
38
39
 
39
40
  // 表格内容颜色
40
41
  .el-table .cell {
41
- color: $table-cell-font-color;
42
42
  font-family: Source Han Sans CN;
43
43
  font-weight: regular;
44
44
  font-size: 14px;
@@ -38,5 +38,17 @@
38
38
 
39
39
 
40
40
  }
41
-
41
+ .gray_card_box {
42
+ border-radius: 6px;
43
+ background: #FFFFFF;
44
+ padding: 20px;
45
+ box-shadow: 0px 1px 8px 0px #00000019;
46
+ box-sizing: border-box;
47
+ overflow-y: scroll;
48
+ }
49
+ .gray_buttomBtn_box{
50
+ position: fixed;
51
+ bottom: 0;
52
+ right: 4%;
53
+ }
42
54
  }