agilebuilder-ui 1.1.47 → 1.1.48-rc1

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 (60) hide show
  1. package/lib/{401-24b6b525.js → 401-a94cd05b.js} +1 -1
  2. package/lib/{404-55dbc936.js → 404-eb21244b.js} +1 -1
  3. package/lib/{iframe-page-effbb33c.js → iframe-page-7add4333.js} +1 -1
  4. package/lib/{index-f3ef09a5.js → index-7a601895.js} +18636 -18542
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +104 -104
  8. package/lib/{tab-content-iframe-index-4c557db3.js → tab-content-iframe-index-483b398c.js} +1 -1
  9. package/lib/{tab-content-index-a7350229.js → tab-content-index-0862686f.js} +1 -1
  10. package/lib/{tache-subprocess-history-f19dd95f.js → tache-subprocess-history-c80e8ed2.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +42 -34
  13. package/packages/department-tree-inline/src/department-single-tree-inline.vue +53 -42
  14. package/packages/department-tree-inline/src/department-tree-service.js +17 -11
  15. package/packages/department-tree-inline/src/search-result.vue +187 -219
  16. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +17 -4
  17. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +52 -43
  18. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +52 -42
  19. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +23 -13
  20. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +9 -5
  21. package/packages/department-user-tree-inline/src/group-user-tree-service.js +17 -11
  22. package/packages/department-user-tree-inline/src/search-result.vue +207 -220
  23. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +14 -3
  24. package/packages/dynamic-source-select/src/dynamic-source-select-service.js +7 -2
  25. package/packages/empty-state/index.vue +28 -0
  26. package/packages/fs-preview/src/fs-preview.vue +12 -3
  27. package/packages/fs-upload/src/fs-upload-multi.vue +6 -4
  28. package/packages/fs-upload/src/fs-upload-single.vue +7 -6
  29. package/packages/fs-upload/src/fs-upload.vue +3 -1
  30. package/packages/fs-upload/src/see-big-picture.vue +3 -0
  31. package/packages/fs-upload-list/src/fs-upload-list.vue +8 -2
  32. package/packages/fs-upload-new/src/fs-button-upload.vue +11 -4
  33. package/packages/fs-upload-new/src/fs-drag-upload.vue +11 -4
  34. package/packages/fs-upload-new/src/fs-preview-new.vue +8 -5
  35. package/packages/fs-upload-new/src/fs-upload-new.vue +17 -0
  36. package/packages/plugins/export-data-new.js +2 -0
  37. package/packages/super-grid/src/components/grid-icon.vue +6 -3
  38. package/packages/super-grid/src/custom-formatter.js +15 -2
  39. package/packages/super-grid/src/dynamic-input.vue +34 -6
  40. package/packages/super-grid/src/formatter.js +5 -1
  41. package/packages/super-grid/src/normal-column-content.vue +30 -38
  42. package/packages/super-grid/src/super-grid.vue +4 -4
  43. package/packages/utils/utils.js +27 -9
  44. package/packages/workgroup-tree-inline/src/search-result.vue +2 -1
  45. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +50 -41
  46. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +16 -5
  47. package/packages/workgroup-user-tree-inline/src/search-result.vue +2 -1
  48. package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +30 -24
  49. package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +49 -37
  50. package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue +281 -222
  51. package/src/i18n/langs/cn.js +6 -4
  52. package/src/i18n/langs/en.js +6 -4
  53. package/src/styles/index.scss +26 -0
  54. package/src/utils/auth.js +10 -7
  55. package/src/utils/chat-ai-util.ts +3 -3
  56. package/src/utils/common-util.js +22 -0
  57. package/src/utils/global-prop.js +17 -0
  58. package/src/utils/jump-page-utils.js +8 -4
  59. package/src/views/dsc-component/Sidebar/SidebarItem.vue +6 -0
  60. package/src/views/dsc-component/tabs/tab-content.vue +6 -0
@@ -172,6 +172,7 @@ import {getToken} from '../../../src/utils/auth'
172
172
  import {
173
173
  isPlateSys,
174
174
  getSystemFrontendUrl,
175
+ getRelativeBaseUrl,
175
176
  } from '../../../src//utils//common-util.js'
176
177
 
177
178
  export default {
@@ -276,7 +277,7 @@ export default {
276
277
  },
277
278
  },
278
279
  created() {
279
- this.baseURL = window.$vueApp.config.globalProperties.baseURL
280
+ this.baseURL = getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL)
280
281
  if (this.data) {
281
282
  this.unifiedEnclosures = this.data
282
283
  }
@@ -332,7 +333,7 @@ export default {
332
333
  const http = this.$http
333
334
  http
334
335
  .post(
335
- window.$vueApp.config.globalProperties.baseURL +
336
+ this.baseURL +
336
337
  '/common/fs-upload/des-encrypt',
337
338
  map
338
339
  )
@@ -366,7 +367,7 @@ export default {
366
367
  } else {
367
368
  const myShowName = row.fileName
368
369
  const uuid = row.uuid
369
- let baseUrl = window.$vueApp.config.globalProperties.baseURL
370
+ let baseUrl = this.baseURL
370
371
  if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
371
372
  baseUrl = window.$vueApp.config.globalProperties.baseAPI
372
373
  }
@@ -392,6 +393,7 @@ export default {
392
393
  '&serverPath=' +
393
394
  uuid
394
395
  }
396
+ previewUrl = getRelativeBaseUrl(previewUrl)
395
397
  window.open(previewUrl, showName)
396
398
  }
397
399
  }
@@ -419,7 +421,7 @@ export default {
419
421
  http.headers = "'Content-Type': 'multipart/form-data'"
420
422
  http
421
423
  .post(
422
- window.$vueApp.config.globalProperties.baseURL +
424
+ this.baseURL +
423
425
  '/common/fs-upload/upload-template/' +
424
426
  this.systemCode,
425
427
  param,
@@ -112,7 +112,7 @@ import {
112
112
  import {$emit} from '../../utils/gogocodeTransfer'
113
113
  import Cookies from 'js-cookie'
114
114
  import seeBigPicture from './see-big-picture.vue'
115
- import {getSystemFrontendUrl, isPlateSys,} from '../../../src/utils/common-util.js'
115
+ import {getRelativeBaseUrl, getSystemFrontendUrl, isPlateSys,} from '../../../src/utils/common-util.js'
116
116
  import {getToken} from '../../../src/utils/auth'
117
117
 
118
118
  export default {
@@ -194,10 +194,11 @@ export default {
194
194
  data: {
195
195
  type: Array,
196
196
  default: null,
197
+ baseURL: null
197
198
  },
198
199
  },
199
200
  created() {
200
- this.baseURL = window.$vueApp.config.globalProperties.baseURL
201
+ this.baseURL = getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL)
201
202
  if (this.data) {
202
203
  this.unifiedEnclosure = this.data[0]
203
204
  }
@@ -260,7 +261,7 @@ export default {
260
261
  const http = this.$http
261
262
  http
262
263
  .post(
263
- window.$vueApp.config.globalProperties.baseURL +
264
+ this.baseURL +
264
265
  '/common/fs-upload/des-encrypt',
265
266
  map
266
267
  )
@@ -294,9 +295,9 @@ export default {
294
295
  } else {
295
296
  const myShowName = this.unifiedEnclosure.fileName
296
297
  const uuid = this.unifiedEnclosure.uuid
297
- let baseUrl = window.$vueApp.config.globalProperties.baseURL
298
+ let baseUrl = this.baseURL
298
299
  if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
299
- baseUrl = window.$vueApp.config.globalProperties.baseAPI
300
+ baseUrl = getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseAPI)
300
301
  }
301
302
  let previewUrl
302
303
  if (window.$vueApp.config.globalProperties.kkFileViewUrl) {
@@ -335,7 +336,7 @@ export default {
335
336
  }
336
337
  http
337
338
  .post(
338
- window.$vueApp.config.globalProperties.baseURL +
339
+ this.baseURL +
339
340
  '/common/fs-upload/upload-template/' +
340
341
  this.systemCode,
341
342
  param,
@@ -38,6 +38,7 @@ import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
38
38
  import fsUploadMulti from './fs-upload-multi.vue'
39
39
  import fsUploadSingle from './fs-upload-single.vue'
40
40
  import * as Vue from 'vue'
41
+ import { getRelativeBaseUrl } from '../../../src/utils/common-util'
41
42
  export default {
42
43
  name: 'FsUpload',
43
44
  components: {
@@ -175,9 +176,10 @@ export default {
175
176
  deleteFile(deleteUuid) {
176
177
  const http = this.$http
177
178
  const list = [deleteUuid]
179
+ const baseURL = getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL)
178
180
  http
179
181
  .delete(
180
- window.$vueApp.config.globalProperties.baseURL + '/common/fs-upload',
182
+ baseURL + '/common/fs-upload',
181
183
  { data: list }
182
184
  )
183
185
  .then((data) => {})
@@ -42,6 +42,7 @@
42
42
  </template>
43
43
 
44
44
  <script>
45
+ import { getRelativeBaseUrl } from '../../../src/utils/common-util'
45
46
  export default {
46
47
  props: {
47
48
  unifiedEnclosures: {
@@ -56,9 +57,11 @@ export default {
56
57
  data() {
57
58
  return {
58
59
  displayIndex: 0,
60
+ baseURL: null
59
61
  }
60
62
  },
61
63
  created() {
64
+ this.baseURL = getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL)
62
65
  this.displayIndex = this.showIndex
63
66
  },
64
67
  methods: {},
@@ -21,6 +21,7 @@
21
21
  :show-file-list="false"
22
22
  :headers="headers"
23
23
  :on-success="uploadOnSuccess"
24
+ :on-error="onError"
24
25
  :with-credentials="true"
25
26
  name="file"
26
27
  >
@@ -73,7 +74,7 @@ import { $emit } from '../../utils/gogocodeTransfer'
73
74
 
74
75
  import { getToken } from '../../../src/utils/auth'
75
76
  import { isImage } from '../../../src/utils/util'
76
- import { getSystemFrontendUrl, isPlateSys, isMobileBrowser } from '../../../src/utils/common-util'
77
+ import { getSystemFrontendUrl, isPlateSys, isMobileBrowser, getRelativeBaseUrl } from '../../../src/utils/common-util'
77
78
  import FsPreview from '../../fs-preview/src/fs-preview.vue'
78
79
  import { packageFile } from '../../super-grid/src/utils'
79
80
  import FileUploadInputMobile from '../../fs-upload-new/src/file-upload-mobile/file-upload-input.vue'
@@ -159,6 +160,7 @@ export default {
159
160
  if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
160
161
  defaultAction = window.$vueApp.config.globalProperties.baseAPI + '/component/super-form/uploads'
161
162
  }
163
+ defaultAction = getRelativeBaseUrl(defaultAction)
162
164
  const isMobile = isMobileBrowser()
163
165
  const systemCode = this.pageContext && this.pageContext.systemCode ? this.pageContext.systemCode : null
164
166
  return {
@@ -310,9 +312,13 @@ export default {
310
312
  },
311
313
  getFileIconByName(fileName) {
312
314
  return getFileIconByName(fileName)
315
+ },
316
+ onError(error) {
317
+ $emit(this, 'on-error', error)
318
+
313
319
  }
314
320
  },
315
- emits: ['close', 'upload-success', 'delete-success', 'delete', 'update:value', 'close', 'update:value']
321
+ emits: ['close', 'upload-success', 'delete-success', 'delete', 'update:value', 'close', 'update:value', 'on-error']
316
322
  }
317
323
  </script>
318
324
  <style lang="scss" scoped>
@@ -14,6 +14,7 @@
14
14
  :before-upload="handleBeforeUpload"
15
15
  :before-remove="beforeRemove"
16
16
  :on-success="onSuccess"
17
+ :on-error="onError"
17
18
  >
18
19
  <el-button size="small" type="primary">{{ placeholder }}</el-button>
19
20
  <template #tip>
@@ -40,13 +41,15 @@
40
41
  </template>
41
42
 
42
43
  <script setup lang="ts">
43
- import { ref, defineProps } from 'vue'
44
- import { getSystemFrontendUrl, isPlateSys } from '../../../src/utils/common-util'
44
+ import { ref, defineProps, defineEmits } from 'vue'
45
+ import { getRelativeBaseUrl, getSystemFrontendUrl, isPlateSys } from '../../../src/utils/common-util'
45
46
  import { getToken } from '../../../src/utils/auth'
46
47
  import type { UploadFile, UploadFiles } from 'element-plus'
47
48
  import fsPreviewNew from './fs-preview-new.vue'
48
49
  import { ElMessage } from 'element-plus'
49
50
  import { useI18n } from 'vue-i18n'
51
+
52
+ const emits = defineEmits(['on-error'])
50
53
  const { t } = useI18n()
51
54
  const props = defineProps({
52
55
  openFsUpload: {
@@ -138,8 +141,8 @@ const props = defineProps({
138
141
  default: 0
139
142
  }
140
143
  })
141
- const baseURL = window.$vueApp.config.globalProperties.baseURL
142
- const baseAPI = window.$vueApp.config.globalProperties.baseAPI
144
+ const baseURL = getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL)
145
+ const baseAPI = getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseAPI)
143
146
  const defaultAction = ref<string>('')
144
147
  const buttonUploadRef = ref()
145
148
  const innerLimitFileSize = ref(props.limitFileSize)
@@ -200,4 +203,8 @@ const onSuccess = (response: any, uploadFile: UploadFile, uploadFiles: UploadFil
200
203
  })
201
204
  props.onSuccess(response, uploadFile, uploadFiles)
202
205
  }
206
+
207
+ const onError = (error: any) => {
208
+ emits('on-error', error)
209
+ }
203
210
  </script>
@@ -12,6 +12,7 @@
12
12
  :before-upload="handleBeforeUpload"
13
13
  :on-success="onUploadSuccess"
14
14
  :before-remove="beforeRemove"
15
+ :on-error="onError"
15
16
  >
16
17
  <el-icon class="el-icon--upload"><upload-filled /></el-icon>
17
18
  <div class="el-upload__text">{{ placeholder }}</div>
@@ -38,13 +39,15 @@
38
39
 
39
40
  <script setup lang="ts">
40
41
  import { UploadFilled } from '@element-plus/icons-vue'
41
- import { ref, defineProps } from 'vue'
42
- import { getSystemFrontendUrl, isPlateSys } from '../../../src/utils/common-util'
42
+ import { ref, defineProps, defineEmits } from 'vue'
43
+ import { getRelativeBaseUrl, getSystemFrontendUrl, isPlateSys } from '../../../src/utils/common-util'
43
44
  import { getToken } from '../../../src/utils/auth'
44
45
  import type { UploadFile, UploadFiles } from 'element-plus'
45
46
  import fsPreviewNew from './fs-preview-new.vue'
46
47
  import { ElMessage } from 'element-plus'
47
48
  import { useI18n } from 'vue-i18n'
49
+
50
+ const emits = defineEmits(['on-error'])
48
51
  const { t } = useI18n()
49
52
  const props = defineProps({
50
53
  openFsUpload: {
@@ -136,8 +139,8 @@ const props = defineProps({
136
139
  default: 0
137
140
  }
138
141
  })
139
- const baseURL = window.$vueApp.config.globalProperties.baseURL
140
- const baseAPI = window.$vueApp.config.globalProperties.baseAPI
142
+ const baseURL = getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL)
143
+ const baseAPI = getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseAPI)
141
144
  const defaultAction = ref<string>('')
142
145
  const innerLimitFileSize = ref(props.limitFileSize)
143
146
  if (props.action) {
@@ -197,4 +200,8 @@ const onUploadSuccess = (response: any, uploadFile: UploadFile, uploadFiles: Upl
197
200
  })
198
201
  props.onSuccess(response, uploadFile, uploadFiles)
199
202
  }
203
+
204
+ const onError = (error: any) => {
205
+ emits('on-error', error)
206
+ }
200
207
  </script>
@@ -61,7 +61,7 @@
61
61
  <script setup lang="ts">
62
62
  import { Close, Paperclip, Download } from '@element-plus/icons-vue'
63
63
  import { ref, defineProps } from 'vue'
64
- import { getSystemFrontendUrl, isPlateSys, isMobileBrowser, getReplaceUrlDomain } from '../../../src/utils/common-util'
64
+ import { getSystemFrontendUrl, isPlateSys, isMobileBrowser, getReplaceUrlDomain, getRelativeBaseUrl } from '../../../src/utils/common-util'
65
65
  import { getToken } from '../../../src/utils/auth'
66
66
  import { isImage } from '../../../src/utils/util'
67
67
  import { Base64 } from 'js-base64'
@@ -125,8 +125,10 @@ const props = defineProps({
125
125
  default: false
126
126
  }
127
127
  })
128
- const baseURL = props.baseURL ? props.baseURL : window.$vueApp.config.globalProperties.baseURL
129
- const baseAPI = window.$vueApp.config.globalProperties.baseAPI
128
+ let baseURL = props.baseURL ? props.baseURL : window.$vueApp.config.globalProperties.baseURL
129
+ let baseAPI = window.$vueApp.config.globalProperties.baseAPI
130
+ baseURL = getRelativeBaseUrl(baseURL)
131
+ baseAPI = getRelativeBaseUrl(baseAPI)
130
132
 
131
133
  const dialogVisible = ref<boolean>(false)
132
134
  const previewImageInfo = ref<any>({})
@@ -233,9 +235,9 @@ const previweDoc = (showName: string, serverPath: string) => {
233
235
  showName
234
236
  )
235
237
  } else {
236
- let baseUrl = window.$vueApp.config.globalProperties.baseURL
238
+ let baseUrl = baseURL
237
239
  if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
238
- baseUrl = window.$vueApp.config.globalProperties.baseAPI
240
+ baseUrl = baseAPI
239
241
  }
240
242
  let previewUrl
241
243
  if (window.$vueApp.config.globalProperties.kkFileViewUrl) {
@@ -258,6 +260,7 @@ const previweDoc = (showName: string, serverPath: string) => {
258
260
  previewUrl = baseUrl + '/common/fs-upload/preview?jwt=' + token
259
261
  previewUrl = previewUrl + '&showName=' + encodeURI(showName) + '&serverPath=' + serverPath
260
262
  }
263
+ previewUrl = getRelativeBaseUrl(previewUrl)
261
264
  window.open(previewUrl, showName)
262
265
  }
263
266
  }
@@ -17,6 +17,7 @@
17
17
  }"
18
18
  @upload-success="onInputUploadSuccess"
19
19
  @delete-success="onInputDeleteSuccess"
20
+ @on-error="onError"
20
21
  />
21
22
  <fs-button-upload
22
23
  v-else-if="!isMobile && displayType === 'button'"
@@ -135,6 +136,9 @@ import FileUploadInputMobile from './file-upload-mobile/file-upload-input.vue'
135
136
  import FsUploadList from '../../fs-upload-list/src/fs-upload-list.vue'
136
137
  import { ref, defineProps } from 'vue'
137
138
  import { getReplaceUrlDomain, isMobileBrowser, isPlateSys } from '../../../src/utils/common-util'
139
+ import { useI18n } from 'vue-i18n'
140
+ import { ElMessage } from 'element-plus'
141
+ const { t } = useI18n()
138
142
  const props = defineProps({
139
143
  openFsUpload: {
140
144
  type: Object,
@@ -377,5 +381,18 @@ function uploadFileDone(data) {
377
381
  fileUploadRef.value.uploadFileDone(data)
378
382
  }
379
383
  }
384
+
385
+ function onError(error) {
386
+ console.error('Upload error:', error)
387
+ if (error.message) {
388
+ let message = JSON.parse(error.message)
389
+ if (message && message.message) {
390
+ message = JSON.parse(message.message)
391
+ }
392
+ ElMessage.error(message)
393
+ } else {
394
+ ElMessage.error(t('fsUpload.uploadFailed'))
395
+ }
396
+ }
380
397
  defineExpose({ pickFileDone, uploadFileDone })
381
398
  </script>
@@ -4,6 +4,7 @@ import store from '../super-grid/src/store'
4
4
  import {getExtraParam} from '../super-grid/src/utils'
5
5
  import nineGridStore from '../super-nine-grid/src/store'
6
6
  import {packageEnumAndBeanColumnValueSets} from '../utils/value-set'
7
+ import { getRelativeBaseUrl } from '../../src/utils/common-util'
7
8
 
8
9
  /**
9
10
  *
@@ -327,6 +328,7 @@ function exportListData(
327
328
  if(!baseUrl){
328
329
  baseUrl = window.$vueApp.config.globalProperties.baseURL
329
330
  }
331
+ baseUrl = getRelativeBaseUrl(baseUrl)
330
332
  window.$vueApp.config.globalProperties.$http
331
333
  .post(
332
334
  baseUrl +
@@ -3,11 +3,12 @@
3
3
  <span v-if="formatConfig.isTag">
4
4
  <el-tag
5
5
  v-if="displayText"
6
- :type="customStyle.type"
6
+ :type="customStyle.type || formatConfig.tagType"
7
7
  :color="customStyle.color"
8
- :effect="formatConfig.effect"
8
+ :effect="formatConfig.tagEffect"
9
9
  :size="formatConfig.size"
10
10
  :hit="formatConfig.hit"
11
+ :round="customStyle.round || formatConfig.round"
11
12
  >
12
13
  {{ displayText }}
13
14
  </el-tag>
@@ -144,7 +145,9 @@ export default {
144
145
  this.customStyle = result
145
146
  })
146
147
  } else {
147
- this.customStyle = customEventResult
148
+ if (customEventResult) {
149
+ this.customStyle = customEventResult
150
+ }
148
151
  }
149
152
  }
150
153
  }
@@ -1,5 +1,5 @@
1
1
  import { $emit } from '../../utils/gogocodeTransfer'
2
- import { doFormat } from './formatter'
2
+ import { doFormat, formatDateTime } from './formatter'
3
3
  import store from './store'
4
4
  import { initialization, jumpToPage } from '../../../src/utils/jump-page-utils'
5
5
  import { analysisFileSetObj, otherFilesToStandard } from './utils'
@@ -198,9 +198,10 @@ const customFormatter = {
198
198
  jumpPageJson = column.formatter.options.format
199
199
  }
200
200
  if (jumpPageJson && jumpPageJson !== '') {
201
+ const jumpPageJsonObject = JSON.parse(jumpPageJson)
201
202
  // 解析是否需要显示该超链接
202
203
  const result = initialization(
203
- JSON.parse(jumpPageJson),
204
+ jumpPageJsonObject,
204
205
  row,
205
206
  isSql,
206
207
  additionalParamerter,
@@ -227,6 +228,18 @@ const customFormatter = {
227
228
  hyperLinkResult.label = this.objectPropValueTwo(row, column)
228
229
  hyperLinkResult.title = hyperLinkResult.label
229
230
  }
231
+ if (hyperLinkResult.jumpPageItem) {
232
+ const jumpSetting = hyperLinkResult.jumpPageItem.jumpPageSetting
233
+ if (jumpSetting && jumpSetting.displayTextFormatType && jumpSetting.displayTextFormat) {
234
+ const formatValue = formatDateTime(
235
+ jumpSetting.displayTextFormatType,
236
+ hyperLinkResult.label,
237
+ jumpSetting.displayTextFormat
238
+ )
239
+ hyperLinkResult.label = formatValue
240
+ hyperLinkResult.title = formatValue
241
+ }
242
+ }
230
243
  return hyperLinkResult
231
244
  },
232
245
  // 点击超链接
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <div
3
3
  v-if="type && type.indexOf('custom:') >= 0 && componentName != ''"
4
- :class="!this.isFormSubTable && row.validateErrorField && row.validateErrorField === column.prop ?'required_bg':''"
4
+ :class="
5
+ !this.isFormSubTable && row.validateErrorField && row.validateErrorField === column.prop ? 'required_bg' : ''
6
+ "
5
7
  >
6
8
  <component
7
9
  :is="componentName"
@@ -26,7 +28,12 @@
26
28
  @input="cellEvent('input', $event)"
27
29
  />
28
30
  </div>
29
- <div v-else :class="!this.isFormSubTable && row.validateErrorField && row.validateErrorField === column.prop ?'required_bg':''">
31
+ <div
32
+ v-else
33
+ :class="
34
+ !this.isFormSubTable && row.validateErrorField && row.validateErrorField === column.prop ? 'required_bg' : ''
35
+ "
36
+ >
30
37
  <!--必须有@input ,否则无法输入值-->
31
38
  <el-date-picker
32
39
  v-if="type === 'year' || type === 'month' || type === 'week'"
@@ -293,6 +300,7 @@
293
300
  @delete="deleteFile"
294
301
  @delete-success="deleteSuccess"
295
302
  @upload-success="uploadOnSuccess"
303
+ @on-error="onError"
296
304
  />
297
305
  <multipart-upload
298
306
  v-else-if="type === 'multipartUpload'"
@@ -768,7 +776,7 @@ export default {
768
776
  designProperty, // 字段配置
769
777
  myCustomParams: {},
770
778
  systemCode,
771
- isFormSubTable: false // 是否是表单子表
779
+ isFormSubTable: false // 是否是表单子表
772
780
  }
773
781
  },
774
782
  computed: {},
@@ -1143,7 +1151,7 @@ export default {
1143
1151
  // 在callCustomEvent方法中使用了innerValue属性
1144
1152
  this.innerValue = event
1145
1153
  $emit(this, 'update:value', event)
1146
- this.clearValidateErrorField()
1154
+ this.clearValidateErrorField()
1147
1155
  isInputVal = true
1148
1156
  } else if (eventName === 'blur' && !this.isSelectControll()) {
1149
1157
  // 为了使输入时流畅,所以在blur时调用input,更改组件的数据
@@ -1205,8 +1213,8 @@ export default {
1205
1213
  this.watchScanValueChange(this.innerValue)
1206
1214
  },
1207
1215
  // 清空单元格必填样式
1208
- clearValidateErrorField(){
1209
- if(this.row.validateErrorField){
1216
+ clearValidateErrorField() {
1217
+ if (this.row.validateErrorField) {
1210
1218
  this.row.validateErrorField = undefined
1211
1219
  }
1212
1220
  },
@@ -2089,6 +2097,26 @@ export default {
2089
2097
  } else {
2090
2098
  this.departmentInfo = []
2091
2099
  }
2100
+ },
2101
+ onError(error) {
2102
+ console.error('Upload error:', error)
2103
+ if (error.message) {
2104
+ let message = JSON.parse(error.message)
2105
+ if (message && message.message) {
2106
+ message = JSON.parse(message.message)
2107
+ }
2108
+ this.$message({
2109
+ type: 'error',
2110
+ message: message,
2111
+ showClose: true
2112
+ })
2113
+ } else {
2114
+ this.$message({
2115
+ type: 'error',
2116
+ message: this.$t('fsUpload.uploadFailed'),
2117
+ showClose: true
2118
+ })
2119
+ }
2092
2120
  }
2093
2121
  }
2094
2122
  }
@@ -179,7 +179,7 @@ export function doFormatWithValueSet(column, value) {
179
179
  label.push(item[0].label)
180
180
  }
181
181
  })
182
- if(label.length > 0){
182
+ if (label.length > 0) {
183
183
  value = label.join(',')
184
184
  }
185
185
  } else {
@@ -194,3 +194,7 @@ export function doFormatWithValueSet(column, value) {
194
194
  }
195
195
  return value
196
196
  }
197
+
198
+ export function formatDateTime(type, value, format) {
199
+ return formatter[type](value, { format: format })
200
+ }