n20-common-lib 2.6.48 → 2.6.49

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": "n20-common-lib",
3
- "version": "2.6.48",
3
+ "version": "2.6.49",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -263,6 +263,19 @@ const ViewerImg = async function () {
263
263
  let { component } = await importG('v-viewer', () => import(/*webpackChunkName: "v-viewer"*/ 'v-viewer'))
264
264
  return component
265
265
  }
266
+ const keysDefault = {
267
+ rowKey: 'id',
268
+ type: 'type',
269
+ name: 'name',
270
+ url: 'url',
271
+ time: 'time',
272
+ user: 'user'
273
+ }
274
+ const typeOptionsDefault = [
275
+ { type: '001', label: $lc('信贷合同') },
276
+ { type: '002', label: $lc('贴现合同') },
277
+ { type: '003', label: $lc('其他合同') }
278
+ ]
266
279
 
267
280
  export default {
268
281
  name: 'FileUploadTable',
@@ -389,10 +402,10 @@ export default {
389
402
  return this.dataPorp.fileData || undefined
390
403
  },
391
404
  typeOptions() {
392
- return this.dataPorp.typeOptions || typeOptionsD
405
+ return this.dataPorp.typeOptions || typeOptionsDefault
393
406
  },
394
407
  keys() {
395
- return this.dataPorp.keys || keysD
408
+ return this.dataPorp.keys || keysDefault
396
409
  },
397
410
  multiple() {
398
411
  return this.dataPorp.multiple ?? true
@@ -621,20 +634,6 @@ export default {
621
634
  }
622
635
  }
623
636
  }
624
-
625
- const keysD = {
626
- rowKey: 'id',
627
- type: 'type',
628
- name: 'name',
629
- url: 'url',
630
- time: 'time',
631
- user: 'user'
632
- }
633
- const typeOptionsD = [
634
- { type: '001', label: $lc('信贷合同') },
635
- { type: '002', label: $lc('贴现合同') },
636
- { type: '003', label: $lc('其他合同') }
637
- ]
638
637
  </script>
639
638
  <style>
640
639
  .file-upload-table_preview-pn {