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,46 +1,47 @@
|
|
|
1
|
-
//globl transition css
|
|
2
|
-
|
|
3
|
-
/*fade*/
|
|
4
|
-
.fade-enter-active,
|
|
5
|
-
.fade-leave-active {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.fade-enter,
|
|
10
|
-
.fade-leave-active {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/*fade-transform*/
|
|
15
|
-
.fade-transform-leave-active,
|
|
16
|
-
.fade-transform-enter-active {
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
.fade-transform-enter {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
.fade-transform-leave-to {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/*fade*/
|
|
29
|
-
.breadcrumb-enter-active,
|
|
30
|
-
.breadcrumb-leave-active {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.breadcrumb-enter,
|
|
35
|
-
.breadcrumb-leave-active {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.breadcrumb-move {
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.breadcrumb-leave-active {
|
|
45
|
-
|
|
46
|
-
}
|
|
1
|
+
//globl transition css
|
|
2
|
+
.blue,.black{
|
|
3
|
+
/*fade*/
|
|
4
|
+
.fade-enter-active,
|
|
5
|
+
.fade-leave-active {
|
|
6
|
+
transition: opacity 0.28s;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.fade-enter,
|
|
10
|
+
.fade-leave-active {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/*fade-transform*/
|
|
15
|
+
.fade-transform-leave-active,
|
|
16
|
+
.fade-transform-enter-active {
|
|
17
|
+
transition: all .5s;
|
|
18
|
+
}
|
|
19
|
+
.fade-transform-enter {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transform: translateX(-30px);
|
|
22
|
+
}
|
|
23
|
+
.fade-transform-leave-to {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transform: translateX(30px);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/*fade*/
|
|
29
|
+
.breadcrumb-enter-active,
|
|
30
|
+
.breadcrumb-leave-active {
|
|
31
|
+
transition: all .5s;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.breadcrumb-enter,
|
|
35
|
+
.breadcrumb-leave-active {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transform: translateX(20px);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.breadcrumb-move {
|
|
41
|
+
transition: all .5s;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.breadcrumb-leave-active {
|
|
45
|
+
position: absolute;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import * as Cookies from 'js-cookie'
|
|
2
|
+
import * as Vue from 'vue'
|
|
3
|
+
|
|
4
|
+
const jwtKey = 'JWT'
|
|
5
|
+
const currentUserNameKey = 'USERNAME'
|
|
6
|
+
const currentUserInfoKey = 'CURRENT_USER'
|
|
7
|
+
const currentSystemUrlKey = 'CURRENT_SYSTEM_URL_'
|
|
8
|
+
|
|
9
|
+
function getToken() {
|
|
10
|
+
let token = getCookieCache(jwtKey)
|
|
11
|
+
const projectModel = window.$vueApp.config.globalProperties.projectModel
|
|
12
|
+
if (!token && projectModel && projectModel === 'developing.model') {
|
|
13
|
+
// 如果是开发环境从window.sessionStorage中获得token
|
|
14
|
+
token = getSessionCache(jwtKey)
|
|
15
|
+
}
|
|
16
|
+
return token
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function setToken(token) {
|
|
20
|
+
setCookieCache(jwtKey, token)
|
|
21
|
+
setSessionCache(jwtKey, token)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function removeToken() {
|
|
25
|
+
removeCookieCache(jwtKey)
|
|
26
|
+
removeSessionCache(jwtKey)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getUsername() {
|
|
30
|
+
let username = getCookieCache(currentUserNameKey)
|
|
31
|
+
if (!username) {
|
|
32
|
+
username = getSessionCache(currentUserNameKey)
|
|
33
|
+
}
|
|
34
|
+
return username
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function setUsername(username) {
|
|
38
|
+
setSessionCache(currentUserNameKey, username)
|
|
39
|
+
setCookieCache(currentUserNameKey, username)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function removeUsername() {
|
|
43
|
+
removeSessionCache(currentUserNameKey)
|
|
44
|
+
removeCookieCache(currentUserNameKey)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function getCurrentUser() {
|
|
48
|
+
let userJson = getCookieCache(currentUserInfoKey)
|
|
49
|
+
if (!userJson) {
|
|
50
|
+
userJson = getSessionCache(currentUserInfoKey)
|
|
51
|
+
}
|
|
52
|
+
if (userJson) {
|
|
53
|
+
return JSON.parse(userJson)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function setCurrentUser(userInfo) {
|
|
58
|
+
if (userInfo) {
|
|
59
|
+
if (userInfo.password) {
|
|
60
|
+
userInfo.password = null
|
|
61
|
+
}
|
|
62
|
+
const userinfoStr = JSON.stringify(userInfo)
|
|
63
|
+
setSessionCache(currentUserInfoKey, userinfoStr)
|
|
64
|
+
setCookieCache(currentUserInfoKey, userinfoStr)
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function removeCurrentUser() {
|
|
69
|
+
removeSessionCache(currentUserInfoKey)
|
|
70
|
+
removeCookieCache(currentUserInfoKey)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function getCookieCache(key) {
|
|
74
|
+
return Cookies.get(key)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function setCookieCache(key, value) {
|
|
78
|
+
Cookies.set(key, value, {
|
|
79
|
+
path: '/',
|
|
80
|
+
})
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function removeCookieCache(key) {
|
|
84
|
+
Cookies.remove(key, {
|
|
85
|
+
path: '/',
|
|
86
|
+
})
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function getSessionCache(key) {
|
|
90
|
+
return window.sessionStorage.getItem(key)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function setSessionCache(key, value) {
|
|
94
|
+
return window.sessionStorage.setItem(key, value)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function removeSessionCache(key) {
|
|
98
|
+
window.sessionStorage.removeItem(key)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function getSystemCacheUrlByCode(systemCode) {
|
|
102
|
+
if (!systemCode) {
|
|
103
|
+
systemCode = window.$vueApp.config.globalProperties.customSystem
|
|
104
|
+
}
|
|
105
|
+
if (!systemCode) {
|
|
106
|
+
systemCode = window.$vueApp.config.globalProperties.systemCode
|
|
107
|
+
}
|
|
108
|
+
if (systemCode) {
|
|
109
|
+
const systemUrls = getSystemCacheUrl()
|
|
110
|
+
if (systemUrls) {
|
|
111
|
+
return systemUrls[systemCode]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function getSystemCacheUrl() {
|
|
117
|
+
let systemUrlJson = getCookieCache(currentSystemUrlKey)
|
|
118
|
+
if (!systemUrlJson) {
|
|
119
|
+
systemUrlJson = getSessionCache(currentSystemUrlKey)
|
|
120
|
+
}
|
|
121
|
+
if (systemUrlJson) {
|
|
122
|
+
return JSON.parse(systemUrlJson)
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function setSystemCacheUrl(systemUrlObj) {
|
|
127
|
+
if (systemUrlObj) {
|
|
128
|
+
const systemUrlStr = JSON.stringify(systemUrlObj)
|
|
129
|
+
setSessionCache(currentSystemUrlKey, systemUrlStr)
|
|
130
|
+
setCookieCache(currentSystemUrlKey, systemUrlStr)
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function removeSystemCacheUrl() {
|
|
135
|
+
removeSessionCache(currentSystemUrlKey)
|
|
136
|
+
removeCookieCache(currentSystemUrlKey)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export default {
|
|
140
|
+
getToken,
|
|
141
|
+
setToken,
|
|
142
|
+
removeToken,
|
|
143
|
+
getUsername,
|
|
144
|
+
setUsername,
|
|
145
|
+
removeUsername,
|
|
146
|
+
getCurrentUser,
|
|
147
|
+
setCurrentUser,
|
|
148
|
+
removeCurrentUser,
|
|
149
|
+
getCookieCache,
|
|
150
|
+
setCookieCache,
|
|
151
|
+
removeCookieCache,
|
|
152
|
+
getSessionCache,
|
|
153
|
+
setSessionCache,
|
|
154
|
+
removeSessionCache,
|
|
155
|
+
getSystemCacheUrlByCode,
|
|
156
|
+
getSystemCacheUrl,
|
|
157
|
+
setSystemCacheUrl,
|
|
158
|
+
removeSystemCacheUrl,
|
|
159
|
+
}
|
package/src/utils/auth.js
CHANGED
|
@@ -1,15 +1,61 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import authApi from './auth-api'
|
|
2
|
+
|
|
3
|
+
export function getToken() {
|
|
4
|
+
return authApi.getToken()
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function setToken(token) {
|
|
8
|
+
authApi.setToken(token)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function removeToken() {
|
|
12
|
+
authApi.removeToken()
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function getUsername() {
|
|
16
|
+
return authApi.getUsername()
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function setUsername(username) {
|
|
20
|
+
authApi.setUsername(username)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function removeUsername() {
|
|
24
|
+
authApi.removeUsername()
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function getCurrentUser() {
|
|
28
|
+
return authApi.getCurrentUser()
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function setCurrentUser(userInfo) {
|
|
32
|
+
authApi.setCurrentUser(userInfo)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function removeCurrentUser() {
|
|
36
|
+
authApi.removeCurrentUser()
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function getCookieCache(key) {
|
|
40
|
+
return authApi.getCookieCache(key)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function setCookieCache(key, value) {
|
|
44
|
+
authApi.setCookieCache(key, value)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function removeCookieCache(key) {
|
|
48
|
+
authApi.removeCookieCache(key)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function getSessionCache(key) {
|
|
52
|
+
return authApi.getSessionCache(key)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function setSessionCache(key, value) {
|
|
56
|
+
return authApi.setSessionCache(key, value)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function removeSessionCache(key) {
|
|
60
|
+
authApi.removeSessionCache(key)
|
|
61
|
+
}
|