|
|
@@ -117,7 +117,7 @@ export default class FormEnclosure extends Component {
|
|
|
const { billModel } = this.state
|
|
|
if (isObjNull(count) || fileList.length <= count) {
|
|
|
//{"success":true,"id":"[52650]"}
|
|
|
- /*let value = ''
|
|
|
+ let value = ''
|
|
|
if (fileList) {
|
|
|
fileList.forEach((file, index) => {
|
|
|
file.enclosureId = (file.response && file.response.id)
|
|
|
@@ -127,9 +127,9 @@ export default class FormEnclosure extends Component {
|
|
|
}
|
|
|
billModel.fileList = fileList
|
|
|
this.setState({ billModel })
|
|
|
- this.props.onTextChange &&
|
|
|
- this.props.onTextChange(this.props.groupIndex, this.props.childIndex,
|
|
|
- value)*/
|
|
|
+ // this.props.onTextChange &&
|
|
|
+ // this.props.onTextChange(this.props.groupIndex, this.props.childIndex,
|
|
|
+ // value)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -142,7 +142,7 @@ export default class FormEnclosure extends Component {
|
|
|
beforeUpload = (file, fileList) => {
|
|
|
uploadFail = false
|
|
|
if (file.size && file.size > 100 * 1024 * 1024) {
|
|
|
- uploadFail = false
|
|
|
+ uploadFail = true
|
|
|
Toast.fail('文件大小不能超过100M')
|
|
|
return false
|
|
|
}
|