agilebuilder-ui 1.1.48 → 1.1.50-rc1

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 (58) hide show
  1. package/lib/{401-64e37702.js → 401-aaa4054d.js} +1 -1
  2. package/lib/{404-7d89180e.js → 404-ef3b10e9.js} +1 -1
  3. package/lib/{iframe-page-4c8bc1d5.js → iframe-page-28c30283.js} +1 -1
  4. package/lib/{index-5c1112e8.js → index-bece2c1c.js} +19139 -19078
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +99 -99
  8. package/lib/{tab-content-iframe-index-0a36be80.js → tab-content-iframe-index-87ac3b2b.js} +1 -1
  9. package/lib/{tab-content-index-9a271908.js → tab-content-index-956a0533.js} +1 -1
  10. package/lib/{tache-subprocess-history-93d013b2.js → tache-subprocess-history-2c4f98f2.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +42 -34
  13. package/packages/department-tree-inline/src/department-single-tree-inline.vue +53 -42
  14. package/packages/department-tree-inline/src/department-tree-service.js +17 -11
  15. package/packages/department-tree-inline/src/search-result.vue +187 -219
  16. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +17 -4
  17. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +52 -43
  18. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +52 -42
  19. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +23 -13
  20. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +9 -5
  21. package/packages/department-user-tree-inline/src/group-user-tree-service.js +17 -11
  22. package/packages/department-user-tree-inline/src/search-result.vue +207 -220
  23. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +14 -3
  24. package/packages/dynamic-source-select/src/dynamic-source-select-service.js +7 -2
  25. package/packages/empty-state/index.vue +28 -0
  26. package/packages/fs-preview/src/fs-preview.vue +10 -4
  27. package/packages/fs-upload/src/fs-upload-multi.vue +10 -6
  28. package/packages/fs-upload/src/fs-upload-single.vue +8 -7
  29. package/packages/fs-upload/src/fs-upload.vue +3 -1
  30. package/packages/fs-upload/src/see-big-picture.vue +3 -0
  31. package/packages/fs-upload-list/src/fs-upload-list.vue +2 -1
  32. package/packages/fs-upload-new/src/fs-button-upload.vue +3 -3
  33. package/packages/fs-upload-new/src/fs-drag-upload.vue +3 -3
  34. package/packages/fs-upload-new/src/fs-preview-new.vue +11 -7
  35. package/packages/multipart-upload/src/multipart-upload-form.vue +2 -1
  36. package/packages/multipart-upload/src/multipart-upload-list.vue +2 -1
  37. package/packages/plugins/export-data-new.js +2 -0
  38. package/packages/super-grid/src/components/grid-icon.vue +6 -3
  39. package/packages/super-grid/src/normal-column-content.vue +1 -1
  40. package/packages/super-grid/src/super-grid.vue +4 -4
  41. package/packages/super-grid/src/view-image-dialog.vue +2 -1
  42. package/packages/utils/utils.js +27 -9
  43. package/packages/workgroup-tree-inline/src/search-result.vue +2 -1
  44. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +50 -41
  45. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +16 -5
  46. package/packages/workgroup-user-tree-inline/src/search-result.vue +2 -1
  47. package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +30 -24
  48. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +49 -37
  49. package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue +281 -222
  50. package/src/i18n/langs/cn.js +3 -3
  51. package/src/i18n/langs/en.js +3 -3
  52. package/src/styles/index.scss +26 -0
  53. package/src/utils/auth.js +10 -7
  54. package/src/utils/chat-ai-util.ts +3 -3
  55. package/src/utils/common-util.js +44 -0
  56. package/src/utils/global-prop.js +17 -0
  57. package/src/views/dsc-component/Sidebar/SidebarItem.vue +6 -0
  58. package/src/views/dsc-component/tabs/tab-content.vue +6 -0
@@ -56,7 +56,7 @@ const cn = {
56
56
  pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel: '请先移除所有人员,再选择具体人员',
57
57
  queryResultIsEmpty: '查询结果为空',
58
58
  pleaseSelectATeam: '请选择工作组',
59
- pleaseEnterTeamName: '请输入工作组名称',
59
+ pleaseEnterTeamName: '请输入工作组信息筛选',
60
60
  validationFailed: '验证失败',
61
61
  selectionDate: '选择日期',
62
62
  selectTime: '选择时间',
@@ -142,7 +142,7 @@ const cn = {
142
142
  departmentTree: {},
143
143
  // 嵌入部门树组件
144
144
  departmentTreeInline: {
145
- pleaseEnterDepartmentName: '请输入部门名称',
145
+ pleaseEnterDepartmentName: '请输入部门信息筛选',
146
146
  name: '部门名称',
147
147
  code: '部门编码',
148
148
  removeDepartment: '移除部门',
@@ -156,7 +156,7 @@ const cn = {
156
156
  },
157
157
  // 用户树
158
158
  departmentUserTree: {
159
- pleaseEnterUserInformation: '请输入用户信息',
159
+ pleaseEnterUserInformation: '请输入用户信息筛选',
160
160
  selectedPeople: '已选人员',
161
161
  searchFieldUserName: '姓名',
162
162
  searchFieldLoginName: '登录名',
@@ -57,7 +57,7 @@ const en = {
57
57
  'Please Remove All Personnel Before Selecting Specific Personnel',
58
58
  queryResultIsEmpty: 'Query Result Is Empty',
59
59
  pleaseSelectATeam: 'Please Select A Team',
60
- pleaseEnterTeamName: 'Please Enter Team Name',
60
+ pleaseEnterTeamName: 'Please Enter Team Info Filter',
61
61
  validationFailed: 'Validation Failed',
62
62
  selectionDate: 'Selection Date',
63
63
  selectTime: 'Select Time',
@@ -140,7 +140,7 @@ const en = {
140
140
  },
141
141
  departmentTree: {},
142
142
  departmentTreeInline: {
143
- pleaseEnterDepartmentName: 'Please Enter Department Name',
143
+ pleaseEnterDepartmentName: 'Please Enter Department Info Filter',
144
144
  name: 'Department Name',
145
145
  code: 'Department Code',
146
146
  removeDepartment: 'Remove Department',
@@ -154,7 +154,7 @@ const en = {
154
154
  },
155
155
  // 用户树
156
156
  departmentUserTree: {
157
- pleaseEnterUserInformation: 'Please Enter User Information',
157
+ pleaseEnterUserInformation: 'Please Enter User Information Filter',
158
158
  selectedPeople: 'Selected People',
159
159
  searchFieldUserName: 'Name',
160
160
  searchFieldLoginName: 'Login Name',
@@ -322,4 +322,30 @@ body .el-table colgroup.gutter {
322
322
  position: absolute;
323
323
  top: 3px;
324
324
  right: 5px;
325
+ }
326
+
327
+
328
+ // "暂无更多" 样式
329
+ .empty_center_area {
330
+ width: 100%;
331
+ position: relative;
332
+
333
+ .empty_notAvailable {
334
+ background-image: url('../assets/nonemessage.png');
335
+ background-size: 100%;
336
+ position: absolute;
337
+ top: 30%;
338
+ left: 50%;
339
+ transform: translate(-50%, -50%);
340
+
341
+ .empty_notAvailable_text {
342
+ position: absolute;
343
+ bottom: 0;
344
+ left: 50%;
345
+ transform: translate(-50%, 100%);
346
+ color: #313233;
347
+ font-weight: regular;
348
+ font-size: 14px;
349
+ }
350
+ }
325
351
  }
package/src/utils/auth.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import authApi from './auth-api'
2
2
  import { removeAllSystemPermissions } from './permissionAuth'
3
+ import { removeGlobalPropCache } from './global-prop'
3
4
 
4
5
  export function getToken() {
5
6
  return authApi.getToken()
@@ -85,13 +86,12 @@ function removeAllLanguages() {
85
86
  authApi.removeAllLanguages()
86
87
  }
87
88
 
88
-
89
89
  export function getTheme() {
90
90
  return authApi.getTheme()
91
91
  }
92
92
 
93
93
  export function setTheme(theme) {
94
- if(theme) {
94
+ if (theme) {
95
95
  authApi.setTheme(theme)
96
96
  } else {
97
97
  removeTheme()
@@ -122,9 +122,9 @@ function removePublishControl() {
122
122
  */
123
123
  export function removeDevpPermissions() {
124
124
  let devpJWTKey = '_devpJWT'
125
- let currentRoleKey = '_CURRENT_ROLE'
126
- authApi.removeSessionCache(devpJWTKey)
127
- authApi.removeSessionCache(currentRoleKey)
125
+ let currentRoleKey = '_CURRENT_ROLE'
126
+ authApi.removeSessionCache(devpJWTKey)
127
+ authApi.removeSessionCache(currentRoleKey)
128
128
  }
129
129
 
130
130
  export function isDevpSystem() {
@@ -149,7 +149,7 @@ export function removeSystemCacheUrl() {
149
149
 
150
150
  export function getRunCurrentRole() {
151
151
  let runCurrentRoleKey = '_RUN_CURRENT_ROLE'
152
- if(!isDevpSystem()){
152
+ if (!isDevpSystem()) {
153
153
  return authApi.getSessionCache(runCurrentRoleKey)
154
154
  }
155
155
  }
@@ -165,4 +165,7 @@ export function clearPermission() {
165
165
  removeAllSystemPermissions()
166
166
  removePublishControl()
167
167
  removeSystemCacheUrl()
168
- }
168
+
169
+ // 清除系统参数设置的全局属性缓存
170
+ removeGlobalPropCache()
171
+ }
@@ -18,10 +18,10 @@ function setActiveMenuToChatAiStore(activeMenu) {
18
18
  }
19
19
  }
20
20
 
21
- function setPageInfoToChatStore(menuCode, info) {
21
+ function setPageInfoToChatStore(pageContext, info) {
22
22
  try {
23
- if (window.top.ChatAiStore) {
24
- window.top.ChatAiStore.setPageInfoToChatStore(menuCode, info)
23
+ if (pageContext && window.top.ChatAiStore) {
24
+ window.top.ChatAiStore.setPageInfoToChatStore(pageContext.menuCode, info)
25
25
  }
26
26
  } catch (error) {
27
27
  console.error('ChatAiStore not found', error)
@@ -8,6 +8,9 @@ import i18nUtil from './i18n-util'
8
8
  * 获得相对地址
9
9
  */
10
10
  export function getRelativeBaseUrl(originalBaseUrl) {
11
+ if(!originalBaseUrl){
12
+ return originalBaseUrl
13
+ }
11
14
  if (
12
15
  window.$vueApp.config.globalProperties.projectModel === undefined ||
13
16
  window.$vueApp.config.globalProperties.projectModel !== 'developing.model'
@@ -796,3 +799,44 @@ export function cacheSystemUrl() {
796
799
  export function getAuthSource() {
797
800
  return window.localStorage.getItem('auth_source')
798
801
  }
802
+ /**
803
+ * 把路径中的参数转为对象
804
+ * @param {*} fullPath 全路径。例如:hash路径:http://xx:8090/#/sss/dd?p1=1&p2=2 或 普通路径:http://xx:8090/sss/dd?p1=1&p2=2
805
+ * @returns
806
+ */
807
+ export function getURLSearchParamObj(fullPath) {
808
+ try{
809
+ // 提取hash部分
810
+ const hash = fullPath.includes('#') ? fullPath.split('#')[1] : fullPath;
811
+ // 提取查询参数
812
+ const queryString = hash.includes('?') ? hash.split('?')[1] : hash;
813
+ // 解析参数
814
+ const params = new URLSearchParams(queryString);
815
+ // 转换为普通对象
816
+ return Object.fromEntries(params)
817
+ }catch(error){
818
+ console.error('error===',error)
819
+ }
820
+ }
821
+ /**
822
+ * 获得KKFileView的路径。
823
+ * @returns
824
+ */
825
+ export function getKkFileBackendUrl() {
826
+ let kkFileViewUrl = window.$vueApp.config.globalProperties.kkFileViewUrl
827
+ let kkFileViewUrlResult = kkFileViewUrl
828
+ let baseURL = window.$vueApp.config.globalProperties.baseURL
829
+ if(kkFileViewUrl && baseURL){
830
+ let baseUrls = baseURL.split('/')
831
+ let prefixUrl = baseUrls[0]+ '//' + baseUrls[2]
832
+ let kkFileViewUrls = kkFileViewUrl.split('/')
833
+ let kkFilePrefixUrl = kkFileViewUrls[0]+ '//' + kkFileViewUrls[2]
834
+ if(prefixUrl === kkFilePrefixUrl){
835
+ // 如果baseURL和kkFileViewUrl的ip和端口一致,则表示kkFileView服务被nginx代理了,此时需要做内网、外网域名替换,例如:西安西开项目
836
+ // 如果baseURL和kkFileViewUrl的ip和端口不一致,则表示kkFileView服务没有被nginx代理,此时不需要处理kkFileViewUrl路径,例如:公司产品项目
837
+ kkFileViewUrlResult = getRelativeBaseUrl(kkFileViewUrl)
838
+ }
839
+ }
840
+ console.log('获得kkFile服务部署路径', kkFileViewUrlResult)
841
+ return kkFileViewUrlResult
842
+ }
@@ -0,0 +1,17 @@
1
+ const canShowOrgTree = 'CAN_SHOW_ORG_TREE'
2
+
3
+ export function removeGlobalPropCache() {
4
+ localStorage.removeItem(canShowOrgTree)
5
+ }
6
+
7
+ export function getCanShowOrgTree() {
8
+ return localStorage.getItem(canShowOrgTree)
9
+ }
10
+
11
+ export function cacheCanShowOrgTree(value) {
12
+ localStorage.setItem(canShowOrgTree, value)
13
+ }
14
+
15
+ export function removeCanShowOrgTree() {
16
+ localStorage.removeItem(canShowOrgTree)
17
+ }
@@ -53,6 +53,7 @@ import AppLink from './Link.vue'
53
53
  import * as Vue from 'vue'
54
54
  import tabJs from '../../../api/tab'
55
55
  import { getI18nName } from '../../../utils/menu'
56
+ import { getRelativeBaseUrl, getURLSearchParamObj } from '../../../utils/common-util'
56
57
  // import { SidebarItemChild } from './SidebarItemChild.vue'
57
58
  export default {
58
59
  name: 'SidebarItem',
@@ -171,6 +172,11 @@ export default {
171
172
  url = url.substring(0, url.lastIndexOf('&'))
172
173
  }
173
174
  }
175
+ const paramObj = getURLSearchParamObj(url)
176
+ if(paramObj && paramObj._isThird && paramObj._isThird === 'false') {
177
+ // 表示不是第3方系统,需要替换域名,内网外网部署时需要使用
178
+ url = getRelativeBaseUrl(url)
179
+ }
174
180
  window.open(url, toPathObj.query._menuName)
175
181
  } else {
176
182
  // 刷新页签打开菜单
@@ -35,6 +35,7 @@
35
35
  <script>
36
36
  import * as Vue from 'vue'
37
37
  import { mapGetters } from 'vuex'
38
+ import { getRelativeBaseUrl, getURLSearchParamObj } from '../../../utils/common-util'
38
39
  export default {
39
40
  name: 'TabContent',
40
41
  data() {
@@ -158,6 +159,11 @@ export default {
158
159
  ) {
159
160
  path = path.substring(0, path.lastIndexOf('&'))
160
161
  }
162
+ const paramObj = getURLSearchParamObj(path)
163
+ if(paramObj && paramObj._isThird && paramObj._isThird === 'false') {
164
+ // 表示不是第3方系统,需要替换域名,内网外网部署时需要使用
165
+ path = getRelativeBaseUrl(path)
166
+ }
161
167
  return path
162
168
  },
163
169
  recieveMessage(event) {