imatrix-ui 0.0.15 → 0.1.1-up
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.
- package/.vscode/extensions.json +3 -0
- package/README.md +7 -0
- package/components/dynamic-source-select/dynamic-source-select-service.js +106 -0
- package/components/dynamic-source-select/dynamic-source-select.vue +673 -0
- package/components/dynamic-source-select/events.js +77 -0
- package/components/fs-preview/fs-preview.vue +287 -0
- package/components/index.js +26 -0
- package/components/plugins/export-data-new.js +623 -0
- package/components/plugins/export-data.js +431 -0
- package/components/plugins/index.js +15 -0
- package/components/plugins/public-method.js +47 -0
- package/components/rich-editor/index-bak.vue +306 -0
- package/components/rich-editor/index.vue +236 -0
- package/components/rich-editor/langs/zh-Hans.js +438 -0
- package/components/rich-editor/viewer.vue +105 -0
- package/components/super-grid/apis.js +1065 -0
- package/components/super-grid/columns-config.vue +430 -0
- package/components/super-grid/custom-formatter.js +330 -0
- package/components/super-grid/dynamic-input.vue +1706 -0
- package/components/super-grid/eventBus.js +2 -0
- package/components/super-grid/events.js +56 -0
- package/components/super-grid/formValidatorUtil.js +300 -0
- package/components/super-grid/formatter.js +190 -0
- package/components/super-grid/group-column.vue +100 -0
- package/components/super-grid/header-context-menu.vue +82 -0
- package/components/super-grid/index-column.vue +69 -0
- package/components/super-grid/normal-column.vue +1148 -0
- package/components/super-grid/public-methods.js +30 -0
- package/components/super-grid/row-operation.vue +193 -0
- package/components/super-grid/search-button.vue +74 -0
- package/components/super-grid/search-condition-input.vue +73 -0
- package/components/super-grid/search-condition-list.vue +68 -0
- package/components/super-grid/search-form-advancedQuery.vue +820 -0
- package/components/super-grid/search-form-dialog.vue +77 -0
- package/components/super-grid/search-form-item.vue +470 -0
- package/components/super-grid/search-form-number.vue +111 -0
- package/components/super-grid/search-form-open.vue +178 -0
- package/components/super-grid/search-form-ordinarySearch.vue +218 -0
- package/components/super-grid/search-form.vue +756 -0
- package/components/super-grid/search-methods.js +484 -0
- package/components/super-grid/selection-column.vue +46 -0
- package/components/super-grid/store.js +3 -0
- package/components/super-grid/super-grid-service.js +682 -0
- package/components/super-grid/super-grid.vue +2893 -0
- package/components/super-grid/utils.js +851 -0
- package/components/super-grid/view-image-dialog.vue +173 -0
- package/components/utils/gogocodeTransfer.js +59 -0
- package/components/utils/utils.js +180 -0
- package/components/utils/value-set.js +98 -0
- package/components/z-test-utton/index.vue +82 -0
- package/package.json +29 -40
- package/public/index.html +13 -0
- package/public/vite.svg +1 -0
- package/src/api/sso-service.js +172 -19
- package/src/api/tab.js +36 -0
- package/src/api/user-service.js +11 -11
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/cloud.png +0 -0
- package/src/directives/permission/index.js +13 -13
- package/src/directives/permission/permission.js +20 -15
- package/src/i18n/i18n.js +16 -0
- package/src/i18n/langs/cn.js +254 -0
- package/src/i18n/langs/en.js +264 -0
- package/src/permission.js +157 -71
- package/src/plugins.js +18 -18
- package/src/router/index.js +96 -69
- package/src/store/getters.js +15 -10
- package/src/store/index.js +19 -19
- package/src/store/modules/app.js +54 -42
- package/src/store/modules/permission.js +137 -73
- package/src/store/modules/tab-content.js +36 -0
- package/src/store/modules/user.js +293 -80
- package/src/styles/display-layout.scss +34 -0
- package/src/styles/element-ui.scss +29 -29
- package/src/styles/index.scss +157 -78
- package/src/styles/mixin.scss +27 -27
- package/src/styles/theme/black/font-style.scss +70 -0
- package/src/styles/theme/black/index.scss +306 -0
- package/src/styles/theme/black/sidebar.scss +189 -0
- package/src/styles/theme/blue/font-style.scss +46 -0
- package/src/styles/theme/blue/index.scss +172 -0
- package/src/styles/{sidebar.scss → theme/blue/sidebar.scss} +171 -141
- package/src/styles/theme/blue2/font-style.scss +70 -0
- package/src/styles/theme/blue2/index.scss +188 -0
- package/src/styles/theme/blue2/sidebar.scss +201 -0
- package/src/styles/theme/dark-blue/button.scss +9 -0
- package/src/styles/theme/dark-blue/card.scss +62 -0
- package/src/styles/theme/dark-blue/checkbox.scss +10 -0
- package/src/styles/theme/dark-blue/dark-blue-var.scss +8 -0
- package/src/styles/theme/dark-blue/dialog.scss +21 -0
- package/src/styles/theme/dark-blue/element-variables.scss +7 -0
- package/src/styles/theme/dark-blue/font.scss +71 -0
- package/src/styles/theme/dark-blue/form.scss +51 -0
- package/src/styles/theme/dark-blue/index.scss +269 -0
- package/src/styles/theme/dark-blue/input.scss +15 -0
- package/src/styles/theme/dark-blue/message.scss +8 -0
- package/src/styles/theme/dark-blue/pagination.scss +14 -0
- package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
- package/src/styles/theme/dark-blue/sidebar.scss +266 -0
- package/src/styles/theme/dark-blue/tab.scss +83 -0
- package/src/styles/theme/dark-blue/table.scss +60 -0
- package/src/styles/theme/dark-blue/tree.scss +31 -0
- package/src/styles/theme/dark-blue/var.scss +1028 -0
- package/src/styles/theme/gray/card-style.scss +54 -0
- package/src/styles/theme/gray/font-style.scss +70 -0
- package/src/styles/theme/gray/index.scss +172 -0
- package/src/styles/theme/gray/input-style.scss +19 -0
- package/src/styles/theme/gray/scrollbar-style.scss +32 -0
- package/src/styles/theme/gray/sidebar.scss +231 -0
- package/src/styles/theme/gray/tab-style.scss +81 -0
- package/src/styles/transition.scss +47 -46
- package/src/utils/auth-api.js +159 -0
- package/src/utils/auth.js +61 -15
- package/src/utils/calculator/calculator-factory-wf.js +558 -0
- package/src/utils/calculator/calculator-factory.js +145 -0
- package/src/utils/calculator/calculator-util.js +166 -0
- package/src/utils/common-util.js +305 -0
- package/src/utils/eventBus.js +2 -0
- package/src/utils/iconUtils.js +28 -0
- package/src/utils/index.js +102 -86
- package/src/utils/jump-page-utils.js +814 -0
- package/src/utils/local-storage.js +33 -31
- package/src/utils/menu.js +19 -0
- package/src/utils/permission.js +31 -26
- package/src/utils/permissionAuth.js +90 -0
- package/src/utils/range-selector.js +188 -0
- package/src/utils/request.js +270 -116
- package/src/utils/restful-interface-utils.js +57 -0
- package/src/utils/util.js +698 -0
- package/src/utils/validate.js +34 -33
- package/src/utils/watermark.js +108 -0
- package/src/utils/workflow-util.js +93 -0
- package/src/views/404.vue +248 -228
- package/src/views/dsc-component/Sidebar/Item.vue +84 -0
- package/src/views/dsc-component/Sidebar/Link.vue +38 -0
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +196 -0
- package/src/views/dsc-component/Sidebar/index.vue +220 -0
- package/src/views/dsc-component/tabs/tab-content.vue +199 -0
- package/src/views/error-page/401.vue +106 -91
- package/src/views/error-page/404.vue +248 -228
- package/src/views/layout/EmptyLayout.vue +3 -0
- package/src/views/layout/Layout.vue +81 -68
- package/src/views/layout/NewLayout.vue +18 -0
- package/src/views/layout/components/AppMain.vue +39 -29
- package/src/views/layout/components/Breadcrumb/index.vue +156 -0
- package/src/views/layout/components/Menubar/Item.vue +57 -0
- package/src/views/layout/components/Menubar/Link.vue +38 -0
- package/src/views/layout/components/Menubar/SidebarItem.vue +164 -0
- package/src/views/layout/components/Menubar/index.vue +210 -0
- package/src/views/layout/components/Sidebar/Item.vue +53 -29
- package/src/views/layout/components/Sidebar/Link.vue +38 -39
- package/src/views/layout/components/Sidebar/SidebarItem.vue +135 -100
- package/src/views/layout/components/Sidebar/index.vue +141 -48
- package/src/views/layout/components/iframe-page.vue +38 -0
- package/src/views/layout/components/index.js +4 -3
- package/src/views/layout/components/tabs/tab-content.vue +207 -0
- package/src/views/layout/mixin/ResizeHandler.js +41 -41
- package/src/views/layout/tab-content-iframe-index.vue +38 -0
- package/src/views/layout/tab-content-index.vue +93 -0
- package/src/views/login/authredirect.vue +10 -10
- package/src/views/login/index.vue +296 -203
- package/src/views/login/update-password.vue +243 -0
- package/src/views/redirect/index.vue +14 -12
- package/src/views/wf-history/tache-subprocess-history.vue +45 -0
- package/vite.config.js +31 -0
- package/lib/super-ui.css +0 -1
- package/lib/super-ui.umd.min.js +0 -2
- package/src/styles/variables.scss +0 -4
- package/src/views/layout/components/Navbar.vue +0 -92
|
@@ -1,80 +1,293 @@
|
|
|
1
|
-
import ssoService from '../../api/sso-service'
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
import ssoService from '../../api/sso-service'
|
|
2
|
+
import {
|
|
3
|
+
setToken,
|
|
4
|
+
removeToken,
|
|
5
|
+
setUsername,
|
|
6
|
+
getUsername,
|
|
7
|
+
removeUsername,
|
|
8
|
+
setCurrentUser,
|
|
9
|
+
removeCurrentUser,
|
|
10
|
+
} from '../../utils/auth'
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
removePermissions,
|
|
14
|
+
getPermissions,
|
|
15
|
+
setPermissions,
|
|
16
|
+
getMenus,
|
|
17
|
+
setMenus,
|
|
18
|
+
removeMenus,
|
|
19
|
+
} from '../../utils/permissionAuth'
|
|
20
|
+
|
|
21
|
+
const user = {
|
|
22
|
+
state: {
|
|
23
|
+
token: '',
|
|
24
|
+
name: '',
|
|
25
|
+
menus: [],
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
mutations: {
|
|
29
|
+
setToken: (state, token) => {
|
|
30
|
+
state.token = token
|
|
31
|
+
},
|
|
32
|
+
setName: (state, name) => {
|
|
33
|
+
state.name = name
|
|
34
|
+
},
|
|
35
|
+
setMenus: (state, menus) => {
|
|
36
|
+
state.menus = menus
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
actions: {
|
|
41
|
+
// 登录
|
|
42
|
+
login({ commit }, userInfo) {
|
|
43
|
+
console.log('%c描述-210610','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px','执行了登录');
|
|
44
|
+
const username = userInfo.username.trim()
|
|
45
|
+
return new Promise((resolve, reject) => {
|
|
46
|
+
ssoService
|
|
47
|
+
.login(username, userInfo.password, userInfo.language)
|
|
48
|
+
.then((data) => {
|
|
49
|
+
// const data = response.data
|
|
50
|
+
setToken(data.jwt)
|
|
51
|
+
commit('setToken', data.jwt)
|
|
52
|
+
return ssoService.getCurrentUserPermissionsBySystem(data.subject)
|
|
53
|
+
})
|
|
54
|
+
.then((permissions) => {
|
|
55
|
+
let currentPermissions = ['index']
|
|
56
|
+
currentPermissions = currentPermissions.concat(permissions)
|
|
57
|
+
setPermissions(currentPermissions)
|
|
58
|
+
resolve()
|
|
59
|
+
})
|
|
60
|
+
.catch((error) => {
|
|
61
|
+
reject(error)
|
|
62
|
+
})
|
|
63
|
+
})
|
|
64
|
+
},
|
|
65
|
+
// 登录
|
|
66
|
+
loginWithValidateCode({ commit }, userInfo) {
|
|
67
|
+
const username = userInfo.username.trim()
|
|
68
|
+
return new Promise((resolve, reject) => {
|
|
69
|
+
ssoService
|
|
70
|
+
.loginWithValidateCode(
|
|
71
|
+
username,
|
|
72
|
+
userInfo.password,
|
|
73
|
+
userInfo.language,
|
|
74
|
+
userInfo.validCode,
|
|
75
|
+
userInfo.imageCodeKey
|
|
76
|
+
)
|
|
77
|
+
.then((data) => {
|
|
78
|
+
// const data = response.data
|
|
79
|
+
setToken(data.jwt)
|
|
80
|
+
commit('setToken', data.jwt)
|
|
81
|
+
return ssoService.getCurrentUserPermissionsBySystem(data.subject)
|
|
82
|
+
})
|
|
83
|
+
.then((permissions) => {
|
|
84
|
+
let currentPermissions = ['index']
|
|
85
|
+
currentPermissions = currentPermissions.concat(permissions)
|
|
86
|
+
setPermissions(currentPermissions)
|
|
87
|
+
resolve()
|
|
88
|
+
})
|
|
89
|
+
.catch((error) => {
|
|
90
|
+
reject(error)
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
// 登录。根据token登录系统
|
|
95
|
+
loginWithCookieToken({ commit }, loginName) {
|
|
96
|
+
return new Promise((resolve, reject) => {
|
|
97
|
+
if (loginName) {
|
|
98
|
+
// setToken(tokenInfo.jwt)
|
|
99
|
+
// commit('setToken', tokenInfo.jwt)
|
|
100
|
+
ssoService
|
|
101
|
+
.getCurrentUserPermissionsBySystem(loginName)
|
|
102
|
+
.then((permissions) => {
|
|
103
|
+
let currentPermissions = ['index']
|
|
104
|
+
currentPermissions = currentPermissions.concat(permissions)
|
|
105
|
+
setPermissions(currentPermissions)
|
|
106
|
+
resolve()
|
|
107
|
+
})
|
|
108
|
+
.catch((error) => {
|
|
109
|
+
reject(error)
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
// 获取用户信息
|
|
116
|
+
getCurrentUser({ commit, state }) {
|
|
117
|
+
return new Promise((resolve, reject) => {
|
|
118
|
+
const storeUserName = getUsername()
|
|
119
|
+
if (
|
|
120
|
+
typeof storeUserName === 'undefined' ||
|
|
121
|
+
storeUserName === '' ||
|
|
122
|
+
storeUserName === null
|
|
123
|
+
) {
|
|
124
|
+
ssoService
|
|
125
|
+
.getCurrentUser()
|
|
126
|
+
.then((user) => {
|
|
127
|
+
if (user) {
|
|
128
|
+
setUsername(user.loginName)
|
|
129
|
+
setCurrentUser(user)
|
|
130
|
+
commit('setName', user.name)
|
|
131
|
+
} else {
|
|
132
|
+
removeUsername()
|
|
133
|
+
removeCurrentUser()
|
|
134
|
+
commit('setName', '')
|
|
135
|
+
}
|
|
136
|
+
// commit('SET_AVATAR', data.avatar)
|
|
137
|
+
resolve(user)
|
|
138
|
+
})
|
|
139
|
+
.catch((error) => {
|
|
140
|
+
reject(error)
|
|
141
|
+
})
|
|
142
|
+
} else {
|
|
143
|
+
commit('setName', storeUserName)
|
|
144
|
+
resolve({ loginName: storeUserName })
|
|
145
|
+
}
|
|
146
|
+
})
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
// 登出
|
|
150
|
+
logout({ commit, state }) {
|
|
151
|
+
return new Promise((resolve, reject) => {
|
|
152
|
+
ssoService
|
|
153
|
+
.logout(state.token)
|
|
154
|
+
.then((data) => {
|
|
155
|
+
commit('setToken', '')
|
|
156
|
+
removeToken()
|
|
157
|
+
|
|
158
|
+
commit('setName', '')
|
|
159
|
+
removeUsername()
|
|
160
|
+
removeCurrentUser()
|
|
161
|
+
|
|
162
|
+
removePermissions()
|
|
163
|
+
|
|
164
|
+
removeMenus()
|
|
165
|
+
|
|
166
|
+
resolve(data)
|
|
167
|
+
})
|
|
168
|
+
.catch((error) => {
|
|
169
|
+
reject(error)
|
|
170
|
+
})
|
|
171
|
+
})
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
// 出现401错误时清空过期的jwt
|
|
175
|
+
clearToken({ commit }) {
|
|
176
|
+
return new Promise((resolve) => {
|
|
177
|
+
commit('setToken', '')
|
|
178
|
+
removeToken()
|
|
179
|
+
|
|
180
|
+
commit('setName', '')
|
|
181
|
+
removeUsername()
|
|
182
|
+
removeCurrentUser()
|
|
183
|
+
|
|
184
|
+
removePermissions()
|
|
185
|
+
|
|
186
|
+
removeMenus()
|
|
187
|
+
|
|
188
|
+
resolve()
|
|
189
|
+
})
|
|
190
|
+
},
|
|
191
|
+
|
|
192
|
+
// 获得当前用户权限集合
|
|
193
|
+
getCurrentUserPermissions({ commit }, loginName, systemCode) {
|
|
194
|
+
return new Promise((resolve, reject) => {
|
|
195
|
+
console.log('%c描述-153104','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px','开始执行');
|
|
196
|
+
// let storePermissions = getPermissions()
|
|
197
|
+
let storePermissions = null
|
|
198
|
+
// 这个判断会导致资源不会重新加载??
|
|
199
|
+
console.log('%c描述-110645','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px获得参数',storePermissions);
|
|
200
|
+
if (
|
|
201
|
+
typeof storePermissions === 'undefined' ||
|
|
202
|
+
storePermissions === '' ||
|
|
203
|
+
storePermissions === null
|
|
204
|
+
) {
|
|
205
|
+
console.log('%c描述-154419','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px','请求');
|
|
206
|
+
ssoService
|
|
207
|
+
.getCurrentUserPermissionsBySystem(loginName, systemCode)
|
|
208
|
+
.then((permissions) => {
|
|
209
|
+
console.log('%c描述-174411','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px',permissions);
|
|
210
|
+
let currentPermissions = ['index']
|
|
211
|
+
currentPermissions = currentPermissions.concat(permissions)
|
|
212
|
+
storePermissions = setPermissions(currentPermissions)
|
|
213
|
+
resolve(storePermissions)
|
|
214
|
+
})
|
|
215
|
+
.catch((error) => {
|
|
216
|
+
console.log('%c描述-113518','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px',error);
|
|
217
|
+
reject(error)
|
|
218
|
+
})
|
|
219
|
+
} else {
|
|
220
|
+
console.log('%c描述-111518','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px',storePermissions);
|
|
221
|
+
resolve(storePermissions)
|
|
222
|
+
}
|
|
223
|
+
})
|
|
224
|
+
},
|
|
225
|
+
|
|
226
|
+
// 判断当前用户密码是否过期
|
|
227
|
+
isPasswordExpired({ commit }, userInfo) {
|
|
228
|
+
const username = userInfo.username.trim()
|
|
229
|
+
return new Promise((resolve, reject) => {
|
|
230
|
+
ssoService
|
|
231
|
+
.isPasswordExpired(username, userInfo.password)
|
|
232
|
+
.then((message) => {
|
|
233
|
+
resolve(message)
|
|
234
|
+
})
|
|
235
|
+
.catch((error) => {
|
|
236
|
+
reject(error)
|
|
237
|
+
})
|
|
238
|
+
})
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
updatePassword({ commit }, map) {
|
|
242
|
+
return new Promise((resolve, reject) => {
|
|
243
|
+
ssoService
|
|
244
|
+
.updatePassword(map, map.userId)
|
|
245
|
+
.then((data) => {
|
|
246
|
+
resolve(data)
|
|
247
|
+
})
|
|
248
|
+
.catch((error) => {
|
|
249
|
+
reject(error)
|
|
250
|
+
})
|
|
251
|
+
})
|
|
252
|
+
},
|
|
253
|
+
// 判断jwt是否超时,防止出现401错误提示信息
|
|
254
|
+
isLoginTimeOut({ commit }) {
|
|
255
|
+
return new Promise((resolve, reject) => {
|
|
256
|
+
ssoService
|
|
257
|
+
.isLoginTimeOut()
|
|
258
|
+
.then((message) => {
|
|
259
|
+
resolve(message)
|
|
260
|
+
})
|
|
261
|
+
.catch((error) => {
|
|
262
|
+
reject(error)
|
|
263
|
+
})
|
|
264
|
+
})
|
|
265
|
+
},
|
|
266
|
+
// 获得有权限的菜单集合
|
|
267
|
+
getPermissionMenus({ commit }, systemCode) {
|
|
268
|
+
return new Promise((resolve, reject) => {
|
|
269
|
+
const storePermissionMenus = getMenus(systemCode)
|
|
270
|
+
if (
|
|
271
|
+
typeof storePermissionMenus === 'undefined' ||
|
|
272
|
+
storePermissionMenus === '' ||
|
|
273
|
+
storePermissionMenus === null
|
|
274
|
+
) {
|
|
275
|
+
ssoService
|
|
276
|
+
.getUserPermissionMenusBySystemCode(systemCode)
|
|
277
|
+
.then((menus) => {
|
|
278
|
+
// commit('setMenus', menus)
|
|
279
|
+
setMenus(menus, systemCode)
|
|
280
|
+
resolve(menus)
|
|
281
|
+
})
|
|
282
|
+
.catch((error) => {
|
|
283
|
+
reject(error)
|
|
284
|
+
})
|
|
285
|
+
} else {
|
|
286
|
+
resolve(storePermissionMenus)
|
|
287
|
+
}
|
|
288
|
+
})
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export default user
|
|
@@ -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
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
//to reset element-ui default css
|
|
2
|
-
.el-upload {
|
|
3
|
-
input[type="file"] {
|
|
4
|
-
display: none !important;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.el-upload__input {
|
|
9
|
-
display: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
|
|
13
|
-
.el-dialog {
|
|
14
|
-
transform: none;
|
|
15
|
-
left: 0;
|
|
16
|
-
position: relative;
|
|
17
|
-
margin: 0 auto;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//element ui upload
|
|
21
|
-
.upload-container {
|
|
22
|
-
.el-upload {
|
|
23
|
-
width: 100%;
|
|
24
|
-
.el-upload-dragger {
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 200px;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
//to reset element-ui default css
|
|
2
|
+
.el-upload {
|
|
3
|
+
input[type="file"] {
|
|
4
|
+
display: none !important;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.el-upload__input {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
|
|
13
|
+
.el-dialog {
|
|
14
|
+
transform: none;
|
|
15
|
+
left: 0;
|
|
16
|
+
position: relative;
|
|
17
|
+
margin: 0 auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//element ui upload
|
|
21
|
+
.upload-container {
|
|
22
|
+
.el-upload {
|
|
23
|
+
width: 100%;
|
|
24
|
+
.el-upload-dragger {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 200px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|