agilebuilder-ui 1.1.37 → 1.1.38-sit2

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 (38) hide show
  1. package/lib/{401-9314ce87.js → 401-42cb079f.js} +1 -1
  2. package/lib/{404-572d631d.js → 404-e5796cd8.js} +1 -1
  3. package/lib/{iframe-page-87c9c0d0.js → iframe-page-5b503e34.js} +1 -1
  4. package/lib/{index-79b98485.js → index-f5b5c746.js} +14758 -14629
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +76 -73
  8. package/lib/{tab-content-iframe-index-070ce653.js → tab-content-iframe-index-9bf6e5fc.js} +1 -1
  9. package/lib/{tab-content-index-3b98efb4.js → tab-content-index-28133c86.js} +22 -22
  10. package/lib/{tache-subprocess-history-46442012.js → tache-subprocess-history-7a5bfc89.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/fs-preview/src/fs-preview.vue +8 -3
  13. package/packages/fs-upload-list/src/fs-upload-list.vue +8 -1
  14. package/packages/fs-upload-new/src/fs-button-upload.vue +12 -0
  15. package/packages/fs-upload-new/src/fs-drag-upload.vue +12 -0
  16. package/packages/fs-upload-new/src/fs-preview-new.vue +25 -5
  17. package/packages/fs-upload-new/src/fs-upload-new.vue +20 -0
  18. package/packages/super-grid/src/apis.js +4 -0
  19. package/packages/super-grid/src/components/grid-radio-input.vue +104 -0
  20. package/packages/super-grid/src/dynamic-input.vue +48 -25
  21. package/packages/super-grid/src/formValidatorUtil.js +7 -2
  22. package/packages/super-grid/src/normal-column-content.vue +9 -1
  23. package/packages/super-grid/src/row-operation.vue +13 -9
  24. package/packages/super-grid/src/search-form-item.vue +461 -461
  25. package/packages/super-grid/src/super-grid.vue +22 -3
  26. package/packages/super-grid/src/utils.js +16 -2
  27. package/packages/utils/value-set.js +25 -33
  28. package/src/api/sso-service.js +2 -1
  29. package/src/permission.js +2 -1
  30. package/src/store/modules/user.js +4 -1
  31. package/src/utils/common-util.js +1 -0
  32. package/src/utils/permissionAuth.js +7 -5
  33. package/src/utils/util.js +16 -0
  34. package/src/views/dsc-component/Sidebar/Item.vue +15 -4
  35. package/src/views/dsc-component/Sidebar/SidebarItem.vue +10 -2
  36. package/src/views/layout/components/Menubar/Item.vue +14 -3
  37. package/src/views/layout/components/Menubar/SidebarItem.vue +9 -1
  38. package/vite.config.js +1 -2
@@ -96,6 +96,7 @@
96
96
  :grid-data="gridData"
97
97
  :page-grid-data="pageGridData"
98
98
  :current-page="currentPage"
99
+ :custom-params="controlConfig ? controlConfig.customParams : null"
99
100
  @refresh-list="refreshList"
100
101
  />
101
102
  <row-operation
@@ -106,6 +107,7 @@
106
107
  :is-show="operation.isShow"
107
108
  :label="operation.props.label ? operation.props.label : row[column.prop]"
108
109
  :on-click="operation.onClick"
110
+ :operation="operation"
109
111
  :operation-index="operationIndex"
110
112
  :operation-setting="operation.props"
111
113
  :event-name="operation.eventName"
@@ -133,6 +135,7 @@
133
135
  :additional-param-map="additionalParamMap"
134
136
  :additional-settings="additionalSettings"
135
137
  :page-context="options?.pageContext"
138
+ :custom-params="controlConfig ? controlConfig.customParams : null"
136
139
  />
137
140
  </span>
138
141
  <!-- 自定义格式的时候 -->
@@ -170,6 +173,7 @@
170
173
  :component-id="componentId"
171
174
  :additional-settings="additionalSettings"
172
175
  :page-context="options?.pageContext"
176
+ :custom-params="controlConfig ? controlConfig.customParams : null"
173
177
  @prohibitToEdit="prohibitToEdit"
174
178
  @refresh-list="refreshList"
175
179
  /></span>
@@ -387,7 +391,7 @@ import customFormatter from './custom-formatter'
387
391
  import RowOperation from './row-operation.vue'
388
392
  import apis from './apis'
389
393
  import { mapGetters } from 'vuex'
390
- import { getEntityFieldValue, getParentObjectUtil } from '../../../src/utils/util'
394
+ import { getEntityFieldValue, getParentObjectUtil, formatCustomParams } from '../../../src/utils/util'
391
395
  import ViewImageDialog from './view-image-dialog.vue'
392
396
  import eventBus from './eventBus'
393
397
  import FsPreview from '../../fs-preview'
@@ -700,6 +704,10 @@ export default {
700
704
  this.requiredClass = this.isRequired(this.row.$editing) ? 'm-requried' : ''
701
705
  },
702
706
  mounted() {
707
+ if (this.controlConfig) {
708
+ const gridParams = store.get(this.listCode)
709
+ formatCustomParams(this.controlConfig.customParams, gridParams.pageContext, this.row)
710
+ }
703
711
  // 监听取消自定义编辑事件
704
712
  eventBus.$on('clearTableAllStartEditing', () => {
705
713
  this.clearAllEditing()
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <!--将@click改为@mousedown.native是因为操作列保存按钮时事件和input等组件的@blur冲突,导致保存需要保存两次,因为
3
3
  @blur先于@click执行的,所以只会执行@blur,@click就失效了,@mousedown是先于@blur执行的-->
4
- <span :style="myStyle">
4
+ <span class="table-operation-row-btn" :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,9 +77,13 @@ export default {
77
77
  type: String,
78
78
  default: null,
79
79
  },
80
+ operation: {
81
+ type: Object,
82
+ default: () => ({}),
83
+ },
80
84
  operationSetting: {
81
85
  type: Object,
82
- default: null,
86
+ default: () => ({}),
83
87
  },
84
88
  operationIndex: {
85
89
  type: Number,
@@ -148,16 +152,16 @@ export default {
148
152
  },
149
153
  // 后置图标
150
154
  suffixIcon() {
151
- if(['right'].includes(this.operationSettingData.iconPosition)) return this.operationSetting.iconValue
155
+ if(['right'].includes(this.operationSetting.iconPosition)) return this.operationSetting.iconValue
152
156
  return undefined
153
157
  },
154
158
  // 是否显示文字按钮 > 图标模式
155
159
  isTextIcon() {
156
160
  if (this.isTableBtnLinkShow) {
157
- if (this.operationSettingData.isTextIcon === undefined) {
161
+ if (this.operationSetting.isTextIcon === undefined) {
158
162
  return this.isSaveRow || this.isDeleteRow || this.isEditRow || this.isRestoreRow
159
163
  }
160
- return this.operationSettingData.isTextIcon
164
+ return this.operationSetting.isTextIcon
161
165
  } else {
162
166
  return false
163
167
  }
@@ -172,14 +176,14 @@ export default {
172
176
  },
173
177
  // 是否自动开启表格 按钮 转 文字按钮
174
178
  isTableBtnLinkShow() {
175
- if (this.operationSetting.text) return true
179
+ if (this.operationSetting?.text) return true
176
180
  if (this.isTableBtnLink && this.elementType === 'el-button') {
177
- return [this.operationSetting.text, this.operationSetting.plain, this.operationSetting.round].every(v => v === undefined)
181
+ return [this.operationSetting?.text, this.operationSetting?.plain, this.operationSetting?.round].every(v => v === undefined)
178
182
  }
179
183
  return false
180
184
  },
181
185
  operationSettingData() {
182
- const dataList = { ...this.operationSetting }
186
+ const dataList = { ...(this.operationSetting ?? {}) }
183
187
  if (this.isTableBtnLinkShow) {
184
188
  dataList.underline = false
185
189
  delete dataList.text