|
@ -56,12 +56,12 @@ class Uploads extends Component { |
|
|
componentWillReceiveProps (np) { |
|
|
componentWillReceiveProps (np) { |
|
|
const { dispatch, value: thisEditData, onChange } = this.props; |
|
|
const { dispatch, value: thisEditData, onChange } = this.props; |
|
|
const { value: nextEditData, clearFileList } = np; |
|
|
const { value: nextEditData, clearFileList } = np; |
|
|
|
|
|
console.log(nextEditData,'哈哈哈哈') |
|
|
const setFileList = () => { |
|
|
const setFileList = () => { |
|
|
let defaultFileList = []; |
|
|
let defaultFileList = []; |
|
|
defaultFileList = nextEditData.map((u, index) => { |
|
|
defaultFileList = nextEditData.map((u, index) => { |
|
|
// let fileUrl = `${this.ApiRoot}/${u.storageUrl}`;
|
|
|
// let fileUrl = `${this.ApiRoot}/${u.storageUrl}`;
|
|
|
let fileUrl = `${u.storageUrl}`; |
|
|
let fileUrl = `${u.url}`; |
|
|
return { |
|
|
return { |
|
|
uid: -index - 1, |
|
|
uid: -index - 1, |
|
|
name: this.dealName(u.storageUrl), |
|
|
name: this.dealName(u.storageUrl), |
|
|