bl-common-vue3 3.8.54 → 3.8.55

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bl-common-vue3",
3
- "version": "3.8.54",
3
+ "version": "3.8.55",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "description": "bailing vue3 common components lib",
@@ -643,20 +643,6 @@ export default defineComponent({
643
643
  title: props.mobileAnnexUploadConfig?.title || "",
644
644
  h5Domain: props.mobileAnnexUploadConfig?.h5Domain || location.origin || props.staticPathes,
645
645
  uploadConfig: props.mobileAnnexUploadConfig?.uploadConfig || {},
646
- addRequest: {
647
- extra: {
648
- objectId: attachParams.object_id,
649
- annex_type: 2,
650
- parent_id: currentCrumb.value.parentId,
651
- ...attachParams,
652
- business_id: props.id,
653
- alias: props.fileAlias,
654
- typeFrom: props.typeFrom,
655
- },
656
- server: props.serviceFrom,
657
- url: props.annexAdd,
658
- method: 'post'
659
- }
660
646
  }
661
647
  })
662
648
 
@@ -59,7 +59,7 @@
59
59
  </a-dropdown>
60
60
 
61
61
  <add-attachments
62
- :params="attachParams"
62
+ :params="addParams"
63
63
  :visible="addVisible"
64
64
  :id="id"
65
65
  :fileAlias="fileAlias"
@@ -74,7 +74,7 @@
74
74
  :visible="multiAddVisible"
75
75
  :file-list="fileList"
76
76
  @handleCancel="handleCancel"
77
- :params="attachParams"
77
+ :params="addParams"
78
78
  :id="id"
79
79
  :fileAlias="fileAlias"
80
80
  :serviceFrom="serviceFrom"
@@ -211,6 +211,14 @@ export default defineComponent({
211
211
  const addParams = ref({});
212
212
 
213
213
  const addAttachment = (type) => {
214
+ addParams.value = {
215
+ objectId: props.attachParams?.object_id,
216
+ parent_id: props.parentId,
217
+ annex_type: type,
218
+ ...props.attachParams,
219
+ serviceFrom:`/${props.serviceFrom}`,
220
+ annexAdd:`${props.annexAdd}`,
221
+ };
214
222
  if (type != 3) {
215
223
  addVisible.value = true;
216
224
  }
@@ -241,14 +249,19 @@ export default defineComponent({
241
249
  const addRequest = computed(() => {
242
250
  let params = {
243
251
  extra:{
252
+ annex_type: 2,
244
253
  objectId: props.attachParams?.object_id,
245
254
  parent_id: props.parentId,
246
255
  ...props.attachParams,
256
+ business_id: props.id,
257
+ alias: props.fileAlias,
258
+ typeFrom: props.typeFrom,
247
259
  },
248
260
  server:`/${props.serviceFrom}`,
249
261
  url:`${props.annexAdd}`,
250
262
  method: 'post'
251
263
  }
264
+ console.log(params)
252
265
  return props.getFile ? {} : params;
253
266
  });
254
267