agilebuilder-ui 1.1.39 → 1.1.40-sit1
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/{401-10773a45.js → 401-09411643.js} +1 -1
- package/lib/{404-bc7b5bc4.js → 404-78725820.js} +1 -1
- package/lib/{iframe-page-593fe033.js → iframe-page-532b68e3.js} +1 -1
- package/lib/{index-5276895e.js → index-147b8176.js} +9499 -9462
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +64 -64
- package/lib/{tab-content-iframe-index-12a5a7c2.js → tab-content-iframe-index-ca45a6b8.js} +1 -1
- package/lib/{tab-content-index-6901441f.js → tab-content-index-6fe04e7b.js} +1 -1
- package/lib/{tache-subprocess-history-8fd8d5f7.js → tache-subprocess-history-61019029.js} +1 -1
- package/package.json +1 -1
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +3 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +2 -1
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -1
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +3 -1
- package/packages/fs-preview/src/fs-preview.vue +202 -65
- package/packages/fs-upload-list/src/fs-upload-list.vue +67 -192
- package/packages/fs-upload-new/src/fs-button-upload.vue +4 -4
- package/packages/fs-upload-new/src/fs-drag-upload.vue +4 -4
- package/packages/fs-upload-new/src/fs-preview-new.vue +6 -7
- package/packages/fs-upload-new/src/fs-upload-new.vue +13 -13
- package/packages/organization-input/src/organization-input.vue +3 -3
- package/packages/super-grid/src/components/mobile-table-card.jsx +0 -1
- package/packages/super-grid/src/custom-formatter.js +1 -1
- package/packages/super-grid/src/dynamic-input.vue +3 -26
- package/packages/super-grid/src/normal-column-content.vue +25 -18
- package/packages/super-grid/src/row-operation.vue +13 -9
- package/packages/super-grid/src/search-form-item.vue +47 -4
- package/packages/super-grid/src/search-form-mobile.vue +5 -0
- package/packages/super-grid/src/search-form-ordinarySearch.vue +5 -0
- package/packages/super-grid/src/search-methods.js +489 -575
- package/packages/super-grid/src/super-grid.vue +13 -0
- package/packages/utils/organization.ts +56 -40
- package/packages/workflow-history-list/src/workflow-history-list.vue +41 -3
- package/src/directives/permission/permission.js +7 -1
- package/src/i18n/langs/cn.js +10 -3
- package/src/i18n/langs/en.js +10 -3
- package/src/styles/mixin.scss +2 -2
- package/src/styles/table.scss +8 -7
- package/src/styles/theme/dark-blue/scrollbar-style.scss +2 -2
- package/src/styles/theme/gray/scrollbar-style.scss +2 -2
- package/src/styles/theme/green/scrollbar-style.scss +2 -2
- package/src/styles/theme/ocean-blue/scrollbar-style.scss +2 -2
- package/src/styles/theme/tiffany-blue-mobile/scrollbar-style.scss +2 -2
- package/src/utils/file-util.ts +12 -4
- package/src/utils/jump-page-utils.js +1 -0
- package/src/utils/permission.js +2 -2
- package/src/utils/permissionAuth.js +4 -2
- package/src/views/dsc-component/Sidebar/Item.vue +3 -3
- package/src/views/dsc-component/Sidebar/index.vue +0 -2
- package/src/views/layout/components/Menubar/Item.vue +6 -0
- package/src/views/layout/components/Menubar/SidebarItem.vue +37 -17
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
:height="hasTableHeight"
|
|
77
77
|
:class="tableClass"
|
|
78
78
|
:tree-props="getTreeProps(parentProp, isSql, isLazy, dataSourceType)"
|
|
79
|
+
:scrollbar-always-on="scrollbarAlwaysOn"
|
|
79
80
|
class="super-grid-main-table-view"
|
|
80
81
|
@sort-change="handleSortChange"
|
|
81
82
|
@select="selectRecord"
|
|
@@ -599,6 +600,18 @@ export default {
|
|
|
599
600
|
} else {
|
|
600
601
|
return this.gridData
|
|
601
602
|
}
|
|
603
|
+
},
|
|
604
|
+
scrollbarAlwaysOn() {
|
|
605
|
+
// 检查全局 Vue 应用配置中是否有 scrollbarAlwaysOn 属性
|
|
606
|
+
if (window.$vueApp &&
|
|
607
|
+
window.$vueApp.config &&
|
|
608
|
+
window.$vueApp.config.globalProperties &&
|
|
609
|
+
window.$vueApp.config.globalProperties.scrollbarAlwaysOn !== undefined) {
|
|
610
|
+
// 返回全局配置的值
|
|
611
|
+
return window.$vueApp.config.globalProperties.scrollbarAlwaysOn;
|
|
612
|
+
}
|
|
613
|
+
// 默认返回 false
|
|
614
|
+
return false;
|
|
602
615
|
}
|
|
603
616
|
// ,
|
|
604
617
|
// hasLoadMainTable() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// 将选中的部门节点添加到结果集合中
|
|
2
|
-
export function addSelectedUserInfo
|
|
2
|
+
export function addSelectedUserInfo(selectNodeInfo, userData, containBranch) {
|
|
3
3
|
if (selectNodeInfo.userIds.indexOf(userData.id) < 0) {
|
|
4
4
|
// 表示集合中不存在该用户
|
|
5
5
|
selectNodeInfo.userIds.push(userData.id)
|
|
@@ -28,7 +28,7 @@ export function addSelectedUserInfo (selectNodeInfo, userData, containBranch) {
|
|
|
28
28
|
selectNodeInfo.userEnNames.push(userData.enName ? userData.enName : '')
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
export function packageSelectResult
|
|
31
|
+
export function packageSelectResult(user, containBranch) {
|
|
32
32
|
let name = user.name
|
|
33
33
|
if (user.enName && user.enName.trim() !== '') {
|
|
34
34
|
name = name + '(' + user.enName + ')'
|
|
@@ -47,29 +47,42 @@ export function packageSelectResult (user, containBranch) {
|
|
|
47
47
|
containBranch: containBranch,
|
|
48
48
|
user: user,
|
|
49
49
|
enName: user.enName ? user.enName : '',
|
|
50
|
-
subCompanyName: user.subCompanyName
|
|
50
|
+
subCompanyName: user.subCompanyName,
|
|
51
|
+
divisionManager: user.divisionManager,
|
|
52
|
+
divisionManagerName: user.divisionManagerName
|
|
51
53
|
}
|
|
52
54
|
// 表示是勾选单选按钮或 选中树节点
|
|
53
55
|
return selectNodeInfo
|
|
54
56
|
}
|
|
55
57
|
// 根据指定用户信息获得用户集合
|
|
56
|
-
function getSelectUsers
|
|
58
|
+
function getSelectUsers(searchField, selectUserInfo, separator) {
|
|
57
59
|
return new Promise((resolve, reject) => {
|
|
58
60
|
if (!searchField) {
|
|
59
61
|
resolve([])
|
|
60
62
|
} else if (!selectUserInfo) {
|
|
61
63
|
resolve([])
|
|
62
64
|
} else {
|
|
63
|
-
window['$vueApp'].config.globalProperties.$http
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
window['$vueApp'].config.globalProperties.$http
|
|
66
|
+
.get(
|
|
67
|
+
window['$vueApp'].config.globalProperties.baseAPI +
|
|
68
|
+
'/component/organization-trees/select-users-mobile?searchField=' +
|
|
69
|
+
searchField +
|
|
70
|
+
'&selectUserInfo=' +
|
|
71
|
+
selectUserInfo +
|
|
72
|
+
'&separator=' +
|
|
73
|
+
separator
|
|
74
|
+
)
|
|
75
|
+
.then((users) => {
|
|
76
|
+
resolve(users)
|
|
77
|
+
})
|
|
78
|
+
.catch((error) => {
|
|
79
|
+
reject(error)
|
|
80
|
+
})
|
|
68
81
|
}
|
|
69
82
|
})
|
|
70
83
|
}
|
|
71
84
|
// 部门人员树选中了组织结构树的根节点
|
|
72
|
-
function packageAllUser
|
|
85
|
+
function packageAllUser() {
|
|
73
86
|
// 表示集合中不存在该用户,则封装该用户
|
|
74
87
|
const tenantNodeId = -1
|
|
75
88
|
var allUser = {
|
|
@@ -79,7 +92,7 @@ function packageAllUser () {
|
|
|
79
92
|
return allUser
|
|
80
93
|
}
|
|
81
94
|
// 工作组人员树选中了组织结构树的根节点
|
|
82
|
-
function packageAllWgUser
|
|
95
|
+
function packageAllWgUser() {
|
|
83
96
|
// 表示集合中不存在该用户,则封装该用户
|
|
84
97
|
const tenantNodeId = -1
|
|
85
98
|
var allUser = {
|
|
@@ -88,7 +101,7 @@ function packageAllWgUser () {
|
|
|
88
101
|
}
|
|
89
102
|
return allUser
|
|
90
103
|
}
|
|
91
|
-
export function initSelectUsers
|
|
104
|
+
export function initSelectUsers(searchField, selectUserInfo, separator) {
|
|
92
105
|
return new Promise((resolve, reject) => {
|
|
93
106
|
const selectDepts = []
|
|
94
107
|
if (selectUserInfo) {
|
|
@@ -101,11 +114,13 @@ export function initSelectUsers (searchField, selectUserInfo, separator) {
|
|
|
101
114
|
resolve(selectDepts)
|
|
102
115
|
} else {
|
|
103
116
|
// 表示不是选择的所有用户
|
|
104
|
-
getSelectUsers(searchField, selectUserInfo, separator)
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
117
|
+
getSelectUsers(searchField, selectUserInfo, separator)
|
|
118
|
+
.then((users) => {
|
|
119
|
+
resolve(users)
|
|
120
|
+
})
|
|
121
|
+
.catch((error) => {
|
|
122
|
+
reject(error)
|
|
123
|
+
})
|
|
109
124
|
}
|
|
110
125
|
} else {
|
|
111
126
|
resolve(selectDepts)
|
|
@@ -113,9 +128,8 @@ export function initSelectUsers (searchField, selectUserInfo, separator) {
|
|
|
113
128
|
})
|
|
114
129
|
}
|
|
115
130
|
|
|
116
|
-
|
|
117
131
|
// import {getLanguageWithLocale} from '../../../src/utils/util'
|
|
118
|
-
export function resizeScrollTargetHeightUtil
|
|
132
|
+
export function resizeScrollTargetHeightUtil() {
|
|
119
133
|
const pagePadding = 16
|
|
120
134
|
let height = window.innerHeight - pagePadding
|
|
121
135
|
const header = document.querySelector('.el-page-header')
|
|
@@ -129,29 +143,31 @@ export function resizeScrollTargetHeightUtil () {
|
|
|
129
143
|
return height
|
|
130
144
|
}
|
|
131
145
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
146
|
+
export function getUserMainDeptName(user) {
|
|
147
|
+
let deptShowName = ''
|
|
148
|
+
if (user && user.data) {
|
|
149
|
+
const userData = JSON.parse(user.data)
|
|
150
|
+
if (
|
|
151
|
+
userData.mainDepartmentEnName &&
|
|
152
|
+
userData.mainDepartmentEnName !== '' &&
|
|
153
|
+
window['$locale'] &&
|
|
154
|
+
window['$locale'] !== 'cn'
|
|
155
|
+
) {
|
|
156
|
+
deptShowName = userData.mainDepartmentEnName
|
|
157
|
+
} else {
|
|
158
|
+
if (userData.mainDepartmentName && userData.mainDepartmentName !== '') {
|
|
159
|
+
deptShowName = userData.mainDepartmentName
|
|
160
|
+
}
|
|
142
161
|
}
|
|
143
162
|
}
|
|
144
|
-
|
|
145
|
-
return deptShowName
|
|
163
|
+
return deptShowName
|
|
146
164
|
}
|
|
147
165
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
deptShowName
|
|
155
|
-
}
|
|
156
|
-
return deptShowName
|
|
166
|
+
export function getDeptNamePath(dept) {
|
|
167
|
+
let deptShowName = ''
|
|
168
|
+
if (dept && dept.data) {
|
|
169
|
+
const deptData = JSON.parse(dept.data)
|
|
170
|
+
deptShowName = deptData.namePath
|
|
171
|
+
}
|
|
172
|
+
return deptShowName
|
|
157
173
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
row-key="uuid"
|
|
16
16
|
style="width: 100%"
|
|
17
17
|
>
|
|
18
|
-
<el-table-column :label="$t('workflowHistoryList.index')" align="
|
|
18
|
+
<el-table-column :label="$t('workflowHistoryList.index')" align="center" width="80">
|
|
19
19
|
<template v-slot="scope">
|
|
20
20
|
{{ scope.$index + 1 }}
|
|
21
21
|
</template>
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
}}</span>
|
|
36
36
|
</template>
|
|
37
37
|
</el-table-column>
|
|
38
|
-
<el-table-column :label="$t('workflowHistoryList.operator')" align="left" width="
|
|
38
|
+
<el-table-column :label="$t('workflowHistoryList.operator')" align="left" width="120">
|
|
39
39
|
<template v-slot="scope">
|
|
40
40
|
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
41
41
|
<span v-else>{{ scope.row.creatorName }}</span>
|
|
42
42
|
</template>
|
|
43
43
|
</el-table-column>
|
|
44
|
-
<el-table-column :label="$t('workflowHistoryList.operatorLg')" align="left" width="
|
|
44
|
+
<el-table-column :label="$t('workflowHistoryList.operatorLg')" align="left" width="160">
|
|
45
45
|
<template v-slot="scope">
|
|
46
46
|
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
47
47
|
<span v-else>{{ scope.row.creator }}</span>
|
|
@@ -59,6 +59,28 @@
|
|
|
59
59
|
<span v-else>{{ scope.row.formatCreatedTime }}</span>
|
|
60
60
|
</template>
|
|
61
61
|
</el-table-column>
|
|
62
|
+
<el-table-column :label="$t('workflowHistoryList.taskState')" align="left" width="100">
|
|
63
|
+
<template v-slot="scope">
|
|
64
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
65
|
+
<el-tag v-else-if="scope.row.current" type="warning">{{$t('workflowHistoryList.taskStateDoing')}}</el-tag>
|
|
66
|
+
<el-tag v-else type="success">{{$t('workflowHistoryList.taskStateDone')}}</el-tag>
|
|
67
|
+
</template>
|
|
68
|
+
</el-table-column>
|
|
69
|
+
<el-table-column :label="$t('workflowHistoryList.processingDuration')" align="center" width="120">
|
|
70
|
+
<template v-slot="scope">
|
|
71
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
72
|
+
<span v-else-if="!scope.row.copyTask">{{ scope.row.processingDuration }}</span>
|
|
73
|
+
</template>
|
|
74
|
+
</el-table-column>
|
|
75
|
+
<el-table-column :label="$t('workflowHistoryList.isOverdue')" align="center" width="100">
|
|
76
|
+
<template v-slot="scope">
|
|
77
|
+
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
78
|
+
<span v-else>
|
|
79
|
+
<div v-if="scope.row.overdueDuration && scope.row.overdueDuration > 0" class="red-circle"/>
|
|
80
|
+
<div v-else class="green-circle"/>
|
|
81
|
+
</span>
|
|
82
|
+
</template>
|
|
83
|
+
</el-table-column>
|
|
62
84
|
<el-table-column :label="$t('workflowHistoryList.operation')" align="left" width="400">
|
|
63
85
|
<template v-slot="scope">
|
|
64
86
|
<span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
|
|
@@ -286,3 +308,19 @@ export default {
|
|
|
286
308
|
}
|
|
287
309
|
}
|
|
288
310
|
</script>
|
|
311
|
+
<style scoped>
|
|
312
|
+
.red-circle {
|
|
313
|
+
width: 20px; /* 圆圈的宽度 */
|
|
314
|
+
height: 20px; /* 圆圈的高度 */
|
|
315
|
+
background-color: red; /* 背景色设置为红色 */
|
|
316
|
+
border-radius: 50%; /* 边框半径设置为50%,使元素变为圆形 */
|
|
317
|
+
display: inline-block; /* 确保元素以块级元素显示 */
|
|
318
|
+
}
|
|
319
|
+
.green-circle {
|
|
320
|
+
width: 20px; /* 圆圈的宽度 */
|
|
321
|
+
height: 20px; /* 圆圈的高度 */
|
|
322
|
+
background-color: rgb(11, 177, 121); /* 背景色设置为红色 */
|
|
323
|
+
border-radius: 50%; /* 边框半径设置为50%,使元素变为圆形 */
|
|
324
|
+
display: inline-block; /* 确保元素以块级元素显示 */
|
|
325
|
+
}
|
|
326
|
+
</style>
|
|
@@ -6,9 +6,15 @@ export default {
|
|
|
6
6
|
|
|
7
7
|
if (value) {
|
|
8
8
|
// console.log('-----v-permission---init----')
|
|
9
|
+
let permissionCodes = value
|
|
10
|
+
let systemCode
|
|
11
|
+
if(value instanceof Object) {
|
|
12
|
+
permissionCodes = value.codes
|
|
13
|
+
systemCode = value.systemCode
|
|
14
|
+
}
|
|
9
15
|
// 页面组件预览时不需要权限控制,系统中使用页面组件时需要使用权限控制,所以当是预览是资源编码传'true'
|
|
10
16
|
// 工作流按钮组件中也使用了资源编码为'true'的情况
|
|
11
|
-
if (
|
|
17
|
+
if (permissionCodes !== 'true' && !checkPermission(permissionCodes, systemCode)) {
|
|
12
18
|
el.parentNode && el.parentNode.removeChild(el)
|
|
13
19
|
}
|
|
14
20
|
} else {
|
package/src/i18n/langs/cn.js
CHANGED
|
@@ -83,7 +83,8 @@ const cn = {
|
|
|
83
83
|
forbiddenExceptionLinkUser: '如有疑问请联系',
|
|
84
84
|
uploadFileTip: '上传的文件不超过{fileSize}M',
|
|
85
85
|
asyncExportJumpMsg: '或点击我跳转到下载页面',
|
|
86
|
-
mustFill: '{label} 必须填写'
|
|
86
|
+
mustFill: '{label} 必须填写',
|
|
87
|
+
filePathNotFound: '文件UUID未找到,请检查配置',
|
|
87
88
|
},
|
|
88
89
|
// 列表组件
|
|
89
90
|
superGrid: {
|
|
@@ -134,7 +135,8 @@ const cn = {
|
|
|
134
135
|
fold: '收起',
|
|
135
136
|
prevRow: '上一行',
|
|
136
137
|
nextRow: '下一行',
|
|
137
|
-
detail: '详情'
|
|
138
|
+
detail: '详情',
|
|
139
|
+
searchEmpty:'查询空值'
|
|
138
140
|
},
|
|
139
141
|
// 部门树组件
|
|
140
142
|
departmentTree: {},
|
|
@@ -255,7 +257,12 @@ const cn = {
|
|
|
255
257
|
operationTime: '操作时间',
|
|
256
258
|
history_draw_dept_task: '{key_1}领取了部门[{key_2}]的任务',
|
|
257
259
|
history_abandon_draw_dept_task: '{key_1}放弃领取部门[{key_2}]的任务',
|
|
258
|
-
remark: '备注'
|
|
260
|
+
remark: '备注',
|
|
261
|
+
taskState: '节点状态',
|
|
262
|
+
processingDuration: '处理时长(H)',
|
|
263
|
+
isOverdue: '是否超期',
|
|
264
|
+
taskStateDoing: '进行中',
|
|
265
|
+
taskStateDone: '已完成'
|
|
259
266
|
},
|
|
260
267
|
gateway: {
|
|
261
268
|
timeout: '接口调用超时',
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -84,7 +84,8 @@ const en = {
|
|
|
84
84
|
forbiddenExceptionLinkUser: 'if you have any questions,please contact',
|
|
85
85
|
uploadFileTip: 'The file size should lower {fileSize}M',
|
|
86
86
|
asyncExportJumpMsg: 'Or click me to jump to download page.',
|
|
87
|
-
mustFill: '{label} must fill'
|
|
87
|
+
mustFill: '{label} must fill',
|
|
88
|
+
filePathNotFound: 'File UUID not found, please check the configuration'
|
|
88
89
|
},
|
|
89
90
|
superGrid: {
|
|
90
91
|
editablePlaceholder: 'Please click to input',
|
|
@@ -134,7 +135,8 @@ const en = {
|
|
|
134
135
|
fold: 'Fold',
|
|
135
136
|
prevRow: 'Prev Row',
|
|
136
137
|
nextRow: 'Next Row',
|
|
137
|
-
detail: 'Detail'
|
|
138
|
+
detail: 'Detail',
|
|
139
|
+
searchEmpty:'Search Empty'
|
|
138
140
|
},
|
|
139
141
|
departmentTree: {},
|
|
140
142
|
departmentTreeInline: {
|
|
@@ -254,7 +256,12 @@ const en = {
|
|
|
254
256
|
operationTime: 'Operation Time',
|
|
255
257
|
history_draw_dept_task: '{key_1} Received tasks from department [{key_2}]',
|
|
256
258
|
history_abandon_draw_dept_task: '{key_1} Abandon the task of receiving department [{key_2}]',
|
|
257
|
-
remark: 'remark'
|
|
259
|
+
remark: 'remark',
|
|
260
|
+
taskState: 'Task State',
|
|
261
|
+
processingDuration: 'Processing Duration(H)',
|
|
262
|
+
isOverdue: 'Is Overdue',
|
|
263
|
+
taskStateDoing: 'Doing',
|
|
264
|
+
taskStateDone: 'Done'
|
|
258
265
|
},
|
|
259
266
|
gateway: {
|
|
260
267
|
timeout: 'Interface call timeout',
|
package/src/styles/mixin.scss
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
@mixin scrollBar {
|
|
11
11
|
::-webkit-scrollbar-track-piece {
|
|
12
|
-
background:
|
|
12
|
+
background: rgba(157, 165, 183, 0.7);
|
|
13
13
|
}
|
|
14
14
|
::-webkit-scrollbar {
|
|
15
15
|
width: 6px;
|
|
16
16
|
}
|
|
17
17
|
::-webkit-scrollbar-thumb {
|
|
18
|
-
background: #
|
|
18
|
+
background: #aaaaaa;
|
|
19
19
|
border-radius: 20px;
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/styles/table.scss
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
background-color: $th-background-color;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
// 修改 Element Plus 表格滚动条颜色为 #aaaaaa
|
|
8
|
+
.el-scrollbar {
|
|
9
|
+
&__bar {
|
|
10
|
+
.el-scrollbar__thumb {
|
|
11
|
+
background-color: #aaaaaa;
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
10
14
|
}
|
|
11
|
-
|
|
12
|
-
background-color: $th-background-color;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
+
}
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
// 默认下滚动条的样式
|
|
10
10
|
::-webkit-scrollbar-thumb {
|
|
11
|
-
background: #
|
|
11
|
+
background: #aaaaaa;
|
|
12
12
|
border: none;
|
|
13
13
|
border-radius: 4px;
|
|
14
14
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
// 鼠标悬停在滚动条时 滚动条区域 空白地方的样式
|
|
28
28
|
::-webkit-scrollbar-track:hover {
|
|
29
|
-
background-color: #
|
|
29
|
+
background-color: #ccc;
|
|
30
30
|
border: none;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
// 默认下滚动条的样式
|
|
10
10
|
::-webkit-scrollbar-thumb {
|
|
11
|
-
background: #
|
|
11
|
+
background: #aaaaaa;
|
|
12
12
|
border: none;
|
|
13
13
|
border-radius: 4px;
|
|
14
14
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
// 鼠标悬停在滚动条时 滚动条区域 空白地方的样式
|
|
28
28
|
::-webkit-scrollbar-track:hover {
|
|
29
|
-
background-color: #
|
|
29
|
+
background-color: #aaaaaa;
|
|
30
30
|
border: none;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
// 默认下滚动条的样式
|
|
10
10
|
::-webkit-scrollbar-thumb {
|
|
11
|
-
background: #
|
|
11
|
+
background: #aaaaaa;
|
|
12
12
|
border: none;
|
|
13
13
|
border-radius: 4px;
|
|
14
14
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
// 鼠标悬停在滚动条时 滚动条区域 空白地方的样式
|
|
28
28
|
::-webkit-scrollbar-track:hover {
|
|
29
|
-
background-color: #
|
|
29
|
+
background-color: #ccc;
|
|
30
30
|
border: none;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
// 默认下滚动条的样式
|
|
10
10
|
::-webkit-scrollbar-thumb {
|
|
11
|
-
background: #
|
|
11
|
+
background: #aaaaaa;
|
|
12
12
|
border: none;
|
|
13
13
|
border-radius: 4px;
|
|
14
14
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
// 鼠标悬停在滚动条时 滚动条区域 空白地方的样式
|
|
28
28
|
::-webkit-scrollbar-track:hover {
|
|
29
|
-
background-color: #
|
|
29
|
+
background-color: #ccc;
|
|
30
30
|
border: none;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
// 默认下滚动条的样式
|
|
10
10
|
::-webkit-scrollbar-thumb {
|
|
11
|
-
background: #
|
|
11
|
+
background: #aaaaaa;
|
|
12
12
|
border: none;
|
|
13
13
|
border-radius: 4px;
|
|
14
14
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
// 鼠标悬停在滚动条时 滚动条区域 空白地方的样式
|
|
28
28
|
::-webkit-scrollbar-track:hover {
|
|
29
|
-
background-color: #
|
|
29
|
+
background-color: #ccc;
|
|
30
30
|
border: none;
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/utils/file-util.ts
CHANGED
|
@@ -4,21 +4,25 @@ const iconList = [
|
|
|
4
4
|
'amb-color-icon-XLSX',
|
|
5
5
|
'amb-color-icon-DOC',
|
|
6
6
|
'amb-color-icon-DOCX',
|
|
7
|
+
'amb-color-icon-PPT',
|
|
7
8
|
'amb-color-icon-PDF',
|
|
8
9
|
'amb-color-icon-TXT',
|
|
9
10
|
'amb-color-icon-JPG',
|
|
10
11
|
'amb-color-icon-PNG',
|
|
11
12
|
'amb-color-icon-ZIP',
|
|
12
|
-
'amb-color-icon-
|
|
13
|
+
'amb-color-icon-AVI',
|
|
14
|
+
'amb-color-icon-MP4',
|
|
15
|
+
'amb-color-icon-qita'
|
|
13
16
|
]
|
|
14
17
|
// 列表_5215278368.xls
|
|
15
18
|
export function getFileIconByName(fileName: string): string {
|
|
19
|
+
const qitaIcon = 'amb-color-icon-qita'
|
|
16
20
|
if (!fileName) {
|
|
17
|
-
return
|
|
21
|
+
return qitaIcon
|
|
18
22
|
}
|
|
19
23
|
let fileType = fileName.substring(fileName.lastIndexOf('.') + 1) // 获取文件名
|
|
20
24
|
if (!fileType) {
|
|
21
|
-
return
|
|
25
|
+
return qitaIcon
|
|
22
26
|
}
|
|
23
27
|
switch (fileType) {
|
|
24
28
|
case 'xlsx':
|
|
@@ -28,5 +32,9 @@ export function getFileIconByName(fileName: string): string {
|
|
|
28
32
|
fileType = 'DOC'
|
|
29
33
|
break
|
|
30
34
|
}
|
|
31
|
-
|
|
35
|
+
const finalIconName = 'amb-color-icon-' + fileType.toUpperCase()
|
|
36
|
+
if (iconList.includes(finalIconName)) {
|
|
37
|
+
return finalIconName
|
|
38
|
+
}
|
|
39
|
+
return qitaIcon
|
|
32
40
|
}
|
|
@@ -79,6 +79,7 @@ export function initialization(
|
|
|
79
79
|
}
|
|
80
80
|
return { visible: false }
|
|
81
81
|
} else {
|
|
82
|
+
result.displayTextJudge = jumpPage.displayTextJudge
|
|
82
83
|
if (jumpPage.displayTextJudge) {
|
|
83
84
|
// 例如:${obj.menu_code}-#-#${input.---}-#-#${context.currentTransactor}
|
|
84
85
|
const label = analysisValue(
|
package/src/utils/permission.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getTotalPermissions, isDevpAccess } from './permissionAuth'
|
|
|
5
5
|
* @param {String} permission 多个资源编码以逗号隔开
|
|
6
6
|
* @returns {Boolean}
|
|
7
7
|
*/
|
|
8
|
-
export default function checkPermission(permission) {
|
|
8
|
+
export default function checkPermission(permission, systemCode) {
|
|
9
9
|
if (permission) {
|
|
10
10
|
// 是否是预览项目时开发平台用户
|
|
11
11
|
const isDevpPermission= isDevpAccess()
|
|
@@ -14,7 +14,7 @@ export default function checkPermission(permission) {
|
|
|
14
14
|
return true
|
|
15
15
|
}
|
|
16
16
|
let hasPermission = false
|
|
17
|
-
const storeCurrentUserPermissions = getTotalPermissions()
|
|
17
|
+
const storeCurrentUserPermissions = getTotalPermissions(systemCode)
|
|
18
18
|
if (
|
|
19
19
|
typeof storeCurrentUserPermissions !== 'undefined' &&
|
|
20
20
|
storeCurrentUserPermissions !== null
|
|
@@ -50,7 +50,7 @@ export function getPermissions(systemCode) {
|
|
|
50
50
|
return totalPermissions
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export function getTotalPermissions() {
|
|
53
|
+
export function getTotalPermissions(systemCode) {
|
|
54
54
|
const a = new Date().getTime()
|
|
55
55
|
let runPermissionsObj
|
|
56
56
|
const runPermissions = getSessionCache(_RUN_PERMISSION)
|
|
@@ -58,7 +58,9 @@ export function getTotalPermissions() {
|
|
|
58
58
|
runPermissionsObj = JSON.parse(runPermissions)
|
|
59
59
|
}
|
|
60
60
|
let sysetemPermissionsObj
|
|
61
|
-
|
|
61
|
+
if (!systemCode || systemCode+''==='null') {
|
|
62
|
+
systemCode = getSystemCode()
|
|
63
|
+
}
|
|
62
64
|
const sysetemPermissions = localStorage.getItem(permissionKey + systemCode)
|
|
63
65
|
if (sysetemPermissions) {
|
|
64
66
|
sysetemPermissionsObj = JSON.parse(sysetemPermissions)
|
|
@@ -71,11 +71,9 @@ export default {
|
|
|
71
71
|
this.firstLeafMenu.pageType === 'iframe'
|
|
72
72
|
) {
|
|
73
73
|
const iframeSrc = this.firstLeafMenu.fullPath
|
|
74
|
-
const path = this.firstLeafMenu.path
|
|
75
74
|
const query = {
|
|
76
75
|
src: iframeSrc,
|
|
77
76
|
customSystem: this.systemCode,
|
|
78
|
-
path: path,
|
|
79
77
|
_menuCode: this.firstLeafMenu.code,
|
|
80
78
|
_menuName: getI18nName(this.firstLeafMenu),
|
|
81
79
|
isNewPage: this.firstLeafMenu.newPage
|