imatrix-ui 2.9.60-dw → 2.9.62-dw
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/package.json
CHANGED
|
@@ -403,6 +403,12 @@ export default {
|
|
|
403
403
|
this.cellWidth = newValue
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
+
},
|
|
407
|
+
'column.editable': {
|
|
408
|
+
handler(newValue, oldValue) {
|
|
409
|
+
// console.log('column.editable-----newValue=', newValue, 'column.prop=', this.column.prop)
|
|
410
|
+
this.isEditable = newValue
|
|
411
|
+
}
|
|
406
412
|
}
|
|
407
413
|
},
|
|
408
414
|
created() {
|
package/src/utils/auth-api.js
CHANGED
|
@@ -8,7 +8,6 @@ const versionEnv = 'VERSION_ENVIRONMENT'
|
|
|
8
8
|
const userVersion = 'CURRENT_USER_SYSTEM_VERSION'
|
|
9
9
|
const langKey = 'CURRENT_LANGUAGE'
|
|
10
10
|
const allLangKey = 'AMB_LANG_INFO'
|
|
11
|
-
const currentSystemUrlKey = 'CURRENT_SYSTEM_URL_'
|
|
12
11
|
|
|
13
12
|
function getToken() {
|
|
14
13
|
let token = getCookieCache(jwtKey)
|
|
@@ -171,39 +170,6 @@ function removeLocalStorageCache(key) {
|
|
|
171
170
|
localStorage.removeItem(key)
|
|
172
171
|
}
|
|
173
172
|
|
|
174
|
-
function getSystemCacheUrlByCode(systemCode) {
|
|
175
|
-
if (!systemCode) {
|
|
176
|
-
systemCode = Vue.prototype.customSystem
|
|
177
|
-
}
|
|
178
|
-
if (!systemCode) {
|
|
179
|
-
systemCode = Vue.prototype.systemCode
|
|
180
|
-
}
|
|
181
|
-
if (systemCode) {
|
|
182
|
-
const systemUrls = getSystemCacheUrl()
|
|
183
|
-
if (systemUrls) {
|
|
184
|
-
return systemUrls[systemCode]
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
function getSystemCacheUrl() {
|
|
190
|
-
const systemUrlJson = getLocalStorageCache(currentSystemUrlKey)
|
|
191
|
-
if (systemUrlJson) {
|
|
192
|
-
return JSON.parse(systemUrlJson)
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
function setSystemCacheUrl(systemUrlObj) {
|
|
197
|
-
if (systemUrlObj) {
|
|
198
|
-
const systemUrlStr = JSON.stringify(systemUrlObj)
|
|
199
|
-
setLocalStorageCache(currentSystemUrlKey, systemUrlStr)
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
function removeSystemCacheUrl() {
|
|
204
|
-
removeLocalStorageCache(currentSystemUrlKey)
|
|
205
|
-
}
|
|
206
|
-
|
|
207
173
|
export default {
|
|
208
174
|
getToken,
|
|
209
175
|
setToken,
|
|
@@ -229,9 +195,5 @@ export default {
|
|
|
229
195
|
removeAllLanguages,
|
|
230
196
|
getLocalStorageCache,
|
|
231
197
|
setLocalStorageCache,
|
|
232
|
-
removeLocalStorageCache
|
|
233
|
-
getSystemCacheUrlByCode,
|
|
234
|
-
getSystemCacheUrl,
|
|
235
|
-
setSystemCacheUrl,
|
|
236
|
-
removeSystemCacheUrl
|
|
198
|
+
removeLocalStorageCache
|
|
237
199
|
}
|
package/src/utils/common-util.js
CHANGED
|
@@ -104,22 +104,43 @@ export function getLoginUrl() {
|
|
|
104
104
|
let systemPath = href
|
|
105
105
|
let routerPath = ''
|
|
106
106
|
let param = ''
|
|
107
|
+
console.log('getLoginUrl---href=', href)
|
|
107
108
|
if (href.indexOf('#/') > 0 && href.indexOf('#/login') < 0) {
|
|
108
109
|
systemPath = href.substring(0, href.indexOf('#'))
|
|
109
110
|
const suffix = href.substring(href.indexOf('#') + 1)
|
|
111
|
+
console.log('getLoginUrl---suffix=', suffix)
|
|
110
112
|
routerPath = suffix
|
|
111
113
|
if (suffix.indexOf('?') > 0) {
|
|
112
114
|
// 如果包含参数,则需要截取参数
|
|
113
115
|
routerPath = suffix.substring(0, suffix.indexOf('?'))
|
|
114
116
|
param = suffix.substring(suffix.indexOf('?') + 1)
|
|
115
117
|
}
|
|
118
|
+
} else {
|
|
119
|
+
systemPath = null
|
|
116
120
|
}
|
|
121
|
+
console.log('getLoginUrl---param=', param)
|
|
117
122
|
getPortalFrontendUrl().then(portalUrl => {
|
|
118
|
-
let loginUrl = portalUrl + '#/login
|
|
123
|
+
let loginUrl = portalUrl + '#/login'
|
|
124
|
+
if (systemPath) {
|
|
125
|
+
loginUrl = loginUrl + '?systemPath=' + systemPath
|
|
126
|
+
}
|
|
127
|
+
if (routerPath) {
|
|
128
|
+
if (loginUrl.indexOf('?') > 0) {
|
|
129
|
+
loginUrl = loginUrl + '&routerPath=' + routerPath
|
|
130
|
+
} else {
|
|
131
|
+
loginUrl = loginUrl + '?routerPath=' + routerPath
|
|
132
|
+
}
|
|
133
|
+
}
|
|
119
134
|
if (param) {
|
|
120
|
-
loginUrl
|
|
135
|
+
if (loginUrl.indexOf('?') > 0) {
|
|
136
|
+
loginUrl = loginUrl + '&' + param
|
|
137
|
+
} else {
|
|
138
|
+
loginUrl = loginUrl + '?' + param
|
|
139
|
+
}
|
|
121
140
|
}
|
|
141
|
+
console.log('getLoginUrl---loginUrl11=', loginUrl)
|
|
122
142
|
loginUrl = replacePrefix(loginUrl)
|
|
143
|
+
console.log('getLoginUrl---loginUr222=', loginUrl)
|
|
123
144
|
resolve(loginUrl)
|
|
124
145
|
}).catch(error => {
|
|
125
146
|
reject(error)
|
|
@@ -335,14 +356,3 @@ export function cacheCurrentLanguageUtil(http) {
|
|
|
335
356
|
}
|
|
336
357
|
})
|
|
337
358
|
}
|
|
338
|
-
|
|
339
|
-
// 刷新浏览器页面
|
|
340
|
-
export function refreshLocationHref(url, locationObj) {
|
|
341
|
-
if (!locationObj) {
|
|
342
|
-
locationObj = window.location
|
|
343
|
-
}
|
|
344
|
-
if (!url) {
|
|
345
|
-
return
|
|
346
|
-
}
|
|
347
|
-
locationObj.href = url
|
|
348
|
-
}
|