diff --git a/jero-web/src/components/CollectionType/index.vue b/jero-web/src/components/CollectionType/index.vue
index 8b9e1a7ac..55598352a 100644
--- a/jero-web/src/components/CollectionType/index.vue
+++ b/jero-web/src/components/CollectionType/index.vue
@@ -205,7 +205,7 @@
style="display: inline-block" class='valflex'>
+ @click="clickButtonToUpload(item,itemval,index1)">
{{ (itemval.dataValue === 'null' || itemval.dataValue === '' ||
itemval.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
@@ -810,7 +810,10 @@
visible: false,
detailDatetransformation: [],
detailDateList: [],
- paramsConfigData: {}
+ paramsConfigData: {},
+ fileNameOne:'',
+ fileNameTwo:'',
+ fileIndex:'',
}
},
components: {
@@ -884,14 +887,17 @@
// console.log('form',this.formInline)
}
- this.detailDateList.forEach((item, index) => {
- if (item.type === 'file') {
- item.dataValue = attIdList.join(',')
- }
- })
+ this.detailDate.paramsConfigData[this.fileNameOne][this.fileIndex].dataValue = attIdList.join(',')
+ // this.detailDateList.forEach((item, index) => {
+ // if (item.type === 'file') {
+ // item.dataValue = attIdList.join(',')
+ // }
+ // })
},
- clickButtonToUpload(item) {
- if (item.isLock == '1') {
+ clickButtonToUpload(name,item,index) {
+ this.fileNameOne = name
+ this.fileIndex = index
+ if (item.isLock && item.isLock == '1') {
this.$refs.uploadFile.disabled = true
} else {
this.$refs.uploadFile.disabled = false