修改参数收集增加数据
This commit is contained in:
@@ -205,7 +205,7 @@
|
||||
style="display: inline-block" class='valflex'>
|
||||
<div style='display: inline-block' v-if='itemval.type==="file"'>
|
||||
<a-button type="primary" class="button-text inputWid"
|
||||
@click="clickButtonToUpload(itemval)">
|
||||
@click="clickButtonToUpload(item,itemval,index1)">
|
||||
{{ (itemval.dataValue === 'null' || itemval.dataValue === '' ||
|
||||
itemval.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
|
||||
</a-button>
|
||||
@@ -554,7 +554,7 @@
|
||||
</div>
|
||||
<div style='display: inline-block' v-if='itemval.type==="file"'>
|
||||
<a-button type="primary" class="button-text inputWid"
|
||||
@click="clickButtonToUpload(itemval)">
|
||||
@click="clickButtonToUpload(item,itemval,index1)">
|
||||
{{ (itemval.dataValue === 'null' || itemval.dataValue === '' ||
|
||||
itemval.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
|
||||
</a-button>
|
||||
@@ -589,7 +589,7 @@
|
||||
</div>
|
||||
<div style='display: inline-block' v-else-if='itemval.type==="file"'>
|
||||
<a-button type="primary" class="button-text inputWid"
|
||||
@click="clickButtonToUpload(itemval)">
|
||||
@click="clickButtonToUpload(item,itemval,index1)">
|
||||
{{ (itemval.dataValue === 'null' || itemval.dataValue === '' ||
|
||||
itemval.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
|
||||
</a-button>
|
||||
@@ -625,7 +625,7 @@
|
||||
</div>
|
||||
<div style='display: inline-block' v-else-if='itemval.type==="file"'>
|
||||
<a-button type="primary" class="button-text inputWid"
|
||||
@click="clickButtonToUpload(itemval)">
|
||||
@click="clickButtonToUpload(item,itemval,index1)">
|
||||
{{ (itemval.dataValue === 'null' || itemval.dataValue === '' ||
|
||||
itemval.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
|
||||
</a-button>
|
||||
@@ -753,7 +753,7 @@
|
||||
</div>
|
||||
<div style='display: inline-block' v-if='itemval.type==="file"'>
|
||||
<a-button type="primary" class="button-text inputWid"
|
||||
@click="clickButtonToUpload(itemval)">
|
||||
@click="clickButtonToUpload(item,itemval,index1)">
|
||||
{{ (itemval.dataValue === 'null' || itemval.dataValue === '' ||
|
||||
itemval.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
|
||||
</a-button>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user