agilebuilder-ui 1.1.39 → 1.1.40-sit1

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 (53) hide show
  1. package/lib/{401-10773a45.js → 401-09411643.js} +1 -1
  2. package/lib/{404-bc7b5bc4.js → 404-78725820.js} +1 -1
  3. package/lib/{iframe-page-593fe033.js → iframe-page-532b68e3.js} +1 -1
  4. package/lib/{index-5276895e.js → index-147b8176.js} +9499 -9462
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +64 -64
  8. package/lib/{tab-content-iframe-index-12a5a7c2.js → tab-content-iframe-index-ca45a6b8.js} +1 -1
  9. package/lib/{tab-content-index-6901441f.js → tab-content-index-6fe04e7b.js} +1 -1
  10. package/lib/{tache-subprocess-history-8fd8d5f7.js → tache-subprocess-history-61019029.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree-inline/src/department-single-tree-inline.vue +3 -1
  13. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
  14. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +2 -1
  15. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -1
  16. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +3 -1
  17. package/packages/fs-preview/src/fs-preview.vue +202 -65
  18. package/packages/fs-upload-list/src/fs-upload-list.vue +67 -192
  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 +6 -7
  22. package/packages/fs-upload-new/src/fs-upload-new.vue +13 -13
  23. package/packages/organization-input/src/organization-input.vue +3 -3
  24. package/packages/super-grid/src/components/mobile-table-card.jsx +0 -1
  25. package/packages/super-grid/src/custom-formatter.js +1 -1
  26. package/packages/super-grid/src/dynamic-input.vue +3 -26
  27. package/packages/super-grid/src/normal-column-content.vue +25 -18
  28. package/packages/super-grid/src/row-operation.vue +13 -9
  29. package/packages/super-grid/src/search-form-item.vue +47 -4
  30. package/packages/super-grid/src/search-form-mobile.vue +5 -0
  31. package/packages/super-grid/src/search-form-ordinarySearch.vue +5 -0
  32. package/packages/super-grid/src/search-methods.js +489 -575
  33. package/packages/super-grid/src/super-grid.vue +13 -0
  34. package/packages/utils/organization.ts +56 -40
  35. package/packages/workflow-history-list/src/workflow-history-list.vue +41 -3
  36. package/src/directives/permission/permission.js +7 -1
  37. package/src/i18n/langs/cn.js +10 -3
  38. package/src/i18n/langs/en.js +10 -3
  39. package/src/styles/mixin.scss +2 -2
  40. package/src/styles/table.scss +8 -7
  41. package/src/styles/theme/dark-blue/scrollbar-style.scss +2 -2
  42. package/src/styles/theme/gray/scrollbar-style.scss +2 -2
  43. package/src/styles/theme/green/scrollbar-style.scss +2 -2
  44. package/src/styles/theme/ocean-blue/scrollbar-style.scss +2 -2
  45. package/src/styles/theme/tiffany-blue-mobile/scrollbar-style.scss +2 -2
  46. package/src/utils/file-util.ts +12 -4
  47. package/src/utils/jump-page-utils.js +1 -0
  48. package/src/utils/permission.js +2 -2
  49. package/src/utils/permissionAuth.js +4 -2
  50. package/src/views/dsc-component/Sidebar/Item.vue +3 -3
  51. package/src/views/dsc-component/Sidebar/index.vue +0 -2
  52. package/src/views/layout/components/Menubar/Item.vue +6 -0
  53. package/src/views/layout/components/Menubar/SidebarItem.vue +37 -17
@@ -107,6 +107,7 @@
107
107
  :is-show="operation.isShow"
108
108
  :label="operation.props.label ? operation.props.label : row[column.prop]"
109
109
  :on-click="operation.onClick"
110
+ :operation="operation"
110
111
  :operation-index="operationIndex"
111
112
  :operation-setting="operation.props"
112
113
  :event-name="operation.eventName"
@@ -199,7 +200,6 @@
199
200
  <span v-if="column.formatter && column.formatter.type === 'files'" type="primary">
200
201
  <span
201
202
  :id="column.prop + 'DomData' + rowIndex"
202
- :style="textOverflow === 'newline' ? {} : { width: cellWidth + 'px' }"
203
203
  :title="isShowOverflowTooltip ? $escapeHtml(getLabel(row)) : ''"
204
204
  :class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
205
205
  >
@@ -238,15 +238,17 @@
238
238
  :title="getMyHyperLinkSetting(row, rowIndex).title"
239
239
  :class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
240
240
  >{{ getMyHyperLinkSetting(row, rowIndex).label }}
241
- <el-icon v-if="getMyHyperLinkSetting(row, rowIndex).icon">
242
- <component :is="(getMyHyperLinkSetting(row), rowIndex.icon)" />
243
- </el-icon>
241
+ <SuperIcon
242
+ v-if="getMyHyperLinkSetting(row, rowIndex).icon"
243
+ :iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
244
+ ></SuperIcon>
244
245
  </span>
245
246
  <span v-else :id="column.prop + 'DomData' + rowIndex" :class="isShowForm ? '' : 'cell--span'"
246
247
  >{{ getMyHyperLinkSetting(row, rowIndex).label }}
247
- <el-icon v-if="getMyHyperLinkSetting(row, rowIndex).icon">
248
- <component :is="getMyHyperLinkSetting(row, rowIndex).icon" />
249
- </el-icon>
248
+ <SuperIcon
249
+ v-if="getMyHyperLinkSetting(row, rowIndex).icon"
250
+ :iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
251
+ ></SuperIcon>
250
252
  </span>
251
253
  </el-link>
252
254
  <span
@@ -262,15 +264,19 @@
262
264
  }}</span>
263
265
  </template>
264
266
  <template v-else>
265
- <span v-if="column.componentType === 'annex' || column.componentType === 'multipartUpload'" type="primary">
267
+ <span
268
+ v-if="column.componentType === 'annex' || column.componentType === 'multipartUpload'"
269
+ type="primary"
270
+ style="width: 100%"
271
+ >
266
272
  <span
267
273
  v-if="isShowOverflowTooltip"
268
274
  :id="column.prop + 'DomData' + rowIndex"
269
- :style="textOverflow === 'newline' ? {} : { width: cellWidth + 'px' }"
270
275
  :title="$escapeHtml(getLabel(row))"
271
276
  :class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
272
277
  >
273
278
  <FsPreview
279
+ :width="cellWidth"
274
280
  :entity="row"
275
281
  :file-set-obj="getFileObj(column.fileSet)"
276
282
  :is-sql="isSql"
@@ -289,7 +295,6 @@
289
295
  <span v-else-if="column.formatter && column.formatter.type === 'files'">
290
296
  <span
291
297
  :id="column.prop + 'DomData' + rowIndex"
292
- :style="textOverflow === 'newline' ? {} : { width: cellWidth + 'px' }"
293
298
  :title="isShowOverflowTooltip ? $escapeHtml(getLabel(row)) : ''"
294
299
  :class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
295
300
  >
@@ -319,15 +324,17 @@
319
324
  :title="$escapeHtml(getMyHyperLinkSetting(row, rowIndex).title)"
320
325
  :class="textOverflow === 'newline' ? 'wrap-text' : 'ellipsis cell--span'"
321
326
  >{{ $escapeHtml(getMyHyperLinkSetting(row, rowIndex).label) }}
322
- <el-icon v-if="getMyHyperLinkSetting(row, rowIndex).icon">
323
- <component :is="getMyHyperLinkSetting(row, rowIndex).icon" />
324
- </el-icon>
327
+ <SuperIcon
328
+ v-if="getMyHyperLinkSetting(row, rowIndex).icon"
329
+ :iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
330
+ ></SuperIcon>
325
331
  </span>
326
332
  <span v-else :id="column.prop + 'DomData' + rowIndex" :class="isShowForm ? '' : 'cell--span'"
327
333
  >{{ $escapeHtml(getMyHyperLinkSetting(row, rowIndex).label) }}
328
- <el-icon v-if="getMyHyperLinkSetting(row, rowIndex).icon">
329
- <component :is="getMyHyperLinkSetting(row, rowIndex).icon" />
330
- </el-icon>
334
+ <SuperIcon
335
+ v-if="getMyHyperLinkSetting(row, rowIndex).icon"
336
+ :iconValue="getMyHyperLinkSetting(row, rowIndex).icon"
337
+ ></SuperIcon>
331
338
  </span>
332
339
  </el-link>
333
340
  <!-- 富文本 -->
@@ -700,7 +707,7 @@ export default {
700
707
  }
701
708
  }
702
709
  this.setScanRuleSets()
703
- this.requiredClass = this.isRequired(this.row.$editing) ? 'm-requried' : ''
710
+ this.requiredClass = this.isRequired(this.row.$editing) ? 'm-requried column-text-main' : ''
704
711
  },
705
712
  mounted() {
706
713
  if (this.controlConfig) {
@@ -1215,7 +1222,7 @@ export default {
1215
1222
  }
1216
1223
  },
1217
1224
  changeRequired(required) {
1218
- this.requiredClass = required ? 'm-requried' : ''
1225
+ this.requiredClass = required ? 'm-requried column-text-main' : ''
1219
1226
  },
1220
1227
  openPageEvent(openPageParams) {
1221
1228
  console.log('normalColumnContent----openPageEvent----', openPageParams)
@@ -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
@@ -213,7 +213,18 @@
213
213
  :style="column.searchControlWidth"
214
214
  @keyup.enter="submitForm('searchForm')"
215
215
  @input="setValueToModelProp(column.prop, $event)"
216
- />
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>
217
228
  </el-form-item>
218
229
  </template>
219
230
 
@@ -281,7 +292,9 @@ export default {
281
292
  dataTwo: null,
282
293
  moduleConfig: {},
283
294
  dateVal: this.getFormItemValue(this.column.prop),
284
- controlConfig: getControlConfig(this.column)
295
+ controlConfig: getControlConfig(this.column),
296
+ isShowEmtptyFlag: false,
297
+ // checkedEmpty: false,
285
298
  }
286
299
  },
287
300
  computed: {
@@ -291,6 +304,23 @@ export default {
291
304
  return data.listToolbarFormData
292
305
  }
293
306
  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
+ }
294
324
  }
295
325
  },
296
326
  created() {
@@ -480,12 +510,25 @@ export default {
480
510
  if (arr.indexOf('saveAll') !== -1) {
481
511
  if (this.searchForm[this.column.prop] && typeof this.searchForm[this.column.prop] === 'string') {
482
512
  this.searchForm[this.column.prop] = this.searchForm[this.column.prop].split(',')
483
- } else {
484
- this.searchForm[this.column.prop] = []
485
513
  }
486
514
  } else {
487
515
  this.searchForm[this.column.prop] = arr
488
516
  }
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
+ }
489
532
  }
490
533
  },
491
534
  emits: ['submit-form']
@@ -157,6 +157,11 @@ 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
+ }
160
165
  })
161
166
  // 取消当前选中的条件列表的信息
162
167
  // this.$refs.searchConditionList.editConditionId = null
@@ -162,6 +162,11 @@ 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
+ }
165
170
  })
166
171
  // 取消当前选中的条件列表的信息
167
172
  // this.$refs.searchConditionList.editConditionId = null