imatrix-ui 2.9.38-dw → 2.9.39-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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imatrix-ui",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.39-dw",
|
|
4
4
|
"description": "前端组件库:表格、表单、组织结构树等",
|
|
5
5
|
"main": "lib/super-ui.umd.min.js",
|
|
6
6
|
"private": false,
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"element-ui": "2.15.3",
|
|
35
35
|
"eslint": "5.16.0",
|
|
36
36
|
"eslint-plugin-vue": "5.2.2",
|
|
37
|
-
"node-sass": "4.12.0",
|
|
38
37
|
"nprogress": "^0.2.0",
|
|
39
|
-
"sass
|
|
38
|
+
"sass": "^1.49.8",
|
|
39
|
+
"sass-loader": "^10.0.2",
|
|
40
40
|
"sessionstorage": "^0.1.0",
|
|
41
41
|
"vue": "^2.6.10",
|
|
42
42
|
"vue-cli-plugin-element": "^1.0.1",
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
},
|
|
113
113
|
toolbar: {
|
|
114
114
|
type: [String, Array],
|
|
115
|
-
default: ' undo redo | formatselect fontsizeselect bold italic strikethrough underline hr forecolor backcolor | image | ' +
|
|
115
|
+
default: ' undo redo | formatselect fontsizeselect bold italic strikethrough underline hr forecolor backcolor| link | image | ' +
|
|
116
116
|
' lineheight bullist numlist table | print fullscreen preview '
|
|
117
117
|
}
|
|
118
118
|
},
|
package/src/i18n/langs/cn.js
CHANGED
|
@@ -72,10 +72,12 @@ const cn = {
|
|
|
72
72
|
fileUpload: '文件上传',
|
|
73
73
|
selectYear: '选择年',
|
|
74
74
|
search: '查询',
|
|
75
|
-
forbiddenException: '
|
|
75
|
+
forbiddenException: '您没有权限访问',
|
|
76
76
|
theButtonIsNotBoundToAResource: '该按钮未绑定资源,请先绑定资源',
|
|
77
77
|
asyncExport: '正在异步导出,请等待消息通知!',
|
|
78
|
-
selectedWorkingGroup: '已选工作组'
|
|
78
|
+
selectedWorkingGroup: '已选工作组',
|
|
79
|
+
forbiddenExceptionLinkUrl: '请点击进行权限申请',
|
|
80
|
+
forbiddenExceptionLinkUser: '如有疑问请联系'
|
|
79
81
|
},
|
|
80
82
|
// 列表组件
|
|
81
83
|
superGrid: {
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -72,10 +72,12 @@ const en = {
|
|
|
72
72
|
fileUpload: 'File Upload',
|
|
73
73
|
selectYear: 'Select Year',
|
|
74
74
|
search: 'Search',
|
|
75
|
-
forbiddenException: 'You do not have permission to access
|
|
75
|
+
forbiddenException: 'You do not have permission to access',
|
|
76
76
|
theButtonIsNotBoundToAResource: 'The button is not bound to a resource, Bind the resource first',
|
|
77
77
|
asyncExport: 'Asynchronous export, please wait for message notification!',
|
|
78
|
-
selectedWorkingGroup: 'Selected working group'
|
|
78
|
+
selectedWorkingGroup: 'Selected working group',
|
|
79
|
+
forbiddenExceptionLinkUrl: 'please click to apply',
|
|
80
|
+
forbiddenExceptionLinkUser: 'if you have any questions,please contact'
|
|
79
81
|
},
|
|
80
82
|
superGrid: {
|
|
81
83
|
columnConfig: 'Column Config',
|
package/src/utils/request.js
CHANGED
|
@@ -83,15 +83,37 @@ service.interceptors.response.use(
|
|
|
83
83
|
}
|
|
84
84
|
} else if (error.response.status === 403) {
|
|
85
85
|
// ForbiddenException(403) 403没权限
|
|
86
|
-
|
|
86
|
+
// 您没有权限访问
|
|
87
|
+
const message = getI18n().t('imatrixUIMessage.forbiddenException')
|
|
87
88
|
let vnode
|
|
88
89
|
if (Vue.prototype.forbiddenUser || Vue.prototype.forbiddenLinkUrl) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
vnode = '<p><span>' + message + '</span>'
|
|
91
|
+
// 请点击进行权限申请
|
|
92
|
+
const forbiddenExceptionLinkUrlMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUrl')
|
|
92
93
|
if (Vue.prototype.forbiddenLinkUrl) {
|
|
93
|
-
vnode
|
|
94
|
+
vnode += ',<a href="#" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open(\'' + Vue.prototype.forbiddenLinkUrl + '\')">' + forbiddenExceptionLinkUrlMsg + '</a>'
|
|
95
|
+
}
|
|
96
|
+
if (Vue.prototype.forbiddenUser) {
|
|
97
|
+
// 如有疑问请联系
|
|
98
|
+
const forbiddenExceptionLinkUserMsg = getI18n().t('imatrixUIMessage.forbiddenExceptionLinkUser')
|
|
99
|
+
vnode += '<span>'
|
|
100
|
+
const forbiddenUserHtml = ',' + forbiddenExceptionLinkUserMsg + '<span style="color: #1800ff;"> ' + Vue.prototype.forbiddenUser + '</span>'
|
|
101
|
+
let contactUrlHtml
|
|
102
|
+
if (!window._clickForbiddenUser) {
|
|
103
|
+
contactUrlHtml = forbiddenUserHtml
|
|
104
|
+
} else {
|
|
105
|
+
// index.html中添加如下代码,绑定用户点击事件
|
|
106
|
+
// <script>
|
|
107
|
+
// window._clickForbiddenUser=function(linkUser) {
|
|
108
|
+
// alert(linkUser)
|
|
109
|
+
// }
|
|
110
|
+
// </script>
|
|
111
|
+
contactUrlHtml = '<a href="#" onclick="window._clickForbiddenUser(\'' + Vue.prototype.forbiddenUser + '\');return false">' + forbiddenUserHtml + '</a>'
|
|
112
|
+
}
|
|
113
|
+
vnode += '</span>'
|
|
114
|
+
vnode += contactUrlHtml
|
|
94
115
|
}
|
|
116
|
+
vnode += '</p>'
|
|
95
117
|
}
|
|
96
118
|
if (vnode) {
|
|
97
119
|
Message({
|