[update] 修改bug80598

This commit is contained in:
lideqin
2024-01-10 11:27:32 +08:00
parent 9181c97b77
commit a1d1dbc908
@@ -592,7 +592,7 @@
</div> </div>
<!-- 上传文件弹框 --> <!-- 上传文件弹框 -->
<upload-file ref="uploadFile" :file-max-size="fileMaxSize" @change="uploadFileChange" :return-url="false" :disabled="disabled"></upload-file> <upload-file ref="uploadFile" @change="uploadFileChange" :return-url="false" :disabled="disabled"></upload-file>
</a-form-model> </a-form-model>
</a-spin> </a-spin>
</template> </template>
@@ -840,8 +840,7 @@ export default {
rangeOfApplication: true, // 适用范围部分 rangeOfApplication: true, // 适用范围部分
projectStatement: true // 立项说明部分 projectStatement: true // 立项说明部分
}, },
uploadName: '', uploadName: ''
fileMaxSize: undefined
} }
}, },
created () { created () {
@@ -981,11 +980,6 @@ export default {
}, },
// 点击文件上传 // 点击文件上传
clickButtonToUpload (fieldName) { clickButtonToUpload (fieldName) {
if (fieldName === 'uploadAttachment') {
this.fileMaxSize = 10
} else {
this.fileMaxSize = undefined
}
this.$refs.uploadFile.open(this.formInline[fieldName]) this.$refs.uploadFile.open(this.formInline[fieldName])
this.uploadName = fieldName this.uploadName = fieldName
}, },