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
@@ -1,121 +1,35 @@
1
1
  <template>
2
- <span>
2
+ <span style="width: 100%">
3
3
  <template v-if="!disabled">
4
4
  <template v-if="!isMobile">
5
- <el-input
6
- ref="item"
5
+ <fs-preview
6
+ :enable-delete="true"
7
+ :entity="row"
7
8
  :disabled="disabled"
8
- :model-value="value"
9
- :placeholder="$t('imatrixUIMessage.fileUpload')"
10
- :readonly="true"
9
+ :fileInfo="fileInfo"
10
+ :file-set-obj="fileSetObj"
11
+ :is-sql="isSql"
12
+ :label="value"
13
+ @delete-file="deleteRow"
11
14
  >
12
- <template v-slot:append>
13
- <div class="group-link-btn-main">
14
- <el-link v-if="!disabled" type="info" :underline="false" @click="openAnnexUpload">
15
- <template v-slot:icon>
16
- <el-icon :size="14"><Upload /></el-icon>
17
- </template>
18
- </el-link>
19
- <el-link size="default" type="info" :underline="false" @click="preview">
20
- <template v-slot:icon>
21
- <el-icon :size="14"><ZoomIn /></el-icon>
22
- </template>
23
- </el-link>
24
- </div>
15
+ <template #prefix>
16
+ <el-upload
17
+ :accept="fileSetObj.accept ? fileSetObj.accept : null"
18
+ :action="defaultAction"
19
+ :multiple="fileSetObj.multiple"
20
+ :before-upload="handleBeforeUpload"
21
+ :show-file-list="false"
22
+ :headers="headers"
23
+ :on-success="uploadOnSuccess"
24
+ :with-credentials="true"
25
+ name="file"
26
+ >
27
+ <el-button size="small" style="margin-right: 5px" bg>
28
+ <el-icon><UploadFilled /></el-icon>
29
+ </el-button>
30
+ </el-upload>
25
31
  </template>
26
- </el-input>
27
-
28
- <el-dialog
29
- v-model="annexUploadFlag"
30
- :append-to-body="true"
31
- :show-close="true"
32
- :title="$t('imatrixUIMessage.upload')"
33
- width="30%"
34
- >
35
- <el-upload
36
- v-if="annexUploadFlag"
37
- :accept="fileSetObj.accept ? fileSetObj.accept : null"
38
- :action="defaultAction"
39
- :multiple="fileSetObj.multiple"
40
- :before-upload="handleBeforeUpload"
41
- :headers="headers"
42
- :on-success="uploadOnSuccess"
43
- :with-credentials="true"
44
- name="file"
45
- >
46
- <el-button>{{ $t('imatrixUIMessage.upload') }}</el-button>
47
- </el-upload>
48
- </el-dialog>
49
- <el-dialog
50
- v-model="showPreviewSingleImage"
51
- :append-to-body="true"
52
- :show-close="true"
53
- :title="$t('imatrixUIPublicModel.previewImage')"
54
- @close="$emit('close')"
55
- >
56
- <template v-slot:title>
57
- <span
58
- >{{ $t('imatrixUIPublicModel.previewImage') }}
59
- <!-- <i v-if="downloadable" class="el-icon-download" style="padding-left:5px;cursor:pointer;color:#409EFF" @click="downloadFile()" /> -->
60
- <!-- <i v-if="deleteable" class="el-icon-delete" style="padding-left:5px;cursor:pointer;color:#F56C6C" @click="deleteFile()" /> -->
61
- </span>
62
- </template>
63
- <el-image
64
- v-if="previewImageInfo && previewImageInfo.isImg"
65
- :preview-src-list="[previewImageInfo.src]"
66
- :src="previewImageInfo.src"
67
- />
68
- </el-dialog>
69
- <el-dialog
70
- v-model="showPreviewMulti"
71
- :append-to-body="true"
72
- :show-close="true"
73
- :title="$t('imatrixUIPublicModel.preview')"
74
- width="30%"
75
- @close="$emit('close')"
76
- >
77
- <template v-slot:title>
78
- <span
79
- >{{ $t('imatrixUIPublicModel.preview') }}
80
- <!-- <i v-if="downloadable" class="el-icon-download" style="padding-left:5px;cursor:pointer;color:#409EFF" @click="downloadFile()" /> -->
81
- <!-- <i v-if="deleteable" class="el-icon-delete" style="padding-left:5px;cursor:pointer;color:#F56C6C" @click="deleteFile()" /> -->
82
- </span>
83
- </template>
84
- <el-table :data="showFileList" :show-header="false">
85
- <el-table-column prop="showName" width="300" show-overflow-tooltip>
86
- <template v-slot="scope">
87
- <div style="display: flex; align-items: center">
88
- <super-icon :iconValue="getFileIconByName(scope.row.showName)" />
89
- <span style="margin-left: 10px; cursor: pointer" @click="previewSingle(scope.row)">
90
- {{ scope.row.showName }}
91
- </span>
92
- </div>
93
- </template>
94
- </el-table-column>
95
- <el-table-column align="right">
96
- <template v-slot="scope">
97
- <el-tooltip :content="$t('imatrixUIPublicModel.preview')" class="item" effect="dark" placement="top">
98
- <el-button type="text" @click="previewSingle(scope.row)">
99
- <el-icon style="cursor: pointer">
100
- <el-icon-view />
101
- </el-icon>
102
- </el-button>
103
- </el-tooltip>
104
- </template>
105
- </el-table-column>
106
- <el-table-column v-if="!disabled">
107
- <template v-slot="scope">
108
- <el-tooltip :content="$t('imatrixUIPublicModel.delete')" class="item" effect="dark" placement="top">
109
- <el-button type="text" @click="deleteRow(scope.$index)">
110
- <el-icon style="cursor: pointer">
111
- <el-icon-delete />
112
- </el-icon>
113
- </el-button>
114
- </el-tooltip>
115
- </template>
116
- </el-table-column>
117
- </el-table>
118
- </el-dialog>
32
+ </fs-preview>
119
33
  </template>
120
34
  <FileUploadInputMobile
121
35
  v-else
@@ -165,6 +79,7 @@ import { packageFile } from '../../super-grid/src/utils'
165
79
  import FileUploadInputMobile from '../../fs-upload-new/src/file-upload-mobile/file-upload-input.vue'
166
80
  import { Base64 } from 'js-base64'
167
81
  import { getFileIconByName } from '../../../src/utils/file-util'
82
+ import { ElMessage } from 'element-plus'
168
83
  export default {
169
84
  name: 'FsUploadList',
170
85
  props: {
@@ -266,9 +181,28 @@ export default {
266
181
  ElIconDelete,
267
182
  FileUploadInputMobile
268
183
  },
269
- created() {},
184
+ created() {
185
+ this.fileList.length = 0
186
+ this.fileList.push(...this.getFileList())
187
+ },
270
188
  mounted() {},
271
189
  methods: {
190
+ getFileList() {
191
+ const fileList = []
192
+ if (this.fileInfo?.serverPath) {
193
+ const uuids = this.fileInfo.serverPath.split(',')
194
+ const names = this.fileInfo.showName.split(',')
195
+ for (let i = 0; i < uuids.length; i++) {
196
+ if (uuids[i]) {
197
+ fileList.push({
198
+ serverPath: uuids[i],
199
+ showName: names[i]
200
+ })
201
+ }
202
+ }
203
+ }
204
+ return fileList
205
+ },
272
206
  openAnnexUpload() {
273
207
  if (this.openFsUpload) {
274
208
  this.annexUploadFlag = true
@@ -308,6 +242,7 @@ export default {
308
242
  // 上传成功
309
243
  uploadOnSuccess(response, file) {
310
244
  if (response) {
245
+ ElMessage.success(this.$t('fsUpload.uploadSucceeded'))
311
246
  $emit(this, 'upload-success', {
312
247
  showName: response.name,
313
248
  serverPath: response.serverPath
@@ -327,100 +262,33 @@ export default {
327
262
  }
328
263
  this.annexUploadFlag = false
329
264
  },
330
- preview() {
331
- this.fileList.length = 0
332
- const uuids = this.fileInfo.serverPath.split(',')
333
- const baseURL = window.$vueApp.config.globalProperties.baseURL
334
- const baseAPI = window.$vueApp.config.globalProperties.baseAPI
335
- let tempAction = baseURL + '/common/fs-upload/search-file-names'
336
- if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
337
- tempAction = baseAPI + '/api/search-file-names'
338
- }
339
- this.$http.post(tempAction, uuids).then((result) => {
340
- uuids.forEach((uuid) => {
341
- this.fileList.push({ showName: result[uuid], serverPath: uuid })
342
- })
343
- this.showFileList = this.fileList
344
- this.showPreviewMulti = true
345
- })
346
- },
347
- previewSingle(fileInfo) {
348
- fileInfo = packageFile(fileInfo.showName, fileInfo.serverPath)
349
- if (isImage(fileInfo.showName)) {
350
- this.previewImageInfo = fileInfo
351
- this.showPreviewSingleImage = true
352
- } else {
353
- this.previewDoc(fileInfo)
354
- }
355
- },
356
- previewDoc(file) {
357
- const showName = file.showName.replace('#', '~~').replace('?', '~$').replace('&', '$')
358
- const token = getToken()
359
- if (window.$vueApp.config.globalProperties.customPreviewUrl) {
360
- window.open(
361
- getSystemFrontendUrl(window.$vueApp.config.globalProperties.portalUrl) +
362
- '/#/file-service/preview?serverPath=' +
363
- file.serverPath +
364
- '&showName=' +
365
- encodeURI(showName),
366
- file.showName
367
- )
368
- } else {
369
- let previewUrl
370
- const myShowName = showName
371
- const uuid = file.serverPath
372
- let baseUrl = window.$vueApp.config.globalProperties.baseURL
373
- if (isPlateSys(window.$vueApp.config.globalProperties.systemCode)) {
374
- baseUrl = window.$vueApp.config.globalProperties.baseAPI
375
- }
376
- if (window.$vueApp.config.globalProperties.kkFileViewUrl) {
377
- const originUrl =
378
- baseUrl +
379
- '/common/super-form/downloads?jwt=' +
380
- token +
381
- '&showName=' +
382
- encodeURI(myShowName) +
383
- '&serverPath=' +
384
- uuid
385
- //要预览文件的访问地址
386
- const myPreviewUrl = originUrl + '&fullfilename=' + myShowName
387
- // http://127.0.0.1:8012/onlinePreview
388
- previewUrl =
389
- window.$vueApp.config.globalProperties.kkFileViewUrl +
390
- '?url=' +
391
- encodeURIComponent(Base64.encode(myPreviewUrl))
392
- } else {
393
- previewUrl = baseUrl + '/common/fs-upload/preview?jwt=' + token
394
- previewUrl = previewUrl + '&showName=' + encodeURI(myShowName) + '&serverPath=' + uuid
395
- }
396
- window.open(previewUrl, myShowName)
397
- }
398
- },
399
- deleteRow(index) {
400
- const deleteFile = this.showFileList[index]
265
+ deleteRow(deleteFile) {
401
266
  // this.fileList.splice(index, 1)
402
267
  const nameArr = []
403
268
  const pathArr = []
404
- for (let i = 0; i < this.showFileList.length; i++) {
405
- if (i !== index) {
406
- nameArr.push(this.showFileList[i].showName)
407
- pathArr.push(this.showFileList[i].serverPath)
269
+ let deleteFileIndex = -1
270
+ for (let i = 0; i < this.fileList.length; i++) {
271
+ if (this.fileList[i].serverPath !== deleteFile.serverPath) {
272
+ nameArr.push(this.fileList[i].showName)
273
+ pathArr.push(this.fileList[i].serverPath)
274
+ } else {
275
+ deleteFileIndex = i
408
276
  }
409
277
  }
410
278
  if (nameArr.length === 0) {
411
279
  this.fileInfo.showName = null
412
280
  this.fileInfo.serverPath = null
413
- this.showFileList = []
281
+ this.fileList.length = 0
414
282
  $emit(this, 'delete-success', { deleteFile: deleteFile, all: [] })
415
- $emit(this, 'delete', [], index)
283
+ $emit(this, 'delete', [], deleteFileIndex)
416
284
  } else {
417
285
  this.fileInfo.showName = nameArr.join(',')
418
286
  this.fileInfo.serverPath = pathArr.join(',')
419
287
  $emit(this, 'delete-success', {
420
288
  deleteFile: deleteFile,
421
- all: this.showFileList
289
+ all: this.fileList
422
290
  })
423
- $emit(this, 'delete', this.showFileList, index)
291
+ $emit(this, 'delete', this.fileList, deleteFileIndex)
424
292
  }
425
293
  },
426
294
  // 移动端上传成功
@@ -452,4 +320,11 @@ export default {
452
320
  width: 30px;
453
321
  height: 30px;
454
322
  }
323
+ .amb-list-preivew-name {
324
+ margin-left: 10px;
325
+ cursor: pointer;
326
+ overflow: hidden;
327
+ text-overflow: ellipsis;
328
+ white-space: nowrap;
329
+ }
455
330
  </style>
@@ -27,8 +27,8 @@
27
27
  <template v-if="fileList && fileList.length > 0">
28
28
  <fs-preview-new
29
29
  :disabled="disabled"
30
- :absolute-preview="absolutePreview"
31
- :absolute-downloadable="absoluteDownloadable"
30
+ :disabled-no-preview="disabledNoPreview"
31
+ :disabled-no-download="disabledNoDownload"
32
32
  :file-list="fileList"
33
33
  :system-code="systemCode"
34
34
  :before-remove="beforeRemove"
@@ -121,12 +121,12 @@ const props = defineProps({
121
121
  default: () => {}
122
122
  },
123
123
  // 是否禁用时也可预览
124
- absolutePreview: {
124
+ disabledNoPreview: {
125
125
  type: Boolean,
126
126
  default: false
127
127
  },
128
128
  // 是否禁用时也可下载
129
- absoluteDownloadable: {
129
+ disabledNoDownload: {
130
130
  type: Boolean,
131
131
  default: false
132
132
  }
@@ -24,8 +24,8 @@
24
24
  <template v-if="fileList && fileList.length > 0">
25
25
  <fs-preview-new
26
26
  :disabled="disabled"
27
- :absolute-preview="absolutePreview"
28
- :absolute-downloadable="absoluteDownloadable"
27
+ :disabled-no-preview="disabledNoPreview"
28
+ :disabled-no-download="disabledNoDownload"
29
29
  :file-list="fileList"
30
30
  :system-code="systemCode"
31
31
  :before-remove="beforeRemove"
@@ -118,12 +118,12 @@ const props = defineProps({
118
118
  default: () => {}
119
119
  },
120
120
  // 是否禁用时也可预览
121
- absolutePreview: {
121
+ disabledNoPreview: {
122
122
  type: Boolean,
123
123
  default: false
124
124
  },
125
125
  // 是否禁用时也可下载
126
- absoluteDownloadable: {
126
+ disabledNoDownload: {
127
127
  type: Boolean,
128
128
  default: false
129
129
  }
@@ -7,19 +7,19 @@
7
7
  <div style="display: flex; align-items: center">
8
8
  <!-- 'amb-color-icon-XLS' -->
9
9
  <super-icon :iconValue="getFileIconByName(file.showName)" />
10
- <template v-if="disabled && !absolutePreview">
10
+ <template v-if="disabled && disabledNoPreview">
11
11
  <span style="cursor: no-drop">
12
12
  <span style="margin-left: 6.5px">{{ file.showName }}</span>
13
13
  </span>
14
14
  </template>
15
- <template v-if="!disabled || absolutePreview">
15
+ <template v-if="!disabled || !disabledNoPreview">
16
16
  <el-tooltip content="预览" placement="top">
17
17
  <span style="cursor: pointer" @click="preview(file.showName, file.serverPath)">
18
18
  <span style="margin-left: 6.5px">{{ file.showName }}</span>
19
19
  </span>
20
20
  </el-tooltip>
21
21
  </template>
22
- <el-tooltip v-if="!disabled || absoluteDownloadable" content="下载" placement="top">
22
+ <el-tooltip v-if="!disabled || !disabledNoDownload" content="下载" placement="top">
23
23
  <el-icon style="margin-left: 10px" @click="handleDownload(file)">
24
24
  <Download />
25
25
  </el-icon>
@@ -113,12 +113,12 @@ const props = defineProps({
113
113
  default: null
114
114
  },
115
115
  // 是否禁用时也可预览
116
- absolutePreview: {
116
+ disabledNoPreview: {
117
117
  type: Boolean,
118
118
  default: false
119
119
  },
120
120
  // 是否禁用时也可下载
121
- absoluteDownloadable: {
121
+ disabledNoDownload: {
122
122
  type: Boolean,
123
123
  default: false
124
124
  }
@@ -195,9 +195,8 @@ const isPromise = (p: any) => {
195
195
  return p && Object.prototype.toString.call(p) === '[object Promise]'
196
196
  }
197
197
  const preview = (showName: string, serverPath: string) => {
198
- debugger
199
198
  console.log('preview----props.fileList=', props.fileList)
200
- if (props.disabled && !props.absolutePreview) {
199
+ if (props.disabled && props.disabledNoPreview) {
201
200
  return
202
201
  }
203
202
  let isImg = false
@@ -8,8 +8,8 @@
8
8
  :openFsUpload="openFsUpload"
9
9
  :fileSetObj="{
10
10
  accept: accept,
11
- absolutePreview: absolutePreview,
12
- absoluteDownloadable: absoluteDownloadable,
11
+ disabledNoPreview: disabledNoPreview,
12
+ disabledNoDownload: disabledNoDownload,
13
13
  multiple: multiple,
14
14
  limitFileSize: limitFileSize,
15
15
  limit: limitNum,
@@ -25,8 +25,8 @@
25
25
  :systemCode="systemCode"
26
26
  :accept="accept"
27
27
  :multiple="multiple"
28
- :absolute-preview="absolutePreview"
29
- :absolute-downloadable="absoluteDownloadable"
28
+ :disabled-no-preview="disabledNoPreview"
29
+ :disabled-no-download="disabledNoDownload"
30
30
  :limit="limitNum"
31
31
  :limitFileSize="limitFileSize"
32
32
  :placeholder="placeholder"
@@ -51,8 +51,8 @@
51
51
  :multiple="multiple"
52
52
  :limit="limitNum"
53
53
  :limitFileSize="limitFileSize"
54
- :absolute-preview="absolutePreview"
55
- :absolute-downloadable="absoluteDownloadable"
54
+ :disabled-no-preview="disabledNoPreview"
55
+ :disabled-no-download="disabledNoDownload"
56
56
  :placeholder="placeholder"
57
57
  :action="action"
58
58
  :headers="headers"
@@ -76,8 +76,8 @@
76
76
  :multiple="multiple"
77
77
  :limit="limitNum"
78
78
  :limitFileSize="limitFileSize"
79
- :absolute-preview="absolutePreview"
80
- :absolute-downloadable="absoluteDownloadable"
79
+ :disabled-no-preview="disabledNoPreview"
80
+ :disabled-no-download="disabledNoDownload"
81
81
  :placeholder="placeholder"
82
82
  :action="action"
83
83
  :headers="headers"
@@ -105,8 +105,8 @@
105
105
  :multiple="multiple"
106
106
  :limit="limitNum"
107
107
  :limitFileSize="limitFileSize"
108
- :absolute-preview="absolutePreview"
109
- :absolute-downloadable="absoluteDownloadable"
108
+ :disabled-no-preview="disabledNoPreview"
109
+ :disabled-no-download="disabledNoDownload"
110
110
  :placeholder="placeholder"
111
111
  :action="action"
112
112
  :headers="headers"
@@ -132,9 +132,9 @@ import FsDragUpload from './fs-drag-upload.vue'
132
132
  import FsButtonUpload from './fs-button-upload.vue'
133
133
  import FileUploadMobile from './file-upload-mobile/file-upload.vue'
134
134
  import FileUploadInputMobile from './file-upload-mobile/file-upload-input.vue'
135
+ import FsUploadList from '../../fs-upload-list/src/fs-upload-list.vue'
135
136
  import { ref, defineProps } from 'vue'
136
137
  import { getReplaceUrlDomain, isMobileBrowser, isPlateSys } from '../../../src/utils/common-util'
137
- import { Download } from '@element-plus/icons-vue'
138
138
  const props = defineProps({
139
139
  openFsUpload: {
140
140
  type: Object,
@@ -264,12 +264,12 @@ const props = defineProps({
264
264
  default: 'openCameraAndChoosePhoto'
265
265
  },
266
266
  // 是否禁用时也可预览
267
- absolutePreview: {
267
+ disabledNoPreview: {
268
268
  type: Boolean,
269
269
  default: false
270
270
  },
271
271
  // 是否禁用时也可下载
272
- absoluteDownloadable: {
272
+ disabledNoDownload: {
273
273
  type: Boolean,
274
274
  default: false
275
275
  }
@@ -428,11 +428,11 @@ export default {
428
428
  }
429
429
  }
430
430
  return branchDeptIds.join(this.separator)
431
- } else if (orgDataType === 'divisionManager') {
431
+ } else if (orgDataType === 'divisionManager' || orgDataType === 'divisionManagerName') {
432
432
  let divisionManagerArr = []
433
433
  if (isUserTree) {
434
- if (selectNodeInfo.divisionManager && selectNodeInfo.divisionManager.length > 0) {
435
- divisionManagerArr = selectNodeInfo.divisionManager
434
+ if (selectNodeInfo[orgDataType] && selectNodeInfo[orgDataType].length > 0) {
435
+ divisionManagerArr = selectNodeInfo[orgDataType]
436
436
  }
437
437
  }
438
438
  if (divisionManagerArr && divisionManagerArr.length > 0) {
@@ -212,7 +212,6 @@ export default defineComponent({
212
212
 
213
213
  // 写入选中
214
214
  const setCheckedList = (value) => {
215
- debugger;
216
215
  if (!isCheck.value) return
217
216
  if (checkedList.value.includes(value)) {
218
217
  checkedList.value = checkedList.value.filter(v => v !== value)
@@ -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 {
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 !== '') {
@@ -713,7 +713,6 @@ export default {
713
713
  annexUploadFlag: false,
714
714
  defaultAction,
715
715
  fileMultiple: false, // 文件是否多选
716
- lastFileName: '',
717
716
  fileList: [],
718
717
  lastServerName: '',
719
718
  fileSetObj: null,
@@ -838,7 +837,6 @@ export default {
838
837
  this.fileMultiple = true
839
838
  }
840
839
  this.fileList = getFileList(this.row, this.column, this.isSql)
841
- this.packageFileNameWithFileList()
842
840
  }
843
841
 
844
842
  if (this.column.componentType === 'inputNumber') {
@@ -1323,6 +1321,7 @@ export default {
1323
1321
  this.radioStorageFile(fileSetObj, responseFile)
1324
1322
  }
1325
1323
  this.fileList = getFileList(this.row, this.column, this.isSql)
1324
+ console.log('superGrid---uploadOnSuccess----fileList=', this.fileList)
1326
1325
  }
1327
1326
  }
1328
1327
  }
@@ -1368,7 +1367,6 @@ export default {
1368
1367
  }
1369
1368
  }
1370
1369
  }
1371
- this.packageFileNameWithFileList([{ showName: responseFile.name, serverPath: responseFile.serverPath }])
1372
1370
  },
1373
1371
  // 多选上传完成后存储
1374
1372
  multiStorage(fileSetObj, responseFile) {
@@ -1453,7 +1451,6 @@ export default {
1453
1451
  serverPath: pathNameStr
1454
1452
  })
1455
1453
  }
1456
- this.packageFileNameWithFileList()
1457
1454
  },
1458
1455
  // 多选上传完成后存储 移动端时
1459
1456
  multiStorageMobile(fileSetObj, responseFiles) {
@@ -1545,7 +1542,6 @@ export default {
1545
1542
  serverPath: pathNameStr
1546
1543
  })
1547
1544
  }
1548
- this.packageFileNameWithFileList()
1549
1545
  },
1550
1546
  responseFileToFileObj(fileSetObj, responseFile) {
1551
1547
  const fileObj = {}
@@ -1601,11 +1597,12 @@ export default {
1601
1597
  }
1602
1598
  },
1603
1599
  deleteFile(fileList, index) {
1600
+ console.log(JSON.stringify(fileList))
1604
1601
  this.fileList = fileList
1605
1602
  if (index !== undefined && index !== -1) {
1606
1603
  this.fileList.splice(index, 1)
1607
1604
  }
1608
- this.packageFileNameWithFileList()
1605
+ console.log(JSON.stringify(this.fileList))
1609
1606
  if (this.column.fileSet && this.column.fileSet !== '') {
1610
1607
  const fileSetObj = JSON.parse(this.column.fileSet)
1611
1608
  if (fileSetObj) {
@@ -1620,26 +1617,6 @@ export default {
1620
1617
  }
1621
1618
  }
1622
1619
  },
1623
- packageFileNameWithFileList(fileList) {
1624
- if (!fileList) {
1625
- fileList = this.fileList
1626
- }
1627
- if (fileList && fileList.length > 0) {
1628
- let fileNames = ''
1629
- let fileServerName = ''
1630
- fileList.forEach((item) => {
1631
- fileNames += item.showName + ','
1632
- fileServerName += item.serverPath + ','
1633
- })
1634
- if (fileNames && fileNames.indexOf(',') > 0) {
1635
- this.lastFileName = fileNames.substring(0, fileNames.lastIndexOf(','))
1636
- this.lastServerName = fileServerName.substring(0, fileServerName.lastIndexOf(','))
1637
- }
1638
- } else {
1639
- this.lastFileName = null
1640
- this.lastServerName = null
1641
- }
1642
- },
1643
1620
  // fileList 赋值Row
1644
1621
  standardToOtherFiles(fileSetObj, keyValueParam) {
1645
1622
  if (fileSetObj.childAnnexDataTableCode) {