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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imatrix-ui",
3
- "version": "2.8.2-dw",
3
+ "version": "2.8.2-tmp2",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -13,9 +13,11 @@
13
13
  "test:unit": "vue-cli-service test:unit"
14
14
  },
15
15
  "dependencies": {
16
+ "@tinymce/tinymce-vue": "^3.2.4",
16
17
  "@zxing/library": "^0.19.1",
17
18
  "js-cookie": "^2.2.0",
18
- "sortablejs": "1.10.2"
19
+ "sortablejs": "1.10.2",
20
+ "tinymce": "^5.6.1"
19
21
  },
20
22
  "devDependencies": {
21
23
  "@vue/cli-plugin-babel": "3.8.0",
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: '确定',
@@ -40,13 +40,14 @@ const cn = {
40
40
  switchToAdvancedQuery: '切换为高级查询',
41
41
  isNull: '等于Null',
42
42
  isNotNull: '不等于Null',
43
- previewImage: '预览图片'
43
+ previewImage: '预览图片',
44
+ fullScreen: '全屏'
44
45
  },
45
46
  imatrixUIMessage: {
46
47
  whetherToConfirmDeletion: '是否确认删除',
47
48
  tips: '提示',
48
49
  pleaseEnterContent: '请输入内容',
49
- internalServerError: '服务器出错了,请联系管理员',
50
+ internalServerError: '请求失败',
50
51
  pleaseSelectDepartment: '请选择部门',
51
52
  pleaseSelectPersonnel: '请选择人员',
52
53
  pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel: '请先移除所有人员,再选择具体人员',
@@ -71,7 +72,8 @@ const cn = {
71
72
  fileUpload: '文件上传',
72
73
  selectYear: '选择年',
73
74
  search: '查询',
74
- forbiddenException: '您没有权限访问该资源'
75
+ forbiddenException: '您没有权限访问该资源',
76
+ theButtonIsNotBoundToAResource: '该按钮未绑定资源,请先绑定资源'
75
77
  },
76
78
  // 列表组件
77
79
  superGrid: {
@@ -88,6 +90,7 @@ const cn = {
88
90
  isShow: '是否显示',
89
91
  isExportable: '是否导出',
90
92
  recordLine: '第 {row} 行记录',
93
+ pageRecordLine: '第 {pageNum} 页第 {row} 行记录',
91
94
  fileName: '文件名称',
92
95
  deleteSuccessful: '删除成功',
93
96
  index: '序号',
@@ -122,7 +125,9 @@ const cn = {
122
125
  pleaseEnterDepartmentName: '请输入部门名称',
123
126
  name: '部门名称',
124
127
  code: '部门编码',
125
- removeDepartment: '移除部门'
128
+ removeDepartment: '移除部门',
129
+ selectedDept: '已选部门',
130
+ namePath: '名称路径'
126
131
  },
127
132
  // 用户树
128
133
  departmentUserTree: {
@@ -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',
@@ -40,13 +40,14 @@ const en = {
40
40
  switchToAdvancedQuery: 'Switch To Advanced Query',
41
41
  isNull: 'Is Null',
42
42
  isNotNull: 'Is Not Null',
43
- previewImage: 'Preview image'
43
+ previewImage: 'Preview image',
44
+ fullScreen: 'Full Screen'
44
45
  },
45
46
  imatrixUIMessage: {
46
47
  whetherToConfirmDeletion: 'Whether To Confirm Deletion',
47
48
  tips: 'Tips',
48
49
  pleaseEnterContent: 'Please Enter Content',
49
- internalServerError: 'Server error, please contact administrator',
50
+ internalServerError: 'Server error',
50
51
  pleaseSelectDepartment: 'Please Select Department',
51
52
  pleaseSelectPersonnel: 'Please Select Personnel',
52
53
  pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel: 'Please Remove All Personnel Before Selecting Specific Personnel',
@@ -71,7 +72,8 @@ const en = {
71
72
  fileUpload: 'File Upload',
72
73
  selectYear: 'Select Year',
73
74
  search: 'Search',
74
- forbiddenException: 'You do not have permission to access this resource'
75
+ forbiddenException: 'You do not have permission to access this resource',
76
+ theButtonIsNotBoundToAResource: 'The button is not bound to a resource, Bind the resource first'
75
77
  },
76
78
  superGrid: {
77
79
  columnConfig: 'Column Config',
@@ -87,6 +89,7 @@ const en = {
87
89
  isShow: 'Is Show',
88
90
  isExportable: 'Is Exportable',
89
91
  recordLine: 'Record line {row}',
92
+ pageRecordLine: 'Record in row {row} of page {pageNum}',
90
93
  fileName: 'File Name',
91
94
  deleteSuccessful: 'Deleted successfully',
92
95
  index: 'No.',
@@ -119,7 +122,9 @@ const en = {
119
122
  pleaseEnterDepartmentName: 'Please Enter Department Name',
120
123
  name: 'Department Name',
121
124
  code: 'Department Code',
122
- removeDepartment: 'Remove Department'
125
+ removeDepartment: 'Remove Department',
126
+ selectedDept: 'Selected Departments',
127
+ namePath: 'Name Path'
123
128
  },
124
129
  // 用户树
125
130
  departmentUserTree: {
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'] // 不重定向白名单
@@ -29,8 +29,12 @@ router.beforeEach((to, from, next) => {
29
29
  setToken(token)
30
30
  }
31
31
  }
32
+ if (to.query && to.query._systemName_) {
33
+ // 表示需要设置浏览器页签名
34
+ document.title = to.query._systemName_
35
+ }
32
36
  // console.log('router.beforeEach-getToken()=', token)
33
- if (['/update-password', '/forget-password', '/reset-password', '/redirect'].indexOf(to.path) === -1 && token) {
37
+ if ((['/update-password', '/forget-password', '/reset-password', '/redirect'].indexOf(to.path) === -1 || store.getters.whiteList.indexOf(to.path) !== -1) && token) {
34
38
  if (to.path === '/login') {
35
39
  next({ path: '/', query: to.query })
36
40
  NProgress.done() // if current page is dashboard will not trigger afterEach hook, so manually handle it
@@ -84,7 +88,7 @@ router.beforeEach((to, from, next) => {
84
88
  }
85
89
  }
86
90
  } else {
87
- if (whiteList.indexOf(to.path) !== -1) {
91
+ if (whiteList.indexOf(to.path) !== -1 || store.getters.whiteList.indexOf(to.path) !== -1) {
88
92
  next()
89
93
  } else {
90
94
  // 必须使用to.fullPath,fullPath是带有参数的,to.path没有参数,会导致跳转到的页面参数丢失
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'
@@ -79,6 +79,30 @@ export const errorRouterMap = [
79
79
  // 404的映射必须是最后一个
80
80
  { path: '*', redirect: '/404', hidden: true }
81
81
  ]
82
+
83
+ // 解决Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location问题
84
+ const originalPush = Router.prototype.push
85
+ const originReplace = Router.prototype.replace
86
+
87
+ // 第一个参数,告诉原来push方法,你往哪里跳转(传递哪些参数)
88
+ // 第二个参数是成功的回调
89
+ // 第三个参数是失败的回调
90
+ Router.prototype.push = function(location, resolve, reject) {
91
+ // 如果传了 resolve&&reject
92
+ if (resolve && reject) {
93
+ originalPush.call(this, location, resolve, reject)
94
+ } else {
95
+ originalPush.call(this, location, () => {}, () => {})
96
+ }
97
+ }
98
+ Router.prototype.replace = function(location, resolve, reject) {
99
+ if (resolve && reject) {
100
+ originReplace.call(this, location, resolve, reject)
101
+ } else {
102
+ originReplace.call(this, location, () => {}, () => {})
103
+ }
104
+ }
105
+
82
106
  export default new Router({
83
107
  // mode: 'history', //后端支持可开
84
108
  scrollBehavior: () => ({ y: 0 }),
@@ -9,6 +9,7 @@ const getters = {
9
9
  preventReclick: state => state.app.preventReclick,
10
10
  menus: state => state.user.menus,
11
11
  openTab: state => state.tabContent.openTab,
12
- activeIndex: state => state.tabContent.activeIndex
12
+ activeIndex: state => state.tabContent.activeIndex,
13
+ whiteList: state => state.app.whiteList
13
14
  }
14
15
  export default getters
@@ -6,7 +6,8 @@ const app = {
6
6
  withoutAnimation: false
7
7
  },
8
8
  device: 'desktop',
9
- preventReclick: false
9
+ preventReclick: false,
10
+ whiteList: []
10
11
  },
11
12
  mutations: {
12
13
  toggleSidebar: state => {
@@ -28,6 +29,11 @@ const app = {
28
29
  },
29
30
  togglePreventReclick: (state, preventReclick) => {
30
31
  state.preventReclick = preventReclick
32
+ },
33
+ setWhiteList: (state, whiteList) => {
34
+ if (whiteList instanceof Array) {
35
+ state.whiteList = whiteList
36
+ }
31
37
  }
32
38
  },
33
39
  actions: {
@@ -39,6 +45,9 @@ const app = {
39
45
  },
40
46
  toggelDevice({ commit }, device) {
41
47
  commit('toggleDevice', device)
48
+ },
49
+ addWhiteList({ commit }, whiteList) {
50
+ commit('setWhiteList', whiteList)
42
51
  }
43
52
  }
44
53
  }
@@ -86,7 +86,10 @@ const permission = {
86
86
  return new Promise(resolve => {
87
87
  const currentUserPermissions = data
88
88
  // commit('setCurrentUserPermissions', currentUserPermissions)
89
+ const a = new Date().getTime()
89
90
  const accessableRoutersResult = filterProtectedRouter(protectedRouterMap, currentUserPermissions)
91
+ const b = new Date().getTime()
92
+ sessionStorage.setItem('=====generateRoutes====>'+new Date().getTime()+'-执行时间b-a=', (b-a)+'')
90
93
  const accessableRouters = accessableRoutersResult.allRouters
91
94
  const allMenuRoutes = accessableRoutersResult.menuRouters
92
95
  // console.log('有权限的路由表结果==', accessableRouters)
@@ -114,6 +117,8 @@ const permission = {
114
117
  // console.log('更新后的有权限的路由表结果,更新了根路由跳转的地址==', accessableRouters)
115
118
  }
116
119
  }
120
+ const c = new Date().getTime()
121
+ sessionStorage.setItem('=====generateRoutes====>执行时间c-a=', (c-a)+'')
117
122
  commit('setRouters', accessableRouters)
118
123
  resolve()
119
124
  })
@@ -1,7 +1,7 @@
1
1
  import ssoService from '../../api/sso-service'
2
- import { setToken, removeToken, setUsername, getUsername, removeUsername } from '../../utils/auth'
2
+ import { setToken, removeToken, setUsername, getUsername, removeUsername, setCurrentUser, removeCurrentUser } from '../../utils/auth'
3
3
 
4
- import { removePermissions, getPermissions, setPermissions } from '../../utils/permissionAuth'
4
+ import { removePermissions, getPermissions, setPermissions, getMenus, setMenus, removeMenus } from '../../utils/permissionAuth'
5
5
 
6
6
  const user = {
7
7
  state: {
@@ -42,6 +42,23 @@ const user = {
42
42
  })
43
43
  })
44
44
  },
45
+ // 登录。根据token登录系统
46
+ loginWithCookieToken({ commit }, loginName) {
47
+ return new Promise((resolve, reject) => {
48
+ if (loginName) {
49
+ // setToken(tokenInfo.jwt)
50
+ // commit('setToken', tokenInfo.jwt)
51
+ ssoService.getCurrentUserPermissionsBySystem(loginName).then(permissions => {
52
+ let currentPermissions = ['index']
53
+ currentPermissions = currentPermissions.concat(permissions)
54
+ setPermissions(currentPermissions)
55
+ resolve()
56
+ }).catch(error => {
57
+ reject(error)
58
+ })
59
+ }
60
+ })
61
+ },
45
62
 
46
63
  // 获取用户信息
47
64
  getCurrentUser({ commit, state }) {
@@ -51,9 +68,11 @@ const user = {
51
68
  ssoService.getCurrentUser().then(user => {
52
69
  if (user) {
53
70
  setUsername(user.loginName)
71
+ setCurrentUser(user)
54
72
  commit('setName', user.name)
55
73
  } else {
56
74
  removeUsername()
75
+ removeCurrentUser()
57
76
  commit('setName', '')
58
77
  }
59
78
  // commit('SET_AVATAR', data.avatar)
@@ -77,9 +96,12 @@ const user = {
77
96
 
78
97
  commit('setName', '')
79
98
  removeUsername()
99
+ removeCurrentUser()
80
100
 
81
101
  removePermissions()
82
102
 
103
+ removeMenus()
104
+
83
105
  resolve(data)
84
106
  }).catch(error => {
85
107
  reject(error)
@@ -95,9 +117,12 @@ const user = {
95
117
 
96
118
  commit('setName', '')
97
119
  removeUsername()
120
+ removeCurrentUser()
98
121
 
99
122
  removePermissions()
100
123
 
124
+ removeMenus()
125
+
101
126
  resolve()
102
127
  })
103
128
  },
@@ -107,18 +132,18 @@ const user = {
107
132
  return new Promise((resolve, reject) => {
108
133
  let storePermissions = getPermissions()
109
134
  // 这个判断会导致资源不会重新加载??
110
- // if (typeof (storePermissions) === 'undefined' || storePermissions === '' || storePermissions === null) {
111
- ssoService.getCurrentUserPermissionsBySystem(loginName, systemCode).then(permissions => {
112
- let currentPermissions = ['index']
113
- currentPermissions = currentPermissions.concat(permissions)
114
- storePermissions = setPermissions(currentPermissions)
135
+ if (typeof (storePermissions) === 'undefined' || storePermissions === '' || storePermissions === null) {
136
+ ssoService.getCurrentUserPermissionsBySystem(loginName, systemCode).then(permissions => {
137
+ let currentPermissions = ['index']
138
+ currentPermissions = currentPermissions.concat(permissions)
139
+ storePermissions = setPermissions(currentPermissions)
140
+ resolve(storePermissions)
141
+ }).catch(error => {
142
+ reject(error)
143
+ })
144
+ } else {
115
145
  resolve(storePermissions)
116
- }).catch(error => {
117
- reject(error)
118
- })
119
- // } else {
120
- // resolve(storePermissions)
121
- // }
146
+ }
122
147
  })
123
148
  },
124
149
 
@@ -156,12 +181,18 @@ const user = {
156
181
  // 获得有权限的菜单集合
157
182
  getPermissionMenus({ commit }, systemCode) {
158
183
  return new Promise((resolve, reject) => {
159
- ssoService.getUserPermissionMenusBySystemCode(systemCode).then(menus => {
160
- commit('setMenus', menus)
161
- resolve(menus)
162
- }).catch(error => {
163
- reject(error)
164
- })
184
+ const storePermissionMenus = getMenus(systemCode)
185
+ if (typeof (storePermissionMenus) === 'undefined' || storePermissionMenus === '' || storePermissionMenus === null) {
186
+ ssoService.getUserPermissionMenusBySystemCode(systemCode).then(menus => {
187
+ // commit('setMenus', menus)
188
+ setMenus(menus, systemCode)
189
+ resolve(menus)
190
+ }).catch(error => {
191
+ reject(error)
192
+ })
193
+ } else {
194
+ resolve(storePermissionMenus)
195
+ }
165
196
  })
166
197
  }
167
198
 
@@ -0,0 +1,34 @@
1
+ .flex-container {
2
+ display: flex;
3
+ width: 100%;
4
+
5
+ .tree-area {
6
+ flex: 0 0 200px;
7
+ overflow: auto;
8
+ }
9
+
10
+ .list-area {
11
+ flex: 1;
12
+ overflow: auto;
13
+ margin-left: 20px;
14
+ }
15
+ }
16
+
17
+ .three-column-layout {
18
+ height: calc(100vh - 20px);
19
+
20
+ .el-aside {
21
+ margin-right: 20px;
22
+ padding-top: 20px;
23
+ background-color: #FFFFFF;
24
+ box-shadow: 0px 1px 8px 0px #00000019;
25
+
26
+ }
27
+
28
+ .el-main {
29
+ padding: 20px 0 0 20px;
30
+ border-radius: 6px;
31
+ background: #FFFFFF;
32
+ box-shadow: 0px 1px 8px 0px #00000019;
33
+ }
34
+ }
@@ -9,6 +9,9 @@
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';
14
+ @import './display-layout.scss';
12
15
 
13
16
  body {
14
17
  overflow: hidden;
@@ -31,4 +34,54 @@ body .el-table th.gutter {
31
34
 
32
35
  body .el-table colgroup.gutter {
33
36
  display: table-cell !important;
37
+ }
38
+
39
+ // 日期控件宽度不自适应问题
40
+ .formContent .el-date-editor.el-input,
41
+ .formContent .el-date-editor.el-input__input,
42
+ .formContent .el-date-editor.el-input__inner,
43
+ .grid-search-form .el-date-editor.el-input,
44
+ .grid-search-form .el-date-editor.el-input__input,
45
+ .grid-search-form .el-date-editor.el-input__inner {
46
+ width: 100%;
47
+ }
48
+
49
+ .formContent .el-date-editor--daterange.el-input,
50
+ .formContent .el-date-editor--daterange.el-input__inner,
51
+ .formContent .el-date-editor--timerange.el-input,
52
+ .formContent .el-date-editor--timerange.el-input__inner,
53
+ .grid-search-form .el-date-editor--daterange.el-input,
54
+ .grid-search-form .el-date-editor--daterange.el-input__inner,
55
+ .grid-search-form .el-date-editor--timerange.el-input,
56
+ .grid-search-form .el-date-editor--timerange.el-input__inner {
57
+ width: 100%;
58
+ }
59
+
60
+ // 日期选择按钮太小问题(gcommon ui)
61
+ .el-picker-panel__footer .el-button--mini {
62
+ font-size: 16px;
63
+ }
64
+
65
+ // 显示必填标志
66
+ .is_req {
67
+ .required__label::before {
68
+ content: '*';
69
+ color: #f56c6c;
70
+ margin-right: 4px;
71
+ }
72
+ }
73
+
74
+ .formContent .el-form-item {
75
+ margin-bottom: 0;
76
+ }
77
+
78
+ .operation-area-float {
79
+ float: right;
80
+ position: fixed;
81
+ bottom: 5px;
82
+ right: 4%;
83
+ }
84
+
85
+ .el-button+.el-button {
86
+ margin-left: 10px;
34
87
  }
@@ -0,0 +1,9 @@
1
+ @import "./dark-blue-var.scss";
2
+
3
+ .dark-blue {
4
+ .operation-area .el-button--primary {
5
+ border-radius: 4px;
6
+ background: $--button-opt-background-color;
7
+ border-color: $--button-opt-background-color;
8
+ }
9
+ }
@@ -0,0 +1,64 @@
1
+ .dark-blue {
2
+ $titleColor: rgba(0, 0, 0, 0.85);
3
+
4
+ el-card box-card is-always-shadow .card-radius {
5
+ border-radius: 12px
6
+ }
7
+
8
+ .form-card-header {
9
+ width: 3px;
10
+ height: 14px;
11
+ left: 0;
12
+ align-items: center;
13
+ text-align: center;
14
+ }
15
+
16
+ .form-card-header-bgc {
17
+ width: 3px;
18
+ height: 14px;
19
+ display: flex;
20
+ background-color: #3D4CF2
21
+ }
22
+
23
+ .form-card-text {
24
+ padding-left: 8px;
25
+ font-size: 16px;
26
+ line-height: 24px;
27
+ font-weight: 500;
28
+ color: $titleColor;
29
+ display: table-cell;
30
+ position: relative;
31
+ }
32
+
33
+ .superForm {
34
+ .el-card {
35
+ border-radius: 12px;
36
+ box-shadow: 0 1px 4px 0 rgba(0, 13, 31, 0.10);
37
+ }
38
+
39
+
40
+ }
41
+
42
+
43
+ .platform-card {
44
+ .el-card__header {
45
+ height: 40px;
46
+ background: #F0F8FE;
47
+ color: #005EBA;
48
+ font-family: Source Han Sans CN;
49
+ font-weight: medium;
50
+ font-size: 14px;
51
+ text-align: left;
52
+ padding: 9px 0px 9px 20px;
53
+ }
54
+
55
+ .el-card__header>div {
56
+ line-height: 22px;
57
+ }
58
+
59
+ .card-style {
60
+ margin-top: 20px;
61
+ }
62
+ }
63
+
64
+ }
@@ -0,0 +1,10 @@
1
+ @import "./dark-blue-var.scss";
2
+
3
+ .dark-blue {
4
+
5
+ .el-checkbox__input.is-checked .el-checkbox__inner,
6
+ .el-checkbox__input.is-indeterminate .el-checkbox__inner {
7
+ background-color: $--color-primary;
8
+ border-color: $--color-primary;
9
+ }
10
+ }
@@ -0,0 +1,8 @@
1
+ /* 改变主题色变量 */
2
+ $--color-primary: #005EBA;
3
+ $--button-default-border-color: $--color-primary;
4
+ $--button-default-font-color: $--color-primary;
5
+ $--button-font-weight: regular;
6
+ $--button-default-font-color: $--color-primary;
7
+ $--button-opt-background-color:#0780ED;
8
+ $th-cell-background: #F0F8FE;
@@ -0,0 +1,21 @@
1
+ .dark-blue {
2
+ .el-dialog__header {
3
+ padding: 22px 0px 0px 24px;
4
+ }
5
+
6
+ .el-dialog__title::before {
7
+ content: "";
8
+ text-align: center;
9
+ background: #1A6BF3;
10
+ float: left;
11
+ position: relative;
12
+ border-radius: 3px;
13
+ /** 定义成 block 元素 **/
14
+ display: block;
15
+ height: 21px;
16
+ width: 4px;
17
+ margin-right: 12px;
18
+ }
19
+
20
+
21
+ }
@@ -0,0 +1,7 @@
1
+ @import "./dark-blue-var.scss";
2
+
3
+ .dark-blue {
4
+ /* 改变 icon 字体路径变量,必需 */
5
+ $--font-path: '~element-ui/lib/theme-chalk/fonts';
6
+ @import "~element-ui/packages/theme-chalk/src/index";
7
+ }