agilebuilder-ui 1.1.39-sit1 → 1.1.39

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.
Files changed (44) hide show
  1. package/lib/{401-994c9198.js → 401-10773a45.js} +1 -1
  2. package/lib/{404-529e9d04.js → 404-bc7b5bc4.js} +1 -1
  3. package/lib/{iframe-page-8416d7e7.js → iframe-page-593fe033.js} +1 -1
  4. package/lib/{index-f2020c47.js → index-5276895e.js} +9189 -9222
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +63 -63
  8. package/lib/{tab-content-iframe-index-b9c23a8b.js → tab-content-iframe-index-12a5a7c2.js} +1 -1
  9. package/lib/{tab-content-index-289ae3af.js → tab-content-index-6901441f.js} +1 -1
  10. package/lib/{tache-subprocess-history-3ad4baa1.js → tache-subprocess-history-8fd8d5f7.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree-inline/src/department-single-tree-inline.vue +1 -3
  13. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -5
  14. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +1 -2
  15. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +1 -0
  16. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +1 -3
  17. package/packages/fs-preview/src/fs-preview.vue +8 -40
  18. package/packages/fs-upload-list/src/fs-upload-list.vue +23 -42
  19. package/packages/fs-upload-new/src/fs-button-upload.vue +4 -4
  20. package/packages/fs-upload-new/src/fs-drag-upload.vue +4 -4
  21. package/packages/fs-upload-new/src/fs-preview-new.vue +7 -6
  22. package/packages/fs-upload-new/src/fs-upload-new.vue +12 -12
  23. package/packages/organization-input/src/organization-input.vue +3 -3
  24. package/packages/super-grid/src/components/mobile-table-card.jsx +1 -0
  25. package/packages/super-grid/src/custom-formatter.js +1 -1
  26. package/packages/super-grid/src/normal-column-content.vue +12 -17
  27. package/packages/super-grid/src/row-operation.vue +9 -13
  28. package/packages/super-grid/src/search-form-item.vue +4 -47
  29. package/packages/super-grid/src/search-form-mobile.vue +0 -5
  30. package/packages/super-grid/src/search-form-ordinarySearch.vue +0 -5
  31. package/packages/super-grid/src/search-methods.js +1 -3
  32. package/packages/utils/organization.ts +40 -56
  33. package/packages/workflow-history-list/src/workflow-history-list.vue +3 -41
  34. package/src/directives/permission/permission.js +1 -7
  35. package/src/i18n/langs/cn.js +3 -10
  36. package/src/i18n/langs/en.js +3 -10
  37. package/src/utils/file-util.ts +4 -12
  38. package/src/utils/jump-page-utils.js +0 -1
  39. package/src/utils/permission.js +2 -2
  40. package/src/utils/permissionAuth.js +2 -4
  41. package/src/views/dsc-component/Sidebar/Item.vue +3 -3
  42. package/src/views/dsc-component/Sidebar/index.vue +2 -0
  43. package/src/views/layout/components/Menubar/Item.vue +0 -6
  44. package/src/views/layout/components/Menubar/SidebarItem.vue +17 -37
@@ -213,18 +213,7 @@
213
213
  :style="column.searchControlWidth"
214
214
  @keyup.enter="submitForm('searchForm')"
215
215
  @input="setValueToModelProp(column.prop, $event)"
216
- @focus="showEmpty()"
217
- @blur="hiddenEmpty()"
218
- >
219
- <template #suffix>
220
- <el-tooltip
221
- :content="$t('superGrid.searchEmpty')"
222
- placement="bottom"
223
- >
224
- <el-checkbox v-if="isShowEmtpty" v-model="checkedEmpty" @change="checkEmptyChange"/>
225
- </el-tooltip>
226
- </template>
227
- </el-input>
216
+ />
228
217
  </el-form-item>
229
218
  </template>
230
219
 
@@ -292,9 +281,7 @@ export default {
292
281
  dataTwo: null,
293
282
  moduleConfig: {},
294
283
  dateVal: this.getFormItemValue(this.column.prop),
295
- controlConfig: getControlConfig(this.column),
296
- isShowEmtptyFlag: false,
297
- // checkedEmpty: false,
284
+ controlConfig: getControlConfig(this.column)
298
285
  }
299
286
  },
300
287
  computed: {
@@ -304,23 +291,6 @@ export default {
304
291
  return data.listToolbarFormData
305
292
  }
306
293
  return null
307
- },
308
- isShowEmtpty() {
309
- return this.isShowEmtptyFlag
310
- },
311
- checkedEmpty(){
312
- if(this.column._emptyValue && this.column._emptyValue === '#blank#'){
313
- return true
314
- }
315
- if(this.column._resetValue || this.column._resetValue === undefined){
316
- if(this.column._resetValue){
317
- this.column._resetValue = undefined
318
- this.isShowEmtptyFlag = false
319
- }
320
- return false
321
- } else {
322
- return true
323
- }
324
294
  }
325
295
  },
326
296
  created() {
@@ -510,25 +480,12 @@ export default {
510
480
  if (arr.indexOf('saveAll') !== -1) {
511
481
  if (this.searchForm[this.column.prop] && typeof this.searchForm[this.column.prop] === 'string') {
512
482
  this.searchForm[this.column.prop] = this.searchForm[this.column.prop].split(',')
483
+ } else {
484
+ this.searchForm[this.column.prop] = []
513
485
  }
514
486
  } else {
515
487
  this.searchForm[this.column.prop] = arr
516
488
  }
517
- },
518
- showEmpty(){
519
- this.isShowEmtptyFlag = true
520
- },
521
- hiddenEmpty(){
522
- if(!this.checkedEmpty){
523
- this.isShowEmtptyFlag = false
524
- }
525
- },
526
- checkEmptyChange(newValue) {
527
- if(newValue){
528
- this.column._emptyValue='#blank#'
529
- } else {
530
- this.column._emptyValue=undefined
531
- }
532
489
  }
533
490
  },
534
491
  emits: ['submit-form']
@@ -157,11 +157,6 @@ export default {
157
157
  }
158
158
  this.setDefaultQueryValue(column, this.searchForm)
159
159
  }
160
- // 清空空值状态
161
- if(column._emptyValue){
162
- column._emptyValue=undefined
163
- column._resetValue=true
164
- }
165
160
  })
166
161
  // 取消当前选中的条件列表的信息
167
162
  // this.$refs.searchConditionList.editConditionId = null
@@ -162,11 +162,6 @@ export default {
162
162
  }
163
163
  this.setDefaultQueryValue(column, this.searchForm)
164
164
  }
165
- // 清空空值状态
166
- if(column._emptyValue){
167
- column._emptyValue=undefined
168
- column._resetValue=true
169
- }
170
165
  })
171
166
  // 取消当前选中的条件列表的信息
172
167
  // this.$refs.searchConditionList.editConditionId = null
@@ -27,7 +27,6 @@ const searchMethods = {
27
27
  param.formatter = column.formatter
28
28
  ? JSON.parse(JSON.stringify(column.formatter))
29
29
  : column.formatter
30
- param.isEmptyValue= column._emptyValue && column._emptyValue === '#blank#'?true:false
31
30
  const values = this.getFormItemValue(column.prop)
32
31
  if (column.dataType === 'DATE' || column.dataType === 'TIME') {
33
32
  // 日期 或 时间类型
@@ -441,11 +440,10 @@ const searchMethods = {
441
440
  num++
442
441
  })
443
442
  } else if (
444
- param.isEmptyValue || (
445
443
  typeof value !== 'undefined' &&
446
444
  value !== '' &&
447
445
  value !== null &&
448
- !Array.isArray(value))
446
+ !Array.isArray(value)
449
447
  ) {
450
448
  // 不是数组
451
449
  param.propValue = value
@@ -1,5 +1,5 @@
1
1
  // 将选中的部门节点添加到结果集合中
2
- export function addSelectedUserInfo(selectNodeInfo, userData, containBranch) {
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(user, containBranch) {
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,42 +47,29 @@ export function packageSelectResult(user, containBranch) {
47
47
  containBranch: containBranch,
48
48
  user: user,
49
49
  enName: user.enName ? user.enName : '',
50
- subCompanyName: user.subCompanyName,
51
- divisionManager: user.divisionManager,
52
- divisionManagerName: user.divisionManagerName
50
+ subCompanyName: user.subCompanyName
53
51
  }
54
52
  // 表示是勾选单选按钮或 选中树节点
55
53
  return selectNodeInfo
56
54
  }
57
55
  // 根据指定用户信息获得用户集合
58
- function getSelectUsers(searchField, selectUserInfo, separator) {
56
+ function getSelectUsers (searchField, selectUserInfo, separator) {
59
57
  return new Promise((resolve, reject) => {
60
58
  if (!searchField) {
61
59
  resolve([])
62
60
  } else if (!selectUserInfo) {
63
61
  resolve([])
64
62
  } else {
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
- })
63
+ window['$vueApp'].config.globalProperties.$http.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/select-users-mobile?searchField=' + searchField + '&selectUserInfo=' + selectUserInfo + '&separator=' + separator).then(users => {
64
+ resolve(users)
65
+ }).catch(error => {
66
+ reject(error)
67
+ })
81
68
  }
82
69
  })
83
70
  }
84
71
  // 部门人员树选中了组织结构树的根节点
85
- function packageAllUser() {
72
+ function packageAllUser () {
86
73
  // 表示集合中不存在该用户,则封装该用户
87
74
  const tenantNodeId = -1
88
75
  var allUser = {
@@ -92,7 +79,7 @@ function packageAllUser() {
92
79
  return allUser
93
80
  }
94
81
  // 工作组人员树选中了组织结构树的根节点
95
- function packageAllWgUser() {
82
+ function packageAllWgUser () {
96
83
  // 表示集合中不存在该用户,则封装该用户
97
84
  const tenantNodeId = -1
98
85
  var allUser = {
@@ -101,7 +88,7 @@ function packageAllWgUser() {
101
88
  }
102
89
  return allUser
103
90
  }
104
- export function initSelectUsers(searchField, selectUserInfo, separator) {
91
+ export function initSelectUsers (searchField, selectUserInfo, separator) {
105
92
  return new Promise((resolve, reject) => {
106
93
  const selectDepts = []
107
94
  if (selectUserInfo) {
@@ -114,13 +101,11 @@ export function initSelectUsers(searchField, selectUserInfo, separator) {
114
101
  resolve(selectDepts)
115
102
  } else {
116
103
  // 表示不是选择的所有用户
117
- getSelectUsers(searchField, selectUserInfo, separator)
118
- .then((users) => {
119
- resolve(users)
120
- })
121
- .catch((error) => {
122
- reject(error)
123
- })
104
+ getSelectUsers(searchField, selectUserInfo, separator).then(users => {
105
+ resolve(users)
106
+ }).catch(error => {
107
+ reject(error)
108
+ })
124
109
  }
125
110
  } else {
126
111
  resolve(selectDepts)
@@ -128,8 +113,9 @@ export function initSelectUsers(searchField, selectUserInfo, separator) {
128
113
  })
129
114
  }
130
115
 
116
+
131
117
  // import {getLanguageWithLocale} from '../../../src/utils/util'
132
- export function resizeScrollTargetHeightUtil() {
118
+ export function resizeScrollTargetHeightUtil () {
133
119
  const pagePadding = 16
134
120
  let height = window.innerHeight - pagePadding
135
121
  const header = document.querySelector('.el-page-header')
@@ -143,31 +129,29 @@ export function resizeScrollTargetHeightUtil() {
143
129
  return height
144
130
  }
145
131
 
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
- }
132
+
133
+ export function getUserMainDeptName (user) {
134
+ let deptShowName = ''
135
+ if (user && user.data) {
136
+ const userData = JSON.parse(user.data)
137
+ if (userData.mainDepartmentEnName && userData.mainDepartmentEnName !== '' && window['$locale'] && window['$locale'] !== 'cn') {
138
+ deptShowName = userData.mainDepartmentEnName
139
+ } else {
140
+ if (userData.mainDepartmentName && userData.mainDepartmentName !== '') {
141
+ deptShowName = userData.mainDepartmentName
161
142
  }
162
143
  }
163
- return deptShowName
144
+ }
145
+ return deptShowName
164
146
  }
165
147
 
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
148
+
149
+
150
+ export function getDeptNamePath (dept) {
151
+ let deptShowName = ''
152
+ if (dept && dept.data) {
153
+ const deptData = JSON.parse(dept.data)
154
+ deptShowName = deptData.namePath
155
+ }
156
+ return deptShowName
173
157
  }
@@ -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="center" width="80">
18
+ <el-table-column :label="$t('workflowHistoryList.index')" align="left" width="80px">
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="120">
38
+ <el-table-column :label="$t('workflowHistoryList.operator')" align="left" width="250">
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="160">
44
+ <el-table-column :label="$t('workflowHistoryList.operatorLg')" align="left" width="250">
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,28 +59,6 @@
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>
84
62
  <el-table-column :label="$t('workflowHistoryList.operation')" align="left" width="400">
85
63
  <template v-slot="scope">
86
64
  <span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
@@ -308,19 +286,3 @@ export default {
308
286
  }
309
287
  }
310
288
  </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,15 +6,9 @@ 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
- }
15
9
  // 页面组件预览时不需要权限控制,系统中使用页面组件时需要使用权限控制,所以当是预览是资源编码传'true'
16
10
  // 工作流按钮组件中也使用了资源编码为'true'的情况
17
- if (permissionCodes !== 'true' && !checkPermission(permissionCodes, systemCode)) {
11
+ if (value !== 'true' && !checkPermission(value)) {
18
12
  el.parentNode && el.parentNode.removeChild(el)
19
13
  }
20
14
  } else {
@@ -83,8 +83,7 @@ const cn = {
83
83
  forbiddenExceptionLinkUser: '如有疑问请联系',
84
84
  uploadFileTip: '上传的文件不超过{fileSize}M',
85
85
  asyncExportJumpMsg: '或点击我跳转到下载页面',
86
- mustFill: '{label} 必须填写',
87
- filePathNotFound: '文件UUID未找到,请检查配置',
86
+ mustFill: '{label} 必须填写'
88
87
  },
89
88
  // 列表组件
90
89
  superGrid: {
@@ -135,8 +134,7 @@ const cn = {
135
134
  fold: '收起',
136
135
  prevRow: '上一行',
137
136
  nextRow: '下一行',
138
- detail: '详情',
139
- searchEmpty:'查询空值'
137
+ detail: '详情'
140
138
  },
141
139
  // 部门树组件
142
140
  departmentTree: {},
@@ -257,12 +255,7 @@ const cn = {
257
255
  operationTime: '操作时间',
258
256
  history_draw_dept_task: '{key_1}领取了部门[{key_2}]的任务',
259
257
  history_abandon_draw_dept_task: '{key_1}放弃领取部门[{key_2}]的任务',
260
- remark: '备注',
261
- taskState: '节点状态',
262
- processingDuration: '处理时长(H)',
263
- isOverdue: '是否超期',
264
- taskStateDoing: '进行中',
265
- taskStateDone: '已完成'
258
+ remark: '备注'
266
259
  },
267
260
  gateway: {
268
261
  timeout: '接口调用超时',
@@ -84,8 +84,7 @@ 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',
88
- filePathNotFound: 'File UUID not found, please check the configuration'
87
+ mustFill: '{label} must fill'
89
88
  },
90
89
  superGrid: {
91
90
  editablePlaceholder: 'Please click to input',
@@ -135,8 +134,7 @@ const en = {
135
134
  fold: 'Fold',
136
135
  prevRow: 'Prev Row',
137
136
  nextRow: 'Next Row',
138
- detail: 'Detail',
139
- searchEmpty:'Search Empty'
137
+ detail: 'Detail'
140
138
  },
141
139
  departmentTree: {},
142
140
  departmentTreeInline: {
@@ -256,12 +254,7 @@ const en = {
256
254
  operationTime: 'Operation Time',
257
255
  history_draw_dept_task: '{key_1} Received tasks from department [{key_2}]',
258
256
  history_abandon_draw_dept_task: '{key_1} Abandon the task of receiving department [{key_2}]',
259
- remark: 'remark',
260
- taskState: 'Task State',
261
- processingDuration: 'Processing Duration(H)',
262
- isOverdue: 'Is Overdue',
263
- taskStateDoing: 'Doing',
264
- taskStateDone: 'Done'
257
+ remark: 'remark'
265
258
  },
266
259
  gateway: {
267
260
  timeout: 'Interface call timeout',
@@ -4,25 +4,21 @@ 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',
8
7
  'amb-color-icon-PDF',
9
8
  'amb-color-icon-TXT',
10
9
  'amb-color-icon-JPG',
11
10
  'amb-color-icon-PNG',
12
11
  'amb-color-icon-ZIP',
13
- 'amb-color-icon-AVI',
14
- 'amb-color-icon-MP4',
15
- 'amb-color-icon-qita'
12
+ 'amb-color-icon-unknown'
16
13
  ]
17
14
  // 列表_5215278368.xls
18
15
  export function getFileIconByName(fileName: string): string {
19
- const qitaIcon = 'amb-color-icon-qita'
20
16
  if (!fileName) {
21
- return qitaIcon
17
+ return 'amb-color-icon-unknown'
22
18
  }
23
19
  let fileType = fileName.substring(fileName.lastIndexOf('.') + 1) // 获取文件名
24
20
  if (!fileType) {
25
- return qitaIcon
21
+ return 'amb-color-icon-unknown'
26
22
  }
27
23
  switch (fileType) {
28
24
  case 'xlsx':
@@ -32,9 +28,5 @@ export function getFileIconByName(fileName: string): string {
32
28
  fileType = 'DOC'
33
29
  break
34
30
  }
35
- const finalIconName = 'amb-color-icon-' + fileType.toUpperCase()
36
- if (iconList.includes(finalIconName)) {
37
- return finalIconName
38
- }
39
- return qitaIcon
31
+ return 'amb-color-icon-' + fileType.toUpperCase()
40
32
  }
@@ -79,7 +79,6 @@ export function initialization(
79
79
  }
80
80
  return { visible: false }
81
81
  } else {
82
- result.displayTextJudge = jumpPage.displayTextJudge
83
82
  if (jumpPage.displayTextJudge) {
84
83
  // 例如:${obj.menu_code}-#-#${input.---}-#-#${context.currentTransactor}
85
84
  const label = analysisValue(
@@ -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, systemCode) {
8
+ export default function checkPermission(permission) {
9
9
  if (permission) {
10
10
  // 是否是预览项目时开发平台用户
11
11
  const isDevpPermission= isDevpAccess()
@@ -14,7 +14,7 @@ export default function checkPermission(permission, systemCode) {
14
14
  return true
15
15
  }
16
16
  let hasPermission = false
17
- const storeCurrentUserPermissions = getTotalPermissions(systemCode)
17
+ const storeCurrentUserPermissions = getTotalPermissions()
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(systemCode) {
53
+ export function getTotalPermissions() {
54
54
  const a = new Date().getTime()
55
55
  let runPermissionsObj
56
56
  const runPermissions = getSessionCache(_RUN_PERMISSION)
@@ -58,9 +58,7 @@ export function getTotalPermissions(systemCode) {
58
58
  runPermissionsObj = JSON.parse(runPermissions)
59
59
  }
60
60
  let sysetemPermissionsObj
61
- if (!systemCode || systemCode+''==='null') {
62
- systemCode = getSystemCode()
63
- }
61
+ const systemCode = getSystemCode()
64
62
  const sysetemPermissions = localStorage.getItem(permissionKey + systemCode)
65
63
  if (sysetemPermissions) {
66
64
  sysetemPermissionsObj = JSON.parse(sysetemPermissions)
@@ -88,8 +88,8 @@ export default defineComponent({
88
88
  </script>
89
89
 
90
90
  <style lang="scss" scoped>
91
- :deep(.super-icon) {
92
- width: 20px !important;
93
- height: 20px !important;
91
+ .super-icon {
92
+ width: 16px;
93
+ height: 16px;
94
94
  }
95
95
  </style>
@@ -71,9 +71,11 @@ export default {
71
71
  this.firstLeafMenu.pageType === 'iframe'
72
72
  ) {
73
73
  const iframeSrc = this.firstLeafMenu.fullPath
74
+ const path = this.firstLeafMenu.path
74
75
  const query = {
75
76
  src: iframeSrc,
76
77
  customSystem: this.systemCode,
78
+ path: path,
77
79
  _menuCode: this.firstLeafMenu.code,
78
80
  _menuName: getI18nName(this.firstLeafMenu),
79
81
  isNewPage: this.firstLeafMenu.newPage
@@ -99,9 +99,3 @@ export default defineComponent({
99
99
  }
100
100
  })
101
101
  </script>
102
- <style lang="scss" scoped>
103
- :deep(.super-icon) {
104
- width: 20px !important;
105
- height: 20px !important;
106
- }
107
- </style>
@@ -53,7 +53,6 @@ import { getI18nName } from "../../../../utils/menu";
53
53
  import tabJs from "../../../../api/tab";
54
54
  import { getSystemCode } from "../../../../utils/permissionAuth";
55
55
  import authApi from "../../../../utils/auth-api";
56
- import { getSystemFrontendUrl } from '../../../../utils/common-util';
57
56
 
58
57
  export default {
59
58
  name: "SidebarItem",
@@ -158,22 +157,7 @@ export default {
158
157
  toPathObj.query.customSystem = getSystemCode();
159
158
  toPathObj.query._menuCode = menu.code;
160
159
  toPathObj.query._menuName = getI18nName(menu);
161
- } else if(menu.openWay && menu.openWay === 'NEW_PAGE_OPEN'){
162
- // 新页签打开菜单时
163
- routePath = menu.fullPath
164
- if(routePath.indexOf('http:') < 0 && routePath.indexOf('https:') < 0){
165
- // 表示不是全路径
166
- let frontUrl = getSystemFrontendUrl(window.$vueApp.config.globalProperties.frontUrl)
167
- if(frontUrl.lastIndexOf("/") < frontUrl.length -1 ){
168
- // 表示最后不是斜线结尾的,需要添加斜线结尾
169
- frontUrl = frontUrl + '/'
170
- }
171
- routePath = frontUrl + "#" + routePath
172
- }
173
- toPathObj.query = {}
174
- toPathObj.query._menuCode = menu.code;
175
- toPathObj.path=routePath
176
- }else{
160
+ } else {
177
161
  routePath = menu.fullPath;
178
162
  if(!routePath) {
179
163
  routePath = ''
@@ -233,30 +217,26 @@ export default {
233
217
  clickMenu(toPathObj) {
234
218
  if (
235
219
  toPathObj.openWay &&
236
- toPathObj.openWay === "NEW_PAGE_OPEN"
220
+ toPathObj.openWay === "NEW_PAGE_OPEN" &&
221
+ toPathObj.query
237
222
  ) {
238
223
  // 新页签打开菜单
239
- if(toPathObj.query && toPathObj.query.src){
240
- let url = toPathObj.query.src;
241
- if (url && url.indexOf("?") > 0) {
242
- url += "&";
243
- } else {
244
- url += "?";
245
- }
246
- if (toPathObj.query.customSystem) {
247
- url += "customSystem=" + toPathObj.query.customSystem;
248
- }
249
- if (toPathObj.query._menuCode) {
250
- url += "_menuCode=" + toPathObj.query._menuCode;
251
- }
252
- if (toPathObj.query._menuCode) {
253
- url += "_menuName=" + toPathObj.query._menuName;
254
- }
255
- window.open(url, toPathObj.query._menuCode)
224
+ let url = toPathObj.query.src;
225
+ if (url && url.indexOf("?") > 0) {
226
+ url += "&";
256
227
  } else {
257
- const url = toPathObj.path;
258
- window.open(url, toPathObj.query._menuCode)
228
+ url += "?";
229
+ }
230
+ if (toPathObj.query.customSystem) {
231
+ url += "customSystem=" + toPathObj.query.customSystem;
232
+ }
233
+ if (toPathObj.query._menuCode) {
234
+ url += "_menuCode=" + toPathObj.query._menuCode;
235
+ }
236
+ if (toPathObj.query._menuCode) {
237
+ url += "_menuName=" + toPathObj.query._menuName;
259
238
  }
239
+ window.open(url, toPathObj.query._menuCode);
260
240
  } else {
261
241
  // 刷新页签打开菜单
262
242
  this.addTabs(