修改上传文件
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="item.db_field_name">
|
||||
<a-button type="primary" class="button-text"
|
||||
@click="clickButtonToUpload(item.db_field_name)">
|
||||
@click="clickButtonToUpload(item)">
|
||||
{{ (formInline[item.db_field_name] === 'null' || formInline[item.db_field_name] === '' ||
|
||||
formInline[item.db_field_name] == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
@@ -344,11 +344,12 @@
|
||||
this.formInline[item] = dateOne ? [dateOne, dateTwo] : []
|
||||
},
|
||||
|
||||
clickButtonToUpload(current) {
|
||||
clickButtonToUpload(item) {
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
this.$refs.uploadFile.state = item.flag
|
||||
this.$refs.uploadFile.visible = true
|
||||
this.uploadName = current
|
||||
getAction('sys/common/getFileInfos', { id: this.formInline[current] }).then((res) => {
|
||||
this.uploadName = item.db_field_name
|
||||
getAction('sys/common/getFileInfos', { id: this.formInline[item.db_field_name] }).then((res) => {
|
||||
if (res.success) {
|
||||
this.$refs.uploadFile.perentHandleFunc(res.result)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user