agilebuilder-ui 1.1.36-sit5 → 1.1.36-tmp2

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 (68) hide show
  1. package/lib/{401-dff6f99e.js → 401-6ea3c6c5.js} +1 -1
  2. package/lib/{404-1062cf9d.js → 404-3e2646fe.js} +1 -1
  3. package/lib/{iframe-page-e229c419.js → iframe-page-90bd67da.js} +1 -1
  4. package/lib/{index-09cd1ad3.js → index-4d1f30e6.js} +12677 -12739
  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-0c3b2101.js → tab-content-iframe-index-d5e6b5b7.js} +1 -1
  9. package/lib/{tab-content-index-dcdefb56.js → tab-content-index-cb415040.js} +1 -1
  10. package/lib/{tache-subprocess-history-06b435b8.js → tache-subprocess-history-24a665c5.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree/src/department-tree.vue +123 -130
  13. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +466 -435
  14. package/packages/department-tree-inline/src/department-single-tree-inline.vue +342 -335
  15. package/packages/department-tree-inline/src/department-tree-inline.vue +11 -18
  16. package/packages/department-tree-inline/src/department-tree-service.js +11 -10
  17. package/packages/department-tree-mobile/src/department-tree-app.vue +75 -103
  18. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +225 -256
  19. package/packages/department-tree-mobile/src/department-tree-service.ts +75 -98
  20. package/packages/department-user-tree/src/department-user-multiple-tree.vue +115 -112
  21. package/packages/department-user-tree/src/department-user-single-tree.vue +88 -85
  22. package/packages/department-user-tree/src/department-user-tree.vue +119 -127
  23. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -6
  24. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -5
  25. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +11 -18
  26. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +51 -26
  27. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +45 -25
  28. package/packages/department-user-tree-inline/src/group-user/group-list.vue +90 -97
  29. package/packages/department-user-tree-inline/src/group-user/group-user.vue +32 -28
  30. package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +75 -103
  31. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +224 -282
  32. package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +51 -58
  33. package/packages/fs-preview/src/fs-preview.vue +2 -20
  34. package/packages/fs-upload-list/src/fs-upload-list.vue +7 -30
  35. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +1 -1
  36. package/packages/fs-upload-new/src/fs-preview-new.vue +15 -27
  37. package/packages/index.js +5 -4
  38. package/packages/organization-input/src/organization-input.vue +12 -34
  39. package/packages/super-grid/src/apis.js +4 -21
  40. package/packages/super-grid/src/dynamic-input.vue +13 -58
  41. package/packages/super-grid/src/normal-column-content.vue +1 -2
  42. package/packages/super-grid/src/row-operation.vue +13 -23
  43. package/packages/super-grid/src/super-grid.vue +42 -51
  44. package/packages/super-grid/src/utils.js +8 -13
  45. package/packages/super-icon/src/index.vue +1 -4
  46. package/packages/workgroup-tree/src/workgroup-tree.vue +110 -117
  47. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +1 -6
  48. package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +75 -103
  49. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +208 -229
  50. package/src/api/sso-service.js +5 -6
  51. package/src/directives/permission/index.js +5 -4
  52. package/src/directives/permission/permission.js +1 -0
  53. package/src/index.js +5 -70
  54. package/src/store/modules/table.js +1 -0
  55. package/src/styles/theme/dark-blue/sidebar.scss +0 -9
  56. package/src/styles/theme/gray/sidebar.scss +8 -9
  57. package/src/styles/theme/green/sidebar.scss +0 -10
  58. package/src/styles/theme/ocean-blue/sidebar.scss +0 -9
  59. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -9
  60. package/src/utils/insert_css.js +1 -1
  61. package/src/utils/util.js +0 -19
  62. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
  63. package/src/views/dsc-component/Sidebar/index.vue +18 -36
  64. package/src/views/layout/components/Menubar/Item.vue +9 -0
  65. package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
  66. package/src/views/layout/components/Sidebar/Item.vue +1 -4
  67. package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
  68. package/vite.config.js +1 -1
package/src/index.js CHANGED
@@ -1,91 +1,26 @@
1
- // 依次导入组件库的各个组件
2
- // import Breadcrumb from '../packages/breadcrumb'
3
- // import DepartmentTree from '../packages/department-tree'
4
- // import Hamburger from '../packages/hamburger'
5
- // import SvgIcon from '../packages/svg-icon'
6
- // import SuperGrid from '../packages/super-grid'
7
- // import DepartmentUserTree from '../packages/department-user-tree'
8
- // import WorkgroupTree from '../packages/workgroup-tree'
9
- // import WorkgroupUserTree from '../packages/workgroup-user-tree'
10
- // import InlineDepartmentTree from '../packages/department-tree-inline'
11
- // import InlineDepartmentUserTree from '../packages/department-user-tree-inline'
12
- // import InlineWorkgroupTree from '../packages/workgroup-tree-inline'
13
- // import InlineWorkgroupUserTree from '../packages/workgroup-user-tree-inline'
14
- // import WorkflowButton from '../packages/workflow-button'
15
- // import WorkflowHistoryList from '../packages/workflow-history-list'
16
1
  import PreventReclick from '../packages/directives/prevent-reclick'
17
- // import exportPlugin from '../packages/export-data/index'
18
- // import ValidCode from '../packages/valid-code'
19
2
  import customPlugin from '../packages/plugins/index'
20
- // import RemoveUser from '../packages/remove-user'
21
- // import RemoveDepartment from '../packages/remove-department'
22
- // import RemoveWorkgroup from '../packages/remove-workgroup'
23
- // import OrganizationInput from '../packages/organization-input'
24
- // import SuperNineGrid from '../packages/super-nine-grid'
25
- // import DynamicSourceSelect from '../packages/dynamic-source-select'
26
- // import FsUpload from '../packages/fs-upload'
27
- // import ScanCodeInput from '../packages/scan-code-input'
28
- // import FsPreview from '../packages/fs-preview'
29
- // import FsUploadList from '../packages/fs-upload-list'
30
3
  import { openPage } from './utils/jump-page-utils'
31
- // import YearRangePicker from '../packages/year-range-picker'
32
- // import MultipartUpload from '../packages/multipart-upload'
33
- // import RichEditor from '../packages/rich-editor'
34
- // import SecretInfo from '../packages/secret-info'
35
4
  import plugins from '../packages/plugins/index'
36
5
  import permission from './directives/permission'
37
6
 
38
7
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
39
8
  const install = function (Vue) {
40
- window.$vueApp.directive('prevent-reclick', PreventReclick)
9
+ alert('src-index--install--3333')
10
+ Vue.directive('prevent-reclick', PreventReclick)
41
11
  permission.install(Vue)
42
- window.$vueApp.use(customPlugin)
43
- window.$vueApp.use(plugins)
12
+ Vue.use(customPlugin)
13
+ Vue.use(plugins)
44
14
  if (install.installed) return
45
- // components.map(component => Vue.component(component.name, component))
46
- // components.forEach(component => {
47
- // Vue.component(component.name, component)
48
- // })
49
15
  // 将弹出页面方法注册到window对象上
50
16
  window['$plateform_openPage'] = openPage
51
17
  }
52
18
 
53
19
  // 判断是否是直接引入vue的js文件,即全局引用可自动安装所有组件
54
20
  if (typeof window !== 'undefined' && window.Vue) {
21
+ alert('src-index---install--44444')
55
22
  install(window.Vue)
56
23
  }
57
- // 按需引入
58
- // export {
59
- // Breadcrumb,
60
- // DepartmentTree,
61
- // Hamburger,
62
- // SvgIcon,
63
- // SuperGrid,
64
- // DepartmentUserTree,
65
- // WorkgroupTree,
66
- // WorkgroupUserTree,
67
- // InlineDepartmentTree,
68
- // InlineDepartmentUserTree,
69
- // InlineWorkgroupTree,
70
- // InlineWorkgroupUserTree,
71
- // WorkflowButton,
72
- // WorkflowHistoryList,
73
- // ValidCode,
74
- // RemoveUser,
75
- // RemoveDepartment,
76
- // RemoveWorkgroup,
77
- // OrganizationInput,
78
- // SuperNineGrid,
79
- // DynamicSourceSelect,
80
- // FsUpload,
81
- // ScanCodeInput,
82
- // FsPreview,
83
- // FsUploadList,
84
- // YearRangePicker,
85
- // MultipartUpload,
86
- // RichEditor,
87
- // SecretInfo
88
- // }
89
24
 
90
25
  export default {
91
26
  // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
@@ -68,6 +68,7 @@ const app = {
68
68
  * @param {Object} context - 上下文对象
69
69
  */
70
70
  clearAllEditing({ commit }) {
71
+ debugger
71
72
  commit('clearAllEditing');
72
73
  }
73
74
  },
@@ -220,15 +220,6 @@
220
220
  }
221
221
  }
222
222
 
223
- // 注释的原因:会导致孙子菜单显示的位置不正确
224
- // .sidebar-container-popper .el-menu{
225
- // // height: 100vh;
226
- // height: auto;
227
- // max-height: 100vh;
228
- // overflow-y: auto;
229
- // overflow-x: hidden;
230
- // scroll-behavior: smooth;
231
- // }
232
223
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
233
224
  background: #F7F7F8;
234
225
  color: rgba(0, 13, 31, 0.85);
@@ -189,15 +189,14 @@
189
189
  }
190
190
  }
191
191
 
192
- // 注释的原因:会导致孙子菜单显示的位置不正确
193
- // .sidebar-container-popper .el-menu{
194
- // // height: 100vh;
195
- // height: auto;
196
- // max-height: 100vh;
197
- // overflow-y: auto;
198
- // overflow-x: hidden;
199
- // scroll-behavior: smooth;
200
- // }
192
+ .sidebar-container-popper .el-menu{
193
+ // height: 100vh;
194
+ height: auto;
195
+ max-height: 100vh;
196
+ overflow-y: auto;
197
+ overflow-x: hidden;
198
+ scroll-behavior: smooth;
199
+ }
201
200
 
202
201
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
203
202
  background: #F7F7F8;
@@ -223,16 +223,6 @@
223
223
  }
224
224
  }
225
225
 
226
- // 注释的原因:会导致孙子菜单显示的位置不正确
227
- // .sidebar-container-popper .el-menu{
228
- // // height: 100vh;
229
- // height: auto;
230
- // max-height: 100vh;
231
- // overflow-y: auto;
232
- // overflow-x: hidden;
233
- // scroll-behavior: smooth;
234
- // }
235
-
236
226
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
237
227
  background: #F7F7F8;
238
228
  color: rgba(0, 13, 31, 0.85);
@@ -217,15 +217,6 @@
217
217
  }
218
218
  }
219
219
 
220
- // 注释的原因:会导致孙子菜单显示的位置不正确
221
- // .sidebar-container-popper .el-menu{
222
- // // height: 100vh;
223
- // height: auto;
224
- // max-height: 100vh;
225
- // overflow-y: auto;
226
- // overflow-x: hidden;
227
- // scroll-behavior: smooth;
228
- // }
229
220
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
230
221
  background: #F7F7F8;
231
222
  color: rgba(0, 13, 31, 0.85);
@@ -219,15 +219,6 @@
219
219
  }
220
220
  }
221
221
 
222
- // 注释的原因:会导致孙子菜单显示的位置不正确
223
- // .sidebar-container-popper .el-menu{
224
- // // height: 100vh;
225
- // height: auto;
226
- // max-height: 100vh;
227
- // overflow-y: auto;
228
- // overflow-x: hidden;
229
- // scroll-behavior: smooth;
230
- // }
231
222
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
232
223
  background: #F7F7F8;
233
224
  color: rgba(0, 13, 31, 0.85);
@@ -18,7 +18,7 @@ if (!window.insertCssFile) {
18
18
  const timestamp = new Date().getTime();
19
19
  const link = document.createElement('link');
20
20
  link.rel = 'stylesheet';
21
- link.href = cssUrl;
21
+ link.href = cssUrl + `?_v=${timestamp}`;
22
22
  link.onload = function () {
23
23
  window.insertedCssFiles.add(cssUrl);
24
24
  };
package/src/utils/util.js CHANGED
@@ -624,7 +624,6 @@ export function getPropValueNew(propValue, pageContext, row) {
624
624
  let value = null
625
625
  if (propValue && propValue !== null && propValue !== '') {
626
626
  const entity = pageContext && pageContext.entity ? pageContext.entity.data : null
627
- const pageVar = pageContext && pageContext.entity ? pageContext.entity.page : null
628
627
  const additionalParamMap = getAdditionalParamMap(pageContext)
629
628
  const contextParameterMap = pageContext && pageContext.entity ? pageContext.entity.context : null
630
629
  const parentEntity =
@@ -644,9 +643,6 @@ export function getPropValueNew(propValue, pageContext, row) {
644
643
  const propName = propValue.replace('${row.', '').replace('}', '')
645
644
  value = getEntityFieldValue(row, propName)
646
645
  }
647
- } else if (propValue.indexOf('${page.') === 0) {
648
- const variable = propValue.replace('${page.', '').replace('}', '')
649
- value = pageVar ? pageVar[variable] : null
650
646
  } else if (
651
647
  propValue.includes('${context.') ||
652
648
  propValue.includes('${request.') ||
@@ -934,18 +930,3 @@ export function isImage(fileName) {
934
930
  return false
935
931
  }
936
932
  }
937
-
938
- export function watchPageContextDynamicVariable(that, pageContext, variable, callback) {
939
- const match = variable.match(/\${(.*?)}/)
940
- if (!match) return
941
- const path = match ? match[1].split('.') : []
942
- if (path && path.length > 0) {
943
- // 监听 pageContext.entity[type][field][xxx]... 的变化
944
- that.$watch(
945
- () => path.reduce((obj, key) => obj[key], pageContext.entity),
946
- (newVal, oldVal) => {
947
- callback(newVal, oldVal)
948
- }
949
- )
950
- }
951
- }
@@ -192,8 +192,8 @@ export default {
192
192
  <style lang="scss" scoped>
193
193
  .smb-sidebar-menu-item {
194
194
  position: relative;
195
- --el-menu-item-height: 45px;
196
- --el-menu-sub-item-height: 45px;
195
+ --el-menu-item-height: 36px;
196
+ --el-menu-sub-item-height: 36px;
197
197
  &.el-menu-item, &.el-sub-menu {
198
198
  padding: 0 !important;
199
199
  &:not(:has(> .el-tooltip__trigger)) {
@@ -46,10 +46,8 @@ export default {
46
46
  },
47
47
  data() {
48
48
  const menus = getMenus()
49
- const isSelectFirst = window.$vueApp.config.globalProperties.showFirstMenu === undefined || window.$vueApp.config.globalProperties.showFirstMenu === null? true : window.$vueApp.config.globalProperties.showFirstMenu
50
49
  return {
51
50
  menus: Object.freeze(menus),
52
- isSelectFirst
53
51
  }
54
52
  },
55
53
  computed: {
@@ -140,54 +138,38 @@ export default {
140
138
  const b = new Date().getTime()
141
139
  console.log('菜单组件==>getMyFirstMenu==>b-a', b - a)
142
140
  // 默认不展示第一个有权限的菜单了,可以去掉下面的代码
143
- if (!shouldSelectMenu) {
144
- shouldSelectMenu = this.getSelectMenuWithFirstMenu(menus[0])
145
- }
141
+ // if (!shouldSelectMenu) {
142
+ // shouldSelectMenu = this.getSelectMenuWithFirstMenu(menus[0])
143
+ // }
146
144
  return shouldSelectMenu
147
145
  }
148
146
  },
149
147
  getFirstMenu(menus) {
150
- const currentMenuCode = this.$route.query
151
- ? this.$route.query._menuCode
152
- : null
153
- let shouldSelectMenu
154
- if(currentMenuCode){
155
- // 表示需要选中指定的菜单
156
- this.isSelectFirst = true
157
- } else {
158
- shouldSelectMenu = this.getFirstMenuWithCookie(menus)
159
- }
160
- console.log('getFirstMenu=====shouldSelectMenu111=', shouldSelectMenu)
161
- if (this.isSelectFirst && !shouldSelectMenu && menus && menus.length > 0) {
148
+ if (menus && menus.length > 0) {
149
+ let shouldSelectMenu
162
150
  for (let i = 0; i < menus.length; i++) {
163
151
  const menu = menus[i]
164
- shouldSelectMenu = this.getShouldSelectMenu(menu, currentMenuCode)
152
+ shouldSelectMenu = this.getShouldSelectMenu(menu)
165
153
  if (shouldSelectMenu) {
166
154
  // 表示获得到了应该选中的菜单
167
155
  break
168
156
  }
169
157
  }
158
+ return shouldSelectMenu
170
159
  }
171
- console.log('getFirstMenu=====shouldSelectMenu222=', shouldSelectMenu)
172
- return shouldSelectMenu
173
160
  },
174
- getShouldSelectMenu(menu, currentMenuCode) {
175
- if (menu) {
161
+ getShouldSelectMenu(menu) {
162
+ // console.log('dsc--getShouldSelectMenu--this.$route=', this.$route)
163
+ const currentMenuCode = this.$route.query
164
+ ? this.$route.query._menuCode
165
+ : null
166
+ if (menu && currentMenuCode) {
176
167
  let shouldSelectMenu
177
- if(currentMenuCode){
178
- const children = menu.children
179
- if (children && children.length > 0) {
180
- shouldSelectMenu = this.getFirstMenu(children)
181
- } else if (menu.code && menu.code === currentMenuCode) {
182
- shouldSelectMenu = menu
183
- }
184
- } else {
185
- const children = menu.children
186
- if (children && children.length > 0) {
187
- shouldSelectMenu = this.getFirstMenu(children)
188
- } else {
189
- shouldSelectMenu = menu
190
- }
168
+ const children = menu.children
169
+ if (children && children.length > 0) {
170
+ shouldSelectMenu = this.getFirstMenu(children)
171
+ } else if (menu.code && menu.code === currentMenuCode) {
172
+ shouldSelectMenu = menu
191
173
  }
192
174
  return shouldSelectMenu
193
175
  }
@@ -40,6 +40,15 @@ export default defineComponent({
40
40
  let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
41
41
  if (icon) {
42
42
  iconsData = [h(SuperIcon, { iconValue: icon })]
43
+ // if (icon.indexOf('amb-icon') === 0) {
44
+ // iconsData = [h('i',{class: 'amb-iconfont ' + icon})]
45
+ // } else if (icon.indexOf('fa-') === 0) {
46
+ // iconsData = [h('i',{class: 'fa ' + icon})]
47
+ // } else if (icon.indexOf('svg-') === 0) {
48
+ // iconsData = [h(SvgIcon,{'icon-class': icon.substring(icon.indexOf('svg-') + 4)})]
49
+ // } else {
50
+ // iconsData = [h('i',{class: icon + ' svg-icon'})]
51
+ // }
43
52
  }
44
53
  vnodes.push(h('div', { class: ['smb-sidebar-menu-item-icon'] }, iconsData))
45
54
  if (title) {
@@ -254,8 +254,8 @@ export default {
254
254
  <style lang="scss" scoped>
255
255
  .smb-sidebar-menu-item {
256
256
  position: relative;
257
- --el-menu-item-height: 45px;
258
- --el-menu-sub-item-height: 45px;
257
+ --el-menu-item-height: 36px;
258
+ --el-menu-sub-item-height: 36px;
259
259
  &.el-menu-item, &.el-sub-menu {
260
260
  padding: 0 !important;
261
261
  &:not(:has(> .el-tooltip__trigger)) {
@@ -9,10 +9,7 @@ export default function render(_props, _context) {
9
9
  }
10
10
  const { icon, title, hasChildren } = context.props
11
11
  const vnodes = []
12
- let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
13
- if (icon) {
14
- iconsData = [h(SuperIcon, { iconValue: icon })]
15
- }
12
+ let iconsData = <svg-icon icon-class={ icon || 'meun_post'} />
16
13
 
17
14
  vnodes.push(<div class="smb-sidebar-menu-item-icon">{ iconsData }</div>)
18
15
 
@@ -140,8 +140,8 @@ export default {
140
140
  <style lang="scss" scoped>
141
141
  .smb-sidebar-menu-item {
142
142
  position: relative;
143
- --el-menu-item-height: 45px;
144
- --el-menu-sub-item-height: 45px;
143
+ --el-menu-item-height: 36px;
144
+ --el-menu-sub-item-height: 36px;
145
145
  &.el-menu-item, &.el-sub-menu {
146
146
  padding: 0 !important;
147
147
  &:not(:has(> .el-tooltip__trigger)) {
package/vite.config.js CHANGED
@@ -30,7 +30,7 @@ export default defineConfig(({ mode }) => ({
30
30
  }, //库编译模式配置
31
31
  rollupOptions: {
32
32
  // 确保外部化处理那些你不想打包进库的依赖
33
- external: ["vue", "jsx"],
33
+ external: ["vue"],
34
34
  output: {
35
35
  // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
36
36
  globals: {