{item.aContent}
- {JSON.parse(item.aFiles).map((fileName: string, index: number) => (
-
- {
- window.open(downloadUrl(fileName))
- }}>{fileName}
-
- ,
-
- ))}
+ {item.aFileKVs.length == 0 ? (<>>) : (<>
+ {item.aFileKVs.map((item: any, index: number) => (
+
+ {
+ // window.open(downloadUrl(item.key))
+ window.open(downloadUrl(item.key,false),'_blank')
+ }}>{item.value}
+
+ {/* , */}
+
+ ))}
+ >)}
+
@@ -962,30 +999,32 @@ export default function ProjEditAll() {
width={800}
onOk={() => {
console.log('上传文件', uploadedFiles);
+ // return
console.log('上传信息', aContent)
- if(aContent==''){
+ if (aContent == '') {
messageApi.open({
type: 'error',
content: '请回复内容'
})
- }else if(uploadedFiles.length == 0){
-
+ } else if (uploadedFiles.length == 0) {
+
messageApi.open({
type: 'error',
content: '请上传文件'
})
- }else{
+ } else {
put({
messageApi,
url: `/api/proj/materials/add/update-a/${projMaterialsAddId}`,
body: {
aContent,
- aFiles: uploadedFiles.map(file => file.response.data.fileId)
+ // aFiles: uploadedFiles.map(file => file.response.data.fileId)
+ aFiles: uploadedFiles.map(file => file.response.data.fileId).join(',')
},
onBefore() {
},
onSuccess() {
-
+
// alert('编辑成功')
messageApi.open({
type: 'success',
@@ -997,7 +1036,7 @@ export default function ProjEditAll() {
// window.location.reload(); // 刷新页面
}, 1000);
// getProjOwnerList()
-
+
},
onFinally() {
}
@@ -1047,7 +1086,7 @@ export default function ProjEditAll() {
- }>上传
+ }>上传
diff --git a/src/route/proj/proj-edit.css b/src/route/proj/proj-edit.css
index a5b2942..0428943 100644
--- a/src/route/proj/proj-edit.css
+++ b/src/route/proj/proj-edit.css
@@ -116,7 +116,8 @@
margin-top: 10px;
min-height: 40px;
/* overflow: scroll; */
- text-align: justify; /* 让文字两端对齐 */
+ /* text-align: justify; 让文字两端对齐 */
+ width: 100%;
}