|
|
@ -85,9 +85,9 @@ const componentChild = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
conf["on-success"] = (response, file, fileList) => {
|
|
|
|
conf["on-success"] = (response, file, fileList) => {
|
|
|
|
// 在上传成功后的回调函数中可以执行你的业务逻辑
|
|
|
|
// 在上传成功后的回调函数中可以执行你的业务逻辑
|
|
|
|
console.log('上传成功', response);
|
|
|
|
// console.log('上传成功', response);
|
|
|
|
console.log('上传成功2', file);
|
|
|
|
// console.log('上传成功2', file);
|
|
|
|
console.log('上传成功3', fileList);
|
|
|
|
// console.log('上传成功3', fileList);
|
|
|
|
let listtow = []
|
|
|
|
let listtow = []
|
|
|
|
fileList.forEach(item => {
|
|
|
|
fileList.forEach(item => {
|
|
|
|
listtow.push(item.response.fileName)
|
|
|
|
listtow.push(item.response.fileName)
|
|
|
@ -98,9 +98,9 @@ const componentChild = {
|
|
|
|
|
|
|
|
|
|
|
|
conf["on-success"] = (response, file, fileList) => {
|
|
|
|
conf["on-success"] = (response, file, fileList) => {
|
|
|
|
// 在上传成功后的回调函数中可以执行你的业务逻辑
|
|
|
|
// 在上传成功后的回调函数中可以执行你的业务逻辑
|
|
|
|
console.log('上传成功', response);
|
|
|
|
// console.log('上传成功', response);
|
|
|
|
console.log('上传成功2', file);
|
|
|
|
// console.log('上传成功2', file);
|
|
|
|
console.log('上传成功3', fileList);
|
|
|
|
// console.log('上传成功3', fileList);
|
|
|
|
let listtow = []
|
|
|
|
let listtow = []
|
|
|
|
fileList.forEach(item => {
|
|
|
|
fileList.forEach(item => {
|
|
|
|
listtow.push(item.response.fileName)
|
|
|
|
listtow.push(item.response.fileName)
|
|
|
@ -110,8 +110,8 @@ const componentChild = {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
conf["on-remove"] = (response, fileList) => {
|
|
|
|
conf["on-remove"] = (response, fileList) => {
|
|
|
|
// 在上传成功后的回调函数中可以执行你的业务逻辑
|
|
|
|
// 在上传成功后的回调函数中可以执行你的业务逻辑
|
|
|
|
console.log('移除', response);
|
|
|
|
// console.log('移除', response);
|
|
|
|
console.log('移除成功3', fileList);
|
|
|
|
// console.log('移除成功3', fileList);
|
|
|
|
let listtow = []
|
|
|
|
let listtow = []
|
|
|
|
fileList.forEach(item => {
|
|
|
|
fileList.forEach(item => {
|
|
|
|
listtow.push(item.response.fileName)
|
|
|
|
listtow.push(item.response.fileName)
|
|
|
@ -124,7 +124,7 @@ const componentChild = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
conf["on-preview"] = (response, fileList) => {
|
|
|
|
conf["on-preview"] = (response, fileList) => {
|
|
|
|
// 在上传成功后的回调函数中可以执行你的业务逻辑
|
|
|
|
// 在上传成功后的回调函数中可以执行你的业务逻辑
|
|
|
|
console.log('点击', response);
|
|
|
|
// console.log('点击', response);
|
|
|
|
window.open( process.env.VUE_APP_BASE_API + response.response.fileName)
|
|
|
|
window.open( process.env.VUE_APP_BASE_API + response.response.fileName)
|
|
|
|
// 这里可以根据需要执行其他操作,例如更新界面或显示消息
|
|
|
|
// 这里可以根据需要执行其他操作,例如更新界面或显示消息
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -145,7 +145,7 @@ const componentChild = {
|
|
|
|
valuelist.push(obj)
|
|
|
|
valuelist.push(obj)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
conf["file-list"] = valuelist
|
|
|
|
conf["file-list"] = valuelist
|
|
|
|
console.log(888, conf);
|
|
|
|
// console.log(888, conf);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return list
|
|
|
|
return list
|
|
|
|
}
|
|
|
|
}
|
|
|
|