imatrix-ui 2.9.15-dw-tmp2 → 2.9.16-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 (193) 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 +3 -6
  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/src/index.js +0 -93
  193. 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.9.15-dw-tmp2",
3
+ "version": "2.9.16-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.0",
38
38
  "nprogress": "^0.2.0",
39
39
  "sass-loader": "^7.1.0",
40
40
  "sessionstorage": "^0.1.0",
@@ -11,6 +11,23 @@ function login(username, password, language) {
11
11
 
12
12
  return request.post(Vue.prototype.baseAPI + '/sso/login', usernamePasswordToken)
13
13
  }
14
+ function loginWithValidateCode(username, password, language, validateCode, imageCodeKey) {
15
+ const usernamePasswordToken = {
16
+ username,
17
+ password
18
+ }
19
+ if (language) {
20
+ usernamePasswordToken.language = language
21
+ }
22
+ if (validateCode) {
23
+ usernamePasswordToken.validateCode = validateCode
24
+ }
25
+ if (imageCodeKey) {
26
+ usernamePasswordToken.imageCodeKey = imageCodeKey
27
+ }
28
+
29
+ return request.post(Vue.prototype.baseAPI + '/sso/login-with-validate-code', usernamePasswordToken)
30
+ }
14
31
 
15
32
  function getCurrentUser() {
16
33
  return request.get(
@@ -96,5 +113,6 @@ export default {
96
113
  isResetPasswordJwtOverdue,
97
114
  resetPassword,
98
115
  isLoginTimeOut,
99
- getUserPermissionMenusBySystemCode
116
+ getUserPermissionMenusBySystemCode,
117
+ loginWithValidateCode
100
118
  }
Binary file
package/src/i18n/i18n.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import Vue from 'vue'
2
- import locale from '@gcommon/gcommon-ui/lib/locale'
2
+ import locale from 'element-ui/lib/locale'
3
3
  import VueI18n from 'vue-i18n'
4
4
  import en from './langs/en'
5
5
  import cn from './langs/cn'
@@ -1,4 +1,4 @@
1
- import zhLocale from '@gcommon/gcommon-ui/lib/locale/lang/zh-CN'
1
+ import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
2
2
  const cn = {
3
3
  imatrixUIPublicModel: {
4
4
  sure: '确定',
@@ -74,7 +74,8 @@ const cn = {
74
74
  search: '查询',
75
75
  forbiddenException: '您没有权限访问该资源',
76
76
  theButtonIsNotBoundToAResource: '该按钮未绑定资源,请先绑定资源',
77
- asyncExport: '正在异步导出,请等待消息通知!'
77
+ asyncExport: '正在异步导出,请等待消息通知!',
78
+ NoContent: '暂无内容'
78
79
  },
79
80
  // 列表组件
80
81
  superGrid: {
@@ -148,7 +149,8 @@ const cn = {
148
149
  branch: '所属分支',
149
150
  removeUser: '移除用户',
150
151
  email: '邮箱',
151
- loginName: '登录名'
152
+ loginName: '登录名',
153
+ superiorDeptNameFullPath: '组织全路径'
152
154
  },
153
155
  // 工作组树
154
156
  workgroupTree: {
@@ -176,7 +178,9 @@ const cn = {
176
178
  assign: '交办',
177
179
  assign_task: '转办',
178
180
  readed: '已阅',
179
- export_report: '导出报告'
181
+ export_report: '导出报告',
182
+ draw_dept_task: '部门领取',
183
+ abandon_draw_dept_task: '放弃部门领取'
180
184
  },
181
185
  // 流转历史文本组件
182
186
  workflowHistoryList: {
@@ -209,11 +213,13 @@ const cn = {
209
213
  commonButtonOperation: '{1}执行了[{2}]操作',
210
214
  history_draw_task: '{1}领取了任务,取消了候选人[{2}]的任务',
211
215
  history_abandon_draw: '{1}放弃领取该任务,还原了候选人[{2}]的任务',
216
+ create_copy_task: '{1}把任务抄送给了[{2}]',
212
217
  toDoText: '待处理',
213
218
  operator: '操作人',
214
219
  operatorDept: '操作人部门',
215
- operationTime: '操作时间'
216
-
220
+ operationTime: '操作时间',
221
+ history_draw_dept_task: '{1}领取了部门[{2}]的任务',
222
+ history_abandon_draw_dept_task: '{1}放弃领取部门[{2}]的任务'
217
223
  },
218
224
  gateway: {
219
225
  timeout: '接口调用超时',
@@ -239,6 +245,12 @@ const cn = {
239
245
  callingRearCamera: '正在调用后置摄像头...',
240
246
  identificationFailed: '识别失败'
241
247
  },
248
+ IntervalSelection: {
249
+ year: '年',
250
+ quarter: '季度',
251
+ auxiliary: '第',
252
+ week: '周'
253
+ },
242
254
  ...zhLocale
243
255
  }
244
256
  export default cn
@@ -1,4 +1,4 @@
1
- import enLocale from '@gcommon/gcommon-ui/lib/locale/lang/en'
1
+ import enLocale from 'element-ui/lib/locale/lang/en'
2
2
  const en = {
3
3
  imatrixUIPublicModel: {
4
4
  sure: 'Sure',
@@ -74,7 +74,8 @@ const en = {
74
74
  search: 'Search',
75
75
  forbiddenException: 'You do not have permission to access this resource',
76
76
  theButtonIsNotBoundToAResource: 'The button is not bound to a resource, Bind the resource first',
77
- asyncExport: 'Asynchronous export, please wait for message notification!'
77
+ asyncExport: 'Asynchronous export, please wait for message notification!',
78
+ NoContent: 'No Content'
78
79
  },
79
80
  superGrid: {
80
81
  columnConfig: 'Column Config',
@@ -145,7 +146,8 @@ const en = {
145
146
  branch: 'Branch',
146
147
  removeUser: 'Remove User',
147
148
  email: 'Email',
148
- loginName: 'Login Name'
149
+ loginName: 'Login Name',
150
+ superiorDeptNameFullPath: 'Department full path'
149
151
  },
150
152
  // 工作组树
151
153
  workgroupTree: {
@@ -173,7 +175,9 @@ const en = {
173
175
  assign: 'Hand over',
174
176
  assign_task: 'Transfer',
175
177
  readed: 'Readed',
176
- export_report: 'Export Report'
178
+ export_report: 'Export Report',
179
+ draw_dept_task: 'Draw Department',
180
+ abandon_draw_dept_task: 'Give Up Draw Department'
177
181
  },
178
182
  // 流转历史文本组件
179
183
  workflowHistoryList: {
@@ -204,12 +208,15 @@ const en = {
204
208
  history_quit_transfer: '{1} Resignation, has transferred task [{2}] to [{3}',
205
209
  history_change_job_transfer: '{1} Change job,has transferred task [{2}] to [{3}',
206
210
  commonButtonOperation: '{1} execute [{2}] operation',
207
- history_draw_task: '{1}received the task and cancelled the task of the candidate [{2}]',
208
- history_abandon_draw: '{1}gives up the task and restores the task of candidate [{2}]',
211
+ history_draw_task: '{1} received the task and cancelled the task of the candidate [{2}]',
212
+ history_abandon_draw: '{1} gives up the task and restores the task of candidate [{2}]',
213
+ create_copy_task: '{1} The task was copied to [{2}',
209
214
  toDoText: 'Todo',
210
215
  operator: 'Operator',
211
216
  operatorDept: 'Operator Dept',
212
- operationTime: 'Operation Time'
217
+ operationTime: 'Operation Time',
218
+ history_draw_dept_task: '{1} Received tasks from department [{2}]',
219
+ history_abandon_draw_dept_task: '{1} Abandon the task of receiving department [{2}]'
213
220
  },
214
221
  gateway: {
215
222
  timeout: 'Interface call timeout',
@@ -235,6 +242,12 @@ const en = {
235
242
  callingRearCamera: 'Calling rear camera',
236
243
  identificationFailed: 'Identification failed'
237
244
  },
245
+ IntervalSelection: {
246
+ year: 'year',
247
+ quarter: 'quarter',
248
+ auxiliary: 'auxiliary word for ordinal numbers',
249
+ week: 'week'
250
+ },
238
251
  ...enLocale
239
252
  }
240
253
  export default en
package/src/permission.js CHANGED
@@ -4,7 +4,7 @@ import { getToken, setToken } from './utils/auth' // 验权
4
4
  import store from './store'
5
5
  import router, { errorRouterMap } from './router'
6
6
  NProgress.configure({ showSpinner: false })// NProgress Configuration
7
- import { Message } from '@gcommon/gcommon-ui'
7
+ import { Message } from 'element-ui'
8
8
  import Vue from 'vue'
9
9
 
10
10
  const whiteList = ['/login', '/update-password', '/forget-password', '/reset-password', '/redirect'] // 不重定向白名单
@@ -31,7 +31,7 @@ router.beforeEach((to, from, next) => {
31
31
  }
32
32
  if (to.query && to.query._systemName_) {
33
33
  // 表示需要设置浏览器页签名
34
- document.title = to.query._systemName_
34
+ window.top.document.title = to.query._systemName_
35
35
  }
36
36
  // console.log('router.beforeEach-getToken()=', token)
37
37
  if ((['/update-password', '/forget-password', '/reset-password', '/redirect'].indexOf(to.path) === -1 || store.getters.whiteList.indexOf(to.path) !== -1) && token) {
package/src/plugins.js CHANGED
@@ -3,9 +3,9 @@ import Vue from 'vue'
3
3
  import 'normalize.css/normalize.css' // A modern alternative to CSS resets
4
4
  import './styles/index.scss' // global css
5
5
 
6
- import ElementUI from '@gcommon/gcommon-ui'
7
- import '@gcommon/gcommon-ui/lib/theme-chalk/index.css'
8
- import locale from '@gcommon/gcommon-ui/lib/locale/lang/zh-CN' // lang i18n
6
+ import ElementUI from 'element-ui'
7
+ import 'element-ui/lib/theme-chalk/index.css'
8
+ import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
9
9
 
10
10
  import SuperUI from 'imatrix-ui'
11
11
  import 'imatrix-ui/lib/super-ui.css'
@@ -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: {
@@ -42,12 +42,42 @@ const user = {
42
42
  })
43
43
  })
44
44
  },
45
+ // 登录
46
+ loginWithValidateCode({ commit }, userInfo) {
47
+ const username = userInfo.username.trim()
48
+ return new Promise((resolve, reject) => {
49
+ ssoService.loginWithValidateCode(username, userInfo.password, userInfo.language, userInfo.validCode, userInfo.imageCodeKey).then(data => {
50
+ // const data = response.data
51
+ setToken(data.jwt)
52
+ commit('setToken', data.jwt)
53
+ return ssoService.getCurrentUserPermissionsBySystem(data.subject)
54
+ }).then(permissions => {
55
+ let currentPermissions = ['index']
56
+ currentPermissions = currentPermissions.concat(permissions)
57
+ setPermissions(currentPermissions)
58
+ resolve()
59
+ }).catch(error => {
60
+ reject(error)
61
+ })
62
+ })
63
+ },
45
64
  // 登录。根据token登录系统
46
65
  loginWithCookieToken({ commit }, loginName) {
47
66
  return new Promise((resolve, reject) => {
67
+ if (!loginName) {
68
+ ssoService.getCurrentUser().then(user => {
69
+ if (user) {
70
+ loginName = user.loginName
71
+ setUsername(user.loginName)
72
+ setCurrentUser(user)
73
+ commit('setName', user.name)
74
+ }
75
+ resolve(user)
76
+ }).catch(error => {
77
+ reject(error)
78
+ })
79
+ }
48
80
  if (loginName) {
49
- // setToken(tokenInfo.jwt)
50
- // commit('setToken', tokenInfo.jwt)
51
81
  ssoService.getCurrentUserPermissionsBySystem(loginName).then(permissions => {
52
82
  let currentPermissions = ['index']
53
83
  currentPermissions = currentPermissions.concat(permissions)
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .three-column-layout {
18
- height: calc(100vh - 20px);
18
+ height: calc(100vh - 35px);
19
19
 
20
20
  .el-aside {
21
21
  margin-right: 20px;
@@ -9,8 +9,8 @@
9
9
  @import './theme/blue2/sidebar.scss';
10
10
  @import './theme/gray/index.scss';
11
11
  @import './theme/gray/sidebar.scss';
12
- // @import './theme/dark-blue/index.scss';
13
- // @import './theme/dark-blue/sidebar.scss';
12
+ @import './theme/dark-blue/index.scss';
13
+ @import './theme/dark-blue/sidebar.scss';
14
14
  @import './display-layout.scss';
15
15
 
16
16
  body {
@@ -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
+ }