agilebuilder-ui 1.1.41-rc1 → 1.1.41-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.
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { _ as s } from "./index-ea84c751.js";
2
+ import { _ as s } from "./index-fd478b0b.js";
3
3
  const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
4
4
  this.src = this.$route.query.src;
5
5
  } }, mounted() {
@@ -1,4 +1,4 @@
1
- import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-ea84c751.js";
1
+ import { _ as f, c as _, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-fd478b0b.js";
2
2
  import { resolveComponent as u, openBlock as l, createBlock as b, withCtx as g, createVNode as v, TransitionGroup as L, createElementBlock as p, Fragment as C, renderList as T, createElementVNode as m, toDisplayString as w, normalizeClass as S, createCommentVNode as y } from "vue";
3
3
  const k = { class: "no-redirect" }, A = f({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
4
4
  return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
2
- import { _ as I } from "./index-ea84c751.js";
2
+ import { _ as I } from "./index-fd478b0b.js";
3
3
  const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
4
4
  const o = this.$route.query.workflowId;
5
5
  o && (this.workflowId = parseInt(o));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.41-rc1",
3
+ "version": "1.1.41-sit2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -11,25 +11,15 @@
11
11
  </span>
12
12
  </template>
13
13
  <div v-if="firstFileName" ref="toolRef" class="fs-preview-tool">
14
- <el-link v-if="enableDelete && !disabled" type="danger" :underline="false" @click="deleteFirst()">
15
- {{ $t('fsUpload.delete') }}
16
- </el-link>
17
- <el-link
18
- v-if="!disabled || !fileSetObj.disabledNoPreview"
19
- type="primary"
20
- :underline="false"
21
- @click="previewFirst()"
22
- >
23
- {{ $t('fsUpload.preview') }}
24
- </el-link>
25
- <el-link
26
- v-if="!disabled || !fileSetObj.disabledNoDownload"
27
- type="primary"
28
- :underline="false"
29
- @click="downloadFirst()"
30
- >
31
- {{ $t('fsUpload.download') }}
32
- </el-link>
14
+ <el-tooltip v-if="enableDelete && !disabled" :content="$t('fsUpload.delete')">
15
+ <super-icon @click="deleteFirst()" iconValue="amb-color-icon-shanchu" />
16
+ </el-tooltip>
17
+ <el-tooltip v-if="!disabled || !fileSetObj.disabledNoPreview" :content="$t('fsUpload.preview')">
18
+ <super-icon @click="previewFirst()" iconValue="amb-color-icon-yulan" />
19
+ </el-tooltip>
20
+ <el-tooltip v-if="!disabled || !fileSetObj.disabledNoDownload" :content="$t('fsUpload.download')">
21
+ <super-icon @click="downloadFirst()" iconValue="amb-color-icon-xiazai" />
22
+ </el-tooltip>
33
23
  <el-divider v-if="showMultipleFile" direction="vertical" />
34
24
  <el-popover :width="450" trigger="click">
35
25
  <template #reference>
@@ -41,7 +31,7 @@
41
31
  <div style="max-height: 300px; overflow-y: auto">
42
32
  <div v-for="(item, index) in fileList" :ref="item.serverPath" :key="item.serverPath" class="file-item">
43
33
  <div style="display: flex; align-items: center; flex: 1">
44
- <span>
34
+ <span class="more-file-icon">
45
35
  <super-icon :iconValue="getFileIconByName(item.showName)" />
46
36
  </span>
47
37
  <span class="amb-list-preivew-name" style="width: 230px; margin-left: 10px">
@@ -49,7 +39,7 @@
49
39
  </span>
50
40
  </div>
51
41
  <div class="file-actions">
52
- <el-link v-if="enableDelete" type="danger" underline @click="deleteFile(item)">
42
+ <!-- <el-link v-if="enableDelete" type="danger" underline @click="deleteFile(item)">
53
43
  {{ $t('fsUpload.delete') }}
54
44
  </el-link>
55
45
  <el-link
@@ -60,14 +50,18 @@
60
50
  >
61
51
  {{ $t('fsUpload.preview') }}
62
52
  </el-link>
63
- <el-link
64
- type="primary"
65
- v-if="!disabled || !fileSetObj.disabledNoDownload"
66
- underline
67
- @click="donwloadFile(index)"
68
- >
53
+ <el-link type="primary" v-if="!disabled || !fileSetObj.disabledNoDownload" underline>
69
54
  {{ $t('fsUpload.download') }}
70
- </el-link>
55
+ </el-link> -->
56
+ <el-tooltip v-if="enableDelete" :content="$t('fsUpload.delete')">
57
+ <super-icon @click="deleteFile(item)" iconValue="amb-color-icon-shanchu" />
58
+ </el-tooltip>
59
+ <el-tooltip v-if="!disabled || !fileSetObj.disabledNoPreview" :content="$t('fsUpload.preview')">
60
+ <super-icon @click="previewSingle(item)" iconValue="amb-color-icon-yulan" />
61
+ </el-tooltip>
62
+ <el-tooltip v-if="!disabled || !fileSetObj.disabledNoDownload" :content="$t('fsUpload.download')">
63
+ <super-icon @click="donwloadFile(index)" iconValue="amb-color-icon-xiazai" />
64
+ </el-tooltip>
71
65
  </div>
72
66
  </div>
73
67
  </div>
@@ -413,10 +407,22 @@ export default {
413
407
  min-width: max-content;
414
408
  margin-left: auto; /* 添加这行,将工具栏推到右侧 */
415
409
  }
416
- .amb-color-iconfont {
410
+
411
+ .fs-preview-container :deep(.amb-color-iconfont),
412
+ .more-file-icon :deep(.amb-color-iconfont) {
417
413
  width: 30px;
418
414
  height: 30px;
419
415
  }
416
+ .fs-preview-tool :deep(.amb-color-iconfont),
417
+ .file-actions :deep(.amb-color-iconfont) {
418
+ font-size: 15px !important; /* 图标实际大小,按需改 */
419
+ display: inline-block;
420
+ width: 1em !important; /* 覆盖子组件 .super-icon 的 14px */
421
+ height: 1em !important;
422
+ line-height: 1em;
423
+ cursor: pointer;
424
+ }
425
+
420
426
  .amb-list-preivew-name {
421
427
  overflow: hidden;
422
428
  text-overflow: ellipsis;
@@ -450,4 +456,7 @@ export default {
450
456
  gap: 5px;
451
457
  flex-shrink: 0; /* 防止按钮被压缩 */
452
458
  }
459
+ .super-icon + .super-icon {
460
+ margin-left: 5px;
461
+ }
453
462
  </style>
@@ -212,7 +212,7 @@ const customFormatter = {
212
212
  // console.log('getHyperLinkSetting--resut=', result)
213
213
  if (result && result.label && result.label !== '') {
214
214
  console.log('label存在')
215
- } else if(result && (result.displayTextJudge === undefined || result.displayTextJudge)){
215
+ } else if (result && (result.displayTextJudge === undefined || result.displayTextJudge)) {
216
216
  result.label = this.objectPropValueTwo(row, column)
217
217
  }
218
218
  if (result && result.title && result.title !== '') {
@@ -249,14 +249,8 @@ const customFormatter = {
249
249
  // 解析是否需要显示该超链接
250
250
  let canClick = true
251
251
  const gridParams = store.get(listCode)
252
- console.log('super-grid---jumpPageLink--jumpPageSetting=', jumpPageSetting)
253
252
  if (jumpPageSetting.beforeClick) {
254
253
  const funName = jumpPageSetting.beforeClick
255
- console.log('super-grid---jumpPageLink--jumpPageSetting.beforeClick=', funName)
256
- console.log(
257
- 'super-grid---jumpPageLink--gridParams.options[eventCallBack]=',
258
- gridParams.options['eventCallBack']
259
- )
260
254
  if (
261
255
  gridParams.options &&
262
256
  gridParams.options['eventCallBack'] &&
@@ -287,11 +281,23 @@ const customFormatter = {
287
281
  if (gridParams.options.extraParam && gridParams.options.extraParam.entityMap) {
288
282
  parentFormData = gridParams.options.extraParam.entityMap
289
283
  }
290
- console.log('gridParams.options.extraParam.entityMap', gridParams.options.extraParam)
291
-
284
+ if (gridParams.isSubTableShowPage && jumpPageSetting.jumpPageAdditional?.length > 0) {
285
+ // 如果是子表,则需要把配置的 ${data.字段} 改成 ${parent.字段}
286
+ jumpPageSetting.jumpPageAdditional.forEach((item, index) => {
287
+ if (item && item.paramValue) {
288
+ if (item.paramValue.startsWith('${data.')) {
289
+ item.paramValue = item.paramValue.replace('${data.', '${parent.')
290
+ }
291
+ }
292
+ })
293
+ }
292
294
  /// 把父页面的pageData传给弹出的页面或新页签
293
295
  const copyPageData = JSON.parse(
294
- JSON.stringify(gridParams.pageContext && gridParams.pageContext.entity && gridParams.pageContext.entity.page ? gridParams.pageContext.entity.page : {})
296
+ JSON.stringify(
297
+ gridParams.pageContext && gridParams.pageContext.entity && gridParams.pageContext.entity.page
298
+ ? gridParams.pageContext.entity.page
299
+ : {}
300
+ )
295
301
  )
296
302
  jumpPageSetting._pageData = copyPageData
297
303
  jumpToPage(
@@ -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"
@@ -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
@@ -169,7 +169,6 @@
169
169
  :options="getDynamicDataSourceOptions(column)"
170
170
  :table-name="tableName"
171
171
  @change="multiselectChange"
172
- @input="setValueToModelProp(column.prop, $event)"
173
172
  />
174
173
  </template>
175
174
  <!--
@@ -217,11 +216,8 @@
217
216
  @blur="hiddenEmpty()"
218
217
  >
219
218
  <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"/>
219
+ <el-tooltip :content="$t('superGrid.searchEmpty')" placement="bottom">
220
+ <el-checkbox v-if="isShowEmtpty" v-model="checkedEmpty" @change="checkEmptyChange" />
225
221
  </el-tooltip>
226
222
  </template>
227
223
  </el-input>
@@ -293,7 +289,7 @@ export default {
293
289
  moduleConfig: {},
294
290
  dateVal: this.getFormItemValue(this.column.prop),
295
291
  controlConfig: getControlConfig(this.column),
296
- isShowEmtptyFlag: false,
292
+ isShowEmtptyFlag: false
297
293
  // checkedEmpty: false,
298
294
  }
299
295
  },
@@ -308,12 +304,12 @@ export default {
308
304
  isShowEmtpty() {
309
305
  return this.isShowEmtptyFlag
310
306
  },
311
- checkedEmpty(){
312
- if(this.column._emptyValue && this.column._emptyValue === '#blank#'){
307
+ checkedEmpty() {
308
+ if (this.column._emptyValue && this.column._emptyValue === '#blank#') {
313
309
  return true
314
310
  }
315
- if(this.column._resetValue || this.column._resetValue === undefined){
316
- if(this.column._resetValue){
311
+ if (this.column._resetValue || this.column._resetValue === undefined) {
312
+ if (this.column._resetValue) {
317
313
  this.column._resetValue = undefined
318
314
  this.isShowEmtptyFlag = false
319
315
  }
@@ -350,9 +346,7 @@ export default {
350
346
  return isDynamicDataSourceSource(column)
351
347
  },
352
348
  setValueToModelProp(prop, value, componentName, index) {
353
- console.log(
354
- '%c描述-105004',
355
- 'color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px',
349
+ console.log('setValueToModelProp',
356
350
  prop,
357
351
  value,
358
352
  componentName,
@@ -503,31 +497,37 @@ export default {
503
497
  return ['00:00:00']
504
498
  }
505
499
  } else {
506
- return ['00:00:00']
500
+ const now = new Date();
501
+ const year = now.getFullYear(); // e.g., 2023
502
+ const month = now.getMonth() + 1; // Months are 0-indexed, so add 1
503
+ const day = now.getDate(); // Day of the month
504
+ return [`${year}-${month}-${day} 00:00:00`, `${year}-${month}-${day} 23:59:59`]
507
505
  }
508
506
  },
509
507
  multiselectChange(arr, selectedItem) {
510
- if (arr.indexOf('saveAll') !== -1) {
508
+ debugger
509
+ if (arr && arr.indexOf('saveAll') !== -1) {
511
510
  if (this.searchForm[this.column.prop] && typeof this.searchForm[this.column.prop] === 'string') {
512
511
  this.searchForm[this.column.prop] = this.searchForm[this.column.prop].split(',')
513
512
  }
514
513
  } else {
514
+ debugger
515
515
  this.searchForm[this.column.prop] = arr
516
516
  }
517
517
  },
518
- showEmpty(){
518
+ showEmpty() {
519
519
  this.isShowEmtptyFlag = true
520
520
  },
521
- hiddenEmpty(){
522
- if(!this.checkedEmpty){
521
+ hiddenEmpty() {
522
+ if (!this.checkedEmpty) {
523
523
  this.isShowEmtptyFlag = false
524
524
  }
525
525
  },
526
526
  checkEmptyChange(newValue) {
527
- if(newValue){
528
- this.column._emptyValue='#blank#'
527
+ if (newValue) {
528
+ this.column._emptyValue = '#blank#'
529
529
  } else {
530
- this.column._emptyValue=undefined
530
+ this.column._emptyValue = undefined
531
531
  }
532
532
  }
533
533
  },