chenlei 1 rok pred
rodič
commit
27ec2087f3

+ 3 - 2
src/components/Z3upFiles/index.tsx

@@ -29,10 +29,11 @@ type Props = {
   accept?: string;
   // result:成果 | list:清单
   type?: string;
+  tips?: string;
 };
 
 function Z3upFiles(
-  { max, isLook, type="doc", fileCheck, dirCode, myUrl, fromData, lookData, accept=".zip" }: Props,
+  { max, isLook, type="doc", fileCheck, dirCode, myUrl, fromData, lookData, accept=".zip", tips="此处的附件为对外的项目成果文件,仅支持zip格式,最多10个" }: Props,
   ref: any
 ) {
   const [fileList, setFileList] = useState<FileImgListType[]>([]);
@@ -170,7 +171,7 @@ function Z3upFiles(
         </div>
 
         <div className="fileTit" hidden={isLook}>
-          此处的附件为对外的项目成果文件,仅支持zip格式,最多10个
+          {tips}
           <br />
           <div
             className={classNames(

+ 1 - 1
src/pages/A1Project/A1Look/index.tsx

@@ -54,7 +54,7 @@ function A1Look({ pageType, closeFu, tabType, lookTit }: Props) {
   }, [authArr, tabType]);
 
   useEffect(() => {
-    if (topType === "1080") {
+    if (["1080", "1111"].includes(topType)) {
       setSonPageType({ txt: "look", id: pageType.id });
     }
   }, [pageType.id, topType]);

+ 1 - 0
src/pages/A1Project/A1Result/index.tsx

@@ -159,6 +159,7 @@ export const A1Result: FC<A1ResultProps> = ({ pageType, closeFu, addFu, editFu }
                 dirCode={dirCode}
                 myUrl="cms/project/upload"
                 lookData={lookFile.filter((v) => v.type === "list")}
+                tips="最多1个附件"
               />
             </div>
           </div>