|
@@ -183,20 +183,21 @@ onMounted(() => {
|
|
|
formData.data = resDetail.data
|
|
|
|
|
|
});
|
|
|
- // proxy.post("/fileInfo/getList", { businessIdList: [route.query.id] }).then((res) => {
|
|
|
- // if (res.data[route.query.id] && res.data[route.query.id].length > 0) {
|
|
|
- // formData.value.fileList = res.data[route.query.id];
|
|
|
- // fileList.value = res.data[route.query.id].map((item) => {
|
|
|
- // return {
|
|
|
- // ...item,
|
|
|
- // url: item.fileUrl,
|
|
|
- // };
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // formData.value.fileList = [];
|
|
|
- // fileList.value = [];
|
|
|
- // }
|
|
|
- // });
|
|
|
+ proxy.post("/fileInfo/getList", { businessIdList: [route.query.id] }).then((res) => {
|
|
|
+ if (res.data[route.query.id] && res.data[route.query.id].length > 0) {
|
|
|
+ res.data[route.query.id] = res.data[route.query.id].map((item) => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ url: item.fileUrl,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ formData.data.fileList = res.data[route.query.id];
|
|
|
+ console.log(formData.data)
|
|
|
+ } else {
|
|
|
+ formData.value.fileList = [];
|
|
|
+ fileList.value = [];
|
|
|
+ }
|
|
|
+ });
|
|
|
}else {
|
|
|
|
|
|
}
|