imatrix-ui 2.7.43 → 2.7.46
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/lib/super-ui.css +1 -1
- package/lib/super-ui.umd.min.js +5 -5
- package/package.json +1 -1
- package/src/i18n/langs/cn.js +4 -2
- package/src/i18n/langs/en.js +4 -2
- package/src/utils/common-util.js +16 -0
- package/src/utils/request.js +16 -6
- package/src/utils/util.js +1 -1
package/package.json
CHANGED
package/src/i18n/langs/cn.js
CHANGED
|
@@ -100,8 +100,10 @@ const cn = {
|
|
|
100
100
|
unExport: '不导出',
|
|
101
101
|
whetherToConfirmReset: '是否确认重置?',
|
|
102
102
|
resetSuccessful: '重置成功',
|
|
103
|
-
|
|
104
|
-
selectAll: '全选'
|
|
103
|
+
dragColumnOrderMessage: '支持拖动改变列顺序',
|
|
104
|
+
selectAll: '全选',
|
|
105
|
+
viewImage: '查看图片',
|
|
106
|
+
previewTitleWhenNotImg: '非图片格式,使用其它方式预览'
|
|
105
107
|
},
|
|
106
108
|
// 部门树组件
|
|
107
109
|
departmentTree: {
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -99,8 +99,10 @@ const en = {
|
|
|
99
99
|
unExport: 'Not Export',
|
|
100
100
|
whetherToConfirmReset: 'Are you sure you want to reset?',
|
|
101
101
|
resetSuccessful: 'Reset successfully',
|
|
102
|
-
|
|
103
|
-
selectAll: 'Select All'
|
|
102
|
+
dragColumnOrderMessage: 'Supports dragging to change column order',
|
|
103
|
+
selectAll: 'Select All',
|
|
104
|
+
viewImage: 'View Image',
|
|
105
|
+
previewTitleWhenNotImg: 'Non picture format, preview in other ways'
|
|
104
106
|
},
|
|
105
107
|
departmentTree: {
|
|
106
108
|
|
package/src/utils/common-util.js
CHANGED
|
@@ -159,3 +159,19 @@ export function getSystemBackendUrl(backendUrl) {
|
|
|
159
159
|
return getRelativeBaseUrl(backendUrl)
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* 是否是平台系统
|
|
164
|
+
* @param {*} systemCode
|
|
165
|
+
* @returns
|
|
166
|
+
*/
|
|
167
|
+
export function isPlateSys(systemCode) {
|
|
168
|
+
if (systemCode && (systemCode === 'iMatrix' || systemCode === 'portal' ||
|
|
169
|
+
systemCode === 'mms' || systemCode === 'task' ||
|
|
170
|
+
systemCode === 'wf' || systemCode === 'dc' ||
|
|
171
|
+
systemCode === 'mc' || systemCode === 'mobile' ||
|
|
172
|
+
systemCode === 'acs' || systemCode === 'bs')) {
|
|
173
|
+
return true
|
|
174
|
+
} else {
|
|
175
|
+
return false
|
|
176
|
+
}
|
|
177
|
+
}
|
package/src/utils/request.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import axios from 'axios'
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
Message
|
|
4
|
+
} from 'element-ui'
|
|
5
|
+
import {
|
|
6
|
+
getToken,
|
|
7
|
+
removeToken
|
|
8
|
+
} from './auth'
|
|
4
9
|
import store from '../store'
|
|
5
10
|
import checkPermission from './permission'
|
|
6
11
|
import Vue from 'vue'
|
|
7
|
-
import {
|
|
8
|
-
|
|
12
|
+
import {
|
|
13
|
+
getI18n
|
|
14
|
+
} from './util'
|
|
15
|
+
import {
|
|
16
|
+
getRelativeBaseUrl,
|
|
17
|
+
getLoginUrl
|
|
18
|
+
} from './common-util'
|
|
9
19
|
// 创建axios实例
|
|
10
20
|
const service = axios.create({
|
|
11
21
|
// baseURL: process.env.VUE_APP_BASE_API, // api 的 base_url
|
|
@@ -69,8 +79,8 @@ service.interceptors.response.use(
|
|
|
69
79
|
window.location.href = loginUrl
|
|
70
80
|
})
|
|
71
81
|
}
|
|
72
|
-
} else if (error.response.status === 400 || error.response.status === 406 || error.response.status === 404) {
|
|
73
|
-
// BadRequestException(400) || BusinessException(406) || ResourceNotFoundException(404)
|
|
82
|
+
} else if (error.response.status === 400 || error.response.status === 406 || error.response.status === 404 || error.response.status === 403) {
|
|
83
|
+
// BadRequestException(400) || BusinessException(406) || ResourceNotFoundException(404) || ForbiddenException(403)
|
|
74
84
|
let message = error.message
|
|
75
85
|
if (message) {
|
|
76
86
|
// 说明是原生的错误,不要显示,显示“请联系管理员”
|
package/src/utils/util.js
CHANGED
|
@@ -183,7 +183,7 @@ function parseCondition(entity, conditionList, isSql, tableName, additionalParam
|
|
|
183
183
|
} else {
|
|
184
184
|
leftValue = getValue(entity, propName, isSql)
|
|
185
185
|
}
|
|
186
|
-
if (leftValue === undefined || leftValue === null) {
|
|
186
|
+
if (propDbName && (leftValue === undefined || leftValue === null)) {
|
|
187
187
|
leftValue = getValue(entity, propDbName, isSql)
|
|
188
188
|
}
|
|
189
189
|
}
|