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
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <!--将@click改为@mousedown.native是因为操作列保存按钮时事件和input等组件的@blur冲突,导致保存需要保存两次,因为
3
3
  @blur先于@click执行的,所以只会执行@blur,@click就失效了,@mousedown是先于@blur执行的-->
4
- <span class="table-operation-row-btn" :style="myStyle">
4
+ <span :style="myStyle">
5
5
  <template v-if="isShowButton()">
6
6
  <el-tooltip :disabled="tooltipDisabled" :content="label" placement="top">
7
- <template v-if="operationSettingData?.permission">
7
+ <template v-if="operationSettingData.permission">
8
8
  <component
9
9
  v-bind="operationSettingData"
10
10
  :is="isElementType"
@@ -77,13 +77,9 @@ export default {
77
77
  type: String,
78
78
  default: null,
79
79
  },
80
- operation: {
81
- type: Object,
82
- default: () => ({}),
83
- },
84
80
  operationSetting: {
85
81
  type: Object,
86
- default: () => ({}),
82
+ default: null,
87
83
  },
88
84
  operationIndex: {
89
85
  type: Number,
@@ -96,11 +92,6 @@ export default {
96
92
  parentFormData: {
97
93
  type: Object,
98
94
  default: null
99
- },
100
- // 按钮绑定的事件名称
101
- eventName: {
102
- type: String,
103
- default: null
104
95
  }
105
96
  },
106
97
  data() {
@@ -113,20 +104,19 @@ export default {
113
104
  ...mapGetters(['preventReclick']),
114
105
  // 是否是保存按钮
115
106
  isSaveRow() {
116
- return ['lineEditSave', 'saveRow'].includes(this.eventName)
107
+ return /^\s*function\s+saveRow*\s*\(/.test((this.onClick ?? ''))
117
108
  },
118
109
  // 是否是删除按钮
119
110
  isDeleteRow() {
120
- return ['lineEditDelete', 'deleteRow'].includes(this.eventName)
111
+ return /^\s*function\s+deleteRow*\s*\(/.test((this.onClick ?? ''))
121
112
  },
122
113
  // 是否是修改按钮
123
114
  isEditRow() {
124
- return ['lineEditUpdate', 'editRow'].includes(this.eventName)
115
+ return /^\s*function\s+editRow*\s*\(/.test((this.onClick ?? ''))
125
116
  },
126
117
  // 是否是取消按钮
127
118
  isRestoreRow() {
128
- return ['restoreEdit', 'restoreRow'].includes(this.eventName)
129
- // return /^\s*function\s+restoreRow*\s*\(/.test((this.onClick ?? ''))
119
+ return /^\s*function\s+restoreRow*\s*\(/.test((this.onClick ?? ''))
130
120
  },
131
121
  // 前置图标
132
122
  prefixIcon() {
@@ -152,16 +142,16 @@ export default {
152
142
  },
153
143
  // 后置图标
154
144
  suffixIcon() {
155
- if(['right'].includes(this.operationSetting.iconPosition)) return this.operationSetting.iconValue
145
+ if(['right'].includes(this.operationSettingData.iconPosition)) return this.operationSetting.iconValue
156
146
  return undefined
157
147
  },
158
148
  // 是否显示文字按钮 > 图标模式
159
149
  isTextIcon() {
160
150
  if (this.isTableBtnLinkShow) {
161
- if (this.operationSetting.isTextIcon === undefined) {
151
+ if (this.operationSettingData.isTextIcon === undefined) {
162
152
  return this.isSaveRow || this.isDeleteRow || this.isEditRow || this.isRestoreRow
163
153
  }
164
- return this.operationSetting.isTextIcon
154
+ return this.operationSettingData.isTextIcon
165
155
  } else {
166
156
  return false
167
157
  }
@@ -176,14 +166,14 @@ export default {
176
166
  },
177
167
  // 是否自动开启表格 按钮 转 文字按钮
178
168
  isTableBtnLinkShow() {
179
- if (this.operationSetting?.text) return true
169
+ if (this.operationSetting.text) return true
180
170
  if (this.isTableBtnLink && this.elementType === 'el-button') {
181
- return [this.operationSetting?.text, this.operationSetting?.plain, this.operationSetting?.round].every(v => v === undefined)
171
+ return [this.operationSetting.text, this.operationSetting.plain, this.operationSetting.round].every(v => v === undefined)
182
172
  }
183
173
  return false
184
174
  },
185
175
  operationSettingData() {
186
- const dataList = { ...(this.operationSetting ?? {}) }
176
+ const dataList = { ...this.operationSetting }
187
177
  if (this.isTableBtnLinkShow) {
188
178
  dataList.underline = false
189
179
  delete dataList.text
@@ -581,15 +581,11 @@ export default {
581
581
  if (gridParams && gridParams.options && gridParams.options.rowKeyProp) {
582
582
  return gridParams.options.rowKeyProp
583
583
  } else {
584
- // 使用rowDataGuId作为唯一标识,解决台账显示或不显示id。
585
- // 大小写、或(子表时id还不存在问题,导致行选择和push新数据后 3行数据,
586
- // 在第二行插入数据,因为key问题3、4行数据变成一样的)
587
- return '$rowDataGuId'
588
- // if (this.dataSourceType === 'oracle') {
589
- // return 'ID'
590
- // } else {
591
- // return 'id'
592
- // }
584
+ if (this.dataSourceType === 'oracle') {
585
+ return 'ID'
586
+ } else {
587
+ return 'id'
588
+ }
593
589
  }
594
590
  },
595
591
  filterGridData() {
@@ -634,12 +630,15 @@ export default {
634
630
  tableDatas: {
635
631
  deep: true,
636
632
  immediate: true,
637
- handler(a, b) {}
633
+ handler(a, b) {
634
+ console.log('SGQ --- 表格监听数据修改============================》', a, b)
635
+ }
638
636
  },
639
637
  'options.SuperGrid': {
640
638
  deep: true,
641
639
  handler: function () {
642
640
  this.externalClickFlag = true
641
+ console.log('监听到数据改变')
643
642
  this.initSetting()
644
643
  this.initialize()
645
644
  }
@@ -715,6 +714,7 @@ export default {
715
714
  deep: true,
716
715
  handler: function () {
717
716
  this.externalClickFlag = true
717
+ console.log('监听到数据改变================', this.options.validateRules)
718
718
  const gridParams = store.get(this.code)
719
719
  if (gridParams && gridParams.options) {
720
720
  gridParams.options.validateRules = this.options.validateRules
@@ -746,6 +746,7 @@ export default {
746
746
  'options.extraParam.entityMap': {
747
747
  deep: true,
748
748
  handler(newValue, oldValue) {
749
+ console.log('watch====options.extraParam.entityMap===改变==', newValue)
749
750
  this.parentFormData = newValue
750
751
  this.$emit('change-form-data', this.parentFormData)
751
752
  }
@@ -936,6 +937,7 @@ export default {
936
937
  if (that.options.isEnableEnterEvent !== undefined && that.options.isEnableEnterEvent === false) {
937
938
  canCall = false
938
939
  }
940
+ console.log('super-grid-----isEnableEnterEvent=', that.options.isEnableEnterEvent, 'canCall=', canCall)
939
941
  const gridParams = store.get(that.code)
940
942
  if (canCall && gridParams.options && gridParams.options.isFormSubTable) {
941
943
  canCall = false
@@ -992,19 +994,19 @@ export default {
992
994
  tempMaxHeight = tableHeight
993
995
  }
994
996
  }
995
- if (tempMaxHeight === null) {
997
+ if(tempMaxHeight === null){
996
998
  // 高度是null会导致页面卡死
997
999
  tempMaxHeight = undefined
998
1000
  }
999
- if (tempMaxHeight !== null && tempMaxHeight !== undefined && parseFloat(tempMaxHeight + '') < 100) {
1001
+ if(tempMaxHeight !== null && tempMaxHeight !== undefined && parseFloat(tempMaxHeight+'') < 100){
1000
1002
  // 如果小于100时,高度给100
1001
1003
  tempMaxHeight = 100
1002
1004
  }
1003
- if (tempMaxHeight !== null && tempMaxHeight !== undefined) {
1005
+ if(tempMaxHeight !== null && tempMaxHeight !== undefined){
1004
1006
  // 用parseFloat是因为tempMaxHeight的值有时是数字字符串
1005
- tempMaxHeight = parseFloat(tempMaxHeight + '')
1006
- }
1007
- if (gridParams.options && gridParams.options.isFormSubTable) {
1007
+ tempMaxHeight = parseFloat(tempMaxHeight+'')
1008
+ }
1009
+ if(gridParams.options && gridParams.options.isFormSubTable){
1008
1010
  // 表示表单页面子表时,不解析 显示效果了,直接使用高度就行了
1009
1011
  if (
1010
1012
  !this.basicInfo.displayEffect ||
@@ -1035,6 +1037,16 @@ export default {
1035
1037
  this.tableHeight = undefined
1036
1038
  }
1037
1039
  }
1040
+ console.log(
1041
+ 'resizeTableHeight-----tempMaxHeight=',
1042
+ tempMaxHeight,
1043
+ 'this.tableHeight=',
1044
+ this.tableHeight,
1045
+ 'this.maxHeight=',
1046
+ this.maxHeight,
1047
+ 'gridParams.options=',
1048
+ gridParams.options
1049
+ )
1038
1050
  })
1039
1051
  },
1040
1052
  // 回车键
@@ -1544,6 +1556,7 @@ export default {
1544
1556
  // 子表无记录时不需要刷新子表记录。表示是新建或修改时子表无记录,且不需要刷新子表。
1545
1557
  if (this.isSubTableEmpty(gridParams)) {
1546
1558
  // 表示是新建表单时,子表记录集合是空数组
1559
+ console.log('子表无记录----code=', this.code, gridParams)
1547
1560
  const subTableData = []
1548
1561
  this.packageSubTableData(gridParams, subTableData)
1549
1562
  }
@@ -2167,7 +2180,7 @@ export default {
2167
2180
  } else {
2168
2181
  vm.fetchData(vm.getSearchParam(), isSearch, parentRowIds)
2169
2182
  .then((data) => {
2170
- // console.log('打印1====', gridParams)
2183
+ console.log('打印1====', gridParams)
2171
2184
  if (
2172
2185
  gridParams !== undefined &&
2173
2186
  gridParams.options !== undefined &&
@@ -2175,18 +2188,18 @@ export default {
2175
2188
  gridParams.options.isHiddenSearchForm === true
2176
2189
  ) {
2177
2190
  // 查询时,是否隐藏查询区域,默认是不隐藏查询区域
2178
- // console.log('打印2====', vm)
2191
+ console.log('打印2====', vm)
2179
2192
  vm.showSearch = false
2180
2193
  $emit(vm, 'cancel-search')
2181
2194
  }
2182
- // console.log('打印3====', vm)
2183
- // console.log('打印4====', vm.$refs)
2195
+ console.log('打印3====', vm)
2196
+ console.log('打印4====', vm.$refs)
2184
2197
  if (vm.$refs && vm.$refs.sf) {
2185
- // console.log('打印5====', vm.$refs.sf)
2198
+ console.log('打印5====', vm.$refs.sf)
2186
2199
  vm.$refs.sf.loading = false
2187
2200
  vm.$refs.sf.searchComplete()
2188
2201
  }
2189
- // console.log('打印6====', vm)
2202
+ console.log('打印6====', vm)
2190
2203
  // 重新计算列表高度
2191
2204
  this.resizeTableHeight()
2192
2205
  resolve(data)
@@ -2331,6 +2344,8 @@ export default {
2331
2344
  } else if (prop === undefined && column.children && column.children.length > 0) {
2332
2345
  type = 'GroupColumn'
2333
2346
  }
2347
+ // console.log('%c描述-180428','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px',this.myCustomFormatter);
2348
+ // console.log('%c描述-155704','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px',type);
2334
2349
  return type
2335
2350
  },
2336
2351
  focusOnFirstEditableInput() {
@@ -2341,6 +2356,7 @@ export default {
2341
2356
  },
2342
2357
  handleSizeChange(val) {
2343
2358
  if (!this.options || !this.options.isPageShow) {
2359
+ // console.log(`每页 ${val} 条`)
2344
2360
  this.currentPage = 1
2345
2361
  this.pageSize = val
2346
2362
  this.pagination.pageSize = val
@@ -2823,6 +2839,7 @@ export default {
2823
2839
  return this.isSubTableShowPage ? this.subTableData : this.gridData
2824
2840
  },
2825
2841
  rowDblclickEvent(row, column, event) {
2842
+ debugger
2826
2843
  const gridParams = store.get(this.code)
2827
2844
  if (gridParams.options && gridParams.options.isFormSubTable && gridParams.options.isPdfEditor) {
2828
2845
  // 如果是子表并且是pdf模式
@@ -2832,6 +2849,7 @@ export default {
2832
2849
  let canEdit = true
2833
2850
  const gridParams = store.get(this.code)
2834
2851
  if (isEditOptionFunction('beforeEdit', this.code)) {
2852
+ debugger;
2835
2853
  const isSubTableShowPage = gridParams.isSubTableShowPage
2836
2854
  // 每页显示多少条
2837
2855
  const pageSize = gridParams.pagination && gridParams.pagination.pageSize
@@ -2862,6 +2880,7 @@ export default {
2862
2880
  }
2863
2881
  } else {
2864
2882
  if (row) {
2883
+ debugger
2865
2884
  if (gridParams && gridParams.lineEdit && gridParams.lineEdit.editable && gridParams.canntEdit) {
2866
2885
  let index = this.gridData.findIndex(function (item) {
2867
2886
  return (item.id && item.id === row.id) || (item.ID && item.ID === row.ID)
@@ -2876,6 +2895,7 @@ export default {
2876
2895
  this.rowDblClick(row, column, event)
2877
2896
  },
2878
2897
  rowDbClickEditRow(gridParams, row) {
2898
+ console.log('rowDbClickEditRow+++++++++++++++++++', gridParams, row)
2879
2899
  // 取消上一行的编辑状态
2880
2900
  let editRows
2881
2901
  if (this.isSubTableShowPage) {
@@ -3333,35 +3353,6 @@ export default {
3333
3353
  },
3334
3354
  changeOperationAddState(state) {
3335
3355
  eventBus.$emit('change-add-state', state)
3336
- },
3337
- scrollTo(options, yCoord) {
3338
- this.$refs.superGrid?.scrollTo(options, yCoord)
3339
- },
3340
- setScrollTop(top) {
3341
- this.$refs.superGrid?.setScrollTop(top)
3342
- },
3343
- setScrollLeft(left) {
3344
- this.$refs.superGrid?.setScrollLeft(left)
3345
- },
3346
- setScrollTopByRowIndex(rowIndex) {
3347
- if (this.$refs.superGrid) {
3348
- const theTableRows = this.$refs.superGrid.$el.querySelectorAll('.el-table__body tbody .el-table__row')
3349
- let scrollTop = 0
3350
- for (let i = 0; i < theTableRows.length; i++) {
3351
- if (i === rowIndex) {
3352
- break
3353
- }
3354
- scrollTop += theTableRows[i].offsetHeight
3355
- }
3356
- this.$refs.superGrid.setScrollTop(scrollTop)
3357
- }
3358
- },
3359
- setCurrentRowIndex(rowIndex) {
3360
- // 选中行
3361
- this.$refs.superGrid.setCurrentRow(this.tableDatas[rowIndex])
3362
- },
3363
- getSuperGridRef() {
3364
- return this.$refs.superGrid
3365
3356
  }
3366
3357
  },
3367
3358
  emits: [
@@ -264,14 +264,9 @@ export function isDisableEdit(prop, listCode, row) {
264
264
  }
265
265
  if (isDiabled === false) {
266
266
  // 表示不是禁止编辑的,继续校验自定义规则中是否是禁止编辑的
267
- if (
268
- gridParams.options.customRules &&
269
- (gridParams.options.customRules[prop] || gridParams.options.customRules['_all_fields'])
270
- ) {
271
- const columnRules = gridParams.options.customRules[prop]
272
- ? gridParams.options.customRules[prop]
273
- : gridParams.options.customRules['_all_fields']
274
- if (columnRules && columnRules.disabled) {
267
+ if(gridParams.options.customRules && (gridParams.options.customRules[prop] || gridParams.options.customRules['_all_fields'])){
268
+ const columnRules = gridParams.options.customRules[prop]? gridParams.options.customRules[prop]: gridParams.options.customRules['_all_fields']
269
+ if(columnRules && columnRules.disabled){
275
270
  isDiabled = true
276
271
  }
277
272
  }
@@ -570,6 +565,7 @@ export function getTableHeight(superGrid, listCode, pageHeight) {
570
565
  rect = superGrid.$el.getBoundingClientRect()
571
566
  }
572
567
  const totalHeight = window.innerHeight - (rect?.y ?? 0) - 110
568
+ console.log('rect=', rect, 'window.innerHeight=', window.innerHeight, 'totalHeight=', totalHeight)
573
569
  return totalHeight
574
570
 
575
571
  // let topDivHeight = 120
@@ -759,12 +755,9 @@ export function getDynamicDataSourceOptions(column, isSql, additionalParamMap, b
759
755
 
760
756
  // 值设置是否是动态数据源类型的数据源
761
757
  export function isDynamicDataSourceSource(column) {
762
- if (column.valueSetOptions) {
758
+ if(column.valueSetOptions) {
763
759
  const valueSetOptionsObj = JSON.parse(column.valueSetOptions)
764
- if (
765
- (valueSetOptionsObj.type && valueSetOptionsObj.type === 'dynamicData') ||
766
- valueSetOptionsObj.dynamicDataSourceCode
767
- ) {
760
+ if((valueSetOptionsObj.type && valueSetOptionsObj.type === 'dynamicData') || valueSetOptionsObj.dynamicDataSourceCode){
768
761
  // 表示是动态数据源
769
762
  return true
770
763
  }
@@ -789,8 +782,10 @@ export function getLastPageNum(total, rowsPerPage) {
789
782
  // 纵向滚动条滚动最底部功能
790
783
  export function scrollYToBottom(listCode) {
791
784
  const scrollDivElement = document.querySelector('.' + listCode + ' .el-table--scrollable-y .el-table__body-wrapper')
785
+ console.log('scrollDivElement==', scrollDivElement)
792
786
  if (scrollDivElement && scrollDivElement !== null) {
793
787
  // 表示有滚动条,需要将滚动条滚动最底部
788
+ console.log('scrollDivElement==scrollDivElement.scrollHeight=', scrollDivElement.scrollHeight)
794
789
  scrollDivElement.scrollTop = scrollDivElement.scrollHeight
795
790
  }
796
791
  }
@@ -4,7 +4,7 @@
4
4
  <i v-else-if="iconValue.indexOf('fa-') === 0" :class="'fa ' + iconValue" />
5
5
  <img
6
6
  v-else-if="iconValue.indexOf('svg-img-') === 0"
7
- :src="defaultShowSvgAction + iconValue"
7
+ :src="defaultShowImageAction + iconValue.substring('svg-img-'.length)"
8
8
  style="width: 1em; height: 1em"
9
9
  />
10
10
  <SvgIcon v-else-if="iconValue.indexOf('svg-') === 0" :icon-class="iconValue.substring('svg-'.length)" />
@@ -39,9 +39,6 @@ const props = defineProps({
39
39
  const defaultShowImageAction = ref(
40
40
  window.$vueApp.config.globalProperties.baseAPI + '/component/super-form/show-image?serverPath='
41
41
  )
42
- const defaultShowSvgAction = ref(
43
- window.$vueApp.config.globalProperties.baseAPI + '/component/super-form/show-svg?svgName='
44
- )
45
42
  </script>
46
43
  <style lang="scss" scoped>
47
44
  .super-icon {
@@ -1,127 +1,120 @@
1
1
  <template>
2
- <div>
3
- <WorkgroupMobileTree
4
- v-if="isMobile"
5
- ref="workgroupTree"
6
- :close-on-click-modal="false"
7
- :close-on-press-escape="false"
8
- :branch-info="branchInfo"
9
- :multiple="multiple"
10
- :search-field="searchField"
11
- :select-workgroup-info="selectWorkgroupInfo"
12
- :limit-filter-column="limitFilterColumn"
13
- :separator="separator"
14
- @close="result"
15
- />
16
- <el-dialog
17
- v-else
18
- :close-on-click-modal="false"
19
- :title="myTitle"
20
- :width="multiple ? '60%' : '40%'"
21
- append-to-body
22
- class="user-tree"
23
- model-value
24
- @close="$emit('close')"
25
- @closed="$emit('closed')"
26
- @open="$emit('open')"
27
- @opend="$emit('opend')"
28
- >
29
- <inline-workgroup-tree
30
- ref="workgroupTree"
31
- :branch-info="branchInfo"
32
- :limit-filter-column="limitFilterColumn"
33
- :multiple="multiple"
34
- @result="result"
35
- />
36
- <template v-slot:footer>
37
- <div class="dialog-footer">
38
- <el-button class="button--default" size="default" @click="$emit('close')">
39
- {{ $t('imatrixUIPublicModel.cancel') }}
40
- </el-button>
41
- <el-button size="default" type="primary" @click="selectWorkgroup">
42
- {{ $t('imatrixUIPublicModel.sure') }}
43
- </el-button>
44
- </div>
45
- </template>
46
- </el-dialog>
47
- </div>
2
+ <div>
3
+ <WorkgroupMobileTree
4
+ v-if="isMobile"
5
+ ref="workgroupTree"
6
+ :close-on-click-modal="false"
7
+ :close-on-press-escape="false"
8
+ :branch-info="branchInfo"
9
+ :multiple="multiple"
10
+ :search-field="searchField"
11
+ :select-workgroup-info="selectWorkgroupInfo"
12
+ :separator="separator"
13
+ @close="result"
14
+ />
15
+ <el-dialog
16
+ v-else
17
+ :close-on-click-modal="false"
18
+ :title="myTitle"
19
+ :width="multiple ? '60%' : '40%'"
20
+ append-to-body
21
+ class="user-tree"
22
+ model-value
23
+ @close="$emit('close')"
24
+ @closed="$emit('closed')"
25
+ @open="$emit('open')"
26
+ @opend="$emit('opend')"
27
+ >
28
+ <inline-workgroup-tree
29
+ ref="workgroupTree"
30
+ :branch-info="branchInfo"
31
+ :multiple="multiple"
32
+ @result="result"
33
+ />
34
+ <template v-slot:footer>
35
+ <div class="dialog-footer">
36
+ <el-button class="button--default" size="default" @click="$emit('close')">
37
+ {{ $t('imatrixUIPublicModel.cancel') }}
38
+ </el-button>
39
+ <el-button size="default" type="primary" @click="selectWorkgroup">
40
+ {{ $t('imatrixUIPublicModel.sure') }}
41
+ </el-button>
42
+ </div>
43
+ </template>
44
+ </el-dialog>
45
+ </div>
48
46
  </template>
49
47
 
50
48
  <script>
51
- import { $emit } from '../../utils/gogocodeTransfer'
49
+ import {$emit} from '../../utils/gogocodeTransfer'
52
50
  import InlineWorkgroupTree from '../../workgroup-tree-inline/src/workgroup-tree-inline.vue'
53
51
  import WorkgroupMobileTree from '../../workgroup-tree-mobile/src/workgroup-tree-app.vue'
54
- import { isMobileBrowser } from '../../../src/utils/common-util'
52
+ import {isMobileBrowser} from '../../../src/utils/common-util'
55
53
 
56
54
  export default {
57
- name: 'WorkgroupTree',
58
- components: {
59
- InlineWorkgroupTree,
60
- WorkgroupMobileTree
61
- },
62
- props: {
63
- // 是否是多选树,默认是true
64
- multiple: {
65
- type: Boolean,
66
- default: true
67
- },
68
- // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
69
- branchInfo: {
70
- type: Array,
71
- default: null
72
- },
73
- // 弹框的标题
74
- title: {
75
- type: String,
76
- default: null
77
- },
78
- // 弹框的宽度
79
- width: {
80
- type: String,
81
- default: '60%'
82
- },
83
- // 多选部门树时,已选择部门id或部门名称或编码集合,多个之间以逗号隔开
84
- selectWorkgroupInfo: {
85
- type: [String, Number],
86
- default: null
87
- },
88
- // 移除部门时,部门属性名称:id、name、code,默认是id
89
- searchField: {
90
- type: String,
91
- default: 'code'
92
- },
93
- // 多选树时结果之间的分隔符,默认是逗号分隔
94
- separator: {
95
- type: String,
96
- default: ','
97
- },
98
- // 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
99
- limitFilterColumn: {
100
- type: String,
101
- default: 'code'
102
- }
103
- },
104
- data() {
105
- let myTitle = this.$t('imatrixUIMessage.pleaseSelectATeam')
106
- if (this.title) {
107
- myTitle = this.title
108
- }
109
- const isMobile = isMobileBrowser()
110
- return {
111
- myTitle,
112
- isMobile
113
- }
114
- },
115
- methods: {
116
- // 工作组单选回调
117
- result(selectNodeInfo) {
118
- $emit(this, 'close', selectNodeInfo)
119
- },
120
- // 嵌入树,多选时,点击确定时调用的方法
121
- selectWorkgroup() {
122
- this.$refs.workgroupTree.selectWorkgroup()
123
- }
124
- },
125
- emits: ['open', 'opend', 'close', 'closed', 'opend', 'close', 'closed']
55
+ name: 'WorkgroupTree',
56
+ components: {
57
+ InlineWorkgroupTree,
58
+ WorkgroupMobileTree
59
+ },
60
+ props: {
61
+ // 是否是多选树,默认是true
62
+ multiple: {
63
+ type: Boolean,
64
+ default: true,
65
+ },
66
+ // 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
67
+ branchInfo: {
68
+ type: Array,
69
+ default: null,
70
+ },
71
+ // 弹框的标题
72
+ title: {
73
+ type: String,
74
+ default: null,
75
+ },
76
+ // 弹框的宽度
77
+ width: {
78
+ type: String,
79
+ default: '60%',
80
+ },
81
+ // 多选部门树时,已选择部门id或部门名称或编码集合,多个之间以逗号隔开
82
+ selectWorkgroupInfo: {
83
+ type: [String, Number],
84
+ default: null
85
+ },
86
+ // 移除部门时,部门属性名称:id、name、code,默认是id
87
+ searchField: {
88
+ type: String,
89
+ default: 'code',
90
+ },
91
+ // 多选树时结果之间的分隔符,默认是逗号分隔
92
+ separator: {
93
+ type: String,
94
+ default: ','
95
+ }
96
+ },
97
+ data() {
98
+ let myTitle = this.$t('imatrixUIMessage.pleaseSelectATeam')
99
+ if (this.title) {
100
+ myTitle = this.title
101
+ }
102
+ const isMobile = isMobileBrowser()
103
+ return {
104
+ myTitle,
105
+ isMobile
106
+ }
107
+ },
108
+ methods: {
109
+ // 工作组单选回调
110
+ result(selectNodeInfo) {
111
+ $emit(this, 'close', selectNodeInfo)
112
+ },
113
+ // 嵌入树,多选时,点击确定时调用的方法
114
+ selectWorkgroup() {
115
+ this.$refs.workgroupTree.selectWorkgroup()
116
+ },
117
+ },
118
+ emits: ['open', 'opend', 'close', 'closed', 'opend', 'close', 'closed'],
126
119
  }
127
120
  </script>
@@ -177,12 +177,7 @@ export default {
177
177
  separator: {
178
178
  type: String,
179
179
  default: ',',
180
- },
181
- // 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
182
- limitFilterColumn: {
183
- type: String,
184
- default: 'code'
185
- }
180
+ }
186
181
  },
187
182
  computed: {},
188
183
  watch: {